CN105704839B - A kind of Bluetooth connecting method and device - Google Patents

A kind of Bluetooth connecting method and device Download PDF

Info

Publication number
CN105704839B
CN105704839B CN201610037255.4A CN201610037255A CN105704839B CN 105704839 B CN105704839 B CN 105704839B CN 201610037255 A CN201610037255 A CN 201610037255A CN 105704839 B CN105704839 B CN 105704839B
Authority
CN
China
Prior art keywords
vibration signal
bluetooth
terminal
signal
mobile terminal
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.)
Expired - Fee Related
Application number
CN201610037255.4A
Other languages
Chinese (zh)
Other versions
CN105704839A (en
Inventor
王英茂
李应伟
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610037255.4A priority Critical patent/CN105704839B/en
Publication of CN105704839A publication Critical patent/CN105704839A/en
Application granted granted Critical
Publication of CN105704839B publication Critical patent/CN105704839B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of Bluetooth connecting method and devices;The embodiment of the present invention is directed to the vibration signal of mobile terminal using obtaining, then, identify whether the vibration signal is user by tapping vibration signal caused by the mobile terminal, if, target Bluetooth terminal to be connected is determined according to the vibration signal, establishes bluetooth connection with the target Bluetooth terminal;The program can tap the vibration signal that mobile terminal generates by user and establish bluetooth connection with target Bluetooth terminal automatically, a series of bluetooth connection operation is carried out for terminal without user, mobile terminal need to be only tapped for a user can be realized establish bluetooth connection in target Bluetooth terminal, in terms of existing technologies, user's operation is simplified, the efficiency that mobile terminal carries out bluetooth connection is improved.

Description

A kind of Bluetooth connecting method and device
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of Bluetooth connecting method and device.
Background technique
Bluetooth is a kind of short-distance wireless technology for radio frequency, is the open system of globalization voice-and-data wireless transmission One standard criterion.Currently, the electronics and IT products based on Bluetooth technology are constantly introduced to the market, product bluetooth-capable Keep our life more random and efficient.The number of bluetooth is established between bluetooth equipment by globally unique bluetooth device address It is connected according to connection with voice.
As the technology of mobile terminal develops, major part mobile terminal all has Bluetooth function, more and more users at present Learnt, entertained using the Bluetooth function of mobile terminal etc., user's life is not only enriched, is also brought advantage to the user.
In the prior art, mobile terminal and external bluetooth equipment establish the mode of connection are as follows: move depending on the user's operation Terminal starts Bluetooth function, and searches for the Bluetooth terminal that can be connected, and selects a Bluetooth terminal to carry out according to user's operation blue Tooth connection.
In the research and practice process to the prior art, it was found by the inventors of the present invention that at present mobile terminal realize with External Bluetooth terminal carries out bluetooth connection, and user is needed to carry out a series of operation, (for example, opening set interface, selection bluetooth It is arranged, opens bluetooth, the Bluetooth terminal that selection needs connect, triggering and Bluetooth terminal connection etc. operation) it can just trigger shifting Dynamic terminal and external Bluetooth terminal establish bluetooth connection, and mobile terminal is caused to carry out the inefficiency of bluetooth connection.
Summary of the invention
The embodiment of the present invention provides a kind of Bluetooth connecting method and device, and mobile terminal can be improved and carry out bluetooth connection Efficiency.
The embodiment of the present invention provides a kind of Bluetooth connecting method, comprising:
Obtain the vibration signal for being directed to mobile terminal;
Identify whether the vibration signal is user by tapping vibration signal caused by the mobile terminal;
If so, determining target Bluetooth terminal to be connected according to the vibration signal;
Bluetooth connection is established with the target Bluetooth terminal.
Correspondingly, the embodiment of the present invention also provides a kind of Bluetooth connection device, comprising:
Module is obtained, for obtaining and being directed to the movement when the current electricity of mobile terminal is less than the first default electricity The vibration signal of terminal;
Identification module, whether the vibration signal is user by tapping vibration caused by the mobile terminal for identification Dynamic signal;
Power-off modular, for identifying that the vibration signal is user by tapping the mobile terminal in the identification module When generated vibration signal, power down process is carried out according to storage card of the vibration signal to the mobile terminal.Obtain mould Block, for obtaining the vibration signal for being directed to mobile terminal;
Identification module, whether the vibration signal is user by tapping vibration caused by the mobile terminal for identification Dynamic signal;
Determining module, for identifying that the vibration signal is user by tapping the mobile terminal in the identification module When generated vibration signal, target Bluetooth terminal to be connected is determined according to the vibration signal;
Link block, for establishing bluetooth connection with the target Bluetooth terminal.
The embodiment of the present invention using obtain be directed to mobile terminal vibration signal, then, identify the vibration signal whether be User is by tapping vibration signal caused by the mobile terminal, if so, determining target to be connected according to the vibration signal Bluetooth terminal establishes bluetooth connection with the target Bluetooth terminal;The program can tap what mobile terminal generated by user Vibration signal establishes bluetooth connection with target Bluetooth terminal automatically, carries out a series of bluetooth connection behaviour for terminal without user Make, need to only tap mobile terminal for a user and can be realized and establish bluetooth connection in target Bluetooth terminal, relative to existing For technology, user's operation is simplified, improves the efficiency that mobile terminal carries out bluetooth connection.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow chart for Bluetooth connecting method that the embodiment of the present invention one provides;
Fig. 2 is the structural schematic diagram for the signal processing apparatus that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow chart of Bluetooth connecting method provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structural schematic diagram for Bluetooth connection device that the embodiment of the present invention three provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of Bluetooth connecting method and device.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of Bluetooth connection device, which, which specifically can integrate, is moving In dynamic terminal, which can be the equipment such as smart phone, tablet computer.
Wherein, which is integrated in there are many modes of mobile terminal, for example, with the softwares shape such as terminal applies Formula is integrated in the terminal.
As shown in Figure 1, present embodiments providing a kind of Bluetooth connecting method, detailed process be can be such that
101, the vibration signal for being directed to the mobile terminal is obtained.
Specifically, when mobile terminal is in standby or screen lock state, the vibration signal for being directed to the mobile terminal is obtained.
It wherein, is that the mobile terminal is sent the sound wave that vibration generates by external force for the vibration signal of mobile terminal Corresponding electric signal (for example, digital signal or analog electrical signal).For example, terminal can shake when user taps terminal Dynamic, so that terminal can generate acoustic signals, the corresponding electric signal of the acoustic signals is that user is generated by tapping mobile terminal Vibration signal.
In the present embodiment, obtain for the vibration signal of mobile terminal mode can there are many, for example can pass through Microphone, loudspeaker or receiver on mobile terminal obtain user and tap the vibration signal that mobile terminal generates, due to wheat Gram wind, loudspeaker or receiver have acoustic-electric converter, when mobile terminal is tapped by user and is vibrated, microphone Or loudspeaker can incude the acoustic signals of mobile terminal, and convert into corresponding electric signal for the acoustic signals, i.e. vibration is believed Number, to obtain the vibration signal that user generates by tapping mobile terminal.At this point, step " is obtained for the mobile terminal Vibration signal " may include: to be obtained by the loudspeaker, microphone or receiver of the mobile terminal for the mobile terminal Vibration signal.
Wherein, which may include various types of microphones, such as electret microphone, silicon microphone etc., and Loudspeaker also may include various types of loudspeakers.If it is simulation microphone or analog speakers, then use can be first obtained Then family converts the analog signal into digital letter by D/A converter module by tapping analog signal caused by terminal Number, obtain vibration signal;And if digital microphone or digital speaker, can direct output digit signals, without carry out Digital-to-analogue conversion.
It should be noted that can also include the device of any sound-electric conversion, herein other than microphone and loudspeaker It repeats no more.
102, identify whether the vibration signal is user by tapping vibration signal caused by the mobile terminal, if so, 103 are thened follow the steps, if it is not, process terminates.
Wherein, tapping can generally be generated by directly tapping terminal any position with hand, alternatively, being also possible to pass through Other hard objects, for example terminal is tapped with penholder, key etc. to realize;Moreover, the position tapped can be not construed as limiting, such as can be with It is screen, the back side or the frame etc. of terminal.
Wherein, identification vibration signal is the principle for the vibration signal that user is generated by percussion mobile terminal:
It is propagated since the hammer action time is very of short duration, and by the solid of equipment, therefore, mobile terminal is struck by user The vibration signal for hitting generation is a kind of special vibration signal, and the vibration generated with mobile terminal by other active forces is believed Number or mobile terminal transmitting external vibration source generation vibration signal it is not identical.It is analyzed from electrical point and taps generation Vibration signal, for example, carrying out digital processing analysis to vibration signal, it can be deduced that following analysis result:
From the point of view of signal time, the signal duration duration is very short (millisecond rank);From signal amplitude size ratio From the point of view of relatively, the level of the digital signal is relatively large, (since sound wave is solid propagation, and by mobile terminal own propagation), than The signal Qiang Geng great 's of the corresponding digital signal of general sound wave;From the point of view of the frequency spectrum of signal, the entire digital signal of frequency coverage Frequency range, and the amplitude difference of each frequency is little.
Therefore, the vibration signal that the characteristics of being based on above-mentioned vibration signal, perhaps feature identification or judgement were got It whether is that user taps vibration signal caused by mobile terminal;That is, step " identifies whether the vibration signal is that user passes through Tap vibration signal caused by the mobile terminal " may include:
Obtain the signal characteristic information of the vibration signal;
Judge whether the signal characteristic information meets preset condition;
If so, determining that the vibration signal is user by tapping vibration signal caused by the mobile terminal;
If not, it is determined that the vibration signal is not user by tapping vibration signal caused by the mobile terminal.
For example, the sound wave is converted into analog telecommunications by microphone, receiver or the loudspeaker that mobile terminal carries Number, then, which is subjected to analog-to-digital conversion (for example, converting by analog-digital converter), digital signal is obtained, that is, shakes Dynamic signal carries out digital processing (DSP) to the vibration signal, to obtain the signal characteristic information of the vibration signal, then, judgement Whether the signal characteristic information meets preset condition, if so, determining that the vibration signal is that the mobile terminal is tapped by user The vibration signal of generation, if it is not, then determining the vibration signal not is that the mobile terminal is tapped the vibration signal generated by user. For the ease of judgement, the present embodiment, can also be to analog electrical signal before carrying out analog-to-digital conversion after obtaining analog electrical signal Processing is amplified, for example processing is amplified to the analog electrical signal by PGA amplifier, wherein to the place of digital signal Reason can be executed by dsp chip.
Wherein, the signal characteristic information of vibration signal may include: frequency information (including frequency distribution, frequency bandwidth Deng), amplitude information (including average amplitude), at least one of temporal information (signal period), it is, of course, also possible to include other Characteristic information.
For example, judging the frequency information respectively when signal characteristic information includes: frequency information, amplitude information, temporal information Whether predeterminated frequency condition is met, and whether which meets default amplitude perturbations, when whether which meets default Between condition, wherein predeterminated frequency condition, default amplitude perturbations, preset time condition can be respectively according to preset number signals pair Frequency information, the amplitude information answered, temporal information setting, the default vibration signal are that mobile terminal is generated by user's percussion Vibration signal.Current embodiment require that judging whether multiple signal characteristic informations meet preset condition, to identify the vibration for tapping and generating When dynamic signal, for example, said frequencies information, amplitude information, temporal information judge three times, can based on multiple judging result come Identification, for example, just determining that vibration signal is to tap the vibration signal generated, alternatively, when more when three judging results are to be Having certain several judging result in a judging result is to determine that vibration signal is to tap the vibration signal generated when being, these To set according to the actual situation, judging result be it is more the case where being, accuracy of identification is higher.
For example, identifying whether vibration signal is to tap movement with signal processing apparatus shown in Fig. 2 to introduce the present embodiment The detailed process for the vibration signal that terminal generates, the signal processing apparatus include:
Microphone 201 is converted into simulation letter for acquiring the acoustic signals for being directed to mobile terminal, and by the acoustic signals Number, specifically, when mobile terminal vibration generates acoustic signals, the vibrating diaphragm in microphone 201 senses sound wave, and all can be with Vibrate together, the coil that vibrating diaphragm just will drive in microphone 201 does the movement of cutting magnetic line, to will generate in coil Corresponding current signal, i.e. analog signal;Microphone realization can also be replaced in the present embodiment with receiver or loudspeaker The course of work type of same function, the course of work and microphone, just repeats no more here.
Analog-to-digital conversion (A/D) module 202, the analog signal for exporting microphone 201 are converted into corresponding number letter Number, vibration signal is obtained, so as to subsequent processing analysis.Certainly, due to there are many types of current microphone, such as electret wheat Gram wind, silicon microphone etc. or even some microphones also include analog-to-digital conversion module, if in such cases, can save modulus and turn Change the mold block 202.
Using rate conversion module 203, for according to circumstances adjusting the sample rate of digital signal, in order to reduce following digital point The operation requirement of analysis, it is preferable that sample rate cannot be below 16Khz, and bit rate cannot be below 10bit, otherwise may impact analysis Precision.
Fourier transform (FFT) module 204 is converted to frequency-domain analysis for carrying out Fourier transform to digital signal.
Time analysis module 205, for being carried out to the time of digital signal after digital signal carries out Fourier transform Analysis, specifically, obtains the temporal information of digital signal, and judges whether the temporal information meets preset time requirement, for example, The time cycle for obtaining digital signal judges the time cycle whether within the scope of preset period of time, if so, meeting default Time requirement shows that the digital signal meets the time requirement for tapping the digital signal that mobile terminal generates, the digital signal pair The vibration signal answered, which is likely to be, taps the vibration signal that mobile terminal generates.
In practical applications, the design feature of can be based on hammer action the characteristics of and mobile terminal provides one and strikes The time cycle [T1, T2] for hitting movement, the explanation that goes beyond the scope is not normal hammer action;If it is meeting hammer action feature Time, then export OK signal.The recorded audio signals analysis of mobile phone is tapped according to actual finger first, T1 is generally no greater than 5ms, and T2 is not Greater than 20ms.
Frequency analysis module 206 is used for analysis of frequency distribution, specifically, the frequency distribution of statistical data signal, and so Afterwards, whether determination frequency distribution meets preset requirement, for example, frequency distribution is continuous and frequency band is broad, then it is assumed that the digital signal Frequency distribution meet tap generate digital signal frequency distribution.From the point of view of actually comparison, especially 6Khz to most high frequency Between rate (sample rate frequency ÷ 2), frequency distribution is continuous.
Amplitude analysis module 207 is analyzed for the amplitude to digital signal, specifically, analyzes the flat of entire frequency range Equal range value, and judge whether the averaged amplitude value meets default amplitude requirement, for example, judging whether the averaged amplitude value is greater than Otherwise default amplitude, is unsatisfactory for if so, meeting default amplitude requirement.
Identification module 208, for according to time analysis module 205, frequency analysis module 206, amplitude analysis module 207 The identification of analysis result judges whether current vibration signal is user by tapping vibration signal caused by mobile terminal.
103, target Bluetooth terminal to be connected is determined according to the vibration signal.
Wherein, there are many modes that target terminal to be connected is determined according to vibration signal, for example,
It can determine that mobile terminal whether there is and the matched vibration signal of the vibration signal, and if it exists, shake according to matching Dynamic signal determines that target Bluetooth terminal namely step to be connected " determine that target Bluetooth to be connected is whole according to the vibration signal End " may include: to determine to whether there is in default sample set and the matched sample of the vibration signal, and if it exists, then according to Target Bluetooth terminal to be connected is determined with sample;Specifically, it is determined that whether there is and the vibration signal in default sample set The mode of matched sample may include: the signal characteristic information (time, frequency, amplitude) of available vibration signal, then, Determining whether there is and the matched sample of the signal characteristic information in default sample set, and if it exists, then determine the default sample Exist in set with the matched sample of the vibration signal, if it does not exist, it is determined that be not present in the default sample set and the vibration The sample of dynamic Signal Matching.It wherein, may include at least one sample of signal in the default sample set, abbreviation sample, every kind Sample corresponds to a kind of target Bluetooth terminal.
For example, it may be determined that the frequency spectrum of vibration signal, respectively analyzes the time of the frequency spectrum, frequency and amplitude, obtains To analysis as a result, determining whether there is and the matched sample of analysis result in default sample set, and if it exists, then determine that this is pre- If existing and the matched sample of the vibration signal in sample set;If it does not exist, it is determined that be not present in the default sample set With the matched sample of the vibration signal.
For another example, corresponding number of taps can also be obtained according to vibration signal, then, judges number of taps and default time Number is compared, and if they are the same, then target Bluetooth terminal to be connected is determined according to preset times;Namely step is " according to the vibration Signal determines target Bluetooth terminal to be connected " may include:
The number of taps that user taps the terminal is obtained according to the vibration signal;
Judge whether the number of taps is identical as preset times, if so, determining mesh to be connected according to the preset times Mark Bluetooth terminal.
The preset times set including at least one preset times, every kind of number corresponding one can be set in practical applications Kind Bluetooth terminal to be connected.
For example, when user continuously taps mobile terminal three times, the corresponding vibration signal of acquisition for mobile terminal, and identify the vibration Whether dynamic signal is mobile terminal by the vibration signal for tapping generation, if so, mobile terminal analyzes the vibration signal, And the number of taps that active user taps the mobile terminal is obtained based on the analysis results, it is here 3 for number of taps, it is assumed that default When number is also is 3, the number of taps of acquisition is identical as preset times, at this time, it is determined that the corresponding Bluetooth terminal of preset times For target Bluetooth terminal to be connected,.
The present embodiment can analyze vibration signal to obtain the number of taps that user taps mobile terminal, for example, The frequency spectrum for obtaining vibration signal, analyzes the time and amplitude of frequency, secondary to obtain corresponding percussion based on the analysis results Number.
In practical applications, since mobile terminal stores the mark of the Bluetooth terminal of history connection, may be used also To determine that target Bluetooth terminal namely step " are determined according to the vibration signal wait connect from these marks according to vibration signal Target Bluetooth terminal " can specifically include:
Bluetooth selection instruction is obtained according to the vibration signal, which indicates the choosing of target Bluetooth terminal iidentification Select mode;
Target Bluetooth mark is chosen from the Bluetooth terminal of storage mark according to the bluetooth selection instruction;
Determine the corresponding Bluetooth terminal of target Bluetooth terminal iidentification as target Bluetooth terminal to be connected.
Wherein, there are many modes that bluetooth selection instruction is obtained according to vibration signal, for example, default sample set can be determined It whether there is and the matched sample of the vibration signal in conjunction, and if it exists, obtain the corresponding bluetooth selection instruction of the matched sample;It should It may include at least one sample of signal, abbreviation sample, a kind of every kind of sample corresponding target Bluetooth end in default sample set The selection mode namely every kind of sample for holding mark correspond to a kind of bluetooth selection instruction.For another example, available number of taps, will It is compared with preset times, if they are the same, obtains corresponding bluetooth selection instruction of preset times etc..
In the present embodiment, target Bluetooth mark selection mode can there are many, for example, can be identified according to Bluetooth terminal The corresponding Connection Time is selected, and can be selected according to the priority that Bluetooth terminal identifies, or can be according to preparatory Setting mark content selection etc..
The Bluetooth terminal mark stored in the present embodiment may include: the mark of the Bluetooth terminal of history connection or search, And/or the mark of the Bluetooth terminal of current search.
It will be appreciated that above-mentioned obtain target Bluetooth terminal to be connected according to matched sample or preset times, it can With using obtain bluetooth selection instruction, according to the instruction obtain target Bluetooth terminal mode, for example, obtain matched sample or Then the corresponding bluetooth selection instruction of preset times chooses mesh from the Bluetooth terminal of storage mark according to bluetooth selection instruction Bluetooth table is marked, then, using the corresponding Bluetooth terminal of target Bluetooth terminal iidentification as target terminal;Certainly in other embodiments Can with matched sample or preset times can direct corresponding default Bluetooth terminal, at this point it is possible to directly that this is corresponding Bluetooth terminal is as target Bluetooth terminal.
104, bluetooth connection is established with the target Bluetooth terminal.
Specifically, Bluetooth connection request is sent to the target Bluetooth terminal, receives target Bluetooth terminal and is connected according to the bluetooth The response message that request returns is connect, and bluetooth connection is established according to the response message and the target Bluetooth terminal.
Time in view of the time interval of the hammer action of user, with the hammer action of non-user (such as robot etc.) Be spaced it is not identical, in fact, the hammer action of user be not quickly, optionally, for improve vibration signal identification accuracy, After judging that key feature information meets preset condition, it is also necessary to analyze the hammer action corresponding time;Specifically, exist After judging that key feature information meets preset condition, which can also include:
The adjacent time interval for tapping the mobile terminal twice is obtained according to the vibration signal;
Whether within a preset range the time interval is judged, if so, determining that the vibration signal should by tapping for user The vibration signal that mobile terminal generates, if it is not, then determining the vibration signal not is that user is generated by tapping the mobile terminal Vibration signal.
Due to the time interval of user's hammer action, can be embodied in the temporal information of vibration digital signal, it therefore, can To carry out time analysis to vibration digital signal, the adjacent time interval for tapping the mobile terminal twice is obtained, then, judgement should Whether time interval is in preset range;In practical applications, a time range [T3, T4] can be set, it is preferable that T3 is 50ms, T4 500ms, if not in the range, it is the vibration of people's percussion mobile terminal generation that this, which shows the vibration signal not, Signal.
Preferably, above-mentioned target Bluetooth terminal can be smart phone, Intelligent bracelet, smartwatch etc. bluetooth equipment.
From the foregoing, it will be observed that the embodiment of the present invention using the vibration signal for being directed to mobile terminal is obtained, then, identifies that the vibration is believed It number whether is user by tapping vibration signal caused by the mobile terminal, if so, being determined according to the vibration signal wait connect Target Bluetooth terminal, establish bluetooth connection with the target Bluetooth terminal;The program can tap mobile terminal by user and produce Raw vibration signal establishes bluetooth connection with target Bluetooth terminal automatically, carries out a series of bluetooth company for terminal without user Operation is connect, mobile terminal need to be only tapped for a user and can be realized and establish bluetooth connection in target Bluetooth terminal, relative to For the prior art, user's operation is simplified, improves the efficiency that mobile terminal carries out bluetooth connection, the user experience is improved.
Embodiment two,
According to method described in embodiment one, citing is described in further detail below.
In the present embodiment, it will specifically be integrated with the Bluetooth connection device in the terminal, to be obtained by microphone It takes and is described in detail for vibration signal.
As shown in figure 3, a kind of Bluetooth connecting method, detailed process can be such that
301, mobile terminal opens included microphone, obtains the vibration letter for the mobile terminal by the microphone Number.
It should be noted that the microphone may include various types of microphones, such as electret microphone, silicon microphone Deng.If it is simulation microphone or analog speakers, then user can be first obtained by tapping simulation caused by mobile terminal Then signal converts the analog signal into digital signal by D/A converter module, obtain vibration signal;And if digital wheat Gram wind or digital speaker, then can direct output digit signals, without carrying out digital-to-analogue conversion.
302, the signal characteristic information of the acquisition for mobile terminal vibration signal.
The signal characteristic information includes: that frequency information, amplitude information, temporal information etc. specifically can be to vibration signals It carries out Fourier transformation (FFT), obtains corresponding frequency-region signal, i.e. frequency spectrum, also referred to as spectrum signal, then the frequency spectrum is carried out Analysis obtains temporal information, frequency information and the amplitude information of the frequency spectrum, and specific analytic process can refer to above-described embodiment One associated description.
For example, mobile terminal by the acoustic signals be converted into analog electrical signal (for example, by microphone, loudspeaker etc. into Row conversion), the analog electrical signal is then converted into corresponding digital signal (for example, passing through A/D converter), i.e. vibration letter Number, and dsp processing is carried out to the digital signal, to obtain signal characteristic information (such as the frequency information, width of the digital signal Value information, temporal information etc.).Specifically, Digital Signal Processing can be with the associated description in reference implementation example one, herein, no longer It repeats.
303, mobile terminal judges whether the signal characteristic information meets preset condition, with judge the vibration signal whether be The vibration signal that user is generated by tapping the mobile terminal, if so, step 304 is executed, if it is not, process terminates.
Specifically, when key feature information includes: frequency information, amplitude information and temporal information, preset condition can To include: that frequency information, amplitude information and temporal information meet various corresponding conditions, for example, the frequency of vibration digital signal Rate distribution is continuous and frequency bandwidth reaches predetermined width value, and the average amplitude for vibrating digital signal is greater than default amplitude, vibration number The period of word signal is within a preset range.Wherein, preset condition can tap smart phone a based on the user obtained in advance and generate Vibration signal obtain, at this point, key feature information meets preset condition, then it is assumed that the vibration signal be tap generate vibration Dynamic signal, otherwise, the vibration signal not generated for percussion.
304, mobile terminal analyzes the vibration signal, and obtains user based on the analysis results and tap the mobile terminal Number of taps.
Specifically, mobile terminal can analyze the corresponding frequency spectrum of vibration signal, for example, time and width to frequency spectrum Value is analyzed, and obtains corresponding number of taps according to the analysis result.
305, whether identical as preset times mobile terminal judges the number of taps, if so, 306 are thened follow the steps, if it is not, Process terminates.
Specifically, after obtaining number of taps, smart phone calls pre-set secondary manifold from local data base It closes, extracts the number that preset times are obtained with step 305 from this collection and compare.
306, mobile terminal determines target Bluetooth terminal to be connected according to the preset times.
For example, the corresponding Bluetooth terminal mark of acquisition for mobile terminal preset times, and Bluetooth terminal mark is corresponding Bluetooth terminal is as target Bluetooth terminal;For another example, the corresponding bluetooth selection instruction of the acquisition for mobile terminal preset times, the indigo plant Tooth selection instruction indicates the selection mode of target Bluetooth terminal iidentification, and mobile terminal is according to the bluetooth selection instruction in the more of storage A Bluetooth terminal mark is chosen in a Bluetooth terminal mark and is used as target Bluetooth terminal iidentification, later, by target Bluetooth end End identifies corresponding Bluetooth terminal as target Bluetooth terminal to be connected.For example, according to the excellent of the Bluetooth terminal of storage mark First grade chooses target Bluetooth terminal iidentification etc..
307, mobile terminal and the target Bluetooth terminal establish bluetooth connection.
Specifically, mobile terminal to the target Bluetooth terminal send Bluetooth connection request, receive target Bluetooth terminal according to The response message that the Bluetooth connection request returns, and bluetooth connection is established according to the response message and the target Bluetooth terminal.
Although it will be appreciated that introducing this for obtaining target Bluetooth terminal according to number of taps in the present embodiment Inventive method, but in other embodiments indigo plant can also be realized using target Bluetooth terminal mode is obtained according to matched sample Tooth connection is realized that the process of bluetooth connection can refer to above-mentioned steps 301-307, is just repeated no more here.
From the foregoing, it will be observed that then vibration signal of the embodiment of the present invention using acquisition for mobile terminal for it identifies the vibration Whether signal is user by tapping vibration signal caused by the mobile terminal, if so, being determined according to the vibration signal to even The target Bluetooth terminal connect establishes bluetooth connection with the target Bluetooth terminal;The program can tap mobile terminal by user The vibration signal of generation establishes bluetooth connection with target Bluetooth terminal automatically, carries out a series of bluetooth for terminal without user Attended operation need to only tap mobile terminal for a user and can be realized and establish bluetooth connection in target Bluetooth terminal, relatively For the prior art, user's operation is simplified, the efficiency that mobile terminal carries out bluetooth connection is improved, moreover, being also more convenient for Realize one-handed performance, the user experience is improved.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of Bluetooth connection device, the bluetooth connection Device can integrate in the terminal, which can specifically include mobile phone, tablet computer, laptop or individual Calculate equipment such as (PC, Personal Computer).As shown in figure 4, the Bluetooth connection device can also include obtaining module 401, identification module 402, determining module 403 and link block 404 are as follows:
(1) module 401 is obtained;
Module 401 is obtained, for obtaining the vibration signal for being directed to the mobile terminal.
Since mobile terminal generally has microphone, loudspeaker and receiver, it can use what mobile terminal carried Microphone, loudspeaker or receiver convert vibration signal for the voice signal to receive voice signal, it may be assumed that
The acquisition module 401 specifically can be used for obtaining by the loudspeaker, microphone or receiver of the mobile terminal For the vibration signal of the mobile terminal.
Wherein, which may include various types of microphones, such as electret microphone, silicon microphone etc., and Loudspeaker also may include various types of loudspeakers.If it is simulation microphone or analog speakers, then use can be first obtained Then family converts the analog signal into number by D/A converter module by tapping analog signal caused by mobile terminal Signal obtains vibration signal;And if digital microphone or digital speaker, can direct output digit signals, without into Row digital-to-analogue conversion.
It should be noted that can also include the device of any sound-electric conversion, herein other than microphone and loudspeaker It repeats no more.
(2) identification module 402;
Identification module 402, whether the vibration signal is user by tapping vibration caused by the mobile terminal for identification Dynamic signal;
For example, the characteristics of signals information of vibration signal can be extracted, vibration signal is identified according to the information characteristics information, That is:
The identification module 402, can be specifically used for:
Obtain the signal characteristic information of the vibration signal;
Judge whether the signal characteristic information meets preset condition;
If so, determining that the vibration signal is user by tapping vibration signal caused by the mobile terminal;
If not, it is determined that the vibration signal is not user by tapping vibration signal caused by the mobile terminal.
Wherein, signal characteristic information may include: frequency information (including frequency distribution, frequency bandwidth etc.), amplitude information At least one of (including average amplitude), temporal information (signal period), it is, of course, also possible to include other characteristic informations.
For example, judging the frequency information respectively when signal characteristic information includes: frequency information, amplitude information, temporal information Whether predeterminated frequency condition is met, and whether which meets default amplitude perturbations, when whether which meets default Between condition, wherein predeterminated frequency condition, default amplitude perturbations, preset time condition can be respectively according to preset number signals pair Frequency information, the amplitude information answered, temporal information setting, the default vibration signal are that mobile terminal is generated by user's percussion Vibration signal.Current embodiment require that judging whether multiple signal characteristic informations meet preset condition, to identify the vibration for tapping and generating When dynamic signal, for example, said frequencies information, amplitude information, temporal information judge three times, can based on multiple judging result come Identification, for example, just determining that vibration signal is to tap the vibration signal generated, alternatively, when more when three judging results are to be Having certain several judging result in a judging result is to determine that vibration signal is to tap the vibration signal generated when being, these To set according to the actual situation, judging result be it is more the case where being, accuracy of identification is higher.
(3) determining module 403;
Determining module 403, for identifying that the vibration signal is user by tapping the mobile terminal in the identification module 402 When generated vibration signal, target Bluetooth terminal to be connected is determined according to the vibration signal.
The determining module 403 can specifically include: sample determines that submodule and target determine submodule;
The sample determines submodule, whether there is and the matched sample of the vibration signal for determining in default sample set This;
The target determines submodule, for determining that submodule determines in default sample set exist and the vibration signal Target Bluetooth terminal to be connected is determined when the sample matched according to matched sample.
It for example, sample determines submodule, specifically can be used for: obtaining the signal characteristic information of the vibration signal;It determines pre- If whether there is and the matched sample of the signal characteristic information in sample set;If it exists, it is determined that in the default sample set In the presence of with the matched sample of the vibration signal;If it does not exist, it is determined that be not present and the vibration signal in the default sample set Matched sample.
It wherein, may include at least one sample in the default sample set, which can be according to the need of practical application It asks and is configured.
Optionally, which can also specifically include number acquisition submodule, judging submodule and determine submodule Block;
The number acquisition submodule, for obtaining the number of taps that user taps the mobile terminal according to the vibration signal;
The judging submodule, for judging whether the number of taps is identical as preset times;
The determination submodule, for determining target Bluetooth terminal to be connected according to the preset times.
Optionally, which can be specifically used for:
Bluetooth selection instruction is obtained according to the vibration signal, which indicates the choosing of target Bluetooth terminal iidentification Select mode;
Target Bluetooth mark is chosen from the Bluetooth terminal of storage mark according to the bluetooth selection instruction;
Determine the corresponding Bluetooth terminal of target Bluetooth terminal iidentification as target Bluetooth terminal to be connected.
(4) link block 404;
Link block 404, for establishing bluetooth connection with the target Bluetooth terminal.
For example, sending Bluetooth connection request to the target Bluetooth terminal, target Bluetooth terminal is received according to the bluetooth connection The response message returned is requested, and bluetooth connection is established according to the response message and the target Bluetooth terminal.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not It repeats again.
From the foregoing, it will be observed that the vibration that the Bluetooth connection device of the present embodiment is directed to the mobile terminal using the acquisition of module 401 is obtained Then dynamic signal identifies whether the vibration signal is user by tapping vibration caused by the mobile terminal as identification module 402 Dynamic signal identifies that the vibration signal is user by tapping produced by the mobile terminal in the identification module as determining module 403 Vibration signal when, target Bluetooth terminal to be connected is determined according to the vibration signal, by link block 404 and the target Bluetooth Terminal establishes bluetooth connection;It is automatically whole with target Bluetooth that the program can tap the vibration signal that mobile terminal generates by user Bluetooth connection is established at end, is carried out a series of bluetooth connection operation for terminal without user, is only needed to tap for a user Mobile terminal, which can be realized, establishes bluetooth connection in target Bluetooth terminal, in terms of existing technologies, simplifies user's operation, The efficiency that mobile terminal carries out bluetooth connection is improved, the user experience is improved.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
It is provided for the embodiments of the invention a kind of Bluetooth connecting method above and device is described in detail, herein Apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help Understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, having There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (11)

1. a kind of Bluetooth connecting method characterized by comprising
The vibration signal for being directed to mobile terminal is obtained, the vibration signal is user by tapping the mobile terminal any position The vibration signal of generation;
Obtain the signal characteristic information of the vibration signal;
Judge whether the signal characteristic information meets preset condition;
If so, determining that the vibration signal is user by tapping vibration signal caused by the mobile terminal, according to institute It states vibration signal and determines target Bluetooth terminal to be connected;
Wherein, the step of determining target Bluetooth terminal to be connected according to the vibration signal specifically includes: determining default sample It whether there is and the matched sample of the vibration signal in set;If it exists, then target to be connected is determined according to matched sample Bluetooth terminal;
Bluetooth connection is established with the target Bluetooth terminal.
2. Bluetooth connecting method as described in claim 1, which is characterized in that the method also includes:
When the signal characteristic information is unsatisfactory for preset condition, it is determined that the vibration signal is not that user passes through described in percussion Vibration signal caused by mobile terminal.
3. Bluetooth connecting method as claimed in claim 2, which is characterized in that the determination, which is preset in sample set, whether there is The step of sample matched with the vibration signal, specifically includes:
Obtain the signal characteristic information of the vibration signal;
Determining whether there is and the matched sample of the signal characteristic information in default sample set;
If it exists, it is determined that exist and the matched sample of the vibration signal in the default sample set;
If it does not exist, it is determined that be not present and the matched sample of the vibration signal in the default sample set.
4. Bluetooth connecting method as described in claim 1, which is characterized in that described to be determined according to the vibration signal wait connect Target Bluetooth terminal the step of specifically include:
The number of taps that user taps the mobile terminal is obtained according to the vibration signal;
Judge whether the number of taps is identical as preset times, if so, determining mesh to be connected according to the preset times Mark Bluetooth terminal.
5. Bluetooth connecting method as described in claim 1, which is characterized in that described to be determined according to the vibration signal wait connect Target Bluetooth terminal the step of specifically include:
Bluetooth selection instruction, the choosing of the bluetooth selection instruction instruction target Bluetooth terminal iidentification are obtained according to the vibration signal Select mode;
Target Bluetooth mark is chosen from the Bluetooth terminal of storage mark according to the bluetooth selection instruction;
Determine the corresponding Bluetooth terminal of the target Bluetooth terminal iidentification as target Bluetooth terminal to be connected.
6. a kind of Bluetooth connection device characterized by comprising
Module is obtained, for obtaining the vibration signal for being directed to mobile terminal, the vibration signal is user by tapping the shifting The vibration signal that dynamic terminal any position generates;
Identification module, it is pre- that the signal characteristic information for obtaining the vibration signal judges whether the signal characteristic information meets If condition, if so, determining that the vibration signal is user by tapping vibration signal caused by the mobile terminal;
Determining module, for identifying that the vibration signal is produced by user by tapping the mobile terminal in the identification module When raw vibration signal, target Bluetooth terminal to be connected is determined according to the vibration signal;
Wherein, the determining module specifically includes: sample determines that submodule and target determine submodule;
The sample determines submodule, whether there is and the matched sample of the vibration signal for determining in default sample set This;
The target determines submodule, for determining that submodule determines in default sample set exist and the vibration signal Target Bluetooth terminal to be connected is determined when the sample matched according to matched sample;
Link block, for establishing bluetooth connection with the target Bluetooth terminal.
7. Bluetooth connection device as claimed in claim 6, which is characterized in that the identification module is also used to: when the signal When characteristic information is unsatisfactory for preset condition, it is determined that the vibration signal is not user by tapping produced by the mobile terminal Vibration signal.
8. Bluetooth connection device as claimed in claim 6, which is characterized in that the sample determines submodule, is specifically used for:
Obtain the signal characteristic information of the vibration signal;
Determining whether there is and the matched sample of the signal characteristic information in default sample set;
If it exists, it is determined that exist and the matched sample of the vibration signal in the default sample set;
If it does not exist, it is determined that be not present and the matched sample of the vibration signal in the default sample set.
9. Bluetooth connection device as claimed in claim 6, which is characterized in that the determining module specifically includes: number obtains Submodule, judging submodule and determining submodule;
The number acquisition submodule, for obtaining the percussion time that user taps the mobile terminal according to the vibration signal Number;
The judging submodule, for judging whether the number of taps is identical as preset times;
The determining submodule, for being determined wait connect according to the preset times when the judging submodule is judged as YES Target Bluetooth terminal.
10. Bluetooth connection device as claimed in claim 6, which is characterized in that the determining module is specifically used for:
Bluetooth selection instruction, the choosing of the bluetooth selection instruction instruction target Bluetooth terminal iidentification are obtained according to the vibration signal Select mode;
Target Bluetooth mark is chosen from the Bluetooth terminal of storage mark according to the bluetooth selection instruction;
Determine the corresponding Bluetooth terminal of the target Bluetooth terminal iidentification as target Bluetooth terminal to be connected.
11. a kind of computer readable storage medium, is stored with computer program, wherein the computer program to calculate Machine executes such as method described in any one of claim 1 to 5.
CN201610037255.4A 2016-01-20 2016-01-20 A kind of Bluetooth connecting method and device Expired - Fee Related CN105704839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610037255.4A CN105704839B (en) 2016-01-20 2016-01-20 A kind of Bluetooth connecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610037255.4A CN105704839B (en) 2016-01-20 2016-01-20 A kind of Bluetooth connecting method and device

Publications (2)

Publication Number Publication Date
CN105704839A CN105704839A (en) 2016-06-22
CN105704839B true CN105704839B (en) 2019-08-06

Family

ID=56227660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610037255.4A Expired - Fee Related CN105704839B (en) 2016-01-20 2016-01-20 A kind of Bluetooth connecting method and device

Country Status (1)

Country Link
CN (1) CN105704839B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243220A (en) * 2019-07-18 2021-01-19 华为技术有限公司 Method for establishing communication connection and wearable device
CN111148086B (en) * 2019-12-31 2024-02-20 宇龙计算机通信科技(深圳)有限公司 Bluetooth pairing method and device, storage medium and electronic equipment
CN111431564B (en) * 2020-05-12 2022-07-19 深圳市龙岳科技有限公司 Bluetooth device fast connection device and method
CN113691964B (en) * 2020-05-19 2023-09-05 成都鼎桥通信技术有限公司 Bluetooth device connection method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
CN103023540A (en) * 2012-12-28 2013-04-03 广东欧珀移动通信有限公司 Method and device for transferring files by Bluetooth
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal
CN104955165A (en) * 2014-03-25 2015-09-30 上海龙旗科技股份有限公司 Method for establishing wireless connection among mobile equipment triggered through motion induction

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202131B (en) * 2010-03-26 2014-06-04 索尼爱立信移动通讯有限公司 Vibration-based application activation of portable electronic equipment
US10306444B2 (en) * 2014-07-07 2019-05-28 Ascensia Diabetes Care Holdings Ag Device pairing with a dual use piezoelectric acoustic component and vibration sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
CN103023540A (en) * 2012-12-28 2013-04-03 广东欧珀移动通信有限公司 Method and device for transferring files by Bluetooth
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal
CN104955165A (en) * 2014-03-25 2015-09-30 上海龙旗科技股份有限公司 Method for establishing wireless connection among mobile equipment triggered through motion induction

Also Published As

Publication number Publication date
CN105704839A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105704839B (en) A kind of Bluetooth connecting method and device
CN109754798B (en) Multi-loudspeaker-box synchronous control method and system and loudspeaker box
KR20080077085A (en) Determination of audio device quality
CN105144747A (en) Acoustic beacon for broadcasting the orientation of a device
CN105682258B (en) A kind of switching method and apparatus of subscriber identification card
CN105611064A (en) Mobile terminal mode switching method and device
CN102098372A (en) Method and device for intelligently adjusting receiver volume of handheld device
CN102056042A (en) Intelligent adjusting method and device for prompt tone of electronic device
CN105719672A (en) Recording scene mode switching method and recording scene mode switching mode device
CN104023302A (en) Programmable digital hearing aid system and method thereof
CN109121059A (en) Loudspeaker plug-hole detection method and Related product
CN105472172B (en) Switching method, device and the computer readable storage medium of call mode
CN105577863B (en) The way of recording and device
CN105549744B (en) A kind of screen luminance of terminal adjusting method and device
CN105721676B (en) A kind of terminal processing method and device
CN105718165B (en) A kind of starting method and device of terminal background application
CN105718178B (en) A kind of methods of exhibiting and device of PUSH message
CN105611065A (en) Application switching method and device
WO2023051622A1 (en) Method for improving far-field speech interaction performance, and far-field speech interaction system
CN105721678A (en) Calling processing method and calling processing device
CN105721679A (en) Conversation switching method and conversation switching device
CN105718773A (en) Terminal unlocking method and device
CN105718179B (en) Information processing method and device
CN105491297B (en) A kind of method of adjustment and device of camera parameter
CN105704840B (en) A kind of cut-in method and device of wireless access point

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190806

CF01 Termination of patent right due to non-payment of annual fee