CN104038263B - Method and device for establishing Bluetooth connection - Google Patents
Method and device for establishing Bluetooth connection Download PDFInfo
- Publication number
- CN104038263B CN104038263B CN201410274215.2A CN201410274215A CN104038263B CN 104038263 B CN104038263 B CN 104038263B CN 201410274215 A CN201410274215 A CN 201410274215A CN 104038263 B CN104038263 B CN 104038263B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth equipment
- target device
- mac address
- equipment
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a method for establishing Bluetooth connection. The method includes searching Bluetooth devices; determining target devices among the searched Bluetooth devices according to paring information of the searched Bluetooth devices and pairing information of local devices; automatically pairing the local devices with the target devices and establishing Bluetooth communication and connection among the local devices and the target devices. The method has the advantages that Bluetooth connection can be automatically established by the terminal devices, so that users can conveniently utilize Bluetooth functions, tedious operation steps can be simplified, and the efficiency can be improved. The invention further discloses a device for implementing the method.
Description
Technical field
It relates to mobile communication technology field, particularly relate to a kind of method and apparatus setting up bluetooth connection.
Background technology
Along with popularizing of bluetooth equipment, the application of Bluetooth technology is more and more extensive, various mobile devices, intelligence
Home appliance, Intelligent worn device all possess the function of Bluetooth communication.The process carrying out bluetooth connection needs to use
Family first turns on the Bluetooth function of equipment and searches bluetooth equipment, manually chooses target device to match, joins
To setting up communication connection after success, carry out data transmission.Sequence of operations process is comparatively laborious, and at the beginning of order
Level user's indigestion, causes use difficulty, is not easy to naive user and uses the Bluetooth function of smart machine.
Summary of the invention
For the problem overcoming correlation technique to exist, the disclosure provides a kind of and sets up the method and apparatus that bluetooth connects,
Make terminal unit automatically set up bluetooth to connect, it is simple to user uses Bluetooth function, simplify loaded down with trivial details operation step
Suddenly, efficiency is improved.
First aspect according to disclosure embodiment, it is provided that a kind of method setting up bluetooth connection, including:
Search bluetooth equipment;
Unpaired message according to the bluetooth equipment searched and the unpaired message of local device, in the indigo plant searched
Tooth equipment determines target device;
Automatically carry out matching and set up Bluetooth communication to be connected with described target device.
Make terminal unit automatic searching bluetooth equipment, carry out matching and set up Bluetooth communication and connect, it is simple to user
Use the Bluetooth function of terminal unit, simplify loaded down with trivial details operating procedure, improve operating efficiency.
Described unpaired message includes: device name character string information or Bluetooth MAC address.It is easy to from same
The bluetooth equipment of one manufacturer identifies automatically.
When described unpaired message includes device name character string information, the bluetooth equipment that described basis searches
Unpaired message and the unpaired message of local device, the bluetooth equipment searched determines the step of target device
Suddenly include:
The device name character string information of the bluetooth equipment searched described in judgement and the implementor name of local device
Claim whether character string information includes identical preset characters string;
Device name character string information and the device name of local device when the described bluetooth equipment searched
When character string information includes identical preset characters string, determine described in the bluetooth equipment that searches be described mesh
Marking device.Determine, according to preset characters string information identical in device name, the bluetooth equipment that can match, possess
Higher recognition accuracy.
When described unpaired message includes Bluetooth MAC address, joining of the bluetooth equipment that described basis searches
Information is determined, and the step of target device includes:
The Bluetooth MAC address of the bluetooth equipment searched described in judgement and the bluetooth MAC ground of local device
Whether location includes identical default MAC Address section;
Bluetooth MAC address and the Bluetooth MAC address of local device when the described bluetooth equipment searched
During including identical default MAC Address section, determine described in the bluetooth equipment that searches be described target device.
Determine, according to default MAC Address section identical in Bluetooth MAC address, the bluetooth equipment that can match, possess
Higher recognition accuracy.
Described and described target device automatically carries out matching and set up the step that Bluetooth communication is connected and includes:
Judge whether described target device is multiple;
When described target device is multiple, the mesh the strongest with Bluetooth signal intensity in the plurality of target device
Marking device automatically carries out matching and set up Bluetooth communication and connects.To set up stability and the higher bluetooth of reliability
Data link.
Before the step of described search bluetooth equipment, described method also includes:
Judge whether the bluetooth equipment matched with local device includes described target device;
When the bluetooth equipment matched includes described target device, set up bluetooth with described target device and lead to
Letter connects;
When the bluetooth equipment matched does not includes described target device, perform the step of described search bluetooth equipment
Suddenly.If the bluetooth equipment that equipment has matched after restarting remains set up the equipment that Bluetooth communication connects last time,
Then directly again set up Bluetooth communication with this equipment to be connected, improve efficiency further.
Second aspect according to disclosure embodiment, it is provided that a kind of device setting up bluetooth connection, including:
Search module, is used for searching bluetooth equipment;
Determine module, for the unpaired message according to the bluetooth equipment searched and the unpaired message of local device,
Target device is determined in the bluetooth equipment searched;
Processing module, is connected for automatically carrying out matching and set up Bluetooth communication with described target device.
Described determine that module includes:
First judging unit, the device name character string information of the bluetooth equipment searched described in judge and
Whether the device name character string information of local device includes identical preset characters string;
First determines unit, for when described in the device name character string information of bluetooth equipment that searches and this
The device name character string information of ground equipment is when including identical preset characters string, determine described in search
Bluetooth equipment is described target device.
Described determine that module includes:
Second judging unit, the Bluetooth MAC address of the bluetooth equipment searched described in judge and this locality
Whether the Bluetooth MAC address of equipment includes identical default MAC Address section;
Second determines unit, for when described in the Bluetooth MAC address of bluetooth equipment that searches and this locality set
When standby Bluetooth MAC address includes identical default MAC Address section, determine described in the bluetooth that searches
Equipment is described target device.
Described processing module includes:
3rd judging unit, is used for judging whether described target device is multiple;
Processing unit, for when described target device is multiple, believes with bluetooth in the plurality of target device
Number target device that intensity is the strongest automatically carries out matching and set up Bluetooth communication and connects.
Described device also includes:
Judge module, for judging whether include that described target sets in the bluetooth equipment matched with local device
Standby;
When the bluetooth equipment matched includes described target device, set up bluetooth with described target device and lead to
Letter connects;
When the bluetooth equipment matched does not includes described target device, perform the step of described search bluetooth equipment
Suddenly.
The third aspect according to disclosure embodiment, it is provided that a kind of device setting up bluetooth connection, including:
Processor;
For storing the memorizer of processor executable;
Wherein said processor is configured to:
Search bluetooth equipment;
Unpaired message according to the bluetooth equipment searched and the unpaired message of local device, in the indigo plant searched
Tooth equipment determines target device;
Automatically carry out matching and set up Bluetooth communication to be connected with described target device.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: make terminal unit automatic
Search bluetooth equipment, carry out matching and set up bluetooth and connect, it is simple to user uses the Bluetooth function of terminal unit,
Simplify loaded down with trivial details operating procedure, improve operating efficiency;According to preset characters string letter identical in device name
In breath or Bluetooth MAC address, identical default MAC Address section determines the bluetooth equipment that can match, tool
Standby higher recognition accuracy;Stability and reliability higher bluetooth data communication link can be set up, and
And solve some equipment that Bluetooth operation interface cannot be provided, such as earphone, audio amplifier etc., it is impossible to allow user's hands
The problem of the bluetooth that is dynamically connected.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe,
The disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the present invention
Embodiment, and for explaining the principle of the present invention together with description.
Fig. 1 is according to a kind of flow chart setting up the method that bluetooth connects shown in an exemplary embodiment.
Fig. 2 is according to a kind of flow chart setting up the method that bluetooth connects shown in an exemplary embodiment.
Fig. 3 is according to a kind of flow chart setting up the method that bluetooth connects shown in an exemplary embodiment.
Fig. 4 is according to a kind of flow chart setting up the method that bluetooth connects shown in an exemplary embodiment.
Fig. 5 is according to a kind of flow chart setting up the method that bluetooth connects shown in an exemplary embodiment.
Fig. 6 is according to the application scenarios schematic diagram setting up the method that bluetooth connects shown in an exemplary embodiment.
Fig. 7 is according to a kind of block diagram setting up the device that bluetooth connects shown in an exemplary embodiment.
Fig. 8 is the block diagram illustrating cover half block really according to an exemplary embodiment.
Fig. 9 is the block diagram illustrating cover half block really according to an exemplary embodiment.
Figure 10 is the block diagram according to the processing module shown in an exemplary embodiment.
Figure 11 is according to a kind of block diagram setting up the device that bluetooth connects shown in an exemplary embodiment.
Figure 12 is according to a kind of block diagram setting up the device that bluetooth connects shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches
Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.
Embodiment described in following exemplary embodiment does not represent all enforcements consistent with the present invention
Mode.On the contrary, they only with describe in detail in appended claims, the present invention some in terms of phase
The example of consistent apparatus and method.
Fig. 1 is the flow chart according to a kind of method setting up bluetooth connection shown in an exemplary embodiment, as
Shown in Fig. 1, set up bluetooth connect method in terminal unit, comprise the following steps.
In step S101, search bluetooth equipment.
Terminal unit has bluetooth communication interface, and after opening function of Bluetooth communication, this terminal unit is as bluetooth
Main side equipment in communication process, searches the bluetooth equipment that around can be searched as from end equipment, with
Carry out follow-up pairing process.
In step s 102, according to unpaired message and the pairing letter of local device of the bluetooth equipment searched
Breath, determines target device in the bluetooth equipment searched.
This unpaired message is main side equipment and the check information when end equipment matches, and such as, main side sets
Standby with from the end Bluetooth MAC address of equipment, PIN code (Personal Identification Number, individual
Identification code) etc. information.Main side equipment according to this unpaired message be determined to pairing from end equipment.According to this
The unpaired message of ground equipment and the unpaired message of the bluetooth equipment searched, be determined to and local device match
Bluetooth equipment, using the bluetooth equipment that can carry out matching as target device.
In step s 103, automatically carry out matching and set up Bluetooth communication with target device to be connected.
The blue tooth interface of terminal unit matches automatically with the blue tooth interface of this target device.After successful matching,
Terminal unit sends the request setting up data link, terminal unit and target device to the target device matched
Between set up data link success after, become merit establish Bluetooth communication connect.
Disclosure embodiment sets up the method that bluetooth connects, and makes terminal unit automatic searching bluetooth equipment, carries out
Match and set up bluetooth to connect, it is simple to user uses the Bluetooth function of terminal unit, simplifies loaded down with trivial details operation
Step, improves operating efficiency.
In the disclosure one embodiment, this unpaired message includes: device name character string information or bluetooth MAC
Address.
The title of bluetooth equipment is generally made up of the character string including letter and number, and the bluetooth of different vendor sets
Standby title generally comprises specific character string, to show the production firm of this bluetooth equipment.This locality is set
Standby name character string information and bluetooth device name character string information are as unpaired message, and whether judge both
Include specific character string simultaneously.As in figure 2 it is shown, this method setting up bluetooth connection comprises the following steps.
In step s 201, bluetooth equipment is searched.
In step S202a, it is judged that the device name character string information of the bluetooth equipment searched and this locality set
Whether standby device name character string information includes identical preset characters string.
Such as, the device name as the local device of main side equipment is " abcd-123 ", the bluetooth searched
Equipment includes what bluetooth equipment A that device name is " abcd-567 " and device name were " acef-123 "
Bluetooth equipment B.Wherein, character string information " abcd " is the preset characters string representing certain manufacturer, then judge
The device name character string information of the bluetooth equipment searched and the device name character string information of local device
In whether include this identical preset characters string.
In step S202b, when device name character string information and the local device of the bluetooth equipment searched
Device name character string information when including identical preset characters string, determine that the bluetooth equipment searched is
Target device.
Such as, the bluetooth equipment A that device name is " abcd-567 " searched and the equipment of local device
Title " abcd-123 ", including identical preset characters string " abcd ", it is determined that this bluetooth equipment A is mesh
Marking device.The bluetooth equipment B that device name is " acef-123 " searched and the implementor name of local device
Claim " abcd-123 ", do not include identical preset characters string " abcd ", it is determined that this bluetooth equipment B is not
Target device.
In step S203, automatically carry out matching and set up Bluetooth communication with target device and be connected.
The local device that device name is " abcd-123 " sets with the bluetooth that device name is " abcd-567 "
Standby A carries out matching and set up Bluetooth communication and connects.
When this unpaired message is Bluetooth MAC address, the bluetooth equipment of different vendor has different bluetooths
MAC Address section.Bluetooth MAC address generally includes 6 MAC Address sections, each MAC Address section
It is made up of two hexadecimal digits.In the Bluetooth MAC address of the bluetooth equipment of same manufacturer, generally have
There is several identical MAC Address.Such as, before in the Bluetooth MAC address of the bluetooth equipment of same manufacturer
The numeral of three MAC Address sections is identical, be all " 1C:4B:2A: ... ".Therefore by distinct device
Bluetooth MAC address judges whether can carry out matching and confirming as target device.As it is shown on figure 3, this is built
The method that vertical bluetooth connects comprises the following steps.
In step S301, search bluetooth equipment.
In step S302a, it is judged that the Bluetooth MAC address of the bluetooth equipment searched and local device
Whether Bluetooth MAC address includes identical default MAC Address section.
Such as, the Bluetooth MAC address as the local device of main side equipment is " 1C:4B:2A:1B:47:3D ",
The bluetooth equipment searched includes the bluetooth equipment C that Bluetooth MAC address is " 1C:4B:2A:2C:53:48 "
With the bluetooth equipment D that Bluetooth MAC address is " 2B:47:3A:10:42:1D ".Wherein, bluetooth MAC
First three MAC section in address " 1C:4B:2A: ... " it is the default MAC Address section representing certain manufacturer,
Whether then judge the Bluetooth MAC address of the Bluetooth MAC address of bluetooth equipment and the local device searched
Including the default MAC Address section that this is identical.
In step S302b, when Bluetooth MAC address and the indigo plant of local device of the bluetooth equipment searched
When tooth MAC Address includes identical default MAC Address section, determine that the bluetooth equipment searched is target
Equipment.
Such as, the bluetooth equipment C that Bluetooth MAC address is " 1C:4B:2A:2C:53:48 " searched with
The Bluetooth MAC address " 1C:4B:2A:1B:47:3D " of local device, including identical default MAC ground
Location section " 1C:4B:2A: ... ", it is determined that this bluetooth equipment C is target device.Bluetooth MAC searched
Address is the bluetooth equipment D Bluetooth MAC address with local device of " 2B:47:3A:10:42:1D "
" 1C:4B:2A:1B:47:3D ", do not include identical default MAC Address section " 1C:4B:2A: ... ",
Then determine that this bluetooth equipment D is not target device.
In step S303, automatically carry out matching and set up Bluetooth communication with target device and be connected.
The local device that Bluetooth MAC address is " 1C:4B:2A:1B:47:3D " with Bluetooth MAC address is
The bluetooth equipment C of " 1C:4B:2A:2C:53:48 " carries out matching and set up Bluetooth communication and connects.
The mesh that can carry out matching is automatically identified by device name character string information or Bluetooth MAC address
Marking device, sets up Bluetooth communication and connects after successful matching.Also can simultaneously by device name character string information and
Bluetooth MAC address is identified, such as, it is judged that the device name character string of the bluetooth equipment searched
Whether the device name character string information of information and local device includes identical preset characters string, and searches
Whether the Bluetooth MAC address of the bluetooth equipment sought and the Bluetooth MAC address of local device include identical
Default MAC Address section;Device name character string information and local device when the bluetooth equipment searched
Device name character string information include identical preset characters string, and the indigo plant of the bluetooth equipment searched
When the Bluetooth MAC address of tooth MAC Address and local device includes identical default MAC Address section,
Determine that this bluetooth equipment searched is target device.
In the disclosure one embodiment, when the target device identified is multiple, local device can automatically with
One of them target device carries out matching and set up Bluetooth communication and connects, and as shown in Figure 4, this sets up bluetooth even
The method connect comprises the following steps.
In step S401, search bluetooth equipment.
In step S402, according to unpaired message and the pairing letter of local device of the bluetooth equipment searched
Breath, determines target device in the bluetooth equipment searched.
In step S403a, it is judged that whether target device is multiple.
In step S403b, when target device is multiple, with Bluetooth signal intensity in multiple target devices
The strongest target device automatically carries out matching and set up Bluetooth communication and connects.
Unpaired message according to the bluetooth equipment searched and the unpaired message of local device, determine exist multiple
When can carry out the target device matched, the target the strongest with Bluetooth signal intensity in the plurality of target device sets
Standby automatically carrying out matches and sets up Bluetooth communication connection, to ensure the reliability and stability of Bluetooth data transfer.
In the disclosure one embodiment, main side equipment with from end device pairing success after, in meeting from end equipment
Preserve the trust information of this main side equipment.After restarting as the local device of main side equipment, continue to keep
With restart before successful matching bluetooth equipment pairing.After local device restarts, it is judged that the indigo plant matched
Whether tooth equipment is to restart to set up the target device that Bluetooth communication connects before, sets up indigo plant before if restarting
The target device of tooth communication connection, then directly set up Bluetooth communication with this target device and be connected;The indigo plant matched
Tooth equipment is not to restart to set up the target device that Bluetooth communication connects before, or the bluetooth currently without pairing
During equipment, then perform the step of this search bluetooth equipment.As it is shown in figure 5, this sets up the method that bluetooth connects
Comprise the following steps.
In step S501, open Bluetooth function.
In step S502, it is judged that whether the bluetooth equipment matched with local device includes target device.
When the bluetooth equipment matched with local device includes this target device, perform step S508;When with this
When the bluetooth equipment that ground equipment has matched does not include this target device, perform step S503.
In step S503, search bluetooth equipment.
In step S504, according to unpaired message and the pairing letter of local device of the bluetooth equipment searched
Breath, determines target device in the bluetooth equipment searched.
In step S505, it is judged that whether target device is multiple.When target device is multiple, perform
Step S506;When target device is one, perform step S507.
In step S506, determine the target device that in multiple target device, Bluetooth signal is the strongest.
In step s 507, match with the target device finally determined.
In step S508, set up Bluetooth communication with the target device of pairing and be connected.
Fig. 6 is the application scenarios schematic diagram of disclosure embodiment, and this application scenarios includes from same manufacturer
TV 60 and sound system 61.This TV 60 and sound system 61 possess function of Bluetooth communication, power on
After work, this TV 60 and sound system 61 automatically turn on function of Bluetooth communication, using TV 60 as master
Bluetooth equipment around end equipment searching, after searching sound system 61, TV 60 is according to local pairing
Information and the unpaired message of sound system 61, confirm with this sound system 61 from same manufacturer, belong to energy
Enough target devices carrying out matching, then this TV 60 automatically carries out Bluetooth pairing with sound system 61 and sets up
Bluetooth communication connects.When, after TV and sound system cycle power, TV 60 judges that the bluetooth matched sets
The standby sound system 61 setting up Bluetooth communication last time that remains, then direct and sound system 61 is set up bluetooth and is led to
Letter connects.When sound system 61 is replaced by other sound systems of this manufacturer production by user, TV 60
When judging to there is not the bluetooth equipment matched, re-search for the bluetooth equipment of surrounding.After searching replacing
During sound system, judge that the sound system after changing is the target device that can match, then according to unpaired message
Match and set up Bluetooth communication with the sound system after this replacing to be connected.When this TV 60 surrounding exists many sets
When possessing the sound system of function of Bluetooth communication, TV 60 searches multiple sound system, according to pairing letter
Breath determines and belongs to the sound system that same manufacturer can carry out matching, if it is determined that still has and overlaps sound system more
Can match, then sound system the strongest for Bluetooth signal intensity is defined as target device, with this bluetooth
The sound system that signal is the strongest matches and sets up Bluetooth communication and connects.
The most above-mentioned application scenarios can also search neighbouring using sound system 61 as main side equipment
There is the TV 60 of Bluetooth function, after being judged to target device according to unpaired message, join with TV 60
To and set up Bluetooth communication connect.The method setting up bluetooth connection in disclosure embodiment, not only makes bluetooth
Equipment automatic matching is also set up bluetooth and is connected, and simplifies user operation, and solves some and cannot provide blue
The equipment at tooth operation interface, such as earphone, audio amplifier etc., it is impossible to allow the problem that user manually connects bluetooth.
Fig. 7 is according to a kind of block diagram setting up the device that bluetooth connects shown in an exemplary embodiment.Reference
Fig. 7, this device includes search module 70, determines module 71 and processing module 72.
This search module 70 is configurable for searching bluetooth equipment;
This determines that module 71 is configurable for the unpaired message according to the bluetooth equipment searched and this locality sets
Standby unpaired message, determines target device in the bluetooth equipment searched;
This processing module 72 is configurable for automatically carrying out with target device matching and set up Bluetooth communication even
Connect.
In the disclosure one embodiment, as shown in Figure 8, this determines that module 71 includes the first judging unit 710
Unit 711 is determined with first.
This first judging unit 710 is configurable for judging the device name character of the bluetooth equipment searched
Whether the device name character string information of string information and local device includes identical preset characters string;
This first determines that unit 711 is configurable for when the device name character string of bluetooth equipment that search
When the device name character string information of information and local device includes identical preset characters string, determine search
To bluetooth equipment be target device.
In the disclosure one embodiment, as it is shown in figure 9, this determines that module 71 includes the second judging unit 712
Unit 713 is determined with second.
This second judging unit 712 is configurable for judging the bluetooth MAC ground of the bluetooth equipment searched
Whether the Bluetooth MAC address of location and local device includes identical default MAC Address section;
This second determines that unit 713 is configurable for when the Bluetooth MAC address of bluetooth equipment that search
When including identical default MAC Address section with the Bluetooth MAC address of local device, determine and search
Bluetooth equipment is target device.
In the disclosure one embodiment, as shown in Figure 10, this processing module 72 includes the 3rd judging unit 720
With processing unit 721.
3rd judging unit 720 is configurable for judging whether target device is multiple;
This processing unit 721 is configurable for when target device is multiple, blue with multiple target devices
The target device that tooth signal intensity is the strongest automatically carries out matching and set up Bluetooth communication and connects.
In the disclosure one embodiment, as shown in figure 11, this device also includes judge module 73.
Whether this judge module 73 is configurable in the bluetooth equipment judging to have matched with local device wrapping
Include target device;When the bluetooth equipment matched includes described target device, build with described target device
Vertical Bluetooth communication connects;When the bluetooth equipment matched does not includes described target device, perform described search
The step of bluetooth equipment.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant
The embodiment of the method is described in detail, explanation will be not set forth in detail herein.
Figure 12 is according to a kind of block diagram setting up the device 800 that bluetooth connects shown in an exemplary embodiment.
Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, trip
Play control station, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 12, device 800 can include following one or more assembly: processes assembly 802, storage
Device 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O)
Interface 812, sensor cluster 814, and communications component 816.
Process assembly 802 and generally control the integrated operation of device 800, such as with display, call, number
The operation being associated according to communication, camera operation and record operation.Treatment element 802 can include one or many
Individual processor 820 performs instruction, to complete all or part of step of above-mentioned method.Additionally, process
Assembly 802 can include one or more module, it is simple to process between assembly 802 and other assemblies is mutual.
Such as, processing component 802 can include multi-media module, to facilitate multimedia groupware 808 and to process assembly
Mutual between 802.
Memorizer 804 is configured to store various types of data to support the operation at equipment 800.These
The example of data includes any application program for operation on device 800 or the instruction of method, contact person
Data, telephone book data, message, picture, video etc..Memorizer 804 can be by any kind of volatile
Property or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM),
Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM),
Programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory,
Disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can include electricity
Management system, one or more power supplys, and other generate, manage and distribute electric power phase with for device 800
The assembly of association.
The screen of one output interface of offer that multimedia groupware 808 is included between described device 800 and user
Curtain.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).
If screen includes that touch panel, screen may be implemented as touch screen, to receive the input letter from user
Number.Touch panel includes that one or more touch sensor is with the hands on sensing touch, slip and touch panel
Gesture.Described touch sensor can not only sense touch or the border of sliding action, but also detection is with described
Touch or persistent period that slide is relevant and pressure.In certain embodiments, multimedia groupware 808 wraps
Include a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Before each
Put photographic head and post-positioned pick-up head can be a fixing optical lens system or have focal length and optics change
Burnt ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 includes
One mike (MIC), when device 800 is in operator scheme, such as call model, logging mode and language
During sound recognition mode, mike is configured to receive external audio signal.The audio signal received can be by
It is further stored in memorizer 804 or sends via communications component 816.In certain embodiments, audio group
Part 810 also includes a speaker, is used for exporting audio signal.
I/O interface 812 provides interface for processing between assembly 802 and peripheral interface module, above-mentioned periphery connects
Mouth die block can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button,
Volume button, start button and locking press button.
Sensor cluster 814 includes one or more sensor, for providing various aspects for device 800
State estimation.Such as, what sensor cluster 814 can detect equipment 800 opens/closed mode, assembly
Relative localization, the most described assembly is display and the keypad of device 800, and sensor cluster 814 is also
Device 800 or the position change of 800 1 assemblies of device, user and depositing that device 800 contacts can be detected
Or do not exist, device 800 orientation or acceleration/deceleration and the variations in temperature of device 800.Sensor cluster
814 can include proximity transducer, are configured to when not having any physical contact object near detection
Existence.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor,
For using in imaging applications.In certain embodiments, this sensor cluster 814 can also include accelerating
Degree sensor, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to facilitate the logical of wired or wireless mode between device 800 and other equipment
Letter.Device 800 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or they
Combination.In one exemplary embodiment, communication component 816 receives wide from outside via broadcast channel
The broadcast singal of broadcast management system or broadcast related information.In one exemplary embodiment, described communication unit
Part 816 also includes near-field communication (NFC) module, to promote junction service.Such as, in NFC module
Can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB)
Technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can by one or more application specific integrated circuits (ASIC),
Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD),
Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are real
Existing, for performing the above-mentioned method setting up bluetooth connection.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instruction is additionally provided
Matter, such as include instruction memorizer 804, above-mentioned instruction can by the processor 820 of device 800 perform with
Complete said method.Such as, described non-transitory computer-readable recording medium can be ROM, random
Access memorizer (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by mobile terminal
Processor perform time so that mobile terminal be able to carry out a kind of set up bluetooth connect method, described method
Including:
Search bluetooth equipment;
Unpaired message according to the bluetooth equipment searched and the unpaired message of local device, in the indigo plant searched
Tooth equipment determines target device;
Automatically carry out matching and set up Bluetooth communication to be connected with described target device.
Described unpaired message includes: device name character string information or Bluetooth MAC address.
When described unpaired message includes device name character string information, the bluetooth equipment that described basis searches
Unpaired message and the unpaired message of local device, the bluetooth equipment searched determines the step of target device
Suddenly include:
The device name character string information of the bluetooth equipment searched described in judgement and the implementor name of local device
Claim whether character string information includes identical preset characters string;
Device name character string information and the device name of local device when the described bluetooth equipment searched
When character string information includes identical preset characters string, determine described in the bluetooth equipment that searches be described mesh
Marking device.
When described unpaired message includes Bluetooth MAC address, joining of the bluetooth equipment that described basis searches
Information is determined, and the step of target device includes:
The Bluetooth MAC address of the bluetooth equipment searched described in judgement and the bluetooth MAC ground of local device
Whether location includes identical default MAC Address section;
Bluetooth MAC address and the Bluetooth MAC address of local device when the described bluetooth equipment searched
During including identical default MAC Address section, determine described in the bluetooth equipment that searches be described target device.
Described and described target device automatically carries out matching and set up the step that Bluetooth communication is connected and includes:
Judge whether described target device is multiple;
When described target device is multiple, the mesh the strongest with Bluetooth signal intensity in the plurality of target device
Marking device automatically carries out matching and set up Bluetooth communication and connects.
Before the step of described search bluetooth equipment, described method also includes:
Judge whether the bluetooth equipment matched with local device includes described target device;
When the bluetooth equipment matched includes described target device, set up bluetooth with described target device and lead to
Letter connects;
When the bluetooth equipment matched does not includes described target device, perform the step of described search bluetooth equipment
Suddenly.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to this
Other bright embodiment.The application is intended to any modification, purposes or the adaptations of the present invention,
These modification, purposes or adaptations are followed the general principle of the present invention and include that the disclosure is not disclosed
Common knowledge in the art or conventional techniques means.Description and embodiments is considered only as exemplary
, true scope and spirit of the invention are pointed out by claim below.
It should be appreciated that the invention is not limited in accurate knot described above and illustrated in the accompanying drawings
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only by appended
Claim limits.
Claims (7)
1. set up the method that bluetooth connects for one kind, it is characterised in that including:
Search bluetooth equipment;
Unpaired message according to the bluetooth equipment searched and the unpaired message of local device, in the indigo plant searched
Tooth equipment determines target device;
Automatically carry out matching and set up Bluetooth communication to be connected with described target device;
Described unpaired message includes: device name character string information or Bluetooth MAC address;
When described unpaired message includes device name character string information, the bluetooth equipment that described basis searches
Unpaired message and the unpaired message of local device, the bluetooth equipment searched determines the step of target device
Suddenly include:
The device name character string information of the bluetooth equipment searched described in judgement and the implementor name of local device
Claim whether character string information includes identical preset characters string;
Device name character string information and the device name of local device when the described bluetooth equipment searched
When character string information includes identical preset characters string, determine described in the bluetooth equipment that searches be described mesh
Marking device;
When described unpaired message includes Bluetooth MAC address, joining of the bluetooth equipment that described basis searches
Information is determined, and the step of target device includes:
The Bluetooth MAC address of the bluetooth equipment searched described in judgement and the bluetooth MAC ground of local device
Whether location includes identical default MAC Address section;
Bluetooth MAC address and the Bluetooth MAC address of local device when the described bluetooth equipment searched
During including identical default MAC Address section, determine described in the bluetooth equipment that searches be described target device.
2. the method for claim 1, it is characterised in that described and described target device enters automatically
Row matches and sets up the step of Bluetooth communication connection and includes:
Judge whether described target device is multiple;
When described target device is multiple, the mesh the strongest with Bluetooth signal intensity in the plurality of target device
Marking device automatically carries out matching and set up Bluetooth communication and connects.
3. the method for claim 1, it is characterised in that the step of described search bluetooth equipment it
Before, described method also includes:
Judge whether the bluetooth equipment matched with local device includes described target device;
When the bluetooth equipment matched includes described target device, set up bluetooth with described target device and lead to
Letter connects;
When the bluetooth equipment matched does not includes described target device, perform the step of described search bluetooth equipment
Suddenly.
4. set up the device that bluetooth connects for one kind, it is characterised in that including:
Search module, is used for searching bluetooth equipment;
Determine module, for the unpaired message according to the bluetooth equipment searched and the unpaired message of local device,
Target device is determined in the bluetooth equipment searched;
Processing module, is connected for automatically carrying out matching and set up Bluetooth communication with described target device;
Described determine that module includes:
First judging unit, the device name character string information of the bluetooth equipment searched described in judge and
Whether the device name character string information of local device includes identical preset characters string;
First determines unit, for when described in the device name character string information of bluetooth equipment that searches and this
The device name character string information of ground equipment is when including identical preset characters string, determine described in search
Bluetooth equipment is described target device;
Described determine that module includes:
Second judging unit, the Bluetooth MAC address of the bluetooth equipment searched described in judge and this locality
Whether the Bluetooth MAC address of equipment includes identical default MAC Address section;
Second determines unit, for when described in the Bluetooth MAC address of bluetooth equipment that searches and this locality set
When standby Bluetooth MAC address includes identical default MAC Address section, determine described in the bluetooth that searches
Equipment is described target device.
5. device as claimed in claim 4, it is characterised in that described processing module includes:
3rd judging unit, is used for judging whether described target device is multiple;
Processing unit, for when described target device is multiple, believes with bluetooth in the plurality of target device
Number target device that intensity is the strongest automatically carries out matching and set up Bluetooth communication and connects.
6. device as claimed in claim 5, it is characterised in that described device also includes:
Judge module, for judging whether include that described target sets in the bluetooth equipment matched with local device
Standby;
When the bluetooth equipment matched includes described target device, set up bluetooth with described target device and lead to
Letter connects;
When the bluetooth equipment matched does not includes described target device, perform the step of described search bluetooth equipment
Suddenly.
7. set up the device that bluetooth connects, including:
Processor;
For storing the memorizer of processor executable;
Wherein said processor is configured to:
Search bluetooth equipment;
Unpaired message according to the bluetooth equipment searched and the unpaired message of local device, in the indigo plant searched
Tooth equipment determines target device;
Automatically carry out matching and set up Bluetooth communication to be connected with described target device;
Described unpaired message includes: device name character string information or Bluetooth MAC address;
When described unpaired message includes device name character string information, the bluetooth equipment that described basis searches
Unpaired message and the unpaired message of local device, the bluetooth equipment searched determines the step of target device
Suddenly include:
The device name character string information of the bluetooth equipment searched described in judgement and the implementor name of local device
Claim whether character string information includes identical preset characters string;
Device name character string information and the device name of local device when the described bluetooth equipment searched
When character string information includes identical preset characters string, determine described in the bluetooth equipment that searches be described mesh
Marking device;
When described unpaired message includes Bluetooth MAC address, joining of the bluetooth equipment that described basis searches
Information is determined, and the step of target device includes:
The Bluetooth MAC address of the bluetooth equipment searched described in judgement and the bluetooth MAC ground of local device
Whether location includes identical default MAC Address section;
Bluetooth MAC address and the Bluetooth MAC address of local device when the described bluetooth equipment searched
During including identical default MAC Address section, determine described in the bluetooth equipment that searches be described target device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410274215.2A CN104038263B (en) | 2014-06-18 | 2014-06-18 | Method and device for establishing Bluetooth connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410274215.2A CN104038263B (en) | 2014-06-18 | 2014-06-18 | Method and device for establishing Bluetooth connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104038263A CN104038263A (en) | 2014-09-10 |
CN104038263B true CN104038263B (en) | 2017-01-11 |
Family
ID=51468872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410274215.2A Active CN104038263B (en) | 2014-06-18 | 2014-06-18 | Method and device for establishing Bluetooth connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104038263B (en) |
Families Citing this family (43)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105472771B (en) * | 2014-09-12 | 2020-06-19 | 北京小米移动软件有限公司 | Wireless connection method and device |
CN104333057A (en) * | 2014-10-17 | 2015-02-04 | 福建天晴数码有限公司 | Intelligent device, charging control device thereof, method thereof and system thereof |
CN104468768B (en) * | 2014-12-02 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | A kind of method and mobile terminal of mobile terminal accessing internet |
CN105787336A (en) * | 2014-12-23 | 2016-07-20 | 北京握奇智能科技有限公司 | Method and system for identifying Bluetooth key bound with mobile intelligent terminal |
CN105813167A (en) * | 2014-12-29 | 2016-07-27 | 北京握奇智能科技有限公司 | Connection control method and system of Bluetooth USB Key and terminal equipment |
CN104640059A (en) * | 2015-01-23 | 2015-05-20 | 小米科技有限责任公司 | Method, device and equipment for transmitting data |
CN104617991A (en) * | 2015-01-26 | 2015-05-13 | 北京深思数盾科技有限公司 | Bluetooth pairing method and Bluetooth communication system |
CN105992129A (en) * | 2015-04-17 | 2016-10-05 | 乐视移动智能信息技术(北京)有限公司 | Bluetooth matching method and device |
CN104797005A (en) * | 2015-04-29 | 2015-07-22 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and equipment |
CN104879885A (en) * | 2015-04-30 | 2015-09-02 | 广东美的制冷设备有限公司 | Method and system for controlling air conditioner |
CN104964383B (en) * | 2015-04-30 | 2018-04-27 | 广东美的制冷设备有限公司 | The matching method and device of air conditioner and wearable device |
EP3308188A4 (en) * | 2015-06-09 | 2019-01-23 | Nokia Technologies Oy | Causing performance of an active scan |
CN104949285A (en) * | 2015-06-30 | 2015-09-30 | 青岛海尔空调器有限总公司 | Intelligent control method and device for air conditioner |
CN104990212B (en) * | 2015-06-30 | 2018-01-02 | 广东乐心医疗电子股份有限公司 | Method and system for intelligently regulating and controlling air conditioner |
CN105100488A (en) * | 2015-07-31 | 2015-11-25 | 东莞安尔发智能科技股份有限公司 | Smart phone and control method for starting Bluetooth function of smart phone by shaking |
CN105407453A (en) * | 2015-11-23 | 2016-03-16 | 深圳还是威健康科技有限公司 | Bluetooth pairing method and device |
CN105516897A (en) * | 2015-12-07 | 2016-04-20 | 哈尔滨工业大学深圳研究生院 | Method and device for one-key establishment of communication connection between Bluetooth devices |
CN105611488A (en) * | 2015-12-31 | 2016-05-25 | 福建联迪商用设备有限公司 | Automatic Bluetooth connection method and master device, slave device and system |
CN105867155A (en) * | 2016-05-11 | 2016-08-17 | 深圳易联智能电气有限公司 | Intelligent lamp and Bluetooth control method and system thereof |
CN106341779A (en) * | 2016-08-31 | 2017-01-18 | 中国移动通信集团西藏有限公司 | Data pushing method and device |
KR20180042929A (en) * | 2016-10-19 | 2018-04-27 | 현대자동차주식회사 | Wireless Connection System and Method for Controlling thereof |
CN106921972B (en) * | 2017-03-13 | 2020-06-02 | 湖州贝格信息安全科技有限公司 | Intelligent terminal and safety shielding method thereof |
CN106961663A (en) * | 2017-04-24 | 2017-07-18 | 维沃移动通信有限公司 | A kind of Bluetooth connecting method and device |
CN107293003A (en) * | 2017-05-08 | 2017-10-24 | 上海共佰克智能科技有限公司 | A kind of bluetooth method for unlocking |
CN107360536B (en) * | 2017-06-02 | 2021-03-09 | 深圳市冠旭电子股份有限公司 | Method for controlling terminal device, terminal device and computer readable storage medium |
CN107659933B (en) * | 2017-08-08 | 2021-05-18 | 深圳市鼎晟开元科技有限公司 | Bidirectional pairing connection method for wireless equipment, wireless equipment and storage medium |
CN107659920A (en) * | 2017-09-06 | 2018-02-02 | 北京小鸟看看科技有限公司 | Bluetooth connecting method, bluetooth equipment, mobile terminal, wear display device system |
CN107948958A (en) * | 2017-11-16 | 2018-04-20 | 中科创达软件股份有限公司 | A kind of method, apparatus and central equipment that information is transmitted based on BLE |
CN108174459B (en) * | 2018-02-08 | 2020-12-22 | 深圳市沃特沃德股份有限公司 | Wireless audio device pairing method and wireless audio device |
CN108346274A (en) * | 2018-03-15 | 2018-07-31 | 深圳市道通智能航空技术有限公司 | Detect method, apparatus, remote controler, UAV system and the medium of unmanned plane |
CN110856150A (en) * | 2018-08-21 | 2020-02-28 | 上海擎感智能科技有限公司 | Vehicle, vehicle-mounted Bluetooth device thereof and automatic connection method of Bluetooth device |
CN109041031A (en) * | 2018-08-30 | 2018-12-18 | 北京轩辕联科技有限公司 | Bluetooth automatic matching method, apparatus, mobile unit and vehicle |
CN111194097A (en) * | 2018-11-14 | 2020-05-22 | 奇酷互联网络科技(深圳)有限公司 | Mobile terminal, Bluetooth connection method and storage device |
CN110011824B (en) * | 2019-01-21 | 2021-10-29 | 玺得有限公司 | Pairing method, storage medium and equipment for Bluetooth single-wire communication |
CN110062366A (en) * | 2019-04-18 | 2019-07-26 | 深圳创维数字技术有限公司 | Bluetooth pairing abnormality eliminating method, equipment, storage medium and device |
CN111970312A (en) | 2019-05-20 | 2020-11-20 | 北京小米移动软件有限公司 | File transmission method and device and computer readable storage medium |
CN110753334A (en) * | 2019-10-25 | 2020-02-04 | 华为技术有限公司 | Bluetooth communication method, device and equipment with Bluetooth communication function |
CN111107667B (en) * | 2019-12-31 | 2022-11-22 | 歌尔股份有限公司 | Bluetooth headset pairing method and device and readable storage medium |
CN111462746B (en) * | 2020-04-08 | 2023-08-29 | 歌尔科技有限公司 | TWS earphone-based control method, system, device and equipment |
CN114071436B (en) * | 2020-08-05 | 2024-03-15 | 广东小天才科技有限公司 | Method for quickly establishing Bluetooth connection, bluetooth device and system |
CN112449235A (en) * | 2020-11-16 | 2021-03-05 | 深圳创维-Rgb电子有限公司 | Pairing method, pairing device and television terminal |
CN113411794A (en) * | 2021-06-01 | 2021-09-17 | Oppo广东移动通信有限公司 | Connection method, Bluetooth headset, terminal and computer storage medium |
CN115970268A (en) * | 2023-01-16 | 2023-04-18 | 深圳市达实智控科技股份有限公司 | Multi-mode game controller and control method thereof |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2772128Y (en) * | 2004-09-17 | 2006-04-12 | 辅升电子科技(深圳)有限公司 | Blue-tooth hand-free mating device |
KR20110117906A (en) * | 2010-04-22 | 2011-10-28 | 삼성전자주식회사 | Method and system of bluetooth communication |
KR101806933B1 (en) * | 2011-03-03 | 2018-01-10 | 삼성전자 주식회사 | Short range wireless communication apparatus and method for connecting thereof |
CN102780513A (en) * | 2011-05-13 | 2012-11-14 | 希姆通信息技术(上海)有限公司 | Mobile terminal and method for realizing Bluetooth communication between mobile terminals |
KR101964077B1 (en) * | 2011-09-16 | 2019-04-02 | 삼성전자주식회사 | Apparatus and method for connecting bluetooth device in portable terminal |
CN102594987A (en) * | 2012-02-09 | 2012-07-18 | 深圳市中兴移动通信有限公司 | Method for realizing safe and quick Bluetooth pairing connection |
CN102857267A (en) * | 2012-07-19 | 2013-01-02 | 中颖电子股份有限公司 | Method and system for automatic pairing with Bluetooth human-computer interface device |
-
2014
- 2014-06-18 CN CN201410274215.2A patent/CN104038263B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104038263A (en) | 2014-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104038263B (en) | Method and device for establishing Bluetooth connection | |
CN104318741B (en) | Bluetooth equipment control method and device | |
CN104159218B (en) | Internetwork connection establishing method and device | |
CN104506443B (en) | Router sets interface display method and device | |
CN104464238B (en) | Method of controlling operation thereof and device between mobile terminal | |
CN104684106B (en) | The method and device of network connection | |
CN104869569A (en) | Network permission control method and apparatus of application program | |
CN104539735A (en) | Method and device of establishing friendly relationship | |
CN105246138A (en) | Control method and device of Internet-of-things device | |
CN106209800A (en) | Equipment Authority sharing method and apparatus | |
CN105975156A (en) | Application interface display method and device | |
CN104735670A (en) | Network access method and device | |
CN109644457A (en) | Resource allocation method and device | |
CN103873684A (en) | Application method and device of flashlight | |
CN104320830A (en) | Wireless device list display method and apparatus, wireless device and broadcasting method thereof | |
CN106096009A (en) | Method for generating message and device | |
CN106211033A (en) | Data sharing method, device and electronic equipment | |
CN105828294B (en) | Detection method and device | |
CN104837178A (en) | Network accessing method and device | |
CN104811904B (en) | Contact person's setting method and device | |
CN104869562A (en) | Information transmission method, device and system | |
CN104881342A (en) | Terminal testing method and device | |
CN104539497B (en) | Method for connecting network and device | |
CN105912202A (en) | Application sharing method and device | |
CN105188024A (en) | Method, apparatus and system for accessing network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |