CN111148086B - Bluetooth pairing method and device, storage medium and electronic equipment - Google Patents
Bluetooth pairing method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN111148086B CN111148086B CN201911409868.6A CN201911409868A CN111148086B CN 111148086 B CN111148086 B CN 111148086B CN 201911409868 A CN201911409868 A CN 201911409868A CN 111148086 B CN111148086 B CN 111148086B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- vibration signal
- motor vibration
- bluetooth device
- motor
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000012545 processing Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 claims description 13
- 238000012790 confirmation Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 8
- 238000007781 pre-processing Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 230000009467 reduction Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 18
- 230000006870 function Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 13
- 230000001133 acceleration Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 12
- 238000005070 sampling Methods 0.000 description 10
- 238000013139 quantization Methods 0.000 description 6
- 238000013459 approach Methods 0.000 description 3
- 238000006073 displacement reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000029058 respiratory gaseous exchange Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a Bluetooth pairing method, a Bluetooth pairing device, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of collecting a first motor vibration signal of first Bluetooth equipment, decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information, and connecting Bluetooth of the first Bluetooth equipment based on the first Bluetooth pairing information. By adopting the embodiment of the application, the Bluetooth pairing process can be simplified, and the Bluetooth pairing efficiency can be improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a bluetooth pairing method, a bluetooth pairing device, a storage medium, and an electronic device.
Background
The bluetooth communication technology is widely used in intelligent terminal equipment as a short-distance wireless communication mode, for example, a smart phone is connected with the smart phone through bluetooth. Before the intelligent terminal equipment adopts the Bluetooth communication technology to communicate, bluetooth pairing is needed.
At present, in the bluetooth pairing process, a bluetooth search switch of an intelligent terminal device is generally turned on first to search for paired bluetooth devices, all the paired bluetooth devices are listed in a search list, then a user manually selects a target bluetooth device in the search list to initiate a pairing connection request, and bluetooth connection is established after the target bluetooth device confirms the pairing connection request. However, in this way, when the bluetooth connection with the target bluetooth device is established, the user needs to spend a lot of time to search for the target bluetooth device in the bluetooth search list, the bluetooth pairing process is complicated, and the bluetooth pairing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a Bluetooth pairing method, a Bluetooth pairing device, a storage medium and electronic equipment, which can simplify the Bluetooth pairing process and improve the Bluetooth pairing efficiency. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a bluetooth pairing method, where the method includes:
collecting a first motor vibration signal of a first Bluetooth device;
decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information;
and connecting with Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information.
In a second aspect, an embodiment of the present application provides a bluetooth pairing device, including:
the signal acquisition module is used for acquiring a first motor vibration signal of the first Bluetooth device;
the signal decoding module is used for decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information;
and the Bluetooth connection module is used for connecting with the Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect, embodiments of the present application provide an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by some embodiments of the present application has the beneficial effects that at least includes:
in one or more embodiments of the present application, the second bluetooth device collects a first motor vibration signal of the first bluetooth device, decodes the first motor vibration signal, obtains decoded first bluetooth pairing information, and connects with bluetooth of the first bluetooth device based on the first bluetooth pairing information. The first motor vibration signal is decoded to obtain the first Bluetooth pairing information, and then the Bluetooth pairing information and the Bluetooth of the first Bluetooth device can be automatically connected based on the first Bluetooth pairing information, so that a user does not need to manually operate the Bluetooth device, the Bluetooth establishment step between the Bluetooth devices is simplified, and the Bluetooth pairing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a bluetooth pairing method according to an embodiment of the present application;
fig. 2 is a flowchart of another bluetooth pairing method according to an embodiment of the present application;
fig. 3 is an interface schematic diagram of a bluetooth pairing mode related to a bluetooth pairing method according to an embodiment of the present application;
fig. 4 is an interface schematic diagram showing vibration prompt information related to a bluetooth pairing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of another interface for displaying vibration prompt information related to the bluetooth pairing method according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of a bluetooth pairing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a signal detection module according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another bluetooth pairing device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be understood that the terms "comprise" and "have," and any variations thereof, are intended to cover non-exclusive inclusions, unless otherwise specifically defined and defined. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The present application is described in detail with reference to specific examples.
In one embodiment, as shown in fig. 1, a bluetooth pairing method is specifically proposed, which can be implemented by means of a computer program and can be run on a bluetooth pairing device based on von neumann system. The computer program may be integrated in the application or may run as a stand-alone tool class application. The bluetooth pairing device may be a bluetooth device, and the bluetooth device may be a terminal device with a bluetooth connection function, including but not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, computing devices, or other processing devices connected to a wireless modem, etc.
Specifically, the Bluetooth pairing method comprises the following steps:
step 101: a first motor vibration signal of a first Bluetooth device is acquired.
In an embodiment of the present application, the first bluetooth device may include a driving chip, a memory, a motor, and the like. The drive chip included in the first bluetooth device may be used to power and control the motor, such as to control the motor to vibrate at a particular frequency, etc. The memory may be a random access memory (Random Access Memory, RAM), a Flash memory (Flash) or the like, and may be used to store received data, data required by a processing procedure, data generated during a processing procedure, or the like. The motor is a vibration motor and may be configured to generate a specific motor vibration signal based on a target frequency stored in the memory, and in the embodiment of the present disclosure, the motor may vibrate at a certain frequency to implement a first motor vibration signal that is sent out by the first bluetooth device, and so on.
The signal is a physical quantity representing a message, and the motor vibration signal is a signal, also called a signal wave, generated by the first bluetooth device controlling the motor vibration. Typically, the vibration signal may represent different messages or information through amplitude, frequency and phase changes, and in this embodiment of the present application, the first motor vibration signal is sent by the first terminal control motor to convert the first bluetooth pairing information stored in the memory into a first motor vibration signal with a specific amplitude, a specific frequency and a specific phase change.
Specifically, the second bluetooth device has a function of collecting the vibration signal, and the function of collecting the vibration signal may be implemented based on a microphone module included in the second bluetooth device. When the first Bluetooth device outwards sends out a first motor vibration signal, the second Bluetooth device can acquire the first motor vibration signal sent out by the first Bluetooth device through the contained microphone module in real time.
Optionally, the second bluetooth device gathers the first motor vibration signal that first bluetooth device sent through the microphone module, the microphone module can be built-in or external one or more microphones, when microphone quantity is a plurality of, can be according to the place position of actual demand design microphone, place the mode can be different angles and place to gather more high-quality first motor vibration signal, after the second bluetooth device is gathering, will gather first motor vibration signal and preserve. Or, the second bluetooth device can save the first motor vibration signal in real time in the process of collecting the first motor vibration signal sent by the first bluetooth device.
Step 102: and decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information.
The first bluetooth pairing information may be understood as pairing information for bluetooth pairing with the first bluetooth device, including, but not limited to, a bluetooth name, a MAC address, a bluetooth id, a pairing key, and the like.
Specifically, the second bluetooth device collects a first motor vibration signal sent by the first bluetooth device through the microphone module, the first motor vibration signal which is collected is an analog signal, the second bluetooth device decodes the first motor vibration signal, the decoding can be understood as converting the first motor vibration signal into a digital signal, and the digital signal is compiled based on a preset pairing information conversion rule to obtain the decoded first bluetooth pairing information.
Specifically, after the second bluetooth device collects the first motor vibration signal sent by the first bluetooth device through the microphone module, the first motor vibration signal needs to be preprocessed, the quality of the collected first motor vibration signal is eliminated because of the influence of interference factors such as environmental noise and echo, in practical implementation, the first motor vibration signal collected through the microphone module is preprocessed, the preprocessing comprises endpoint detection, noise reduction and beam forming, residual signal noise is eliminated through post-filtering of the preprocessed conversation voice, and then the collected vibration signal energy is adjusted through an automatic gain algorithm. And then the next analog-to-digital conversion is carried out.
Specifically, the second bluetooth device performs analog-to-digital conversion on the first motor vibration signal, that is, converts the analog signal into a digital signal, and usually, the analog-to-digital conversion needs to perform signal sampling, signal holding, signal quantization, signal encoding and other processes on the first motor vibration signal.
Wherein the signal sampling is to temporally discrete a continuous analog signal (e.g., a first motor vibration signal), i.e., to collect instantaneous values point by point on the original analog signal at specific time intervals. In effect, the higher the sampling frequency, the closer the resulting discrete signal is to the original analog signal, and the continuous analog signal (e.g., the first motor vibration signal) is sampled based on the particular sampling frequency. The instantaneous value of the analog signal is taken and then kept in place for a period of time, so that the resulting saw tooth wave signal is provided for subsequent signal quantization. After the analog signal (such as the first motor vibration signal) is subjected to signal holding, a section of analog signal is decomposed into a plurality of nodes according to a certain sampling number and a sampling mode, and then the analog signal is held, namely the signal is kept for a certain time T continuously, so that the influence of signal interference or signal burrs is avoided; after the sampling quantization, the analog signal (such as the first motor vibration signal) is quantized, the signal quantization is also called amplitude quantization, the sampling signal of the analog signal is converted into a limited number of amplitude values by rounding or truncating, and finally the amplitude values are encoded, and the discrete amplitude values are quantized and converted into binary numbers. Through the above sampling, holding, quantizing and encoding processes. The second Bluetooth device can obtain a digital signal corresponding to the vibration signal of the first motor, and then compile the digital signal to obtain the decoded first Bluetooth pairing information.
Alternatively, the information conversion rule may be an ASCII code table (or an extended ASCII code table) based on the digital signal, and the digital signal is compiled based on the ASCII code table; the information conversion rule can be a Unicode symbol set based on the digital signal, and the digital signal is compiled based on the Unicode symbol set; the information conversion rule may be a UTF-8 encoding set based on a digital signal, obtaining the decoded first bluetooth pairing information based on the UTF-8 encoding set, and so on.
Step 103: and connecting with Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information.
Specifically, after the second bluetooth device obtains the decoded first bluetooth pairing information, the first bluetooth pairing information may be an identifier of the first bluetooth device, an address of the first bluetooth device, etc., and the second bluetooth device may start a bluetooth function, and send a connection establishment request for establishing bluetooth connection to the first bluetooth device based on the first bluetooth pairing information (such as a bluetooth name, a MAC address, a bluetooth id, etc.). And after the first Bluetooth device is based on the connection establishment request, responding to the connection establishment request, and feeding back confirmation information to the second Bluetooth device, wherein the confirmation information is used for confirming establishment of Bluetooth connection with the second Bluetooth device. And after receiving the connection confirmation information, the second Bluetooth device calls a system resource pool, creates a mapping relation between the second Bluetooth device and the first Bluetooth device, establishes communication connection between the second Bluetooth device and the first Bluetooth device by adopting a preset Bluetooth communication architecture (Bluetooth 4.0, bluetooth 5.0 and the like), and completes the pairing connection process of the second Bluetooth device and the first Bluetooth device. At this time, the second bluetooth device establishes a point-to-point bluetooth connection with the first bluetooth device, and after the bluetooth connection is established, the second bluetooth device may perform information interaction with the first bluetooth device based on the bluetooth connection.
In a possible implementation manner, after the second bluetooth device sends a connection establishment request to the first bluetooth device, the second bluetooth device typically monitors the current connection initiation process, where the second bluetooth device is preset with a response time, and when no connection confirmation information is received at the response time or the connection confirmation information is received beyond the response time, it may be understood that the state of the first bluetooth device is abnormal, where the state abnormality may be that the first bluetooth device is overloaded, a message transmission channel is blocked, a delay is high, a communication channel is blocked, and so on. At this time, the second bluetooth terminal pushes the prompt information that the bluetooth pairing fails, where the prompt information may be in a form of pushing a message, playing a video or animation, and the like. The second bluetooth terminal may also preset the retry number, and resend the connection establishment request to the first bluetooth device based on the retry number.
In this embodiment of the present application, the first motor vibration signal of first bluetooth device is gathered to the second bluetooth device, is right the first motor vibration signal decodes, obtains the first bluetooth pairing information after decoding, based on first bluetooth pairing information with bluetooth of first bluetooth device is connected. The first motor vibration signal is decoded to obtain the first Bluetooth pairing information, and then the Bluetooth pairing information and the Bluetooth of the first Bluetooth device can be automatically connected based on the first Bluetooth pairing information, so that a user does not need to manually operate the Bluetooth device, the Bluetooth establishment step between the Bluetooth devices is simplified, and the Bluetooth pairing efficiency is improved.
Referring to fig. 2, fig. 2 is a flowchart of another embodiment of a bluetooth pairing method according to the present application. Specific:
step 201: and starting a vibration pairing mode to acquire a vibration intensity value of a vibration signal of a first motor of the first Bluetooth device.
The vibration pairing mode can be understood as a functional mode of pairing based on motor vibration signals of the second bluetooth device or the first bluetooth device, in the embodiment of the present application, after the vibration pairing mode is started, the motor vibration signals are acquired and decoded, and bluetooth connection between the first bluetooth device and the second bluetooth device can be established based on decoded bluetooth pairing information.
The vibration intensity value is a measurement value for measuring the intensity of motor vibration, and is generally in positive correlation with the first motor vibration signal, and the higher the vibration intensity value is, the better the signal quality of the motor vibration signal is.
In practical applications, the vibration intensity value may be calculated.
1. The vibration intensity value can be expressed by multiplying the acceleration measured by an acceleration sensor contained in the second Bluetooth device by the displacement in the acceleration direction;
2. The vibration intensity value may be expressed in terms of an effective value of the motor vibration speed, i.e., RMS value;
3. the vibration intensity value is expressed by the vibration intensity K of the vibration measured by the second Bluetooth device, wherein the vibration intensity K is also called a mechanical index and is the ratio of the vibration acceleration amplitude to the gravity acceleration.
The vibration intensity value may be represented by one or more fitting methods, or may be represented by amplitude, frequency, phase, or the like, and is not particularly limited.
Specifically, the second bluetooth device may be configured to switch on the vibration pairing mode based on a mode selection instruction input by the user. The electronic device may include a touch screen having a function of sensing a touch operation of a user. The structure of the touch screen at least comprises 4 parts: the touch screen comprises a screen glass layer, a sensor film, a display panel layer and a controller board, wherein the sensor film is provided with a touch sensor layer and comprises a plurality of sensors, such as a pressure sensor, a position sensor and the like, and when a user touches an icon of the vibration pairing mode on the current display interface of the second Bluetooth device, the touch screen of the second Bluetooth device can acquire the touch position parameters of the user through the sensor. And then processing the position parameters, and recognizing that the icon of the vibration pairing mode on the display interface corresponding to the position parameters is touched, so that the electronic equipment can acquire the vibration pairing mode input by the user.
In a specific implementation scenario, as shown in fig. 3, fig. 3 is a schematic diagram of an interface related to a device pairing mode, and a display interface of the electronic device shown in fig. 3 displays a plurality of pairing mode icons, such as: vibration pairing mode icon, scan pairing mode icon, key pairing mode icon.
When a user selects a vibration pairing mode icon on a touch screen of the second Bluetooth device, specifically, through a screen glass layer on the touch screen, the touch screen of the electronic device acquires a position parameter corresponding to the vibration pairing mode icon through a position sensor in a sensor film, then the position parameter is processed, an instruction of opening a current pairing mode, namely a vibration pairing mode, input by the user is identified, and at the moment, the electronic device can acquire the current pairing mode, namely the vibration pairing mode, input by the user and start the vibration pairing mode by reading and executing a machine executable instruction corresponding to control logic of opening the vibration pairing mode.
Optionally, the mode selection instruction input by the user may be completed through an external device, for example, the user may select, through an external device such as a laser pen/mouse connected to the electronic device, a vibration mode selection instruction input by an icon of a pairing mode of the current display interface; a mode selection instruction that a user starts a specific pairing mode through voice input (for example, voice input starts a vibration pairing mode, etc.); the user may complete the operation of starting the specific vibration pairing mode by collecting a gesture control instruction of the user through a camera included in the electronic device, or may be a vibration mode selection instruction for the second bluetooth device input by pressing a physical key (an on-off key, a volume key, etc.) of the electronic device, and so on.
In a specific implementation scenario, a user may turn on the vibration pairing mode of the second bluetooth device and turn on the vibration pairing mode of the first bluetooth device. At this time, the first bluetooth device may be used as a transmitter of the vibration signal, and controls the motor to vibrate to transmit the vibration signal of the first motor. The second Bluetooth device serves as a receiving party of the vibration signal, monitors the first motor vibration signal sent by the first Bluetooth device, measures the first motor vibration signal to obtain a vibration intensity value of the first motor vibration signal, and specifically can obtain the vibration intensity value by multiplying the acceleration by the displacement of the acceleration direction after the acceleration sensor detects the acceleration.
The vibration pairing mode of the second bluetooth device may be before the vibration pairing mode of the first bluetooth device is started, the vibration pairing mode of the second bluetooth device may be after the vibration pairing mode of the first bluetooth device is started, or the vibration pairing mode of the second bluetooth device may be started while the vibration pairing mode of the first bluetooth device is started. It should be noted that, the order of starting the vibration pairing mode of the second bluetooth device and the order of starting the vibration pairing mode of the first bluetooth device are not specifically limited herein.
Optionally, after the user turns on the vibration pairing mode of a specific bluetooth device (e.g., the first bluetooth device), the specific bluetooth device (e.g., the first bluetooth device) may send out a prompt signal of "receiving a motor vibration signal", where the prompt signal may be in a preset form of prompting music, prompting voice, prompting vibration, and so on. After the opposite terminal equipment (such as a second Bluetooth equipment) acquires the prompt signal, responding to the prompt signal, and controlling the motor to vibrate to send out a motor vibration signal; or, after the user turns on the vibration pairing mode of a specific bluetooth device (such as the first bluetooth device), the specific bluetooth device (such as the first bluetooth device) may send out a prompt signal for generating a motor vibration signal, where the prompt signal may be in a preset form of prompting music, prompting voice, prompting vibration, and so on. After the opposite terminal equipment (such as the second Bluetooth equipment) acquires the prompt signal, the opposite terminal equipment responds to the prompt signal to start monitoring and collecting motor vibration to send out a motor vibration signal.
Step 202: and determining that the motor vibration signal is detected when the vibration intensity value is greater than or equal to a vibration intensity threshold value.
The threshold refers to a threshold value of a certain field, state or system, and is also called a critical value. The vibration intensity threshold value refers to a threshold value or a critical value of the vibration intensity value.
In this embodiment of the present application, the vibration intensity threshold is set to measure the signal quality of the motor vibration signal (such as the first motor vibration signal), when the vibration intensity value corresponding to the monitored motor vibration signal is greater than or equal to the vibration intensity threshold, the quality of the motor vibration signal monitored currently may be understood to be better, and the motor vibration signal may be effectively identified, that is, all bluetooth pairing information (such as a bluetooth name, a bluetooth pairing key, etc.) corresponding to the motor vibration signal may be obtained by decoding the motor vibration signal. When the vibration intensity value corresponding to the detected motor vibration signal is smaller than the vibration intensity threshold, it can be understood that the quality of the motor vibration signal which is currently monitored is poor, and the motor vibration signal is difficult to be effectively identified, that is, all bluetooth pairing information (such as bluetooth name, bluetooth pairing key, etc.) corresponding to the motor vibration signal is difficult to obtain by decoding the motor vibration signal.
Specifically, the second bluetooth device starts a vibration pairing mode, at this time, the second bluetooth device is used as a receiving side of a vibration signal, monitors a first motor vibration signal sent by the first bluetooth device, measures the first motor vibration signal to obtain a vibration intensity value of the first motor vibration signal, and multiplies the vibration intensity value by displacement in an acceleration direction after acceleration is measured by an included acceleration sensor to obtain the vibration intensity value. The second Bluetooth device judges whether the vibration intensity value is larger than or equal to a vibration intensity threshold value.
When the vibration intensity value is greater than or equal to the vibration intensity threshold value, the quality of the first motor vibration signal monitored by the second Bluetooth device is good, and the first motor vibration signal can be effectively identified, namely, the second Bluetooth device can obtain all Bluetooth pairing information (such as Bluetooth names, bluetooth pairing keys and the like) corresponding to the first motor vibration signal by decoding the first motor vibration signal. The second Bluetooth device confirms that the first motor vibration signal is detected so as to perform the next process of collecting, storing and decoding the first motor vibration signal.
In this embodiment of the present application, when the second bluetooth device detects or collects the first motor vibration signal of the first bluetooth device, it may be that the user holds the second bluetooth device close to the paired device, i.e. the first bluetooth device, so that the collection range corresponding to the vibration signal of the second bluetooth device can be covered on the first bluetooth device; or, the user holds the first bluetooth device close to the second bluetooth device, so that the second bluetooth device enters an acquisition range corresponding to the vibration signal of the first bluetooth device; alternatively, it may be that the user holds the first bluetooth device and the second bluetooth device simultaneously, approaches simultaneously, etc.
Step 203: and when the first motor vibration signal is detected, acquiring the first motor vibration signal of the first Bluetooth device.
Specifically, when the second Bluetooth device monitors the vibration intensity value of the vibration signal of the first motor, and when the vibration intensity value is greater than or equal to the vibration intensity threshold value, the motor vibration signal is determined to be detected. At this time, the second bluetooth device starts to collect the first motor vibration signal of the first bluetooth device.
The step 101 may be specifically referred to for collecting the first motor vibration signal of the first bluetooth device, which is not described herein.
Step 204: and outputting vibration prompt information when the vibration intensity value is smaller than the vibration intensity threshold value.
When the vibration intensity value is smaller than the vibration intensity threshold value, the quality of the first motor vibration signal currently monitored by the second Bluetooth device is poor and is difficult to be effectively identified, namely, all Bluetooth pairing information (such as Bluetooth names, bluetooth pairing keys and the like) corresponding to the first motor vibration signal is difficult to obtain by decoding the first motor vibration signal.
In a possible implementation manner, when the vibration intensity value is smaller than the vibration intensity threshold, the second bluetooth device may output vibration prompt information, where the vibration prompt information may be used to remind the user that the signal quality of the first motor vibration signal currently received is poor, and prompt the user to reduce the distance between the first bluetooth device and the second bluetooth device. The vibration prompt information can be displayed in a preset prompt mode, namely, in a picture, text, audio mode and the like.
Specifically, when the second bluetooth device detects that the vibration intensity value is smaller than the vibration intensity threshold, the second bluetooth device can pop up a prompt box in the current display area of the screen and display vibration prompt information so as to remind a user that the signal quality of the vibration signal is poor and reduce the distance between the second bluetooth device and the first bluetooth device.
In a specific implementation scenario, as shown in fig. 4, fig. 4 is a schematic diagram of an interface for displaying vibration prompt information by a second bluetooth device, when the second bluetooth device detects that the vibration intensity value is smaller than the vibration intensity threshold, the second bluetooth device starts a prompt mechanism, displays a prompt box on a current display interface, specifically, the second bluetooth device pops up the prompt box shown in fig. 4 in a display area of a current screen and displays "the current vibration signal is weak, please approach to a paired device? "prompt information.
In another specific implementation scenario, as shown in fig. 5, fig. 5 is an interface schematic diagram of another second bluetooth device displaying vibration prompt information, where when the second bluetooth device detects that the vibration intensity value is smaller than the vibration intensity threshold, the second bluetooth device starts the prompt mechanism, and the manner in which the second bluetooth device displays the vibration prompt information may be to push the vibration prompt information on a notification bar of a screen display area. For example, as shown in fig. 5, the second bluetooth device pushes "current vibration signal weak on the notification bar of the screen display area, please get close to the paired device-! The "prompt information", the second bluetooth device may further provide a related operation based on the vibration prompt information to the user on the notification bar, where the related operation may be understood that the user may choose to ignore the vibration prompt information by clicking an "operation" button shown in fig. 5, and so on.
Optionally, when the vibration intensity value is smaller than the vibration intensity threshold, the vibration prompt information displayed by the second bluetooth device may be output in a voice form, for example: the second Bluetooth device can broadcast the current vibration signal weak and please approach the paired device through voice; may be in the form of vibration, for example: the second Bluetooth device can call an internal vibration motor to prompt at a specific vibration frequency; and the second Bluetooth device can also call a breathing lamp, a flash lamp, a light supplementing lamp and the like on the second Bluetooth device.
It should be noted that, the manner in which the terminal displays the vibration prompt information may be one or more of the above, which is not particularly limited herein.
Step 205: when the first motor vibration signal is not detected, controlling the motor to vibrate to send a second motor vibration signal, so that the first Bluetooth device is connected with Bluetooth of the second Bluetooth device based on second Bluetooth pairing information decoded by the second motor vibration signal.
Specifically, when the second bluetooth device monitors the vibration intensity value of the vibration signal of the first motor, and when the vibration intensity value is 0, it is determined that the vibration signal of the first motor is not detected. At this time, the motor of the first bluetooth device fails and does not send out a first motor vibration signal, and the second bluetooth device controls the motor to convert the second bluetooth pairing information (such as the second bluetooth name and the bluetooth pairing key) stored in the memory into a second motor vibration signal with a specific amplitude, a specific frequency and a specific phase. The first bluetooth device may collect a second motor vibration signal, then decode the second motor vibration signal to obtain decoded second bluetooth pairing information (such as a second bluetooth name and a bluetooth pairing key), and then connect with bluetooth of the second bluetooth device based on the second bluetooth pairing information.
In a possible implementation manner, the second bluetooth device may set a vibration intensity indication value, where the vibration intensity indication value is used to measure whether the collected vibration signal of the first motor may be identified, and the vibration intensity indication value may be the same as or different from the vibration intensity threshold. When the vibration intensity indication value is different from the vibration intensity threshold value, the vibration intensity indication value is generally smaller than the vibration intensity threshold value in practical application. After the second Bluetooth device acquires the vibration intensity value of the vibration signal of the first motor, judging whether the vibration intensity value is smaller than the vibration intensity indication value. And when the vibration intensity value is smaller than the vibration intensity indication value, determining that the first motor vibration signal is not detected. At this time, the second bluetooth device starts to control the motor to vibrate to emit a second motor vibration signal.
Before the second bluetooth device starts to control the motor to vibrate and send out the second motor vibration signal, the second bluetooth device can also send out a prompt signal for generating the second motor vibration signal, and the prompt signal can be in the forms of preset prompt music, prompt voice, prompt vibration and the like. After the opposite terminal equipment (such as the first Bluetooth equipment) acquires the prompt signal, the opposite terminal equipment responds to the prompt signal to start monitoring and collecting motor vibration to send out a second motor vibration signal.
Step 206: and converting the first motor vibration signal into a character string, wherein a character of a first designated bit in the character string indicates a first Bluetooth name and a character of a second designated bit indicates a Bluetooth pairing key.
The first designated bit may be understood as a position corresponding to the first bluetooth name included in the character string, for example, the position corresponding to the first bluetooth name included in the character string is 6-8 bits of the character string, and the first designated bit is 6-8 bits of the character string.
The second designated bit may be understood as a position corresponding to the bluetooth pairing key included in the character string, for example, a position corresponding to the bluetooth pairing key included in the character string is 9-14 bits of the character string, and the first designated bit is 6-8 bits of the character string.
Specifically, the second bluetooth device performs preprocessing on the first motor vibration signal at first, eliminates the influence of interference factors such as environmental noise and echo on the quality of the collected first motor vibration signal, in practical implementation, performs preprocessing on the first motor vibration signal collected through the microphone module, the preprocessing includes endpoint detection, noise reduction and beam forming, performs post filtering on the pretreated call voice to eliminate residual signal noise, and then adjusts the collected vibration signal energy through an automatic gain algorithm. And then analog-to-digital conversion is carried out. To convert the analog signal into a digital signal, the analog-to-digital conversion generally requires signal sampling, signal holding, signal quantization, signal encoding, and the like for the first motor vibration signal. After analog-to-digital conversion, the digital signal is compiled based on a preset pair information conversion rule (such as Unicode symbol set based on the digital signal, etc.), so as to obtain the decoded character string. And the second Bluetooth device converts the first motor vibration signal into a character string, wherein the character of the first designated bit in the character string indicates the first Bluetooth name and the character of the second designated bit indicates the Bluetooth pairing key.
In one specific implementation scenario, a first designated bit (first fixed location or fixed portion) of the string is typically used to store a first bluetooth name, and a second designated bit (second fixed location or fixed portion) of the string is typically used to store a bluetooth pairing key. The first bluetooth name is illustrated as being stored in a first designated location (first fixed location or fixed portion):
for example, the first bluetooth name is stored in the first specified bit of the character string-the character string header, and the second bluetooth device may parse the first bluetooth name from the first specified bit of the character string (e.g., the first fixed location) -the character string header; for example, the first bluetooth name is stored in a first designated location-fixed location (e.g., a 4 th byte location) of the character string, and the second bluetooth device may parse the first bluetooth name from the fixed location (e.g., the 4 th byte location) of the character string; for another example, the first specified bit may be composed of characters at a plurality of fixed positions of the character string, such as: a first bluetooth name that may be comprised of a 2 nd byte bit, a 3 rd byte bit of the string, the second bluetooth device may parse from multiple fixed locations of the string (e.g., a 2 nd byte bit, a 3 rd byte bit of the string) to the first bluetooth name, and so on.
Step 207: and sending a Bluetooth pairing key to the first Bluetooth device indicated by the first Bluetooth name, and receiving confirmation pairing information fed back by the first Bluetooth device based on the Bluetooth pairing key.
Specifically, after the second bluetooth device obtains the decoded first bluetooth name and the bluetooth pairing key, the first bluetooth pairing information may be an identifier of the first bluetooth device, an address of the first bluetooth device, etc., and the second bluetooth device may start a bluetooth function, and send, to the first bluetooth device, the bluetooth pairing key for establishing bluetooth connection based on the first bluetooth device indicated by the first bluetooth name. The first Bluetooth device verifies the Bluetooth pairing key based on the Bluetooth pairing key, and after the Bluetooth pairing key passes verification, confirmation information is fed back to the second Bluetooth device, wherein the confirmation information is used for confirming establishment of Bluetooth connection with the second Bluetooth device. And after receiving the connection confirmation information, the second Bluetooth device calls a system resource pool, creates a mapping relation between the second Bluetooth device and the first Bluetooth device, establishes communication connection between the second Bluetooth device and the first Bluetooth device by adopting a preset Bluetooth communication architecture (Bluetooth 4.0, bluetooth 5.0 and the like), and completes the pairing connection process of the second Bluetooth device and the first Bluetooth device. At this time, the second bluetooth device establishes a point-to-point bluetooth connection with the first bluetooth device, and after the bluetooth connection is established, the second bluetooth device may perform information interaction with the first bluetooth device based on the bluetooth connection.
In a possible implementation manner, the second bluetooth device may start a bluetooth broadcast packet that is sent by at least one bluetooth device and that is scanned by the bluetooth function, where the bluetooth broadcast packet carries a bluetooth name and a bluetooth address of the bluetooth device, and the second bluetooth device obtains a first bluetooth name of the first bluetooth device, that is, may obtain the bluetooth address of the first bluetooth device through the first bluetooth name, and sends a bluetooth pairing key to the first bluetooth device based on the bluetooth address.
In a possible embodiment, the second bluetooth device and the first bluetooth device may establish the bluetooth connection directly based on the bluetooth name, i.e. without scanning bluetooth broadcast packets sent by at least one bluetooth device within the current bluetooth channel. After the second Bluetooth device identifies the first Bluetooth name of the first Bluetooth device, the second Bluetooth device can directly analyze the first Bluetooth name to obtain a Bluetooth address corresponding to the first Bluetooth name, and a Bluetooth pairing key is sent to the first Bluetooth device based on the Bluetooth address.
In this embodiment of the present application, the first motor vibration signal of first bluetooth device is gathered to the second bluetooth device, is right the first motor vibration signal decodes, obtains the first bluetooth pairing information after decoding, based on first bluetooth pairing information with bluetooth of first bluetooth device is connected. The first motor vibration signal is decoded to obtain the first Bluetooth pairing information, and then the Bluetooth pairing information and the Bluetooth of the first Bluetooth device can be automatically connected based on the first Bluetooth pairing information, so that a user does not need to manually operate the Bluetooth device, the Bluetooth establishment step between the Bluetooth devices is simplified, and the Bluetooth pairing efficiency is improved.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 6, a schematic structural diagram of a bluetooth pairing device according to an exemplary embodiment of the present application is shown. The bluetooth pairing device may be implemented as all or part of the device by software, hardware, or a combination of both. The device 1 comprises a signal acquisition module 11, a signal decoding module 12 and a Bluetooth connection module 13.
The signal acquisition module 11 is used for acquiring a first motor vibration signal of the first Bluetooth device;
a signal decoding module 12, configured to decode the first motor vibration signal to obtain decoded first bluetooth pairing information;
and the Bluetooth connection module 13 is used for connecting with Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information.
Optionally, as shown in fig. 8, the apparatus 1 includes:
the signal detection module 14 is configured to start a vibration pairing mode, and detect a first motor vibration signal sent by the first bluetooth device;
the signal acquisition module 11 is further configured to perform the step of acquiring the first motor vibration signal of the first bluetooth device when the first motor vibration signal is detected.
Alternatively, as shown in fig. 8, the apparatus 1 includes:
and the motor control module 15 is configured to control the motor to vibrate to send a second motor vibration signal when the first motor vibration signal is not detected, so that the first bluetooth device is connected with bluetooth of the second bluetooth device based on the second bluetooth pairing information decoded by the second motor vibration signal.
Optionally, as shown in fig. 7, the signal detection module 14 includes:
a vibration intensity value obtaining unit 141, configured to obtain a vibration intensity value of a first motor vibration signal of a first bluetooth device;
a vibration signal determining unit 142 for determining that the motor vibration signal is detected when the vibration intensity value is greater than or equal to a vibration intensity threshold value.
Optionally, as shown in fig. 7, the signal detection module 14 includes:
and a vibration prompt output unit 143 for outputting vibration prompt information when the vibration intensity value is smaller than the vibration intensity threshold value.
Optionally, the signal decoding module 12 is specifically configured to:
and converting the first motor vibration signal into a character string, wherein a character of a first designated bit in the character string indicates a first Bluetooth name and a character of a second designated bit indicates a Bluetooth pairing key.
Optionally, the bluetooth connection module 13 has a function for:
and sending a Bluetooth pairing key to the first Bluetooth device indicated by the first Bluetooth name, and receiving confirmation pairing information fed back by the first Bluetooth device based on the Bluetooth pairing key.
It should be noted that, when the bluetooth pairing device provided in the foregoing embodiment performs the bluetooth pairing method, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the bluetooth pairing device provided in the above embodiment and the bluetooth pairing method embodiment belong to the same concept, which embody the detailed implementation process of the method embodiment, and are not described herein again.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In this embodiment, the second bluetooth device collects a first motor vibration signal of the first bluetooth device, decodes the first motor vibration signal, obtains decoded first bluetooth pairing information, and connects with bluetooth of the first bluetooth device based on the first bluetooth pairing information. The first motor vibration signal is decoded to obtain the first Bluetooth pairing information, and then the Bluetooth pairing information and the Bluetooth of the first Bluetooth device can be automatically connected based on the first Bluetooth pairing information, so that a user does not need to manually operate the Bluetooth device, the Bluetooth establishment step between the Bluetooth devices is simplified, and the Bluetooth pairing efficiency is improved.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are adapted to be loaded by a processor and execute the bluetooth pairing method according to the embodiment shown in fig. 1 to 5, and the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to 5, which is not repeated herein.
The present application further provides a computer program product, where at least one instruction is stored, where the at least one instruction is loaded by the processor and executed by the processor, where the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to 5, and details are not repeated herein.
Referring to fig. 9, a schematic structural diagram of an electronic device is provided in an embodiment of the present application. As shown in fig. 9, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the entire server 1000 using various interfaces and lines, and performs various functions of the server 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The Memory 1005 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 9, an operating system, a network communication module, a user interface module, and a bluetooth pairing application may be included in the memory 1005 as one type of computer storage medium.
In the electronic device 1000 shown in fig. 9, the user interface 1003 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke the bluetooth pairing application stored in the memory 1005, and specifically perform the following operations:
Collecting a first motor vibration signal of a first Bluetooth device;
decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information;
and connecting with Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information.
In one embodiment, the processor 1001 further performs the following operations before performing the acquiring the first motor vibration signal of the first bluetooth device:
starting a vibration pairing mode, and detecting a first motor vibration signal sent by first Bluetooth equipment;
and when the first motor vibration signal is detected, executing the step of collecting the first motor vibration signal of the first Bluetooth device.
In one embodiment, after executing the detecting the first motor vibration signal sent by the first bluetooth device, the processor 1001 further executes the following operations:
when the first motor vibration signal is not detected, controlling the motor to vibrate to send a second motor vibration signal, so that the first Bluetooth device is connected with Bluetooth of the second Bluetooth device based on second Bluetooth pairing information decoded by the second motor vibration signal.
In one embodiment, the processor 1001, when executing the detecting the first motor vibration signal sent by the first bluetooth device, specifically performs the following operations:
Acquiring a vibration intensity value of a first motor vibration signal of first Bluetooth equipment;
and determining that the motor vibration signal is detected when the vibration intensity value is greater than or equal to a vibration intensity threshold value.
In one embodiment, the processor 1001, when executing the bluetooth pairing method, specifically executes the following steps:
and outputting vibration prompt information when the vibration intensity value is smaller than the vibration intensity threshold value.
In one embodiment, the processor 1001, when executing the decoding of the first motor vibration signal, obtains decoded first bluetooth pairing information, specifically executes the following operations:
and converting the first motor vibration signal into a character string, wherein a character of a first designated bit in the character string indicates a first Bluetooth name and a character of a second designated bit indicates a Bluetooth pairing key.
In one embodiment, the processor 1001 performs the following operations when performing the connection with bluetooth of the first bluetooth device based on the first bluetooth pairing information:
and sending a Bluetooth pairing key to the first Bluetooth device indicated by the first Bluetooth name, and receiving confirmation pairing information fed back by the first Bluetooth device based on the Bluetooth pairing key.
In this embodiment, the second bluetooth device collects a first motor vibration signal of the first bluetooth device, decodes the first motor vibration signal, obtains decoded first bluetooth pairing information, and connects with bluetooth of the first bluetooth device based on the first bluetooth pairing information. The first motor vibration signal is decoded to obtain the first Bluetooth pairing information, and then the Bluetooth pairing information and the Bluetooth of the first Bluetooth device can be automatically connected based on the first Bluetooth pairing information, so that a user does not need to manually operate the Bluetooth device, the Bluetooth establishment step between the Bluetooth devices is simplified, and the Bluetooth pairing efficiency is improved.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.
Claims (9)
1. A bluetooth pairing method, the method comprising:
collecting a first motor vibration signal of the first Bluetooth device based on a microphone module contained in the second Bluetooth device;
decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information;
connecting with Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information;
the decoding the first motor vibration signal to obtain decoded first bluetooth pairing information comprises:
preprocessing the first motor vibration signal to obtain a preprocessed third motor vibration signal, wherein the preprocessing comprises endpoint detection processing, noise reduction processing and beam forming processing;
performing analog-to-digital conversion on the third motor vibration signal to obtain decoded first Bluetooth pairing information;
when the first motor vibration signal is not detected, controlling the motor to vibrate to send a second motor vibration signal, so that the first Bluetooth device is connected with Bluetooth of the second Bluetooth device based on second Bluetooth pairing information decoded by the second motor vibration signal.
2. The method of claim 1, wherein prior to the acquiring the first motor vibration signal of the first bluetooth device, further comprising:
Starting a vibration pairing mode, and detecting a first motor vibration signal sent by first Bluetooth equipment;
and when the first motor vibration signal is detected, executing the step of collecting the first motor vibration signal of the first Bluetooth device.
3. The method of claim 2, wherein detecting the first motor vibration signal from the first bluetooth device comprises:
acquiring a vibration intensity value of a first motor vibration signal of first Bluetooth equipment;
and determining that the motor vibration signal is detected when the vibration intensity value is greater than or equal to a vibration intensity threshold value.
4. A method according to claim 3, characterized in that the method further comprises:
and outputting vibration prompt information when the vibration intensity value is smaller than the vibration intensity threshold value.
5. The method of claim 1, wherein decoding the first motor vibration signal to obtain decoded first bluetooth pairing information comprises:
and converting the first motor vibration signal into a character string, wherein a character of a first designated bit in the character string indicates a first Bluetooth name and a character of a second designated bit indicates a Bluetooth pairing key.
6. The method of claim 5, wherein the connecting with bluetooth of the first bluetooth device based on the first bluetooth pairing information comprises:
and sending a Bluetooth pairing key to the first Bluetooth device indicated by the first Bluetooth name, and receiving confirmation pairing information fed back by the first Bluetooth device based on the Bluetooth pairing key.
7. A bluetooth pairing device, the device comprising:
the signal acquisition module is used for acquiring a first motor vibration signal of the first Bluetooth device based on a microphone module contained in the second Bluetooth device;
the signal decoding module is used for decoding the first motor vibration signal to obtain decoded first Bluetooth pairing information;
the Bluetooth connection module is used for connecting with Bluetooth of the first Bluetooth device based on the first Bluetooth pairing information;
the signal decoding module is specifically configured to:
preprocessing the first motor vibration signal to obtain a preprocessed third motor vibration signal, wherein the preprocessing comprises endpoint detection processing, noise reduction processing and beam forming processing;
performing analog-to-digital conversion on the third motor vibration signal to obtain decoded first Bluetooth pairing information;
And the motor control module is used for controlling the motor to vibrate to send out a second motor vibration signal when the first motor vibration signal is not detected, so that the first Bluetooth device is connected with Bluetooth of the second Bluetooth device based on the second Bluetooth pairing information decoded by the second motor vibration signal.
8. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1 to 6.
9. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911409868.6A CN111148086B (en) | 2019-12-31 | 2019-12-31 | Bluetooth pairing method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911409868.6A CN111148086B (en) | 2019-12-31 | 2019-12-31 | Bluetooth pairing method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111148086A CN111148086A (en) | 2020-05-12 |
CN111148086B true CN111148086B (en) | 2024-02-20 |
Family
ID=70522485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911409868.6A Active CN111148086B (en) | 2019-12-31 | 2019-12-31 | Bluetooth pairing method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111148086B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111405539B (en) * | 2020-05-20 | 2023-08-01 | 孙瑛楠 | Method, device, equipment and storage medium for establishing wireless connection between equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594412A (en) * | 2011-12-30 | 2012-07-18 | 深圳市车音网科技有限公司 | Bluetooth terminal and control method thereof |
CN104540190A (en) * | 2014-12-30 | 2015-04-22 | 广州视源电子科技股份有限公司 | Method and system for pairing with Bluetooth device |
CN105704839A (en) * | 2016-01-20 | 2016-06-22 | 广东欧珀移动通信有限公司 | Bluetooth connection method and device |
CN106599655A (en) * | 2016-11-22 | 2017-04-26 | 杭州华为数字技术有限公司 | Unlocking method and device for intelligent terminal |
CN108024223A (en) * | 2017-12-07 | 2018-05-11 | 北京小米移动软件有限公司 | Data sharing method and device |
KR20190008469A (en) * | 2017-07-13 | 2019-01-24 | 주식회사 센터스 | Mobile device and bluetooth device which are communicatively connected to each other using vibrations |
WO2019234011A1 (en) * | 2018-06-04 | 2019-12-12 | T.J.Smith And Nephew,Limited | Device communication management in user activity monitoring systems |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9250228B2 (en) * | 2014-01-22 | 2016-02-02 | KHN Solutions, Inc. | Method and system for remotely monitoring intoxication |
US20180234846A1 (en) * | 2015-09-28 | 2018-08-16 | Intel Corporation | Pairing electronic devices |
WO2019126410A1 (en) * | 2017-12-21 | 2019-06-27 | Verily Life Sciences Llc | Systems and methods for vibration-based communication |
-
2019
- 2019-12-31 CN CN201911409868.6A patent/CN111148086B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594412A (en) * | 2011-12-30 | 2012-07-18 | 深圳市车音网科技有限公司 | Bluetooth terminal and control method thereof |
CN104540190A (en) * | 2014-12-30 | 2015-04-22 | 广州视源电子科技股份有限公司 | Method and system for pairing with Bluetooth device |
CN105704839A (en) * | 2016-01-20 | 2016-06-22 | 广东欧珀移动通信有限公司 | Bluetooth connection method and device |
CN106599655A (en) * | 2016-11-22 | 2017-04-26 | 杭州华为数字技术有限公司 | Unlocking method and device for intelligent terminal |
KR20190008469A (en) * | 2017-07-13 | 2019-01-24 | 주식회사 센터스 | Mobile device and bluetooth device which are communicatively connected to each other using vibrations |
CN108024223A (en) * | 2017-12-07 | 2018-05-11 | 北京小米移动软件有限公司 | Data sharing method and device |
WO2019234011A1 (en) * | 2018-06-04 | 2019-12-12 | T.J.Smith And Nephew,Limited | Device communication management in user activity monitoring systems |
Also Published As
Publication number | Publication date |
---|---|
CN111148086A (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106411621B (en) | Internet of things equipment, network configuration method, device and system thereof, and terminal | |
EP2175647B1 (en) | Apparatus and method for providing emotion expression service in mobile communication terminal | |
CN104066009B (en) | program identification method, device, terminal, server and system | |
CN106973330B (en) | Screen live broadcasting method, device and system | |
US8929949B2 (en) | Mobile terminal and transmission processing method thereof | |
CN103391473B (en) | Method and device for providing and acquiring audio and video | |
US11641625B2 (en) | Information transmission method for ultrasonic transmitter, information transmission device for ultrasonic transmitter, and storage medium | |
US20190051147A1 (en) | Remote control method, apparatus, terminal device, and computer readable storage medium | |
KR20150009186A (en) | Method for operating an conversation service based on messenger, An user interface and An electronic device supporting the same | |
CN105162979B (en) | A kind of incoming call mute control method and smartwatch | |
US11144422B2 (en) | Apparatus and method for controlling external device | |
CN106940997B (en) | Method and device for sending voice signal to voice recognition system | |
CN113037926B (en) | Communication system, information communication method, and storage medium | |
CN1956473A (en) | Method and apparatus for establishing and displaying wait screen image in portable terminal | |
CN103973542B (en) | A kind of voice information processing method and device | |
CN111006261A (en) | Range hood control method and device, range hood and storage medium | |
CN111148086B (en) | Bluetooth pairing method and device, storage medium and electronic equipment | |
CN108235075B (en) | Video quality grade matching method, computer readable storage medium and terminal | |
CN102695173B (en) | Safety control method for accessing wireless network and terminal | |
CN109413556B (en) | Equipment positioning method and device, earphone device and electronic equipment | |
CN115810356A (en) | Voice control method, device, storage medium and electronic equipment | |
CN108513216B (en) | Information processing method and wire-controlled earphone | |
EP1761006A2 (en) | Method for processing instant message in wireless terminal and wireless terminal implementing the same | |
KR20050052122A (en) | Method for displaying of data rate in wireless terminal | |
CN107819946B (en) | A kind of method, device and mobile terminal of speech recognition |
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 |