CN113840270A - Method, device, equipment and storage medium for establishing Bluetooth connection - Google Patents

Method, device, equipment and storage medium for establishing Bluetooth connection Download PDF

Info

Publication number
CN113840270A
CN113840270A CN202110937039.6A CN202110937039A CN113840270A CN 113840270 A CN113840270 A CN 113840270A CN 202110937039 A CN202110937039 A CN 202110937039A CN 113840270 A CN113840270 A CN 113840270A
Authority
CN
China
Prior art keywords
electronic equipment
electronic device
signal
audio signal
bluetooth connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110937039.6A
Other languages
Chinese (zh)
Inventor
杨彦哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN202110937039.6A priority Critical patent/CN113840270A/en
Publication of CN113840270A publication Critical patent/CN113840270A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

The present disclosure provides a method, an apparatus, a device and a storage medium for establishing a bluetooth connection, which relate to the technical field of communications, and in particular to the technical fields of wireless connection, voice recognition, etc. The method for establishing the Bluetooth connection comprises the following steps: receiving a specific signal sent by first electronic equipment, wherein the specific signal comprises a connection key, the specific signal is sent after the first electronic equipment receives a voice instruction of a user, and the voice instruction is used for indicating to initiate Bluetooth connection; if the Bluetooth connection with the first electronic equipment is determined, sending a verification message to the first electronic equipment, wherein the verification message comprises the connection key; and after the verification message passes the verification, establishing Bluetooth connection with the first electronic equipment. The present disclosure can improve the efficiency of establishing a bluetooth connection.

Description

Method, device, equipment and storage medium for establishing Bluetooth connection
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to the field of wireless connectivity and voice recognition technologies, and in particular, to a method, an apparatus, a device, and a storage medium for establishing a bluetooth connection.
Background
With the development of bluetooth technology, the use of electronic devices with bluetooth functions is becoming more and more common. Two electronic devices with Bluetooth function can establish Bluetooth connection and communicate based on the Bluetooth connection. An Application (APP) may be installed on at least one of the two electronic devices having a bluetooth function.
In the related art, a user generally performs operations such as searching, discovering, and connecting on an APP, and then establishes a bluetooth connection between two electronic devices having a bluetooth function.
Disclosure of Invention
The disclosure provides a Bluetooth connection method, device, equipment and storage medium.
According to an aspect of the present disclosure, there is provided a method for establishing a bluetooth connection, which is applied to a second electronic device, the method including: receiving a specific signal sent by first electronic equipment, wherein the specific signal comprises a connection key, the specific signal is sent after the first electronic equipment receives a voice instruction of a user, and the voice instruction is used for indicating to initiate Bluetooth connection; if the Bluetooth connection with the first electronic equipment is determined, sending a verification message to the first electronic equipment, wherein the verification message comprises the connection key; and after the verification message passes the verification, establishing Bluetooth connection with the first electronic equipment.
According to another aspect of the present disclosure, there is provided a method for establishing a bluetooth connection, which is applied to a first electronic device, the method including: after receiving a voice instruction of a user, sending a specific signal to second electronic equipment, wherein the specific signal comprises a connection key, and the voice instruction is used for indicating to initiate Bluetooth connection; receiving a verification message sent by the second electronic device, wherein the verification message contains the connection key, and the verification message is sent after the second electronic device determines to establish Bluetooth connection with the first electronic device; and if the verification of the verification message is passed based on the connection key, establishing Bluetooth connection with the second electronic equipment.
According to another aspect of the present disclosure, there is provided an apparatus for establishing a bluetooth connection, which is applied to a second electronic device, the apparatus including: the device comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a specific signal sent by first electronic equipment, the specific signal comprises a connection key, the specific signal is sent by the first electronic equipment after receiving a voice instruction of a user, and the voice instruction is used for indicating to initiate Bluetooth connection; the sending module is used for sending a verification message to the first electronic device if the Bluetooth connection with the first electronic device is determined to be established, wherein the verification message comprises the connection key; and the connection module is used for establishing Bluetooth connection with the first electronic equipment after the verification message passes the verification.
According to another aspect of the present disclosure, there is provided an apparatus for establishing a bluetooth connection, which is applied to a first electronic device, the apparatus including: the sending module is used for sending a specific signal to the second electronic equipment after receiving a voice instruction of a user, wherein the specific signal comprises a connection key, and the voice instruction is used for indicating to initiate Bluetooth connection; a receiving module, configured to receive a verification message sent by the second electronic device, where the verification message includes the connection key, and the verification message is sent after the second electronic device determines to establish a bluetooth connection with the first electronic device; and the connection module is used for establishing Bluetooth connection with the second electronic equipment if the verification of the verification message is passed based on the connection key.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the above aspects.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to any one of the above aspects.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of the above aspects.
According to the technical scheme disclosed herein, the efficiency of establishing the Bluetooth connection can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3 is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 4 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 5 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 6 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 7 is a schematic diagram according to a fourth embodiment of the present disclosure;
fig. 8 is a schematic diagram of an electronic device for implementing any one of the methods of establishing a bluetooth connection according to the embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Among the correlation technique, bluetooth connection generally needs the user to operate APP, and this kind of mode exists the problem of connecting efficiency difference, and some users can not operate even, cause the connection failure.
To improve the efficiency of bluetooth connections, the present disclosure provides the following embodiments.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure, where this embodiment provides a method for establishing a bluetooth connection, including:
101. receiving a specific signal sent by first electronic equipment, wherein the specific signal comprises a connection key, the specific signal is sent after the first electronic equipment receives a first voice instruction of a user, and the first voice instruction is used for indicating to initiate Bluetooth connection.
102. And if the Bluetooth connection with the first electronic equipment is determined, sending a verification request to the first electronic equipment, wherein the verification request comprises the connection key.
103. And establishing Bluetooth connection with the first electronic equipment based on a verification passing message sent by the first electronic equipment, wherein the verification passing message is sent after the first electronic equipment verifies the verification request based on the connection key.
As shown in fig. 2, the first electronic device and the second electronic device are both electronic devices with bluetooth function, and the first electronic device and the second electronic device can establish bluetooth connection. The first electronic device includes, for example: a smart phone, a personal computer, a notebook computer, a tablet computer, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. The second electronic device includes, for example: bluetooth headset, bluetooth speaker, bluetooth mobile unit etc..
The Bluetooth technology belongs to a short-distance wireless transmission technology, and can perform Bluetooth information interaction among various Bluetooth terminal devices such as a smart phone, a personal computer, a notebook computer, a tablet personal computer, portable wearable equipment, a Bluetooth headset and a Bluetooth sound box.
The first electronic device and the second electronic device can both have a bluetooth module thereon to realize bluetooth communication therebetween. The Bluetooth module may support Basic Rate (BR)/Enhanced Data Rate (EDR) Bluetooth and Bluetooth Low Energy (BLE).
The first electronic device also has at least a means, such as a microphone, thereon for receiving voice instructions of the user.
The specific signal may be a bluetooth signal, and the first electronic device and the second electronic device may transmit or receive the specific signal through the bluetooth module.
The specific signal may also be an audio signal, referred to as specific audio signal. At this time, the first electronic device also has at least a module for transmitting a specific audio signal thereon. The second electronic device also has at least a module for receiving a particular audio signal.
The specific audio signal may be an inaudible signal to the human ear, such as an ultrasonic signal or an infrasonic signal.
Correspondingly, if the specific audio signal is ultrasonic information, an ultrasonic receiver arranged on the second electronic device is adopted to receive the specific audio signal sent by the first electronic device; or, if the specific audio signal is infrasonic information, the specific audio signal sent by the first electronic device is received by adopting an infrasonic receiver arranged on the second electronic device.
Since the ultrasonic wave signal or the infrasonic wave signal is an inaudible audio signal to the human ear, interference to the user can be avoided.
Taking a specific audio signal as an ultrasonic signal as an example, an ultrasonic signal transmitter may be installed on the first electronic device, and an ultrasonic signal receiver may be installed on the second electronic device.
The method of the present embodiment may be applied to a second electronic device.
When the first electronic device initiates a bluetooth connection, a specific audio signal may be broadcast to the surrounding environment, the specific audio signal including a connection key. The connection key is generated by the first electronic device according to a preset rule, and different electronic devices have different connection keys, for example, a random number may be generated, and the connection key may be obtained by encrypting the random number, and may also be referred to as a token (token).
The ultrasonic receiver on the second electronic device may listen for a particular audio signal, and thus, after the first electronic device broadcasts the particular audio signal, the second electronic device may receive the particular audio signal.
After receiving the specific audio signal, the second electronic device may determine whether to perform bluetooth connection with the first electronic device, and after determining that the connection is made, send a verification message including the connection key.
After receiving the verification message, the first electronic device may verify the verification message, for example, if the connection key included in the verification message is the same as the connection key generated by the first electronic device, it indicates that the verification message passes verification, otherwise, the verification fails.
After the verification message is verified, the first electronic device and the second electronic device may establish a bluetooth connection.
In some embodiments, the method may further comprise: notifying a user of prompt information, wherein the prompt information is used for prompting the user whether to confirm that the Bluetooth connection with the first electronic equipment is established; and if the confirmation instruction of the user is received, determining to establish Bluetooth connection with the first electronic equipment.
For example, after receiving the specific audio signal, the second electronic device may ask the user whether to perform bluetooth connection with the first electronic device, and after confirming by the user, may determine to establish bluetooth connection with the first electronic device.
By notifying the user of the prompt, it may be determined whether to establish a bluetooth connection with the first electronic device based on the user's feedback, thereby establishing a bluetooth connection based on the user's needs.
In some embodiments, the notifying the user of the prompt information may include: displaying the prompt information to a user through a display screen on the second electronic equipment; or, the prompt information is broadcasted to the user in a voice broadcast mode through a voice output device on the second electronic equipment; or sending the prompt information to a third electronic device which establishes connection with the second electronic device, and notifying the user through the third electronic device.
For example, the second electronic device is provided with a display screen, and after receiving the specific audio signal, the second electronic device may display the prompt message through the display screen. Alternatively, the first and second electrodes may be,
the second electronic device is provided with a voice output device, for example, a speaker, and the prompt information can be broadcasted through the speaker by voice. Alternatively, the first and second electrodes may be,
and if the second electronic equipment is connected with the third electronic equipment, the prompt information can be displayed or broadcasted through voice by the third electronic equipment.
For example, bluetooth speaker has established the bluetooth with the smart mobile phone that the user used and is connected, and later after bluetooth headset sent specific audio signal to bluetooth speaker, bluetooth speaker can send the suggestion information for the smart mobile phone, and the smart mobile phone can receive the suggestion information through the APP of installing on it, later, can show for the user through the display interface of APP, and perhaps, the APP triggers the speaker pronunciation of smart mobile phone and reports the suggestion information.
Prompt information is notified to a user through multiple modes, and a proper notification mode can be selected according to actual conditions, so that the flexibility is improved.
In some embodiments, the prompt includes information about a distance between the second electronic device and the first electronic device, the second electronic device has at least two receivers for receiving the specific audio signal, and the method further includes: and determining distance information between the second electronic equipment and the first electronic equipment by adopting a multi-sound-source positioning algorithm based on the specific audio signals received by the at least two receivers.
The multi-source localization algorithm is, for example, a Generalized Cross Correlation-PHAse Transformation method (GCC-PHAT).
For example, the bluetooth speaker sends a specific audio signal to the bluetooth speaker, and the specific audio signal is an ultrasonic signal, as shown in fig. 3, two ultrasonic receivers can be arranged on the bluetooth speaker, the bluetooth speaker can transmit the ultrasonic signal to the bluetooth speaker through an ultrasonic transmitter arranged on the bluetooth speaker, and the bluetooth speaker can calculate distance information between the bluetooth speaker and the bluetooth speaker based on two ultrasonic signals received by the two ultrasonic receivers. The distance information may then be included in the reminder information to notify the user.
By including the distance information in the prompt message, the user can conveniently know the electronic equipment to be connected, so that the user can make a decision whether to connect or not according with the self requirement.
When the second electronic device determines to establish the bluetooth connection with the first electronic device, a verification message may be sent to the first electronic device, and the verification message may be sent through the bluetooth module.
The first electronic device can verify the verification message after receiving the verification message, and after the verification is passed, the Bluetooth connection between the first electronic device and the second electronic device is established.
In this embodiment, the bluetooth connection is established based on the voice command and the specific signal, and the establishment efficiency of the bluetooth connection can be improved compared with a mode in which a user operates an application.
The second electronic device is used as the execution subject, and the first electronic device may execute the following processes.
Fig. 4 is a schematic diagram according to a fourth embodiment of the present disclosure, where this embodiment provides a method for establishing a bluetooth connection, including:
401. and sending a specific signal to the second electronic equipment, wherein the specific signal contains the connection key.
402. And receiving a verification message sent by the second electronic device, wherein the verification request message comprises the connection key, and the verification message is sent after the second electronic device determines to establish Bluetooth connection with the first electronic device.
403. And if the connection key passes the verification of the verification message, establishing Bluetooth connection with the second electronic equipment.
The method of this embodiment may be applied to a first electronic device, which is a device initiating a bluetooth connection. Taking a specific audio signal as an ultrasonic wave as an example, the first electronic device has a bluetooth module and an ultrasonic wave transmitter.
The first electronic device transmits a specific audio signal through an ultrasonic transmitter arranged thereon.
In addition, the first electronic device may also generate a connection key and include the connection key in the particular audio signal.
And after confirming that the Bluetooth connection is established with the first electronic equipment, the second electronic equipment sends a verification message containing the connection key to the first electronic equipment.
And after receiving the verification message, the first electronic device can acquire the connection key from the verification message and compare the connection key with the connection password generated by the first electronic device, and if the connection key is consistent with the connection password generated by the first electronic device, the first electronic device indicates that the verification message passes verification, and the pairing and Bluetooth connection with the second electronic device are completed.
For example, a module, such as a microphone, for receiving a voice signal may be further disposed on the first electronic device, the microphone of the first electronic device monitors a voice instruction of the user, the voice instruction is, for example, content like "open bluetooth and initiate bluetooth connection", and the first electronic device may send a specific audio signal after receiving the voice instruction.
In some embodiments, the transmitting the specific signal to the second electronic device as the specific audio signal may include:
if the specific audio signal is an ultrasonic signal, an ultrasonic transmitter arranged on the first electronic equipment is adopted to transmit the specific audio signal to the second electronic equipment; or, if the specific audio signal is infrasonic information, the specific audio signal is sent to the second electronic device by adopting an infrasonic emitter arranged on the first electronic device.
Since the ultrasonic wave signal or the infrasonic wave signal is an inaudible audio signal to the human ear, interference to the user can be avoided.
In this embodiment, the bluetooth connection is established based on the specific signal by sending the specific information based on the voice command, and the efficiency of establishing the bluetooth connection can be improved compared with a mode in which a user operates an application.
Fig. 5 is a schematic diagram according to a fifth embodiment of the present disclosure, where this embodiment provides a method for establishing a bluetooth connection, and in this embodiment, for example, a first electronic device is a smart phone, and a second electronic device is a bluetooth speaker, the method of this embodiment includes:
501. the method comprises the steps that a voice instruction of a user is received by the smart phone, and the voice instruction is used for indicating the smart phone to initiate Bluetooth connection.
502. The smart phone sends a specific audio signal to the Bluetooth sound box, wherein the specific audio signal comprises a connection key.
For example, if the specific audio signal is an ultrasonic signal, the specific audio signal may be transmitted through an ultrasonic transmitter.
503. And the Bluetooth sound box calculates distance information between the Bluetooth sound box and the smart phone.
For example, two ultrasonic receivers and a processor are arranged on the bluetooth sound box, and the processor calculates distance information between the bluetooth sound box and the smart phone based on two paths of specific audio signals received by the two ultrasonic receivers.
504. The Bluetooth sound box generates prompt information containing distance information, and voice broadcast is given to the user.
For example, be provided with the speaker on the bluetooth speaker, bluetooth speaker passes through speaker voice broadcast prompt information, and prompt information is for example "find the equipment of waiting to connect in the position apart from X, whether connect? "
505. The Bluetooth sound box receives a confirmation instruction of the user.
For example, when the user needs to connect, the user can speak a voice similar to "confirm connection", and the bluetooth speaker can monitor the confirmation instruction of the user through a microphone and other devices arranged on the bluetooth speaker, and then confirm that the bluetooth speaker is connected with the smart phone.
506. And the Bluetooth sound box sends a verification message to the smart phone, wherein the verification message comprises the connection secret key.
For example, the bluetooth speaker parses the connection key from the specific audio signal and includes the connection key in the verification message.
507. And the smart phone verifies the verification message.
508. After the verification message passes the verification, the smart phone establishes Bluetooth connection with the Bluetooth sound box.
For example, when the smart phone finds that the connection key included in the verification message is consistent with the connection key generated by the smart phone, it indicates that the verification message passes verification, and at this time, the smart phone may return a success message to the bluetooth speaker, which indicates that the smart phone and the bluetooth speaker are successfully paired, thereby completing establishment of bluetooth connection.
The bluetooth speaker may then also prompt the user that the connection is complete.
In this embodiment, the bluetooth connection can be established through the audio signal, and the efficiency is improved.
Fig. 6 is a schematic diagram of a sixth embodiment according to the present disclosure, which provides an apparatus for establishing a bluetooth connection, applied to a second electronic device. As shown in fig. 6, the apparatus 600 includes: a receiving module 601, a sending module 602 and a connecting module 603.
The receiving module 601 is configured to receive a specific signal sent by a first electronic device, where the specific signal includes a connection key, the specific signal is sent by the first electronic device after receiving a voice instruction of a user, and the voice instruction is used to instruct to initiate bluetooth connection; the sending module 602 is configured to send a verification message to the first electronic device if it is determined that the bluetooth connection is established with the first electronic device, where the verification message includes the connection key; the connection module 603 is configured to establish a bluetooth connection with the first electronic device after the verification message is verified.
In some embodiments, the apparatus 600 further comprises: the prompting module is used for notifying a user of prompting information, and the prompting information is used for prompting the user whether to confirm that the Bluetooth connection with the first electronic equipment is established or not; and the determining module is used for determining to establish Bluetooth connection with the first electronic equipment if the confirmation instruction of the user is received.
In some embodiments, the prompt module is specifically configured to: displaying the prompt information to a user through a display screen on the second electronic equipment; or, the prompt information is broadcasted to the user in a voice broadcast mode through a voice output device on the second electronic equipment; or sending the prompt information to a third electronic device which establishes connection with the second electronic device, and notifying the user through the third electronic device.
In some embodiments, the prompt message includes information about a distance between the second electronic device and the first electronic device, the specific signal is a specific audio signal, the second electronic device has at least two receivers for receiving the specific audio signal, and the apparatus 600 further includes: and the distance measuring module is used for determining the distance information between the second electronic equipment and the first electronic equipment by adopting a multi-sound-source positioning algorithm based on the specific audio signals received by the at least two receivers.
In some embodiments, the specific signal is a specific audio signal, and the receiving module 601 is specifically configured to: if the specific audio signal is an ultrasonic signal, receiving the specific audio signal sent by the first electronic equipment by adopting an ultrasonic receiver arranged on the second electronic equipment; or, if the specific audio signal is an infrasonic signal, the specific audio signal sent by the first electronic device is received by adopting an infrasonic receiver arranged on the second electronic device.
In this embodiment, the bluetooth connection is established based on the voice command and the specific signal, and the establishment efficiency of the bluetooth connection can be improved compared with a mode in which a user operates an application.
Fig. 7 is a schematic diagram of a seventh embodiment of the present disclosure, which provides an apparatus for establishing a bluetooth connection, and is applied to a first electronic device. As shown in fig. 7, the apparatus 700 includes: a sending module 701, a receiving module 702 and a connecting module 703.
The sending module 701 is configured to send a specific signal to the second electronic device after receiving a voice instruction of a user, where the specific signal includes a connection key, and the voice instruction is used to instruct to initiate bluetooth connection; a receiving module 702 is configured to receive a verification message sent by the second electronic device, where the verification message includes the connection key, and the verification message is sent by the second electronic device after determining that bluetooth connection is established with the first electronic device; the connection module 703 is configured to establish a bluetooth connection with the second electronic device if the verification of the verification message is passed based on the connection key.
In some embodiments, the specific signal is a specific audio signal, and the sending module 701 is specifically configured to: if the specific audio signal is an ultrasonic signal, an ultrasonic transmitter arranged on the first electronic equipment is adopted to transmit the specific audio signal to the second electronic equipment; or, if the specific audio signal is infrasonic information, the specific audio signal is sent to the second electronic device by adopting an infrasonic emitter arranged on the first electronic device.
In this embodiment, the bluetooth connection is established based on the specific signal by sending the specific information based on the voice command, and the efficiency of establishing the bluetooth connection can be improved compared with a mode in which a user operates an application.
It is to be understood that in the disclosed embodiments, the same or similar elements in different embodiments may be referenced.
It is to be understood that "first", "second", and the like in the embodiments of the present disclosure are used for distinction only, and do not indicate the degree of importance, the order of timing, and the like.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the electronic device 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic apparatus 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the electronic device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as the establishment method of the bluetooth connection. For example, in some embodiments, the method of establishing a bluetooth connection may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto the electronic device 800 via the ROM 802 and/or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method of establishing a bluetooth connection described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the method of establishing a bluetooth connection by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A method for establishing Bluetooth connection is applied to a second electronic device, and comprises the following steps:
receiving a specific signal sent by first electronic equipment, wherein the specific signal comprises a connection key, the specific signal is sent after the first electronic equipment receives a voice instruction of a user, and the voice instruction is used for indicating to initiate Bluetooth connection;
if the Bluetooth connection with the first electronic equipment is determined, sending a verification message to the first electronic equipment, wherein the verification message comprises the connection key;
and after the verification message passes the verification, establishing Bluetooth connection with the first electronic equipment.
2. The method of claim 1, further comprising:
notifying a user of prompt information, wherein the prompt information is used for prompting the user whether to confirm that the Bluetooth connection with the first electronic equipment is established;
and if the confirmation instruction of the user is received, determining to establish Bluetooth connection with the first electronic equipment.
3. The method of claim 2, wherein the notifying the user of the reminder information comprises:
displaying the prompt information to a user through a display screen on the second electronic equipment; alternatively, the first and second electrodes may be,
broadcasting the prompt information to a user in a voice broadcasting mode through a voice output device on the second electronic equipment; alternatively, the first and second electrodes may be,
and sending the prompt information to third electronic equipment which establishes connection with the second electronic equipment, and informing the user through the third electronic equipment.
4. The method of claim 2, wherein the hint information includes distance information between the second electronic device and the first electronic device, the particular signal is a particular audio signal, the second electronic device has at least two receivers for receiving the particular audio signal, the method further comprising:
and determining distance information between the second electronic equipment and the first electronic equipment by adopting a multi-sound-source positioning algorithm based on the specific audio signals received by the at least two receivers.
5. The method according to any one of claims 1-4, wherein the specific signal is a specific audio signal, and the receiving the specific signal transmitted by the first electronic device comprises:
if the specific audio signal is an ultrasonic signal, receiving the specific audio signal sent by the first electronic equipment by adopting an ultrasonic receiver arranged on the second electronic equipment; alternatively, the first and second electrodes may be,
and if the specific audio signal is an infrasonic signal, receiving the specific audio signal sent by the first electronic equipment by adopting an infrasonic receiver arranged on the second electronic equipment.
6. A method for establishing Bluetooth connection is applied to a first electronic device, and comprises the following steps:
after receiving a voice instruction of a user, sending a specific signal to second electronic equipment, wherein the specific signal comprises a connection key, and the voice instruction is used for indicating to initiate Bluetooth connection;
receiving a verification message sent by the second electronic device, wherein the verification message contains the connection key, and the verification message is sent after the second electronic device determines to establish Bluetooth connection with the first electronic device;
and if the verification of the verification message is passed based on the connection key, establishing Bluetooth connection with the second electronic equipment.
7. The method of claim 6, wherein the particular signal is a particular audio signal, the transmitting the particular signal to the second electronic device comprising:
if the specific audio signal is an ultrasonic signal, an ultrasonic transmitter arranged on the first electronic equipment is adopted to transmit the specific audio signal to the second electronic equipment; alternatively, the first and second electrodes may be,
and if the specific audio signal is infrasonic information, sending the specific audio signal to second electronic equipment by adopting an infrasonic emitter arranged on the first electronic equipment.
8. An apparatus for establishing a bluetooth connection, applied to a second electronic device, the apparatus comprising:
the device comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a specific signal sent by first electronic equipment, the specific signal comprises a connection key, the specific signal is sent by the first electronic equipment after receiving a voice instruction of a user, and the voice instruction is used for indicating to initiate Bluetooth connection;
the sending module is used for sending a verification message to the first electronic device if the Bluetooth connection with the first electronic device is determined to be established, wherein the verification message comprises the connection key;
and the connection module is used for establishing Bluetooth connection with the first electronic equipment after the verification message passes the verification.
9. The apparatus of claim 8, further comprising:
the prompting module is used for notifying a user of prompting information, and the prompting information is used for prompting the user whether to confirm that the Bluetooth connection with the first electronic equipment is established or not;
and the determining module is used for determining to establish Bluetooth connection with the first electronic equipment if the confirmation instruction of the user is received.
10. The apparatus of claim 9, wherein the prompting module is specifically configured to:
displaying the prompt information to a user through a display screen on the second electronic equipment; alternatively, the first and second electrodes may be,
broadcasting the prompt information to a user in a voice broadcasting mode through a voice output device on the second electronic equipment; alternatively, the first and second electrodes may be,
and sending the prompt information to third electronic equipment which establishes connection with the second electronic equipment, and informing the user through the third electronic equipment.
11. The apparatus of claim 9, wherein the hint information includes information about a distance between the second electronic device and the first electronic device, the particular signal is a particular audio signal, the second electronic device has at least two receivers for receiving the particular audio signal, the apparatus further comprises:
and the distance measuring module is used for determining the distance information between the second electronic equipment and the first electronic equipment by adopting a multi-sound-source positioning algorithm based on the specific audio signals received by the at least two receivers.
12. The apparatus according to any one of claims 8-11, wherein the specific signal is a specific audio signal, and the receiving means is specifically configured to:
if the specific audio signal is an ultrasonic signal, receiving the specific audio signal sent by the first electronic equipment by adopting an ultrasonic receiver arranged on the second electronic equipment; alternatively, the first and second electrodes may be,
and if the specific audio signal is an infrasonic signal, receiving the specific audio signal sent by the first electronic equipment by adopting an infrasonic receiver arranged on the second electronic equipment.
13. An apparatus for establishing a bluetooth connection, applied to a first electronic device, the apparatus comprising:
the sending module is used for sending a specific signal to the second electronic equipment after receiving a voice instruction of a user, wherein the specific signal comprises a connection key, and the voice instruction is used for indicating to initiate Bluetooth connection;
a receiving module, configured to receive a verification message sent by the second electronic device, where the verification message includes the connection key, and the verification message is sent after the second electronic device determines to establish a bluetooth connection with the first electronic device;
and the connection module is used for establishing Bluetooth connection with the second electronic equipment if the verification of the verification message is passed based on the connection key.
14. The apparatus of claim 13, wherein the specific signal is a specific audio signal, and the transmitting module is specifically configured to:
if the specific audio signal is an ultrasonic signal, an ultrasonic transmitter arranged on the first electronic equipment is adopted to transmit the specific audio signal to the second electronic equipment; alternatively, the first and second electrodes may be,
and if the specific audio signal is infrasonic information, sending the specific audio signal to second electronic equipment by adopting an infrasonic emitter arranged on the first electronic equipment.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202110937039.6A 2021-08-16 2021-08-16 Method, device, equipment and storage medium for establishing Bluetooth connection Pending CN113840270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110937039.6A CN113840270A (en) 2021-08-16 2021-08-16 Method, device, equipment and storage medium for establishing Bluetooth connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110937039.6A CN113840270A (en) 2021-08-16 2021-08-16 Method, device, equipment and storage medium for establishing Bluetooth connection

Publications (1)

Publication Number Publication Date
CN113840270A true CN113840270A (en) 2021-12-24

Family

ID=78960729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110937039.6A Pending CN113840270A (en) 2021-08-16 2021-08-16 Method, device, equipment and storage medium for establishing Bluetooth connection

Country Status (1)

Country Link
CN (1) CN113840270A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101868954A (en) * 2007-11-21 2010-10-20 Nxp股份有限公司 Device and method for near field communications using audio transducers
US20150131539A1 (en) * 2013-11-12 2015-05-14 Qualcomm Incorporated Fast service discovery and pairing using ultrasonic communication
CN105913249A (en) * 2016-05-04 2016-08-31 广西咪付网络技术有限公司 Mobile payment method and system based on the combination of sound wave and Bluetooth
US20170048292A1 (en) * 2015-08-12 2017-02-16 Samsung Electronics Co., Ltd. Electronic device and method for providing content
WO2017172106A1 (en) * 2016-03-31 2017-10-05 Intel Corporation Point-and-connect bluetooth pairing
WO2018048268A1 (en) * 2016-09-11 2018-03-15 엘지전자(주) Method and apparatus for connecting device by using bluetooth technology
WO2018169380A1 (en) * 2017-03-17 2018-09-20 엘지전자(주) Method and apparatus for processing audio signal by using bluetooth technology
CN108809914A (en) * 2017-05-05 2018-11-13 国民技术股份有限公司 Access control method, device, terminal and Internet of Things house system
CN109493488A (en) * 2018-11-23 2019-03-19 北京小米移动软件有限公司 Smart card authentication method, smart lock, smart card, system and device
US20190349758A1 (en) * 2018-05-10 2019-11-14 Jing Zhu Ultrasound-assisted wi-fi and bluetooth authentication
CN111145400A (en) * 2020-02-25 2020-05-12 佛山市翰文裕城智能科技有限公司 Safe and simple low-power-consumption Bluetooth lock and control method thereof
CN111818500A (en) * 2020-07-31 2020-10-23 苏州思必驰信息科技有限公司 Method and device for establishing Bluetooth connection between mobile terminal and motor vehicle
CN111971985A (en) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 Earphone pairing method, earphone control method, Bluetooth earphone accommodating device and medium
CN113015065A (en) * 2021-02-18 2021-06-22 Oppo广东移动通信有限公司 Connection method, device, equipment and computer storage medium
CN113037394A (en) * 2021-02-25 2021-06-25 Oppo广东移动通信有限公司 Communication connection method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101868954A (en) * 2007-11-21 2010-10-20 Nxp股份有限公司 Device and method for near field communications using audio transducers
US20150131539A1 (en) * 2013-11-12 2015-05-14 Qualcomm Incorporated Fast service discovery and pairing using ultrasonic communication
US20170048292A1 (en) * 2015-08-12 2017-02-16 Samsung Electronics Co., Ltd. Electronic device and method for providing content
WO2017172106A1 (en) * 2016-03-31 2017-10-05 Intel Corporation Point-and-connect bluetooth pairing
CN105913249A (en) * 2016-05-04 2016-08-31 广西咪付网络技术有限公司 Mobile payment method and system based on the combination of sound wave and Bluetooth
WO2018048268A1 (en) * 2016-09-11 2018-03-15 엘지전자(주) Method and apparatus for connecting device by using bluetooth technology
WO2018169380A1 (en) * 2017-03-17 2018-09-20 엘지전자(주) Method and apparatus for processing audio signal by using bluetooth technology
CN108809914A (en) * 2017-05-05 2018-11-13 国民技术股份有限公司 Access control method, device, terminal and Internet of Things house system
US20190349758A1 (en) * 2018-05-10 2019-11-14 Jing Zhu Ultrasound-assisted wi-fi and bluetooth authentication
CN109493488A (en) * 2018-11-23 2019-03-19 北京小米移动软件有限公司 Smart card authentication method, smart lock, smart card, system and device
CN111145400A (en) * 2020-02-25 2020-05-12 佛山市翰文裕城智能科技有限公司 Safe and simple low-power-consumption Bluetooth lock and control method thereof
CN111971985A (en) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 Earphone pairing method, earphone control method, Bluetooth earphone accommodating device and medium
CN111818500A (en) * 2020-07-31 2020-10-23 苏州思必驰信息科技有限公司 Method and device for establishing Bluetooth connection between mobile terminal and motor vehicle
CN113015065A (en) * 2021-02-18 2021-06-22 Oppo广东移动通信有限公司 Connection method, device, equipment and computer storage medium
CN113037394A (en) * 2021-02-25 2021-06-25 Oppo广东移动通信有限公司 Communication connection method and device

Similar Documents

Publication Publication Date Title
KR102555806B1 (en) Method, apparatus, device and storage medium for establishing wireless connection
US10939490B2 (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
US11417331B2 (en) Method and device for controlling terminal, and computer readable storage medium
KR20160042569A (en) Multi-connection method and electronic device supporting the same
EP2871575A1 (en) Redirecting notifications to a wearable computing device
CN104144093A (en) Intelligent device control method, relevant device and system
CN105518645B (en) Load balanced persistent connection technique
US20160205514A1 (en) Information processing apparatus and information processing system
WO2017200592A1 (en) Offline peer-assisted notification delivery
TW201501555A (en) Method and system for generating reminder message of communication account number and apparatus thereof
EP2759892B1 (en) Synchronization of alarms between devices
EP3876229A2 (en) Vehicle-based voice processing method, voice processor, and vehicle-mounted processor
CN104168269A (en) Secure connection establishing method, apparatus and system
WO2018014357A1 (en) Social information interaction method and device
CN106685800B (en) The based reminding method and device of information
CN113329373A (en) Vehicle machine interconnection method and device
CN103701994A (en) Automatic responding method and automatic responding device
KR20150006500A (en) Operating Method For Nearby Function and Electronic Device supporting the same
CN108513365B (en) Control method and device of intelligent equipment, intelligent equipment and medium
CN113067769B (en) Router restarting method, device, equipment and storage medium
US11057702B1 (en) Method and system for reducing audio feedback
CN113840270A (en) Method, device, equipment and storage medium for establishing Bluetooth connection
CN114285873B (en) Method, device, equipment and storage medium for establishing communication connection
CN113810814B (en) Earphone mode switching control method and device, electronic equipment and storage medium
CN104869611A (en) WLAN access 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