CN104507034B - Equipment connection method, device and terminal device - Google Patents
Equipment connection method, device and terminal device Download PDFInfo
- Publication number
- CN104507034B CN104507034B CN201410680748.0A CN201410680748A CN104507034B CN 104507034 B CN104507034 B CN 104507034B CN 201410680748 A CN201410680748 A CN 201410680748A CN 104507034 B CN104507034 B CN 104507034B
- Authority
- CN
- China
- Prior art keywords
- identification information
- bluetooth equipment
- equipment
- specified
- bluetooth
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/12—Detection or prevention of fraud
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/18—Management of setup rejection or failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Abstract
The disclosure is directed to a kind of equipment connection method, device and terminal devices, belong to wireless communication technology field.The method includes:Receive the connection request of the first bluetooth equipment transmission;The specified identification information of first bluetooth equipment is obtained, the identification information is stored in the service discovery protocol SDP databases of first bluetooth equipment;Judge whether the specified identification information is legal;When the specified identification information is legal, establishes and connect with first bluetooth equipment.Due to determining the equipment for allowing connection based on the specified identification information stored in SDP databases, so the privacy of this kind of authentication mechanism is preferably, it can prevent the equipment for carrying out malice harassing and wrecking to other people from establishing a connection to a certain extent, to can avoid other people malice harassing and wrecking, connection effect is preferable.
Description
Technical field
This disclosure relates to wireless communication technology field, more particularly to a kind of equipment connection method, device and terminal device.
Background technology
With the fast development of computer network and mobile phone telephony, the data and voice channel radio of a small range are developed
Letter technology becomes more and more urgent.Therefore a new radio network technique, i.e. Bluetooth technology are come into being.Bluetooth technology towards
Be equipment room small range connection, for the safety of data transmission between ensureing between bluetooth equipment, how between devices
Bluetooth connection is established, a critical issue is become.
In the related technology, bluetooth equipment when being attached, generally use two ways.First way, for non-nothing
Input is without output equipment, first by the modes such as passcode (identifying code), yes/no, pincode at the beginning of establishing bluetooth connection
Carry out safety certification;After safety certification, bluetooth connection is established.The second way, for, without output equipment, being established without input
At the beginning of bluetooth connection, pass through the advanced row safety certification of time mechanism.After safety certification, bluetooth connection is established.That is, defined
Bluetooth equipment is allowed to be attached in time;After more than the stipulated time, just bluetooth equipment is not allowed to be attached.
During realizing the disclosure, inventor has found that the relevant technologies have at least the following problems:
Since above two mode is when bluetooth equipment is authenticated, authentication mechanism is too simple, so to a certain degree
Upper bluetooth equipment can be established with the equipment of the overwhelming majority and be connected, so as to cause other people malice can not be avoided to harass, connection effect
It is poor.
Invention content
To overcome the problems in correlation technique, a kind of equipment connection method of disclosure offer, device and terminal device.
According to the first aspect of the embodiments of the present disclosure, a kind of equipment connection method is provided, the method includes:
Receive the connection request of the first bluetooth equipment transmission;
The specified identification information of first bluetooth equipment is obtained, the identification information is stored in described first
In SDP (Service Discovery Protocol, service discovery protocol) database of bluetooth equipment;
Judge whether the specified identification information is legal;
When the specified identification information is legal, establishes and connect with first bluetooth equipment.
Optionally, before the connection request for receiving the transmission of the first bluetooth equipment, the method further includes:
By specific protocol channel, the identification information that the second bluetooth equipment is sent is received;
The identification information is stored;
Wherein, second bluetooth equipment is first bluetooth equipment or other in addition to first bluetooth equipment
Bluetooth equipment.
Optionally, when second bluetooth equipment is other bluetooth equipments in addition to first bluetooth equipment, institute
The specified identification information for obtaining first bluetooth equipment is stated, including:
The specified identification information, the specified identity are obtained in the SDP databases of first bluetooth equipment
Identification information is obtained according to specified account from high in the clouds by first bluetooth equipment, and is stored in the SDP databases, described
Specified account is account associated with the specified identification information.
Optionally, the specified identification information for obtaining first bluetooth equipment, including:
The specified identification information, the specified identity are obtained in the SDP databases of first bluetooth equipment
Identification information passes through DIP agreements (Device Identification Profile, device identification by first bluetooth equipment
Configuration file) agreement is stored in the SDP databases.
Optionally, described to judge whether the specified identification information is legal, including:
Traversal lookup is carried out in the identification information of storage, judge the specified identification information whether with storage
Multiple identification informations in one match;
If the specified identification information and an identification information of storage match, judge described specified
Identification information is legal.
According to the second aspect of the embodiment of the present disclosure, a kind of equipment connecting device is provided, described device includes:
First receiving module, the connection request for receiving the transmission of the first bluetooth equipment;
Acquisition module, the specified identification information for obtaining first bluetooth equipment, the identification information
It is stored in the SDP databases of first bluetooth equipment;
Judgment module, for judging whether the specified identification information is legal;
Link block, for when the specified identification information is legal, establishing and connecting with first bluetooth equipment.
Optionally, described device further includes:
Second receiving module, for by specific protocol channel, receiving the identification information that the second bluetooth equipment is sent;
Memory module, for storing the identification information;
Wherein, second bluetooth equipment is first bluetooth equipment or other in addition to first bluetooth equipment
Bluetooth equipment.
Optionally, the acquisition module, for being in addition to first bluetooth equipment when second bluetooth equipment
When other bluetooth equipments, the specified identification information, the finger are obtained in the SDP databases of first bluetooth equipment
Determine identification information to be obtained from high in the clouds according to specified account by first bluetooth equipment, and is stored in the SDP databases
In, the specified account is account associated with the specified identification information.
Optionally, the acquisition module, for obtaining the specified body in the SDP databases of first bluetooth equipment
Part identification information, the specified identification information are stored in the SDP by first bluetooth equipment by equipment DIP agreements
In database.
Optionally, the judgment module judges the finger for carrying out traversal lookup in the identification information of storage
Determine whether identification information matches with one in multiple identification informations of storage;If the specified identity
Information and an identification information of storage match, then judge that the specified identification information is legal.
According to the third aspect of the embodiment of the present disclosure, a kind of terminal device is provided, the equipment includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:Receive the connection request of the first bluetooth equipment transmission;It is blue to obtain described first
The specified identification information of tooth equipment, the identification information are stored in the SDP databases of first bluetooth equipment;
Judge whether the specified identification information is legal;When the specified identification information is legal, with first bluetooth
Equipment establishes connection.
The technical scheme provided by this disclosed embodiment can include the following benefits:
After the connection request for receiving the transmission of the first bluetooth equipment, the SDP data for being stored in the first bluetooth equipment are obtained
Specified identification information in library, and judge to specify identification information whether legal;When specified identification information is legal
When, it establishes and connects with the first bluetooth equipment, due to being allowed to determine based on the specified identification information stored in SDP databases
The equipment of connection can prevent from carrying out malice harassing and wrecking to other people to a certain extent so the privacy of this kind of authentication mechanism is preferably
Equipment establish a connection, to can avoid other people malice harassing and wrecking, connection effect is preferable.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the implementation environment schematic diagram involved by a kind of equipment connection method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of equipment connection method shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of equipment connection method shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of equipment connecting device shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of terminal device shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Before explanation is explained in detail to the embodiment of the present disclosure, first the application scenarios of the embodiment of the present disclosure are done
It illustrates.
Implementation environment signal involved by the equipment connection method of embodiment of the present disclosure offer is provided referring to Fig. 1, Fig. 1
Figure.Wherein, main equipment (master) refers to the equipment for initiating bluetooth connection;It is referred to from equipment (slave) and receives bluetooth connection
Equipment.Main equipment and from equipment be terminal device bluetooth-capable.For example, bluetooth headset, Bluetooth audio device
(soundbar), smart mobile phone, tablet computer etc..Fig. 1 is only lifted by main equipment and for from equipment being smart mobile phone
Example explanation.Since any wireless communication technique all has possibility that is monitored and cracking, so bluetooth SIG (Special
Interest Group, special interest group) in order to ensure the safety of Bluetooth communication, it is also introduced in equipment connection procedure
The concept of safety certification.Since existing authentication mechanism is too simple, when being in discoverable mode from equipment, it is easy to by him
The malice of people is harassed.For this purpose, the embodiment of the present disclosure is based on SDP agreements (a kind of bluetooth standard protocol), a kind of new set is provided
Standby connection method, detailed process is referring to following embodiments.
Fig. 2 is a kind of flow chart of equipment connection method shown according to an exemplary embodiment, as shown in Fig. 2, this sets
Standby connection method is in terminal, including the following steps.
In step 201, the connection request that the first bluetooth equipment is sent is received.
In step 202, the specified identification information of the first bluetooth equipment is obtained, identification information is stored in first
In the SDP databases of bluetooth equipment.
In step 203, judge to specify identification information whether legal;When specified identification information is legal, hold
Row step 204;When specified identification information is illegal, process flow ends here.
In step 204, it when specified identification information is legal, establishes and connects with the first bluetooth equipment.
The method that the embodiment of the present disclosure provides obtains storage after the connection request for receiving the transmission of the first bluetooth equipment
Specified identification information in the SDP databases of the first bluetooth equipment, and judge to specify identification information whether legal;
It when specified identification information is legal, establishes and connects with the first bluetooth equipment, due to specified based on what is stored in SDP databases
The equipment that identification information allows connection to determine, so the privacy of this kind of authentication mechanism is preferably, it can be to a certain extent
Prevent the equipment for carrying out malice harassing and wrecking to other people from establishing a connection, to can avoid other people malice harassing and wrecking, connection effect compared with
It is good.
Optionally, before receiving the connection request that the first bluetooth equipment is sent, this method further includes:
By specific protocol channel, the identification information that the second bluetooth equipment is sent is received;
Identification information is stored;
Wherein, the second bluetooth equipment is the first bluetooth equipment or other bluetooth equipments in addition to the first bluetooth equipment.
Optionally, when the second bluetooth equipment is other bluetooth equipments in addition to the first bluetooth equipment, it is blue to obtain first
The specified identification information of tooth equipment, including:
It is obtained in the SDP databases of the first bluetooth equipment and specifies identification information, specify identification information by the
One bluetooth equipment is obtained according to specified account from high in the clouds, and is stored in SDP databases, specifies the account to be and specified identity
The associated account of information.
Optionally, the specified identification information of the first bluetooth equipment is obtained, including:
It is obtained in the SDP databases of the first bluetooth equipment and specifies identification information, specify identification information by the
One bluetooth equipment is stored in by equipment DIP agreements in SDP databases.
Optionally, judge to specify identification information whether legal, including:
Traversal lookup is carried out in the identification information of storage, judges to specify identification information whether more with storage
One in a identification information matches;
If specified identification information and an identification information of storage match, judge to specify identity
Information is legal.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
Fig. 3 is a kind of flow chart of equipment connection method shown according to an exemplary embodiment, as shown in figure 3, this sets
Standby connection method is in terminal, including the following steps.
In step 301, by specific protocol channel, the identification information that the second bluetooth equipment is sent is received, and will
Identification information is stored.
Wherein, specific protocol channel can be for the second bluetooth equipment and between equipment (executive agent in the embodiment of the present disclosure)
The proprietary protocol channel being voluntarily arranged, is used for transmission identification information.The embodiment of the present disclosure is to this without specifically limiting.The
Two bluetooth equipments may be either the first bluetooth equipment, that is, the equipment for initiating bluetooth connection;Can also be in addition to the first bluetooth equipment
Other bluetooth equipments are only used for transmission identification information.The embodiment of the present disclosure is to this equally without specifically limiting.First is blue
Tooth equipment can be bluetooth headset, Bluetooth audio device (soundbar), smart mobile phone, tablet computer, TV bluetooth-capable etc.
Deng.
In addition, identification information can be the relevant parameter information of the first bluetooth equipment.For example, the first bluetooth equipment
MAC (Medium Access Control, medium access control) address, company-information, brand message, type information etc..Body
Part identification information can also be the identity information of user associated with the first bluetooth equipment and the second bluetooth equipment.For example, user
UID (User Identifier, user identifier).The UID can be a cardinar number word string, can also be a pure alphabetic string or
The character string that one digital alphabet mixes, the embodiment of the present disclosure to the form of the type of identification information and UID not into
Row is specific to be limited.
It in the embodiments of the present disclosure, can should from equipment when storing the identification information that the second bluetooth equipment is sent
Identification information is stored in the storage mediums such as memory, flash memory, and the embodiment of the present disclosure is to the type of storage medium without tool
Body limits.
It should be noted that since the second equipment can also be other equipment in addition to the first bluetooth equipment, so the
Identification information is sent to after equipment by two bluetooth equipments, for the ease of timely in the follow-up connection procedure of the first bluetooth equipment
Ground obtains the identification information, and to be successfully connected bluetooth connection with from equipment, the method that the embodiment of the present disclosure provides also is wrapped
It includes the specified identification information of the first bluetooth equipment step associated with specified account.Wherein, specified account can be postal
Case account, the login username etc. of a certain application, the embodiment of the present disclosure is to specifying the form of account without specifically limiting.It is logical
Crossing the specified account can specify identity to be uploaded to high in the clouds this.In subsequent process, it is specified to obtain this in the first bluetooth equipment
When identification information, account can be specified to obtain the specified identification information from high in the clouds by this after networking.
In step 302, the connection request that the first bluetooth equipment is sent is received.
In the embodiments of the present disclosure, since the limited join domain of bluetooth is usually 10 meters, if so being located at the from equipment
Within 10 meters of the circumference of one bluetooth equipment and it is in discoverable mode, then after the first bluetooth equipment sends connection request, from setting
The standby connection request that can receive the transmission of the first bluetooth equipment.
Wherein, it can generally be provided with Bluetooth switch from the device.When Bluetooth switch is in open state, from equipment just from
In discoverable mode.It may include that device address, the connectivity request message etc. of the first bluetooth equipment, the disclosure are implemented in connection request
The content that example includes to connection request is without specifically limiting.
In step 303, the specified identification information of the first bluetooth equipment is obtained, which is stored in the
In the SDP databases of one bluetooth equipment.
Wherein, SDP is the basis of all user modes as the core protocol in Bluetooth protocol system.Just may be used by SDP
Get the facility information, information on services and service features of other side.SDP provides the method for finding effectively to service, and determines effective
The service features of service.Include a SDP database in each bluetooth equipment, include equipment in the SDP databases from
The available information on services of body information, equipment and service features.Data in the SDP databases can be by other equipment in the company of foundation
It is read at the beginning of connecing, and only there is readable attribute, the data in SDP databases can not modified or be write by other equipment
Enter data.Since SDP databases have above-mentioned attribute, so the method that the embodiment of the present disclosure provides stores identification information
In SDP databases.In this way, at the beginning of establishing connection, can be got from equipment by the SDP databases of the first bluetooth equipment
The specified identification information of first bluetooth equipment.
In the embodiments of the present disclosure, different with the device type from equipment according to the first bluetooth equipment, get the first indigo plant
The mode of the specified identification information of tooth equipment can be also slightly different, and detailed process is as follows:
First way, when the first bluetooth equipment and the second bluetooth equipment are the same equipment, in the first bluetooth equipment
SDP databases in obtain and specify identification information, which passes through DIP agreements by the first bluetooth equipment
It is stored in SDP databases.
For this kind of mode, typical case scene is the process that intelligent TV set establishes connection with soundbar.When
When soundbar is in discoverable mode, arbitrary equipment is not allowed to establish a connection, unless soundbar confirms that this sets
Standby is safe.Wherein, intelligent TV set is written to the SDP databases of itself using DIP agreements and specifies identification information
Specific implementation can refer to the prior art, no longer be repeated herein.It initiates the connection and asks to soundbar in intelligent TV set
After asking, soundbar asks to know the service type and service features of intelligent TV set, to need to access intelligent TV set
SDP databases.Since specified identification information is stored in SDP databases, so soundbar has just got intelligent electricity
Depending on the specified identification information of machine.In subsequent process, identification information can be specified to judge whether the equipment pacifies according to this
Entirely.
In addition, for for this kind of application scenarios, subsequently identification information is being specified to judge intelligent TV set according to this
It, can also be without the help of the identification information of soundbar itself storages when whether can connect.At this point, soundbar may only permit
Perhaps a certain brand, a certain model or the equipment of a certain producer establish connection.So when this specifies identification information for intelligence electricity
Depending on machine inherent parameters information when, also directly identification information can be specified to whether establishing connection and judging according to this.This
Sample, at the beginning of connection, intelligent TV set is just not necessarily to the specified identification information being sent to soundbar.That is, without holding
Row above-mentioned steps 301.
The second way, when the first bluetooth equipment is other equipment in addition to the second bluetooth equipment, in the first bluetooth
It is obtained in the SDP databases of equipment and specifies identification information, specify identification information by the first bluetooth equipment according to specified
Account is obtained from high in the clouds, and is stored in SDP databases, which is account associated with specified identification information
Number.
For this kind of mode, typical case scene is that user establishes connection by different intelligent mobile phone and soundbar
Process.When soundbar is in discoverable mode, arbitrary equipment is not allowed to establish a connection, unless soundbar confirms
This equipment is safe.At the beginning of establishing connection, user passes through smart mobile phone A (being equivalent to the second bluetooth equipment) and connects
Soundbar, and by a proprietary protocol channel, specified identification information (for example, UID) is had sent to soundbar.It
Afterwards, which (is equivalent to the first bluetooth equipment and initiates the connection request to soundbar by smart mobile phone B.Meanwhile smart mobile phone
B obtains the specified identification information after networking, by specified account from high in the clouds.Later, smart mobile phone B will be obtained from high in the clouds
To the specified identification information be stored in the SDP databases of itself.When the clothes of smart mobile phone B are known in soundbar requests
When service type and service features, the SDP databases for accessing smart mobile phone B are needed.Since this specifies identification information to be stored in
In the SDP databases of smart mobile phone B, so soundbar has just got the specified identification information.In subsequent process, just
Identification information can be specified to judge whether the equipment is safe according to this.Detailed deterministic process, referring to following step 304.
In step 304, judge to specify identification information whether legal;When specified identification information is legal, hold
Row step 305;When specified identification information is illegal, process flow ends here.
In the embodiments of the present disclosure, it from equipment after getting the specified identification information of the first bluetooth equipment, can adopt
Following manner is taken to judge whether the specified identification information is legal:
Traversal lookup is carried out in the identification information of storage, judges to specify identification information whether more with storage
One in a identification information matches;If an identification information phase of specified identification information and storage
Match, then judges to specify identification information legal.
Certainly, in addition to the mode that above-mentioned judgement specifies identification information whether legal, other judgment modes can be also taken,
The embodiment of the present disclosure is to this without specifically limiting.If specified identification information is legal, following step 305 is executed;Such as
Fruit specifies identification information illegal, then process flow ends here.
In step 305, it when specified identification information is legal, establishes and connects with the first bluetooth equipment.
In the embodiments of the present disclosure, after judging that the specified identification information of the first bluetooth equipment is legal from equipment, to
First bluetooth equipment sends connection response;And the first bluetooth equipment is receiving the connection response sent from equipment, equally to from
Equipment returns to a connection response.In this way, the first bluetooth equipment and from just establishing bluetooth connection between equipment.
The method that the embodiment of the present disclosure provides obtains storage after the connection request for receiving the transmission of the first bluetooth equipment
Specified identification information in the SDP databases of the first bluetooth equipment, and judge to specify identification information whether legal;
It when specified identification information is legal, establishes and connects with the first bluetooth equipment, due to specified based on what is stored in SDP databases
The equipment that identification information allows connection to determine, so the privacy of this kind of authentication mechanism is preferably, it can be to a certain extent
Prevent the equipment for carrying out malice harassing and wrecking to other people from establishing a connection, to can avoid other people malice harassing and wrecking, connection effect compared with
It is good.
Fig. 4 is a kind of block diagram of equipment connecting device shown according to an exemplary embodiment.With reference to Fig. 4, the device packet
Include the first receiving module 401, acquisition module 402, judgment module 403, link block 404.
Wherein, the first receiving module 401, the connection request for receiving the transmission of the first bluetooth equipment;Acquisition module 402 with
First receiving module 401 connects, and the specified identification information for obtaining the first bluetooth equipment, identification information is stored in
In the SDP databases of first bluetooth equipment;Judgment module 403 is connect with acquisition module 402, for judging specified identity letter
Whether breath is legal;Link block 404 is connect with judgment module 403, is used for when specified identification information is legal, with the first indigo plant
Tooth equipment establishes connection.
Optionally, which further includes:
Second receiving module, for by specific protocol channel, receiving the identification information that the second bluetooth equipment is sent;
Memory module, for storing identification information;
Wherein, the second bluetooth equipment is the first bluetooth equipment or other bluetooth equipments in addition to the first bluetooth equipment.
Optionally, acquisition module, for being other bluetooth equipments in addition to the first bluetooth equipment when the second bluetooth equipment
When, it is obtained in the SDP databases of the first bluetooth equipment and specifies identification information, specify identification information by the first bluetooth
Equipment is obtained according to specified account from high in the clouds, and is stored in SDP databases, specifies the account to be and specified identification information phase
Associated account.
Optionally, acquisition module specifies identification information for being obtained in the SDP databases of the first bluetooth equipment,
Specified identification information is stored in by equipment DIP agreements in SDP databases by the first bluetooth equipment.
Optionally, judgment module judges to specify identity mark for carrying out traversal lookup in the identification information of storage
Know whether information matches with one in multiple identification informations of storage;If specified identification information and storage
One identification information matches, then judges to specify identification information legal.
The device that the embodiment of the present disclosure provides obtains storage after the connection request for receiving the transmission of the first bluetooth equipment
Specified identification information in the SDP databases of the first bluetooth equipment, and judge to specify identification information whether legal;
It when specified identification information is legal, establishes and connects with the first bluetooth equipment, due to specified based on what is stored in SDP databases
The equipment that identification information allows connection to determine, so the privacy of this kind of authentication mechanism is preferably, it can be to a certain extent
Prevent the equipment for carrying out malice harassing and wrecking to other people from establishing a connection, to can avoid other people malice harassing and wrecking, connection effect compared with
It is good.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of equipment 500 for equipment connection shown according to an exemplary embodiment.For example, setting
Standby 500 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 5, equipment 500 may include following one or more components:Processing component 502, memory 504, power supply
Component 506, multimedia component 508, audio component 510, the interface 512 of I/O (Input/Output, input/output), sensor
Component 514 and communication component 516.
The integrated operation of 502 usual control device 500 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing component 502 may include that one or more processors 520 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just
Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate
Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in equipment 500.These data are shown
Example includes instruction for any application program or method that are operated in equipment 500, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as SRAM (Static Random Access Memory, static RAM), EEPROM
(Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable
Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM
(Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit
Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 506 provides electric power for the various assemblies of equipment 500.Power supply module 506 may include power management system
System, one or more power supplys and other generated with for equipment 500, management and the associated component of distribution electric power.
Multimedia component 508 is included in the screen of one output interface of offer between the equipment 500 and user.One
In a little embodiments, screen may include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch
Panel, touch panel).If screen includes touch panel, screen may be implemented as touch screen, from the user to receive
Input signal.Touch panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.Institute
The boundary of a touch or slide action can not only be sensed by stating touch sensor, but also be detected and the touch or slide phase
The duration and pressure of pass.In some embodiments, multimedia component 508 includes that a front camera and/or postposition are taken the photograph
As head.When equipment 500 is in operation mode, when such as screening-mode or video mode, front camera and/or rear camera can
With the multi-medium data outside reception.Each front camera and rear camera can be a fixed optical lens systems
Or there are focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a MIC
(Microphone, microphone), when equipment 500 is in operation mode, such as call model, logging mode and speech recognition mode
When, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 504
Or it is sent via communication component 516.In some embodiments, audio component 510 further includes a loud speaker, for exporting audio
Signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for equipment 500 is commented
Estimate.For example, sensor module 514 can detect the state that opens/closes of equipment 500, the relative positioning of component, such as component
For the display and keypad of equipment 500, sensor module 514 can be with the position of 500 1 components of detection device 500 or equipment
Set change, the existence or non-existence that user contacts with equipment 500, the temperature of 500 orientation of equipment or acceleration/deceleration and equipment 500
Variation.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact near
The presence of object.Sensor module 514 can also include optical sensor, such as CMOS (Complementary Metal Oxide
Semiconductor, complementary metal oxide) or CCD (Charge-coupled Device, charge coupled cell) image biography
Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between equipment 500 and other equipment.Equipment
500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 516 further includes that (Near Field Communication, near field are logical by NFC
Letter) module, to promote short range communication.For example, RFID (Radio Frequency can be based in NFC module
Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill
Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, equipment 500 can be by one or more ASIC (Application Specific
Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at digital signal
Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable
Logic Device, programmable logic device), FPGA) (Field Programmable Gate Array, field programmable gate
Array), controller, microcontroller, microprocessor or other electronic components realize, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of equipment 500 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory
Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit
Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of mobile terminal
When row so that mobile terminal is able to carry out a kind of equipment connection method, and method includes:
Receive the connection request of the first bluetooth equipment transmission;
The specified identification information of the first bluetooth equipment is obtained, identification information is stored in the first bluetooth equipment
In SDP databases;
Judge to specify identification information whether legal;
When specified identification information is legal, establishes and connect with the first bluetooth equipment.
Optionally, before receiving the connection request that the first bluetooth equipment is sent, this method further includes:
By specific protocol channel, the identification information that the second bluetooth equipment is sent is received;
Identification information is stored;
Wherein, the second bluetooth equipment is the first bluetooth equipment or other bluetooth equipments in addition to the first bluetooth equipment.
Optionally, when the second bluetooth equipment is other bluetooth equipments in addition to the first bluetooth equipment, it is blue to obtain first
The specified identification information of tooth equipment, including:
It is obtained in the SDP databases of the first bluetooth equipment and specifies identification information, specify identification information by the
One bluetooth equipment is obtained according to specified account from high in the clouds, and is stored in SDP databases, specifies the account to be and specified identity
The associated account of information.
Optionally, the specified identification information of the first bluetooth equipment is obtained, including:
It is obtained in the SDP databases of the first bluetooth equipment and specifies identification information, specify identification information by the
One bluetooth equipment is stored in by equipment DIP agreements in SDP databases.
Optionally, judge to specify identification information whether legal, including:
Traversal lookup is carried out in the identification information of storage, judges to specify identification information whether more with storage
One in a identification information matches;
If specified identification information and an identification information of storage match, judge to specify identity
Information is legal.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides is sent receiving the first bluetooth equipment
Connection request after, obtain and be stored in specified identification information in the SDP databases of the first bluetooth equipment, and judge specified
Whether identification information is legal;When specified identification information is legal, establishes and connect with the first bluetooth equipment, due to being based on
The equipment that the specified identification information stored in SDP databases allows connection to determine, so the secret of this kind of authentication mechanism
Property it is preferable, can prevent the equipment for carrying out malice harassing and wrecking to other people from establishing a connection to a certain extent, to can avoid other people
Malice harassing and wrecking, connection effect is preferable.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (7)
1. a kind of equipment connection method, which is characterized in that the method includes:
Receive the connection request of the first bluetooth equipment transmission;
The specified identification information of first bluetooth equipment is obtained, the identification information is stored in first bluetooth
In the service discovery protocol SDP databases of equipment;
Judge whether the specified identification information is legal;
When the specified identification information is legal, establishes and connect with first bluetooth equipment;
Wherein, the specified identification information for obtaining first bluetooth equipment, including:
Read the data of the SDP databases of first bluetooth equipment, and the number of the SDP databases in first bluetooth equipment
The specified identification information is obtained according to middle, the specified identification information passes through equipment mark by first bluetooth equipment
Know configuration file DIP agreements to be stored in the SDP databases;
Before the connection request for receiving the transmission of the first bluetooth equipment, the method further includes:
By specific protocol channel, the identification information that the second bluetooth equipment is sent is received;
The identification information is stored;
Wherein, second bluetooth equipment is first bluetooth equipment or other bluetooths in addition to first bluetooth equipment
Equipment.
2. according to the method described in claim 1, it is characterized in that, when second bluetooth equipment is except first bluetooth is set
When other bluetooth equipments except standby, the specified identification information for obtaining first bluetooth equipment, including:
The specified identification information, the specified identity are obtained in the SDP databases of first bluetooth equipment
Information is obtained according to specified account from high in the clouds by first bluetooth equipment, and is stored in the SDP databases, described specified
Account is account associated with the specified identification information.
3. according to the method described in claim 1, it is characterized in that, described judge whether the specified identification information closes
Method, including:
Traversal lookup is carried out in the identification information of storage, judges whether the specified identification information is more with storage
One in a identification information matches;
If the specified identification information and an identification information of storage match, the specified identity is judged
Identification information is legal.
4. a kind of equipment connecting device, which is characterized in that described device includes:
First receiving module, the connection request for receiving the transmission of the first bluetooth equipment;
Acquisition module, the specified identification information for obtaining first bluetooth equipment, the identification information storage
In the service discovery protocol SDP databases of first bluetooth equipment;
Judgment module, for judging whether the specified identification information is legal;
Link block, for when the specified identification information is legal, establishing and connecting with first bluetooth equipment;
Wherein, the acquisition module, the data of the SDP databases for reading first bluetooth equipment, and described first
The specified identification information is obtained in the data of the SDP databases of bluetooth equipment, the specified identification information is by institute
The first bluetooth equipment is stated to be stored in the SDP databases by device identification configuration file DIP agreements;
Described device further includes:
Second receiving module, for by specific protocol channel, receiving the identification information that the second bluetooth equipment is sent;
Memory module, for storing the identification information;
Wherein, second bluetooth equipment is first bluetooth equipment or other bluetooths in addition to first bluetooth equipment
Equipment.
5. device according to claim 4, which is characterized in that the acquisition module, for working as second bluetooth equipment
For other bluetooth equipments in addition to first bluetooth equipment when, obtained in the SDP databases of first bluetooth equipment
The specified identification information, the specified identification information is by first bluetooth equipment according to specified account from high in the clouds
It obtains, and is stored in the SDP databases, the specified account is account associated with the specified identification information
Number.
6. device according to claim 4, which is characterized in that the judgment module is believed for the identity in storage
Traversal lookup is carried out in breath, judge the specified identification information whether with one in multiple identification informations of storage
Match;If the specified identification information and an identification information of storage match, judge described specified
Identification information is legal.
7. a kind of terminal device, which is characterized in that the equipment includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:Receive the connection request of the first bluetooth equipment transmission;First bluetooth is obtained to set
Standby specified identification information, the identification information are stored in the service discovery protocol SDP of first bluetooth equipment
In database;Judge whether the specified identification information is legal;It is and described when the specified identification information is legal
First bluetooth equipment establishes connection;
Wherein, the specified identification information of first bluetooth equipment is obtained, including:
Read the data of the SDP databases of first bluetooth equipment, and the number of the SDP databases in first bluetooth equipment
The specified identification information is obtained according to middle, the specified identification information passes through equipment mark by first bluetooth equipment
Know configuration file DIP agreements to be stored in the SDP databases;
The processor is additionally configured to:
By specific protocol channel, the identification information that the second bluetooth equipment is sent is received;
The identification information is stored;
Wherein, second bluetooth equipment is first bluetooth equipment or other bluetooths in addition to first bluetooth equipment
Equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410680748.0A CN104507034B (en) | 2014-11-24 | 2014-11-24 | Equipment connection method, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410680748.0A CN104507034B (en) | 2014-11-24 | 2014-11-24 | Equipment connection method, device and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104507034A CN104507034A (en) | 2015-04-08 |
CN104507034B true CN104507034B (en) | 2018-09-18 |
Family
ID=52948736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410680748.0A Active CN104507034B (en) | 2014-11-24 | 2014-11-24 | Equipment connection method, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104507034B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105338469B (en) * | 2015-09-24 | 2018-11-13 | 深圳市冠旭电子股份有限公司 | A kind of method and system of equipment identities identification |
CN105376708B (en) * | 2015-10-09 | 2019-06-07 | Oppo广东移动通信有限公司 | A kind of connection method and system of bluetooth equipment selection target equipment |
WO2017115117A1 (en) * | 2015-12-31 | 2017-07-06 | Pismo Labs Technology Ltd. | Methods and systems to perform at least one action according to user's gesture and identity |
CN106211159B (en) * | 2016-07-29 | 2019-12-27 | 北京小米移动软件有限公司 | Bluetooth-based identity recognition method and device |
CN107770775A (en) * | 2017-10-30 | 2018-03-06 | 捷开通讯(深圳)有限公司 | Bluetooth connecting method, terminal and bluetooth equipment |
CN108668020B (en) * | 2018-04-24 | 2021-03-19 | Oppo广东移动通信有限公司 | Method and device for selecting Bluetooth equipment, electronic device and storage medium |
CN113691964B (en) * | 2020-05-19 | 2023-09-05 | 成都鼎桥通信技术有限公司 | Bluetooth device connection method, device and storage medium |
CN112383907B (en) * | 2020-11-10 | 2023-12-19 | 炬芯科技股份有限公司 | Bluetooth private protocol access method and system |
CN112565878A (en) * | 2020-12-07 | 2021-03-26 | 四川长虹电器股份有限公司 | Method for quickly inputting wireless password on television |
CN112866995B (en) * | 2020-12-28 | 2023-06-30 | 深圳酷派技术有限公司 | Connection method, device, electronic equipment and storage medium |
CN113727463B (en) * | 2021-10-15 | 2024-05-03 | Oppo广东移动通信有限公司 | Device connection method, device, electronic device and storage medium |
CN115002403A (en) * | 2022-04-28 | 2022-09-02 | 青岛海尔科技有限公司 | Method and apparatus for transmitting multimedia data, storage medium, and electronic apparatus |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1379343A (en) * | 2002-04-30 | 2002-11-13 | 北京信源咨讯信息技术有限公司 | Entrance guard method and system using blue tooth technique in wireless authentication and data transmitting/receiving |
CN1510934A (en) * | 2002-12-20 | 2004-07-07 | 北京邮电大学 | Blue tooth based Tianditong intellectual telephone system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2591155Y (en) * | 2002-04-30 | 2003-12-10 | 北京信源咨讯信息技术有限公司 | Entrance guard system for radio identification and data receiving & transmitting by blueteeth technique |
US8538333B2 (en) * | 2011-12-16 | 2013-09-17 | Arbitron Inc. | Media exposure linking utilizing bluetooth signal characteristics |
CN104010309B (en) * | 2014-05-19 | 2018-12-21 | 百度在线网络技术(北京)有限公司 | The method and terminal of connection are established between access point and terminal |
-
2014
- 2014-11-24 CN CN201410680748.0A patent/CN104507034B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1379343A (en) * | 2002-04-30 | 2002-11-13 | 北京信源咨讯信息技术有限公司 | Entrance guard method and system using blue tooth technique in wireless authentication and data transmitting/receiving |
CN1510934A (en) * | 2002-12-20 | 2004-07-07 | 北京邮电大学 | Blue tooth based Tianditong intellectual telephone system |
Also Published As
Publication number | Publication date |
---|---|
CN104507034A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104507034B (en) | Equipment connection method, device and terminal device | |
CN104038263B (en) | Method and device for establishing Bluetooth connection | |
CN104159226B (en) | Method for connecting network and device | |
EP2975821B1 (en) | Network connection method and apparatus | |
WO2017092417A1 (en) | Intelligent terminal equipment-based network access method and device | |
CN104765990B (en) | The setting method and device of intelligent device management account | |
EP3276910B1 (en) | Bluetooth-based identity recognition method and device | |
CN105468767B (en) | Card information acquisition methods and device | |
CN104506443B (en) | Router sets interface display method and device | |
CN104933351A (en) | Information security processing method and information security processing device | |
CN105656948A (en) | Account login method and device | |
CN105184561A (en) | Safety payment method and device | |
CN105357742A (en) | Accessing method, device and system for wireless local area network | |
CN105212821B (en) | Toilet seat method for heating and controlling and device | |
CN106097494A (en) | The method for unlocking of smart lock and device | |
CN105246138A (en) | Control method and device of Internet-of-things device | |
CN104954371A (en) | Equipment information display method and device | |
CN106506562B (en) | Method for connecting network, device and the smart machine of smart machine | |
CN105550568A (en) | Mobile terminal data protection method and apparatus | |
CN105744595A (en) | Method, device and system for accessing wireless local area network | |
CN107820300A (en) | Network search method and device | |
CN104159194A (en) | Terminal password activation method, terminal password activation device and terminal password activation equipment | |
CN106488450A (en) | Connect the method and device of wireless network | |
CN104869562A (en) | Information transmission method, device and system | |
CN105681261A (en) | Security authentication method and apparatus |
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 |