CN104955166A - Bluetooth communication method and system - Google Patents

Bluetooth communication method and system Download PDF

Info

Publication number
CN104955166A
CN104955166A CN201410124343.9A CN201410124343A CN104955166A CN 104955166 A CN104955166 A CN 104955166A CN 201410124343 A CN201410124343 A CN 201410124343A CN 104955166 A CN104955166 A CN 104955166A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth equipment
mac address
equipment
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410124343.9A
Other languages
Chinese (zh)
Inventor
李栋
吴襄帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410124343.9A priority Critical patent/CN104955166A/en
Publication of CN104955166A publication Critical patent/CN104955166A/en
Pending legal-status Critical Current

Links

Classifications

    • H04B5/70
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The embodiment of the invention provides a bluetooth communication method and system. The method mainly comprises the steps that bluetooth auxiliary access equipment is respectively connected with first bluetooth equipment and second bluetooth equipment in a wired mode; the bluetooth auxiliary access equipment respectively acquires the MAC address of the first bluetooth equipment and the second bluetooth equipment, the MAC address of the first bluetooth equipment is transmitted to the second bluetooth equipment, and the MAC address of the second bluetooth equipment is transmitted to the first bluetooth equipment; and bluetooth connection is established between the first bluetooth equipment and the second bluetooth equipment by utilizing the MAC addresses of the first bluetooth equipment and the second bluetooth equipment, and bluetooth communication is performed. Various types of bluetooth equipment is enabled to simply, rapidly and conveniently perform mutual bluetooth connection and bluetooth communication through the bluetooth auxiliary access equipment without artificially inputting the secret key or the PIN code of the bluetooth equipment or verifying the secret key or the PIN code through slave-side bluetooth equipment so that bluetooth connection and communication process is relatively simple in operation and rapid and convenient.

Description

Bluetooth communication method and system
Technical field
The present invention relates to Bluetooth technology field, particularly relate to a kind of Bluetooth communication method and system.
Background technology
Blue tooth wireless technology is a kind of short range communication systems, is intended to replace the cable connecting portable equipment and/or stationary electronic devices.Bluetooth technology has following characteristics: support that user carries out wireless data exchange and file synchronization between much equipment, make resource-sharing within closely between mobile phone, portable computer, various portable communication device and various portable spare and accessory parts (such as earphone, glasses, wrist-watch etc.); Support the communication in non-visual range and be connected, and wireless connections can be carried out and communicate in movement; Support the wireless connections between wireless device to cable network, as long as be connected to the Bluetooth accessing point of local area network (LAN), the wireless data that just can realize cable LAN connects; Support circuit-switched and packet switching, support voice, data and video signal transmission.
Bluetooth has following radio-frequency receiving-transmitting characteristic.Bluetooth adopts time division duplex transmission scheme, uses an antenna to utilize the different time intervals to send and Received signal strength, and carry out a shared channel by constantly changing transmission direction in sending and receiving information, realize full duplex transmission; Common Bluetooth transmission power can be divided into 3 ranks: 100mW, 2.5mW and 1mW: according to transmitted power be 1mW, wireless communication distance is 10m, and message transmission rate reaches 1Mb/s; According to new bluetooth 2.0 standard, transmitted power is 100mW, and the communication distance of bluetooth can be made to reach 100m, and message transmission rate also reaches 10Mb/s.In addition, bluetooth standard has also done detailed regulation, to ensure the safety of transfer of data to the transmitting-receiving parasitic radiation of process, radio frequency tolerance limit, interference and Out-of-band rejection etc.
When carrying out Bluetooth communication between every a pair bluetooth equipment, must one be leading role's look, another is from role, and the calling procedure of a kind of Bluetooth communication of the prior art mainly comprises: main side bluetooth equipment makes a call, first search, being in around finding out can by the bluetooth equipment searched.Main side bluetooth equipment finds after end bluetooth equipment, and from hold bluetooth equipment to match, now need to input the key from end bluetooth equipment or PIN code, from holding bluetooth equipment to verify this key or PIN code, after being verified, pairing completes.Can record the trust information of main side equipment from end bluetooth equipment, now main side can make a call to from end equipment, and the equipment matched, when calling out next time, no longer needs again to match.The equipment matched, also can initiate link setup request from end bluetooth equipment.
The shortcoming of the calling procedure of above-mentioned a kind of Bluetooth communication of the prior art is: need main side bluetooth equipment input from key or the PIN code of holding bluetooth equipment, need to verify this key or PIN code from end bluetooth equipment, operate more loaded down with trivial details, quick and easy not.
Summary of the invention
The embodiment provides a kind of Bluetooth communication method and system, to realize carrying out Bluetooth communication easily between bluetooth equipment.
The invention provides following scheme:
A kind of Bluetooth communication method, comprising:
Bluetooth is assisted access device respectively with the first bluetooth equipment and the second bluetooth equipment wired connection;
Described bluetooth assists access device to obtain the MAC address of described first bluetooth equipment and the second bluetooth equipment respectively, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment;
Utilize the MAC Address of described first bluetooth equipment and the second bluetooth equipment, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
Present invention also offers: a kind of Bluetooth communication system, comprising: bluetooth assists access device, the first bluetooth equipment and the second bluetooth equipment;
Described bluetooth assists access device, for respectively with the first bluetooth equipment and the second bluetooth equipment wired connection, obtain the MAC Address of described first bluetooth equipment and the second bluetooth equipment respectively, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment;
The first described bluetooth equipment, the second bluetooth equipment, for utilizing the MAC Address of described first bluetooth equipment and the second bluetooth equipment, setting up bluetooth and connecting, and carrying out Bluetooth communication between described first bluetooth equipment and the second bluetooth equipment.
The technical scheme provided as can be seen from the embodiment of the invention described above, the embodiment of the present invention assists access device obtain the MAC Address of bluetooth equipment and be transferred to other bluetooth equipment by bluetooth, the MAC Address of other bluetooth equipment received is stored in and allows in bluetooth link address table (white list) by bluetooth equipment, thus achieve and assist access device simple through bluetooth, fast, various bluetooth equipment is allowed to carry out bluetooth connection mutually easily, Bluetooth communication, and need through the key of artificial input bluetooth equipment or PIN code, do not need to verify from end bluetooth equipment this key or PIN code yet, bluetooth connects and communication process operates fairly simple, and it is quick, convenient.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process chart of a kind of Bluetooth communication method that Fig. 1 provides for the embodiment of the present invention one;
The process chart of a kind of Bluetooth communication method that Fig. 2 provides for the embodiment of the present invention two;
The specific implementation structure chart of a kind of Bluetooth communication system that Fig. 3 provides for the embodiment of the present invention three, in figure, in figure, bluetooth assists access device 31, first bluetooth equipment 32 and the second bluetooth equipment 33.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
It should be noted that, in the middle of specification and claim, employ some vocabulary to censure specific components.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " or " comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in acceptable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.Specification subsequent descriptions is for implementing better embodiment of the present invention, and right described description is to illustrate for the purpose of rule of the present invention, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing for several specific embodiment, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment one
The handling process that this embodiment offers a kind of Bluetooth communication method as shown in Figure 1, comprises following treatment step:
Step S110, bluetooth assisted access device respectively with the first bluetooth equipment and the second bluetooth equipment wired connection.
Assist in access device in bluetooth and multiple interface is set, the unique corresponding bluetooth equipment of each interface, described bluetooth assists access device to utilize wireline cable to connect described first bluetooth equipment and the second bluetooth equipment by described interface, assist in access device in bluetooth and also memory cell is set, the MAC(medium education of each bluetooth equipment of association store in this memory cell, Medium Access Control) corresponding relation between address and device identification.
Step S120, described bluetooth assist access device to obtain the MAC Address of described first bluetooth equipment and the second bluetooth equipment respectively, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment.
Described bluetooth assists access device to utilize application program to construct address read requests, utilize API(Application Programming Interface, application programming interface) send described address reading order to described first bluetooth equipment and the second bluetooth equipment, read from the address that described first bluetooth equipment returns response and obtain the MAC Address that described first bluetooth equipment carried in response is read in described address, read from the address that described second bluetooth equipment returns response and obtain the MAC Address that described second bluetooth equipment carried in response is read in described address.
Described bluetooth assists access device by the address information table in the mark association store of the MAC Address of described first bluetooth equipment and the second bluetooth equipment and corresponding bluetooth equipment memory cell therein.
Described bluetooth assists access device directly to utilize wired connection that the MAC Address of described first bluetooth equipment stored in described address information table is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment, the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment, the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment,
Or;
Described bluetooth assist access device receive second bluetooth equipment send carry the address acquisition request of the device identification of described first bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described first bluetooth equipment, this MAC Address is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the second bluetooth equipment, obtain the MAC Address of described second bluetooth equipment, this MAC Address is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment;
Or;
Described bluetooth assist access device receive first bluetooth equipment send carry the address acquisition request of the device identification of described second bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described second bluetooth equipment, this MAC Address is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the first bluetooth equipment, obtain the MAC Address of described first bluetooth equipment, this MAC Address is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment.
Step S130, utilize the MAC Address of described first bluetooth equipment and the second bluetooth equipment, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
When described first bluetooth equipment needs to initiate the Bluetooth communication between described second bluetooth equipment, described first bluetooth equipment searches described second bluetooth equipment, the Bluetooth connection request carrying the MAC Address of described first bluetooth equipment is sent to described second bluetooth equipment, described second bluetooth equipment obtains the MAC Address of described first bluetooth equipment carried in described Bluetooth connection request, verifies whether the MAC Address of described first bluetooth equipment is included in the permission bluetooth link address table of oneself.
Described second bluetooth equipment is included in after in the permission bluetooth link address table of oneself in the MAC Address of described first bluetooth equipment of checking, the bluetooth connection response of carrying the MAC Address of described second bluetooth equipment is sent to described first bluetooth equipment, described first bluetooth equipment obtains in described bluetooth connection response the MAC Address of described second bluetooth equipment carried, verify whether the MAC Address of described second bluetooth equipment is included in the permission bluetooth link address table of oneself, if, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
Embodiment two
The handling process that this embodiment offers a kind of Bluetooth communication method as shown in Figure 2, comprises following treatment step:
Step S210, bluetooth assisted access device respectively with multiple bluetooth equipment wired connection.
Bluetooth is the radiotechnics of a kind of support equipment short haul connection (in general 10m).Wireless messages exchange can be carried out comprising between numerous equipment such as mobile phone, PDA, wireless headset, notebook computer, related peripherals." bluetooth " technology of utilization, can simplify the communication between mobile communication terminal device effectively, also can communication successfully between simplified apparatus and internet Internet, thus transfer of data becomes efficient more rapidly, is radio communication widening road.Bluetooth adopts distributed network structure and fast frequency hopping and short packet technology, supports point-to-point and point-to-multipoint delivery, is operated in the i.e. industry of 2.4GHzISM(of global general-use, science, medical science) frequency range.Its data rate is 1Mbps.Time division duplex transmission scheme is adopted to realize full duplex transmission.
Assist in access device in bluetooth and multiple interface is set, the unique corresponding bluetooth equipment of each interface, described bluetooth assists access device to utilize wireline cable to connect the first bluetooth equipment and the second bluetooth equipment by described interface, and the 3rd bluetooth equipment, the 4th bluetooth equipment etc.Above-mentioned interface can be USB(Universal Serial Bus, USB) interface or micro usb interface or earpiece holes etc.
Assist in access device in bluetooth and also memory cell is set, arrange and management address information table in this memory cell, the MAC(medium education of each bluetooth equipment of association store in this address information table, Medium Access Control) corresponding relation between address and device identification.
Above-mentioned bluetooth assists access device to be intelligent terminal, and above-mentioned bluetooth equipment can be PC(personal computer, personal computer) machine, mobile phone, panel computer, portable computer, game machine, earphone, music player etc.
Step S220, described bluetooth assist access device to obtain the MAC Address with each bluetooth equipment of its wired connection respectively.
API(Application Programming Interface, application programming interface) be some predefined functions, object is to provide application program and the developer ability to access one group of routine based on certain software or hardware, and without the need to accessing source code, or understand the details of internal work mechanism.
Described bluetooth assists access device to utilize application program to construct address read requests, utilizes API to send described address reading order to each bluetooth equipment with its wired connection.
Exemplary, above-mentioned bluetooth assists access device to send described address reading order to connected first bluetooth equipment, the second bluetooth equipment and the 3rd bluetooth equipment, receives the address reading response that above-mentioned first bluetooth equipment, the second bluetooth equipment and the 3rd bluetooth equipment return respectively.
Then, above-mentioned bluetooth assists access device to read from the address that described first bluetooth equipment returns the MAC Address obtaining described first bluetooth equipment response, read from the address that described second bluetooth equipment returns the MAC Address obtaining described second bluetooth equipment response, read from the address that described 3rd bluetooth equipment returns the MAC Address obtaining described 3rd bluetooth equipment response.
Described bluetooth assists access device by the address information table in the mark association store of described first bluetooth equipment, the second bluetooth equipment and the MAC Address of the 3rd bluetooth equipment and the bluetooth equipment of correspondence memory cell therein.
Exemplary, the code obtaining the mac address information of wireless blue tooth in a kind of Android operation system is as follows:
Step S230, bluetooth assist access device the MAC Address of certain bluetooth equipment is transferred to all other bluetooth equipment or to the MAC Address needing two bluetooth equipments carrying out Bluetooth communication to transmit mutually the other side.
Bluetooth assists access device to give tacit consent to the MAC Address of certain bluetooth equipment stored in address information table to be transferred to other bluetooth equipments all.
Exemplary, when above-mentioned bluetooth assists access device to connect the first bluetooth equipment, the second bluetooth equipment and the 3rd bluetooth equipment, described bluetooth assists access device directly to utilize wired connection that the MAC Address of described first bluetooth equipment stored in described address information table is transferred to described second bluetooth equipment, the 3rd bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, the 3rd bluetooth equipment, the MAC Address of described 3rd bluetooth equipment is transferred to described first bluetooth equipment, the second bluetooth equipment.
Or;
Bluetooth assists access device can according to the address acquisition request received, optionally to the MAC Address needing two bluetooth equipments carrying out Bluetooth communication to transmit mutually the other side.Exemplary, when the second bluetooth equipment needs to carry out Bluetooth communication to the first bluetooth equipment, after second bluetooth equipment assists access device transmission to carry the address acquisition request of the device identification of described first bluetooth equipment to bluetooth, after described bluetooth assists access device to receive address above mentioned acquisition request, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described first bluetooth equipment, this MAC Address is transferred to described second bluetooth equipment.Described bluetooth assists access device also to inquire about described address information table according to the device identification of the second bluetooth equipment, obtains the MAC Address of described second bluetooth equipment, and this MAC Address is transferred to described first bluetooth equipment.
The MAC Address of other bluetooth equipments that bluetooth assists access device to send over by step S240, each bluetooth equipment is stored in the permission bluetooth link address table of oneself.
Arrange in bluetooth equipment and allow bluetooth link address table, storing in this permission bluetooth link address table does not need Bluetooth pairing, allows directly and the MAC Address of the bluetooth equipment of this equipment Bluetooth communication.
After each bluetooth equipment receives the MAC Address of other bluetooth equipments that bluetooth assists access device to send over, the MAC Address of other bluetooth equipment is stored in the permission bluetooth link address table of oneself.
Such as, the MAC Address of the first bluetooth equipment that bluetooth assists access device to send over by described second bluetooth equipment is stored in the permission bluetooth link address table of oneself, and the MAC Address of the second bluetooth equipment that bluetooth assists access device to send over by described first bluetooth equipment is stored in the permission bluetooth link address table of oneself.
Step S250, between each bluetooth equipment that have exchanged MAC Address, set up bluetooth connect, and carry out Bluetooth communication.
When described first bluetooth equipment needs to initiate the Bluetooth communication between described second bluetooth equipment, described first bluetooth equipment searches described second bluetooth equipment, the Bluetooth connection request carrying the MAC Address of described first bluetooth equipment is sent to described second bluetooth equipment, described second bluetooth equipment obtains the MAC Address of described first bluetooth equipment carried in described Bluetooth connection request, verify whether the MAC Address of described first bluetooth equipment is included in the permission bluetooth link address table of oneself, if so, then following processing procedure is carried out; Otherwise flow process terminates.
Described second bluetooth equipment is included in after in the permission bluetooth link address table of oneself in the MAC Address of described first bluetooth equipment of checking, the bluetooth connection response of carrying the MAC Address of described second bluetooth equipment is sent to described first bluetooth equipment, described first bluetooth equipment obtains in described bluetooth connection response the MAC Address of described second bluetooth equipment carried, verify whether the MAC Address of described second bluetooth equipment is included in the permission bluetooth link address table of oneself, if, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication, otherwise flow process terminates.
Bluetooth is assisted on access device can a knob, and the MAC Address of namely carrying out above-mentioned bluetooth equipment after pressing the button exchanges, the process of Bluetooth communication.
Embodiment three
This embodiment offers a kind of Bluetooth communication system, its specific implementation structure as shown in Figure 3, specifically can comprise following module: bluetooth assists access device 31, first bluetooth equipment 32 and the second bluetooth equipment 33;
Described bluetooth assists access device 31, for respectively with the first bluetooth equipment and the second bluetooth equipment wired connection, obtain the MAC Address of described first bluetooth equipment and the second bluetooth equipment respectively, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment;
The first described bluetooth equipment 32, second bluetooth equipment 33, for utilizing the MAC Address of described first bluetooth equipment and the second bluetooth equipment, setting up bluetooth and connecting, and carrying out Bluetooth communication between described first bluetooth equipment and the second bluetooth equipment.
Further, described bluetooth assists access device 31, for arranging multiple interface, the unique corresponding bluetooth equipment of each interface, wireline cable is utilized to connect described first bluetooth equipment and the second bluetooth equipment by described interface, assist in access device in bluetooth and also memory cell is set, the corresponding relation in this memory cell between the MAC Address of each bluetooth equipment of association store and device identification.
Further, described bluetooth assists access device 31, address read requests is constructed specifically for utilizing application program, application programming interface API is utilized to send described address reading order to described first bluetooth equipment and the second bluetooth equipment, read from the address that described first bluetooth equipment returns the MAC Address obtaining described first bluetooth equipment response, read from the address that described second bluetooth equipment returns the MAC Address obtaining described second bluetooth equipment response;
By in the address information table in the MAC Address of described first bluetooth equipment and the second bluetooth equipment and corresponding device identification association store memory cell therein.
Further, described bluetooth assists access device 31, specifically for directly utilizing wired connection, the MAC Address of described first bluetooth equipment stored in described address information table is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment;
Or;
Receive second bluetooth equipment send carry the address acquisition request of the device identification of described first bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described first bluetooth equipment, this MAC Address is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the second bluetooth equipment, obtain the MAC Address of described second bluetooth equipment, this MAC Address is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment;
Or;
Receive first bluetooth equipment send carry the address acquisition request of the device identification of described second bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described second bluetooth equipment, this MAC Address is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the first bluetooth equipment, obtain the MAC Address of described first bluetooth equipment, this MAC Address is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment.
Further, the first described bluetooth equipment 32, specifically for when described first bluetooth equipment needs to initiate the Bluetooth communication between described second bluetooth equipment, search described second bluetooth equipment, send to described second bluetooth equipment the Bluetooth connection request carrying the MAC Address of described first bluetooth equipment;
The second described bluetooth equipment 33, specifically for obtaining the MAC Address of described first bluetooth equipment carried in described Bluetooth connection request, verify whether the MAC Address of described first bluetooth equipment is included in the permission bluetooth link address table of oneself, be included in after in the permission bluetooth link address table of oneself in the MAC Address of described first bluetooth equipment of checking, send the bluetooth connection response of carrying the MAC Address of described second bluetooth equipment to described first bluetooth equipment;
The first described bluetooth equipment 32, specifically for obtaining in described bluetooth connection response the MAC Address of described second bluetooth equipment carried, verify whether the MAC Address of described second bluetooth equipment is included in the permission bluetooth link address table of oneself, if, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
Carry out the detailed process of Bluetooth communication by the system of the embodiment of the present invention and preceding method embodiment similar, repeat no more herein.
In sum, the embodiment of the present invention assists access device obtain the MAC Address of bluetooth equipment and be transferred to other bluetooth equipment by bluetooth, the MAC Address of other bluetooth equipment received is stored in and allows in bluetooth link address table (white list) by bluetooth equipment, thus achieve and assist access device simple through bluetooth, fast, various bluetooth equipment is allowed to carry out bluetooth connection mutually easily, Bluetooth communication, and need through the key of artificial input bluetooth equipment or PIN code, do not need to verify from end bluetooth equipment this key or PIN code yet, bluetooth connects and communication process operates fairly simple, and it is quick, convenient.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. a Bluetooth communication method, comprising:
Bluetooth is assisted access device respectively with the first bluetooth equipment and the second bluetooth equipment wired connection;
Described bluetooth assists access device to obtain the MAC address of described first bluetooth equipment and the second bluetooth equipment respectively, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment;
Utilize the MAC Address of described first bluetooth equipment and the second bluetooth equipment, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
2. Bluetooth communication method according to claim 1, is characterized in that, described bluetooth is assisted access device respectively with the first bluetooth equipment and the second bluetooth equipment wired connection, comprising:
Assist in access device in bluetooth and multiple interface is set, the unique corresponding bluetooth equipment of each interface, described bluetooth assists access device to utilize wireline cable to connect described first bluetooth equipment and the second bluetooth equipment by described interface, assist in access device in bluetooth and also memory cell is set, the corresponding relation in this memory cell between the MAC Address of each bluetooth equipment of association store and device identification.
3. Bluetooth communication method according to claim 1, is characterized in that, described bluetooth assists access device to obtain the MAC Address of described first bluetooth equipment and the second bluetooth equipment respectively, comprising:
Described bluetooth assists access device to construct address read requests, described address reading order is sent to described first bluetooth equipment and the second bluetooth equipment, read from the address that described first bluetooth equipment returns the MAC Address obtaining described first bluetooth equipment response, read from the address that described second bluetooth equipment returns the MAC Address obtaining described second bluetooth equipment response;
Described bluetooth assists access device by the address information table in the MAC Address of described first bluetooth equipment and the second bluetooth equipment and corresponding device identification association store memory cell therein.
4. Bluetooth communication method according to claim 3, is characterized in that, described is transferred to described second bluetooth equipment by the MAC Address of described first bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, comprises:
Described bluetooth assists access device directly to utilize wired connection that the MAC Address of described first bluetooth equipment stored in described address information table is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment;
Or;
Described bluetooth assist access device receive second bluetooth equipment send carry the address acquisition request of the device identification of described first bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described first bluetooth equipment, this MAC Address is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the second bluetooth equipment, obtain the MAC Address of described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment;
Or;
Described bluetooth assist access device receive first bluetooth equipment send carry the address acquisition request of the device identification of described second bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the first bluetooth equipment, obtain the MAC Address of described first bluetooth equipment, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment.
5. Bluetooth communication method according to claim 3, it is characterized in that, the described MAC Address utilizing described first bluetooth equipment and the second bluetooth equipment, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication, comprising:
When described first bluetooth equipment needs to initiate the Bluetooth communication between described second bluetooth equipment, described first bluetooth equipment searches described second bluetooth equipment, the Bluetooth connection request carrying the MAC Address of described first bluetooth equipment is sent to described second bluetooth equipment, described second bluetooth equipment obtains the MAC Address of described first bluetooth equipment carried in described Bluetooth connection request, verifies whether the MAC Address of described first bluetooth equipment is included in the permission bluetooth link address table of oneself;
Described second bluetooth equipment is included in after in the permission bluetooth link address table of oneself in the MAC Address of described first bluetooth equipment of checking, the bluetooth connection response of carrying the MAC Address of described second bluetooth equipment is sent to described first bluetooth equipment, described first bluetooth equipment obtains in described bluetooth connection response the MAC Address of described second bluetooth equipment carried, verify whether the MAC Address of described second bluetooth equipment is included in the permission bluetooth link address table of oneself, if, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
6. a Bluetooth communication system, comprising: bluetooth assists access device, the first bluetooth equipment and the second bluetooth equipment;
Described bluetooth assists access device, for respectively with the first bluetooth equipment and the second bluetooth equipment wired connection, obtain the MAC Address of described first bluetooth equipment and the second bluetooth equipment respectively, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment;
The first described bluetooth equipment, the second bluetooth equipment, for utilizing the MAC Address of described first bluetooth equipment and the second bluetooth equipment, setting up bluetooth and connecting, and carrying out Bluetooth communication between described first bluetooth equipment and the second bluetooth equipment.
7. Bluetooth communication system according to claim 6, is characterized in that:
Described bluetooth assists access device, for arranging multiple interface, the unique corresponding bluetooth equipment of each interface, wireline cable is utilized to connect described first bluetooth equipment and the second bluetooth equipment by described interface, assist in access device in bluetooth and also memory cell is set, the corresponding relation in this memory cell between the MAC Address of each bluetooth equipment of association store and device identification.
8. Bluetooth communication system according to claim 7, is characterized in that:
Described bluetooth assists access device, specifically for structure address read requests, described address reading order is sent to described first bluetooth equipment and the second bluetooth equipment, read from the address that described first bluetooth equipment returns the MAC Address obtaining described first bluetooth equipment response, read from the address that described second bluetooth equipment returns the MAC Address obtaining described second bluetooth equipment response;
By in the address information table in the MAC Address of described first bluetooth equipment and the second bluetooth equipment and corresponding device identification association store memory cell therein.
9. Bluetooth communication system according to claim 8, is characterized in that:
Described bluetooth assists access device, specifically for directly utilizing wired connection, the MAC Address of described first bluetooth equipment stored in described address information table is transferred to described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment;
Or;
Receive second bluetooth equipment send carry the address acquisition request of the device identification of described first bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described first bluetooth equipment, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the second bluetooth equipment, obtain the MAC Address of described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment;
Or;
Receive first bluetooth equipment send carry the address acquisition request of the device identification of described second bluetooth equipment after, described address information table is inquired about according to the device identification of carrying in described address acquisition request, obtain the MAC Address of described second bluetooth equipment, the MAC Address of described second bluetooth equipment is transferred to described first bluetooth equipment, and the MAC Address of described second bluetooth equipment is stored in the permission bluetooth link address table of oneself by described first bluetooth equipment; Described bluetooth assists access device also to inquire about described address information table according to the device identification of the first bluetooth equipment, obtain the MAC Address of described first bluetooth equipment, the MAC Address of described first bluetooth equipment is transferred to described second bluetooth equipment, and the MAC Address of described first bluetooth equipment is stored in the permission bluetooth link address table of oneself by described second bluetooth equipment.
10. Bluetooth communication system according to claim 9, is characterized in that:
The first described bluetooth equipment, specifically for when described first bluetooth equipment needs to initiate the Bluetooth communication between described second bluetooth equipment, search described second bluetooth equipment, send to described second bluetooth equipment the Bluetooth connection request carrying the MAC Address of described first bluetooth equipment;
The second described bluetooth equipment, specifically for obtaining the MAC Address of described first bluetooth equipment carried in described Bluetooth connection request, verify whether the MAC Address of described first bluetooth equipment is included in the permission bluetooth link address table of oneself, be included in after in the permission bluetooth link address table of oneself in the MAC Address of described first bluetooth equipment of checking, send the bluetooth connection response of carrying the MAC Address of described second bluetooth equipment to described first bluetooth equipment;
The first described bluetooth equipment, specifically for obtaining in described bluetooth connection response the MAC Address of described second bluetooth equipment carried, verify whether the MAC Address of described second bluetooth equipment is included in the permission bluetooth link address table of oneself, if, between described first bluetooth equipment and the second bluetooth equipment, set up bluetooth connect, and carry out Bluetooth communication.
CN201410124343.9A 2014-03-28 2014-03-28 Bluetooth communication method and system Pending CN104955166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410124343.9A CN104955166A (en) 2014-03-28 2014-03-28 Bluetooth communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410124343.9A CN104955166A (en) 2014-03-28 2014-03-28 Bluetooth communication method and system

Publications (1)

Publication Number Publication Date
CN104955166A true CN104955166A (en) 2015-09-30

Family

ID=54169417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410124343.9A Pending CN104955166A (en) 2014-03-28 2014-03-28 Bluetooth communication method and system

Country Status (1)

Country Link
CN (1) CN104955166A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209900A (en) * 2016-08-02 2016-12-07 成都荷码科技有限公司 A kind of method that smart lock is registered to repeater
CN106792473A (en) * 2016-12-30 2017-05-31 百度在线网络技术(北京)有限公司 Bluetooth connecting method and system, mobile terminal and mobile unit
CN106973359A (en) * 2017-03-07 2017-07-21 重庆西山科技股份有限公司 Quick method, device, wireless device and the communication system for setting up wireless connection
CN109005532A (en) * 2018-09-11 2018-12-14 北京华大智宝电子系统有限公司 A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices
CN109151790A (en) * 2018-10-25 2019-01-04 苏州格目软件技术有限公司 A kind of connection method of Bluetooth device and its system based on network security
CN110635901A (en) * 2019-09-11 2019-12-31 北京方研矩行科技有限公司 Local Bluetooth dynamic authentication method and system for Internet of things equipment
CN112422710A (en) * 2020-11-06 2021-02-26 歌尔科技有限公司 Address management method of Bluetooth headset, headset box, Bluetooth headset and system thereof
CN114189842A (en) * 2022-01-06 2022-03-15 深圳市杰科数码有限公司 Bluetooth connection method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572636A (en) * 2012-02-03 2012-07-11 杨晓东 Bluetooth system and bluetooth headset
CN103052050A (en) * 2011-10-12 2013-04-17 艾欧互联有限公司 Concentrator device and method for establishing online automatically through the concentrator

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052050A (en) * 2011-10-12 2013-04-17 艾欧互联有限公司 Concentrator device and method for establishing online automatically through the concentrator
CN102572636A (en) * 2012-02-03 2012-07-11 杨晓东 Bluetooth system and bluetooth headset

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209900B (en) * 2016-08-02 2019-11-05 成都荷码科技有限公司 A kind of method that smart lock is registered to repeater
CN106209900A (en) * 2016-08-02 2016-12-07 成都荷码科技有限公司 A kind of method that smart lock is registered to repeater
CN106792473A (en) * 2016-12-30 2017-05-31 百度在线网络技术(北京)有限公司 Bluetooth connecting method and system, mobile terminal and mobile unit
CN106792473B (en) * 2016-12-30 2020-11-20 百度在线网络技术(北京)有限公司 Bluetooth connection method and system, mobile terminal and vehicle-mounted equipment
CN106973359A (en) * 2017-03-07 2017-07-21 重庆西山科技股份有限公司 Quick method, device, wireless device and the communication system for setting up wireless connection
CN106973359B (en) * 2017-03-07 2020-10-09 重庆西山科技股份有限公司 Method and device for quickly establishing wireless connection, wireless equipment and communication system
CN109005532B (en) * 2018-09-11 2021-08-31 北京华大智宝电子系统有限公司 Bluetooth connection method, Bluetooth master device and Bluetooth slave device
CN109005532A (en) * 2018-09-11 2018-12-14 北京华大智宝电子系统有限公司 A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices
CN109151790A (en) * 2018-10-25 2019-01-04 苏州格目软件技术有限公司 A kind of connection method of Bluetooth device and its system based on network security
CN109151790B (en) * 2018-10-25 2021-11-26 深圳市信富达科技有限公司 Bluetooth device connection method and system based on network security
CN110635901A (en) * 2019-09-11 2019-12-31 北京方研矩行科技有限公司 Local Bluetooth dynamic authentication method and system for Internet of things equipment
CN110635901B (en) * 2019-09-11 2023-01-17 北京方研矩行科技有限公司 Local Bluetooth dynamic authentication method and system for Internet of things equipment
CN112422710A (en) * 2020-11-06 2021-02-26 歌尔科技有限公司 Address management method of Bluetooth headset, headset box, Bluetooth headset and system thereof
CN114189842A (en) * 2022-01-06 2022-03-15 深圳市杰科数码有限公司 Bluetooth connection method and system

Similar Documents

Publication Publication Date Title
CN104955166A (en) Bluetooth communication method and system
US10165613B2 (en) Control method for bluetooth communication and bluetooth low energy communication
US11129221B2 (en) Bluetooth connection method, device and smart terminal
KR100735382B1 (en) Security communication method and apparatus in bluetooth terminal
CN105744466B (en) A kind of connection method of Bluetooth device and bluetooth equipment
CN106792493B (en) Bluetooth device pairing method and device and Bluetooth device
US20100211685A1 (en) Pairing exchange
KR20070080797A (en) Bluetooth system and bluetooth bonding process method
CN102594987A (en) Method for realizing safe and quick Bluetooth pairing connection
US9438718B2 (en) Method for selecting and configuring wireless connections in an electronic device
CN101247610A (en) Method, equipment and system for managing multi-short distance wireless technical communication
CN103957593A (en) Wireless network accessing method, device and system
US9363841B2 (en) Telematics system capable of Wi-Fi direct P2P connection using near field communication
CN104767767A (en) Method, device and system for sharing Internet access data and network equipment
US9386613B2 (en) Wireless network system and connecting method thereof
CN105636161A (en) Wireless network access method and device, communication terminal and wireless network access point
CN102801800A (en) Method and system for performing resource sharing processing among plurality of wireless terminals
CN104469665A (en) Data processing method and user terminals
CN105813226A (en) Document transmission method and device
US7448074B2 (en) Method for using user data in a bluetooth device without user interface
CN103391527B (en) Implementation method, equipment and the system that in wireless access hotspot device, function is shared
CN104079325A (en) Method of sharing information and electronic equipment
CN104954048A (en) Bluetooth communication method and system
KR102308076B1 (en) Automatioc connection method between terminal and smartphone in bluetooth environment and computer security maintenance method using same
CN105142098A (en) Data sharing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150930