[go: up one dir, main page]

CN104954048B - Bluetooth communication method and system - Google Patents

Bluetooth communication method and system Download PDF

Info

Publication number
CN104954048B
CN104954048B CN201410123694.8A CN201410123694A CN104954048B CN 104954048 B CN104954048 B CN 104954048B CN 201410123694 A CN201410123694 A CN 201410123694A CN 104954048 B CN104954048 B CN 104954048B
Authority
CN
China
Prior art keywords
bluetooth
auxiliary access
mac address
access device
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.)
Expired - Fee Related
Application number
CN201410123694.8A
Other languages
Chinese (zh)
Other versions
CN104954048A (en
Inventor
李栋
吴襄帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology 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 CN201410123694.8A priority Critical patent/CN104954048B/en
Publication of CN104954048A publication Critical patent/CN104954048A/en
Application granted granted Critical
Publication of CN104954048B publication Critical patent/CN104954048B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供了一种蓝牙通信方法和系统。该方法主要包括:将第一蓝牙设备与第一蓝牙辅助接入设备有线连接,将第二蓝牙设备与第二蓝牙辅助接入设备与有线连接,所述第一蓝牙辅助接入设备获取所述第一蓝牙设备的MAC地址,通过第二蓝牙辅助接入设备传输给所述第二蓝牙设备;第二蓝牙辅助接入设备获取第二蓝牙设备的MAC地址,通过第一蓝牙辅助接入设备传输给第一蓝牙设备;利用第一蓝牙设备和第二蓝牙设备的MAC地址,在第一蓝牙设备和第二蓝牙设备之间建立蓝牙连接,并进行蓝牙通信。本发明实施例实现了透过蓝牙辅助接入设备简单、快捷、方便地让各种蓝牙设备互相进行蓝牙连接,蓝牙通信,而不需透过人工输入蓝牙设备的密钥或者PIN码。

Embodiments of the present invention provide a bluetooth communication method and system. The method mainly includes: connecting the first Bluetooth device to the first Bluetooth auxiliary access device by wire, connecting the second Bluetooth device to the second Bluetooth auxiliary access device by wire, and the first Bluetooth auxiliary access device obtains the The MAC address of the first Bluetooth device is transmitted to the second Bluetooth device through the second Bluetooth auxiliary access device; the second Bluetooth auxiliary access device obtains the MAC address of the second Bluetooth device, and transmits it through the first Bluetooth auxiliary access device To the first Bluetooth device; using the MAC addresses of the first Bluetooth device and the second Bluetooth device, establishing a Bluetooth connection between the first Bluetooth device and the second Bluetooth device, and performing Bluetooth communication. The embodiment of the present invention realizes simple, quick and convenient Bluetooth connection and Bluetooth communication between various Bluetooth devices through the Bluetooth auxiliary access device, without manually inputting the key or PIN code of the Bluetooth device.

Description

Bluetooth communication method and system
Technical field
The present invention relates to Bluetooth technology field more particularly to a kind of Bluetooth communication method and systems.
Background technique
Blue tooth wireless technology is a kind of short range communication systems, it is intended to connection portable equipment and/or fixed electronics be replaced to set Standby cable.Bluetooth technology has following characteristics: support user to carry out wireless data exchange and file synchronization between many equipment, Make mobile phone, portable computer, various portable communication devices and various portable spare and accessory parts (such as earphone, glasses, Wrist-watch etc.) between the resource-sharing in short distance;It supports the communication and connection in non-visual range, and nothing can be carried out on the move Line connection and communication;Support wireless device to the wireless connection between cable network, as long as being connected to the bluetooth access of local area network Point, so that it may realize the wireless data connection of cable LAN;Support circuit-switched and packet switch, support voice, data and Video signal transmission.
Bluetooth has radio-frequency receiving-transmitting characteristic below.Bluetooth uses time division duplex transmission scheme, is utilized using an antenna Different time intervals send and receive signal, and share one by constantly changing transmission direction in sending and receiving information A channel realizes full duplex transmission;Common Bluetooth transmission power can be divided into 3 ranks: 100mW, 2.5mW and 1mW: according to Transmission power be 1mW, wireless communication distance 10m, message transmission rate reach 1Mb/s;According to new 2.0 standard of bluetooth, Transmission power is 100mW, and the communication distance of bluetooth can be made up to 100m, and message transmission rate also reaches 10Mb/s.In addition to this, blue Tooth standard has also done detailed regulation to parasitic radiation, radio frequency tolerance, interference and the Out-of-band rejection etc. of transmitting-receiving process, to guarantee number According to the safety of transmission.
When carrying out Bluetooth communication between every a pair of bluetooth equipment, it is necessary to which one is primary role, and another is from role, existing skill The calling procedure of one of art Bluetooth communication specifically includes that main side bluetooth equipment initiates calling, is to look for first, finds out surrounding In the bluetooth equipment that can be searched.Main side bluetooth equipment is found after the bluetooth equipment of end, is matched with from end bluetooth equipment, Need to input at this time from end bluetooth equipment key perhaps PIN code from end bluetooth equipment the key or PIN code are tested Card, after being verified, pairing is completed.From end, bluetooth equipment will record the trust information of main side equipment, at this time main side can to from End equipment initiates calling, and the equipment matched is in calling next time, it is no longer necessary to match again.The equipment matched, it is blue from end Tooth equipment can also initiate link setup request.
A kind of the shortcomings that calling procedure of above-mentioned Bluetooth communication in the prior art are as follows: need the input of main side bluetooth equipment from The key of end bluetooth equipment perhaps verify the key or PIN code from end bluetooth equipment needs by PIN code, and operation is compared It is cumbersome, it is not fast enough, conveniently.
Summary of the invention
The embodiment provides a kind of Bluetooth communication method and system, with realize between bluetooth equipment easily into Row Bluetooth communication.
The present invention provides following schemes:
A kind of Bluetooth communication method, comprising:
First bluetooth equipment and the first bluetooth are assisted into access device wired connection, by the second bluetooth equipment and the second bluetooth Access device and wired connection are assisted, between the first bluetooth auxiliary access device and second bluetooth auxiliary access device It is connected by Radio Link;
The first bluetooth auxiliary access device obtains the MAC address of first bluetooth equipment, will The MAC Address of first bluetooth equipment is transferred to the second bluetooth auxiliary access device, the second bluetooth auxiliary access The MAC Address of first bluetooth equipment is transferred to second bluetooth equipment by equipment;The second bluetooth auxiliary access is set The standby MAC Address for obtaining second bluetooth equipment, is transferred to first bluetooth for the MAC Address of second bluetooth equipment Assist access device, the MAC Address of second bluetooth equipment is transferred to described the by first bluetooth auxiliary access device One bluetooth equipment;
Using the MAC Address of first bluetooth equipment and the second bluetooth equipment, in first bluetooth equipment and second Bluetooth connection is established between bluetooth equipment, and carries out Bluetooth communication.
Present invention further provide that
A kind of Bluetooth communication system, comprising: the first bluetooth assists access device, the first bluetooth equipment, the second bluetooth auxiliary Access device and the second bluetooth equipment;
First bluetooth assists access device, for the first bluetooth equipment wired connection, obtain described the The MAC Address of first bluetooth equipment is transferred to second bluetooth by the MAC address of one bluetooth equipment Assist access device;The MAC Address of second bluetooth equipment is transferred to first bluetooth equipment;
Second bluetooth assists access device, for the second bluetooth equipment wired connection, obtain described the The MAC Address of second bluetooth equipment is transferred to the first bluetooth auxiliary access and set by the MAC Address of two bluetooth equipments It is standby;The MAC Address of first bluetooth equipment is transferred to second bluetooth equipment;
First bluetooth equipment, the second bluetooth equipment, for being set using first bluetooth equipment and the second bluetooth Standby MAC Address establishes bluetooth connection between first bluetooth equipment and the second bluetooth equipment, and carries out Bluetooth communication.
As can be seen from the technical scheme provided by the above-mentioned embodiment of the present invention, the embodiment of the present invention, which passes through, utilizes multiple indigo plants Tooth auxiliary access device obtains respectively and the MAC Address of the bluetooth equipment of its connection, and assists access device by multiple bluetooths MAC Address exchange is carried out between each bluetooth equipment, bluetooth equipment stores the MAC Address of the other bluetooth equipments received In allowing bluetooth connection address table (white list), to realize through bluetooth auxiliary access device simply, quickly and easily Allow various bluetooth equipments to carry out bluetooth connection mutually, Bluetooth communication, without through the key that bluetooth equipment is manually entered or PIN code does not need to verify the key or PIN code from end bluetooth equipment yet, and bluetooth connection and communication process operate ratio It is relatively simple and quick and easy.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without any creative labor, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of process flow diagram for Bluetooth communication method that the embodiment of the present invention one provides;
Fig. 2 is a kind of process flow diagram of Bluetooth communication method provided by Embodiment 2 of the present invention;
Fig. 3 is the specific implementation structure chart of a kind of Bluetooth communication system that the embodiment of the present invention three provides, in figure, in figure, First bluetooth assists access device 31, the first bluetooth equipment 32, the second bluetooth auxiliary access device 33 and the second bluetooth equipment 34.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
It should be noted that having used some vocabulary in the specification and claims to censure specific components.Ability Field technique personnel are, it is to be appreciated that hardware manufacturer may call the same component with different nouns.This specification and right It is required that not in such a way that the difference of title is as component is distinguished, but with the difference of component functionally as differentiation Criterion."comprising" or " comprising " as mentioned throughout the specification and claims are an open language, therefore should be solved It is interpreted into " including but not limited to "." substantially " refer to that within an acceptable error range, those skilled in the art can be certain The technical problem is solved in error range, basically reaches the technical effect.Specification subsequent descriptions are that implementation is of the invention Better embodiment, so the description is the model that is not intended to limit the invention for the purpose of illustrating rule of the invention It encloses.Protection scope of the present invention is as defined by the appended claims.
In order to facilitate understanding of embodiments of the present invention, it is done by taking several specific embodiments as an example below in conjunction with attached drawing further Explanation, and each embodiment does not constitute the restriction to the embodiment of the present invention.
Embodiment one
This embodiment offers a kind of process flow of Bluetooth communication method as shown in Figure 1, including following processing step:
Step S110, the first bluetooth equipment and the first bluetooth are assisted into access device wired connection, by the second bluetooth equipment Access device and wired connection are assisted with the second bluetooth, the first bluetooth auxiliary access device connects with second bluetooth auxiliary Enter and is connected between equipment by Radio Link;
Access device, the second bluetooth is assisted to assist that multiple interfaces are arranged in access device in the first bluetooth, each interface is only An one corresponding bluetooth equipment, the first bluetooth auxiliary access device connect described the using wireline cable by the interface One bluetooth equipment, the second bluetooth auxiliary access device connect second bluetooth using wireline cable by the interface and set It is standby, it assists access device, the second bluetooth to assist also setting up storage unit in access device in the first bluetooth, is closed in the storage unit Connection stores the MAC(media access control of each bluetooth equipment, Medium Access Control) between address and device identification Corresponding relationship.
Step S120, the described first bluetooth auxiliary access device obtains the media access control of first bluetooth equipment The MAC Address of first bluetooth equipment is transferred to second bluetooth and assists access device by MAC Address, and described second is blue Tooth assists access device that the MAC Address of first bluetooth equipment is transferred to second bluetooth equipment;Second bluetooth Auxiliary access device obtains the MAC Address of second bluetooth equipment, and the MAC Address of second bluetooth equipment is transferred to institute The first bluetooth auxiliary access device is stated, the first bluetooth auxiliary access device passes the MAC Address of second bluetooth equipment It is defeated by first bluetooth equipment;
The first bluetooth auxiliary access device constructs address read requests using application program, utilizes API (Application Programming Interface, application programming interface) sends institute to first bluetooth equipment Address reading order is stated, is read in response from the address that first bluetooth equipment returns and obtains first bluetooth equipment MAC Address, the first bluetooth auxiliary access device close the MAC Address of first bluetooth equipment and corresponding device identification In address information table in the storage unit of connection storage inside it;
Second bluetooth auxiliary access device constructs address read requests using application program, using API to described the Two bluetooth equipments send the address reading order, are read described in obtaining in response from the address that second bluetooth equipment returns The MAC Address of second bluetooth equipment, second bluetooth auxiliary access device is by the MAC Address of second bluetooth equipment and right In address information table in the storage unit of the device identification associated storage answered inside it.
It assists establishing RFID between access device and second bluetooth auxiliary access device in first bluetooth (Radio Frequency Identification, radio frequency identification) communication link, the first bluetooth auxiliary access device are logical It crosses RFID communication link and the MAC Address of first bluetooth equipment is directly transferred to the second bluetooth auxiliary access device; Alternatively, the first bluetooth auxiliary access device receives carrying first bluetooth that the second bluetooth auxiliary access device is sent After the address acquisition request of the device identification of equipment, its storage is inquired according to the device identification carried in the address acquisition request Address information table, the MAC Address of first bluetooth equipment is obtained, by RFID communication link by first bluetooth equipment MAC Address be transferred to second bluetooth auxiliary access device;
The MAC Address of first bluetooth equipment is transferred to by the second bluetooth auxiliary access device by wired connection The MAC Address of first bluetooth equipment is stored in the permission of oneself by second bluetooth equipment, second bluetooth equipment In bluetooth connection address table;
It assists establishing radio frequency identification between access device and second bluetooth auxiliary access device in first bluetooth RFID communication link, the second bluetooth auxiliary access device is by RFID communication link directly by second bluetooth equipment MAC Address is transferred to the first bluetooth auxiliary access device;Alternatively, the second bluetooth auxiliary access device receives first After the address acquisition request of the device identification for carrying second bluetooth equipment that bluetooth assists access device to send, according to described The address information table of its storage is inquired in the device identification carried in the acquisition request of address, obtains the MAC of second bluetooth equipment The MAC Address of second bluetooth equipment is transferred to the first bluetooth auxiliary access by RFID communication link and set by address It is standby;
The MAC Address of second bluetooth equipment is transferred to by the first bluetooth auxiliary access device by wired connection The MAC Address of second bluetooth equipment is stored in the permission of oneself by first bluetooth equipment, first bluetooth equipment In bluetooth connection address table;
Step S130, it using the MAC Address of first bluetooth equipment and the second bluetooth equipment, is set in first bluetooth It is standby that bluetooth connection is established between the second bluetooth equipment, and carry out Bluetooth communication.
When first bluetooth equipment needs to initiate the Bluetooth communication between second bluetooth equipment, described first Bluetooth equipment searches second bluetooth equipment, sends to second bluetooth equipment and carries first bluetooth equipment The Bluetooth connection request of MAC Address, it is blue that second bluetooth equipment obtains described first carried in the Bluetooth connection request Whether the MAC Address of tooth equipment, the MAC Address for verifying first bluetooth equipment are included in the permission bluetooth connection address of oneself In table.
Second bluetooth equipment connects in the permission bluetooth that the MAC Address for verifying first bluetooth equipment is included in oneself After connecing in address table, the bluetooth connection sound for carrying the MAC Address of second bluetooth equipment is sent to first bluetooth equipment It answers, first bluetooth equipment obtains the MAC Address of second bluetooth equipment carried in the bluetooth connection response, verifying Whether the MAC Address of second bluetooth equipment is included in the permission bluetooth connection address table of oneself, if so, described Bluetooth connection is established between one bluetooth equipment and the second bluetooth equipment, and carries out Bluetooth communication.
Embodiment two
This embodiment offers a kind of process flow of Bluetooth communication method as shown in Fig. 2, including following processing step:
Step S210, by the first bluetooth assist access device, the second bluetooth auxiliary access device respectively with one or more A bluetooth equipment wired connection.
Bluetooth is a kind of radio technology of holding equipment short haul connection (in general 10m).It can include mobile electricity Wireless messages exchange is carried out between numerous equipment such as words, PDA, wireless headset, laptop, related peripherals.It utilizes " bluetooth " Technology can effectively simplify the communication between mobile communication terminal device, also can successfully simplify equipment and internet Communication between Internet, so that data transmission becomes more efficient rapidly, to wirelessly communicate widening road.Bluetooth, which uses, divides Formula network structure and fast frequency hopping and short packet technology are dissipated, supports point-to-point and point-to-multipoint delivery, is worked in global general-use 2.4GHzISM(is industry, science, medicine) frequency range.Its data rate is 1Mbps.It is realized using time division duplex transmission scheme complete Duplex transmission.
Access device, the second bluetooth is assisted to assist that multiple interfaces are arranged in access device in the first bluetooth, each interface is only An one corresponding bluetooth equipment, the first bluetooth auxiliary access device are blue using wireline cable connection first by the interface Tooth equipment etc., the second bluetooth auxiliary access device connect second bluetooth equipment etc. using wireline cable by the interface. Above-mentioned interface can be USB(Universal Serial Bus, universal serial bus) interface or micro usb interface or Earpiece holes etc..In practical applications, above-mentioned first bluetooth auxiliary access device, the second bluetooth auxiliary access device can connect respectively Connect multiple bluetooth equipments.
Access device, the second bluetooth is assisted to assist also setting up storage unit in access device in the first bluetooth, the storage list Setting and management address information table in member, the MAC Address and equipment mark of each bluetooth equipment of associated storage in the address information table Corresponding relationship between knowledge.
Above-mentioned first bluetooth auxiliary access device, the second bluetooth auxiliary access device are intelligent terminal, above-mentioned bluetooth equipment Can be PC(personal computer, personal computer) machine, mobile phone, tablet computer, portable computer, game machine, ear Machine, music player etc..
Step S220, the first bluetooth auxiliary access device, the second bluetooth auxiliary access device obtain and its wired company respectively The MAC Address of each bluetooth equipment connect.
API is some functions predetermined, it is therefore an objective to provide application program and developer is based on certain software or hardware To access the ability of one group of routine, and without accessing source code, or understand the details of internal work mechanism.
The first bluetooth auxiliary access device, the second bluetooth auxiliary access device are read using application program construction address Request sends the address reading order to each bluetooth equipment of its wired connection using API.
Illustratively, above-mentioned first bluetooth auxiliary access device is set to the first bluetooth equipment connected to it, third bluetooth Preparation send the address reading order, is respectively received above-mentioned first bluetooth equipment, the address that third bluetooth equipment returns is read Response.Then, above-mentioned first bluetooth assists access device to obtain from the reading response of the address that first bluetooth equipment returns The MAC Address of first bluetooth equipment reads in response from the address that the third bluetooth equipment returns and obtains the third The MAC Address of bluetooth equipment.First bluetooth auxiliary access device is by first bluetooth equipment, third bluetooth equipment In address information table in the storage unit of the mark associated storage of MAC Address and corresponding bluetooth equipment inside it.
Above-mentioned second bluetooth assists access device to send the address reading order to the second bluetooth equipment connected to it, The MAC Address that second bluetooth equipment is obtained in response is read from the address that second bluetooth equipment returns.Described second Bluetooth assists access device by the mark associated storage of the MAC Address of second bluetooth equipment and corresponding bluetooth equipment at it In address information table in internal storage unit.
Illustratively, the code that the mac address information of wireless blue tooth is obtained in a kind of Android operation system is as follows:
Step S230, the first bluetooth auxiliary access device, the second bluetooth assist access device by the bluetooth equipment of storage MAC Address is transferred to all other bluetooth equipment or transmits mutually pair to two bluetooth equipments for needing to carry out Bluetooth communication The MAC Address of side.
RFID is a kind of contactless automatic identification technology for starting the 1990s to rise, and is one and utilizes radio frequency Signal realizes that contactless information is passed through transmitted information and reaches knowledge by Space Coupling (alternating magnetic field or electromagnetic field) The technology of other purpose.
RFID passes through radiofrequency signal automatic identification target object and obtains related data, and identification work is not necessarily to manual intervention. RFID system important advantage is contactless identification, can adapt to various adverse circumstances, can penetrate snow, mist, ice, coating, dust and dirt Etc. various objects.The reading rate of RFID is exceedingly fast, in most cases less than 100 milliseconds.
It assists establishing RFID communication between access device and second bluetooth auxiliary access device in first bluetooth Link, the MAC for all bluetooth equipments that the first bluetooth auxiliary access device is directly stored by RFID communication link Address is transferred to the second bluetooth auxiliary access device;Alternatively, the first bluetooth auxiliary access device receives the second indigo plant After the address acquisition request for the device identification for carrying some bluetooth equipment that tooth assists access device to send, obtained according to the address It takes the device identification carried in request to inquire the address information table of its storage, obtains the MAC Address of corresponding bluetooth equipment, pass through The MAC Address of the corresponding bluetooth equipment is transferred to second bluetooth and assists access device by RFID communication link.
All bluetooth equipments that the second bluetooth auxiliary access device is directly stored by RFID communication link MAC Address is transferred to the first bluetooth auxiliary access device;Alternatively, the second bluetooth auxiliary access device receives first After the address acquisition request for the device identification for carrying some bluetooth equipment that bluetooth assists access device to send, according to the address The address information table of its storage is inquired in the device identification carried in acquisition request, obtains the MAC Address of corresponding bluetooth equipment, is led to It crosses RFID communication link and the MAC Address of the corresponding bluetooth equipment is transferred to the first bluetooth auxiliary access device.
Illustratively, when above-mentioned first bluetooth auxiliary access device connection the first bluetooth equipment, third bluetooth equipment, institute The first bluetooth auxiliary access device is stated directly to set first bluetooth stored in the address information table using wired connection Standby, third bluetooth equipment MAC Address is transferred to the second bluetooth auxiliary access device.Or;The auxiliary access of first bluetooth Equipment receives the address acquisition request of the device identification for the first bluetooth equipment of carrying that the second bluetooth auxiliary access device is sent Afterwards, the address information table is inquired according to the device identification carried in the address acquisition request, obtains first bluetooth and sets The MAC Address of first bluetooth equipment is transferred to the second bluetooth auxiliary access device by standby MAC Address.
When above-mentioned second bluetooth auxiliary access device connects the second bluetooth equipment, second bluetooth assists access device The MAC Address of second bluetooth equipment stored in the address information table is directly transferred to described the using wired connection One bluetooth assists access device.
Step S240, the first bluetooth is assisted access device, the second bluetooth auxiliary access device to send by each bluetooth equipment The MAC Address of other bluetooth equipments to come over is stored in the permission bluetooth connection address table of oneself.
Setting allows bluetooth connection address table in bluetooth equipment, and storage does not need indigo plant in the permission bluetooth connection address table Tooth pairing, the MAC Address for allowing direct and this equipment Bluetooth communication bluetooth equipment.
Each bluetooth equipment receives the first bluetooth auxiliary access device, the second bluetooth auxiliary access device sends over After the MAC Address of other bluetooth equipments, the MAC Address of other bluetooth equipments is stored in the permission bluetooth connection address table of oneself In.
For example, second bluetooth equipment the second bluetooth auxiliary access device is sended over the first bluetooth equipment, the The MAC Address of three bluetooth equipments is stored in the permission bluetooth connection address table of oneself, and first bluetooth equipment is blue by first The MAC Address for the second bluetooth equipment that tooth auxiliary access device sends over is stored in the permission bluetooth connection address table of oneself In.
Step S250, bluetooth connection is established between each bluetooth equipment for having exchanged MAC Address, and it is logical to carry out bluetooth Letter.
When first bluetooth equipment needs to initiate the Bluetooth communication between second bluetooth equipment, described first Bluetooth equipment searches second bluetooth equipment, sends to second bluetooth equipment and carries first bluetooth equipment The Bluetooth connection request of MAC Address, it is blue that second bluetooth equipment obtains described first carried in the Bluetooth connection request Whether the MAC Address of tooth equipment, the MAC Address for verifying first bluetooth equipment are included in the permission bluetooth connection address of oneself In table, if it is, carrying out following treatment processes;Otherwise, process terminates.
Second bluetooth equipment connects in the permission bluetooth that the MAC Address for verifying first bluetooth equipment is included in oneself After connecing in address table, the bluetooth connection sound for carrying the MAC Address of second bluetooth equipment is sent to first bluetooth equipment It answers, first bluetooth equipment obtains the MAC Address of second bluetooth equipment carried in the bluetooth connection response, verifying Whether the MAC Address of second bluetooth equipment is included in the permission bluetooth connection address table of oneself, if so, described Bluetooth connection is established between one bluetooth equipment and the second bluetooth equipment, and carries out Bluetooth communication;Otherwise, process terminates.
There can be a knob on bluetooth auxiliary access device, by the MAC for carrying out above-mentioned bluetooth equipment after lower button Location exchange, Bluetooth communication process.
Embodiment three
This embodiment offers a kind of Bluetooth communication system, implement structure as shown in figure 3, can specifically include as Under module: the first bluetooth assists access device 31, the first bluetooth equipment 32, the second bluetooth auxiliary access device 33 and second blue Tooth equipment 34;
First bluetooth assists access device 31, for the first bluetooth equipment wired connection, described in acquisition It is blue to be transferred to described second by the MAC address of the first bluetooth equipment for the MAC Address of first bluetooth equipment Tooth assists access device;The MAC Address of second bluetooth equipment is transferred to first bluetooth equipment;
Second bluetooth assists access device 33, for the second bluetooth equipment wired connection, described in acquisition The MAC Address of second bluetooth equipment is transferred to the first bluetooth auxiliary access and set by the MAC Address of the second bluetooth equipment It is standby;The MAC Address of first bluetooth equipment is transferred to second bluetooth equipment;
First bluetooth equipment 32, the second bluetooth equipment 34, for blue using first bluetooth equipment and second The MAC Address of tooth equipment establishes bluetooth connection between first bluetooth equipment and the second bluetooth equipment, and it is logical to carry out bluetooth Letter.
Further, access device 32, the second bluetooth is assisted to assist that multiple connect is arranged in access device 34 in the first bluetooth Mouthful, each interface uniquely corresponds to a bluetooth equipment, and the first bluetooth auxiliary access device is utilized wired by the interface Cable connects first bluetooth equipment, and the second bluetooth auxiliary access device is connected by the interface using wireline cable Second bluetooth equipment assists access device, the second bluetooth to assist also setting up storage unit in access device in the first bluetooth, Corresponding relationship in the storage unit between the MAC Address and device identification of each bluetooth equipment of associated storage.
Further, first bluetooth assists access device 31, asks for being read using application program construction address It asks, sends the address reading order to first bluetooth equipment using application programming interface API, it is blue from described first Read the MAC Address that first bluetooth equipment is obtained in response, the first bluetooth auxiliary access in the address that tooth equipment returns Equipment will be in the MAC Address of first bluetooth equipment and corresponding device identification associated storage storage unit inside it In address information table;
Further, second bluetooth assists access device 33, asks for being read using application program construction address It asks, the address reading order is sent to second bluetooth equipment using API, from the address that second bluetooth equipment returns The MAC Address that second bluetooth equipment is obtained in response is read, the second bluetooth auxiliary access device is blue by described second In address information table in the storage unit of the MAC Address of tooth equipment and corresponding device identification associated storage inside it.
Further, first bluetooth assists access device 31, for assisting access device in first bluetooth Radio frequency discrimination RFID communication link is established between the second bluetooth auxiliary access device, directly will by RFID communication link The MAC Address of first bluetooth equipment is transferred to the second bluetooth auxiliary access device;Alternatively, it is auxiliary to receive the second bluetooth After the address acquisition request of the device identification for carrying first bluetooth equipment for helping access device to send, obtained according to the address It takes the device identification carried in request to inquire the address information table of its storage, obtains the MAC Address of first bluetooth equipment, lead to It crosses RFID communication link and the MAC Address of first bluetooth equipment is transferred to the second bluetooth auxiliary access device;
The MAC Address of second bluetooth equipment is transferred to first bluetooth equipment by wired connection, described The MAC Address of second bluetooth equipment is stored in the permission bluetooth connection address table of oneself by one bluetooth equipment;
Further, second bluetooth assists access device 33, for assisting access device in second bluetooth Radio frequency discrimination RFID communication link is established between the first bluetooth auxiliary access device, directly will by RFID communication link The MAC Address of second bluetooth equipment is transferred to the first bluetooth auxiliary access device;Alternatively, it is auxiliary to receive the first bluetooth After the address acquisition request of the device identification for carrying second bluetooth equipment for helping access device to send, obtained according to the address It takes the device identification carried in request to inquire the address information table of its storage, obtains the MAC Address of second bluetooth equipment, lead to It crosses RFID communication link and the MAC Address of second bluetooth equipment is transferred to the first bluetooth auxiliary access device;
The MAC Address of first bluetooth equipment is transferred to second bluetooth equipment by wired connection, described The MAC Address of first bluetooth equipment is stored in the permission bluetooth connection address table of oneself by two bluetooth equipments.
Further, first bluetooth equipment 32, for needing to initiate and described the when first bluetooth equipment When Bluetooth communication between two bluetooth equipments, second bluetooth equipment is searched, sends and carries to second bluetooth equipment The Bluetooth connection request of the MAC Address of first bluetooth equipment;
Second bluetooth equipment 34, for obtaining first bluetooth equipment carried in the Bluetooth connection request MAC Address, after the MAC Address for verifying first bluetooth equipment includes in the permission bluetooth connection address table of oneself, The bluetooth connection response for carrying the MAC Address of second bluetooth equipment is sent to first bluetooth equipment;
First bluetooth equipment 32, for obtaining second bluetooth equipment carried in the bluetooth connection response MAC Address, whether the MAC Address for verifying second bluetooth equipment be included in the permission bluetooth connection address table of oneself, If so, establishing bluetooth connection between first bluetooth equipment and the second bluetooth equipment, and carry out Bluetooth communication.
The detailed process for carrying out Bluetooth communication with the system of the embodiment of the present invention is similar to the previous method embodiment, herein not It repeats again.
In conclusion the embodiment of the present invention, which passes through, assists the indigo plant that access device obtains respectively and it is connected using multiple bluetooths The MAC Address of tooth equipment, and MAC Address exchange is carried out between each bluetooth equipment by multiple bluetooths auxiliary access device, The MAC Address of the other bluetooth equipments received is stored in by bluetooth equipment to be allowed in bluetooth connection address table (white list), from And realize and simply, quickly and easily various bluetooth equipments is allowed to carry out bluetooth connection mutually through bluetooth auxiliary access device, it is blue Tooth communication, without through the key or PIN code that bluetooth equipment is manually entered, also not needing from end bluetooth equipment to the key Or PIN code is verified, bluetooth connection and communication process operation are fairly simple and quick and easy.
Those of ordinary skill in the art will appreciate that: attached drawing is the schematic diagram of one embodiment, module in attached drawing or Process is not necessarily implemented necessary to the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention Method described in part.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims Subject to.

Claims (10)

1.一种蓝牙通信方法,包括:1. A bluetooth communication method, comprising: 将第一蓝牙设备与第一蓝牙辅助接入设备有线连接,将第二蓝牙设备与第二蓝牙辅助接入设备有线连接,所述第一蓝牙辅助接入设备与所述第二蓝牙辅助接入设备之间通过无线链路连接;Connect the first Bluetooth device to the first Bluetooth auxiliary access device by wire, connect the second Bluetooth device to the second Bluetooth auxiliary access device by wire, and the first Bluetooth auxiliary access device to the second Bluetooth auxiliary access device Devices are connected via wireless link; 在所述第一蓝牙辅助接入设备和所述第二蓝牙辅助接入设备之间建立射频识别RFID通信链路,所述第一蓝牙辅助接入设备通过RFID通信链路直接将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙辅助接入设备,所述第二蓝牙辅助接入设备将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙设备;在所述第一蓝牙辅助接入设备和所述第二蓝牙辅助接入设备之间建立射频识别RFID通信链路,所述第二蓝牙辅助接入设备通过RFID通信链路直接将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙辅助接入设备,所述第一蓝牙辅助接入设备将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙设备;A radio frequency identification (RFID) communication link is established between the first Bluetooth auxiliary access device and the second Bluetooth auxiliary access device, and the first Bluetooth auxiliary access device directly transmits the first Bluetooth auxiliary access device through the RFID communication link. The MAC address of the Bluetooth device is transmitted to the second Bluetooth auxiliary access device, and the second Bluetooth auxiliary access device transmits the MAC address of the first Bluetooth device to the second Bluetooth device; A radio frequency identification RFID communication link is established between the Bluetooth auxiliary access device and the second Bluetooth auxiliary access device, and the second Bluetooth auxiliary access device directly transmits the MAC address of the second Bluetooth device through the RFID communication link transmit to the first Bluetooth auxiliary access device, and the first Bluetooth auxiliary access device transmits the MAC address of the second Bluetooth device to the first Bluetooth device; 利用所述第一蓝牙设备和第二蓝牙设备的MAC地址,在所述第一蓝牙设备和第二蓝牙设备之间建立蓝牙连接,并进行蓝牙通信。Using the MAC addresses of the first Bluetooth device and the second Bluetooth device, a Bluetooth connection is established between the first Bluetooth device and the second Bluetooth device, and Bluetooth communication is performed. 2.根据权利要求1所述的蓝牙通信方法,其特征在于,所述的将第一蓝牙设备与第一蓝牙辅助接入设备有线连接,将第二蓝牙设备与第二蓝牙辅助接入设备与有线连接,包括:2. The bluetooth communication method according to claim 1, wherein the first bluetooth device and the first bluetooth auxiliary access device are wired connected, and the second bluetooth device and the second bluetooth auxiliary access device are connected Wired connection, including: 在第一蓝牙辅助接入设备、第二蓝牙辅助接入设备中设置多个接口,每个接口唯一对应一个蓝牙设备,所述第一蓝牙辅助接入设备通过所述接口利用有线线缆连接所述第一蓝牙设备,所述第二蓝牙辅助接入设备通过所述接口利用有线线缆连接所述第二蓝牙设备,在第一蓝牙辅助接入设备、第二蓝牙辅助接入设备中还设置存储单元,该存储单元中关联存储各个蓝牙设备的MAC地址和设备标识之间的对应关系。A plurality of interfaces are set in the first Bluetooth auxiliary access device and the second Bluetooth auxiliary access device, and each interface uniquely corresponds to a Bluetooth device, and the first Bluetooth auxiliary access device connects to the The first bluetooth device, the second bluetooth auxiliary access device is connected to the second bluetooth device by using a wired cable through the interface, and the first bluetooth auxiliary access device and the second bluetooth auxiliary access device are also set A storage unit, the storage unit associates and stores the correspondence between the MAC address and the device identification of each Bluetooth device. 3.根据权利要求1所述的蓝牙通信方法,其特征在于,所述的第一蓝牙辅助接入设备获取所述第一蓝牙设备的媒体接入控制MAC地址,包括:3. The bluetooth communication method according to claim 1, wherein said first bluetooth auxiliary access device acquires the media access control MAC address of said first bluetooth device, comprising: 所述第一蓝牙辅助接入设备构造地址读取请求,向所述第一蓝牙设备发送所述地址读取命令,从所述第一蓝牙设备返回的地址读取响应中获取所述第一蓝牙设备的MAC地址,所述第一蓝牙辅助接入设备将所述第一蓝牙设备的MAC地址和对应的设备标识关联存储在其内部的存储单元中的地址信息表中;The first Bluetooth auxiliary access device constructs an address read request, sends the address read command to the first Bluetooth device, and acquires the first Bluetooth address from an address read response returned by the first Bluetooth device. The MAC address of the device, the first Bluetooth auxiliary access device associates and stores the MAC address of the first Bluetooth device and the corresponding device identifier in an address information table in its internal storage unit; 所述的第二蓝牙辅助接入设备获取所述第二蓝牙设备的MAC地址,包括:The second Bluetooth auxiliary access device obtains the MAC address of the second Bluetooth device, including: 所述第二蓝牙辅助接入设备利用应用程序构造地址读取请求,利用API向所述第二蓝牙设备发送所述地址读取命令,从所述第二蓝牙设备返回的地址读取响应中获取所述第二蓝牙设备的MAC地址,所述第二蓝牙辅助接入设备将所述第二蓝牙设备的MAC地址和对应的设备标识关联存储在其内部的存储单元中的地址信息表中。The second Bluetooth auxiliary access device uses an application program to construct an address read request, uses an API to send the address read command to the second Bluetooth device, and obtains the address read response from the second Bluetooth device. The MAC address of the second Bluetooth device, the second Bluetooth auxiliary access device associates and stores the MAC address of the second Bluetooth device and the corresponding device identifier in an address information table in its internal storage unit. 4.根据权利要求3所述的蓝牙通信方法,其特征在于,所述的将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙辅助接入设备,包括:4. The Bluetooth communication method according to claim 3, wherein the transmitting the MAC address of the first Bluetooth device to the second Bluetooth auxiliary access device comprises: 所述第一蓝牙辅助接入设备接收到第二蓝牙辅助接入设备发送的携带所述第一蓝牙设备的设备标识的地址获取请求后,根据所述地址获取请求中携带的设备标识查询其存储的地址信息表,获取所述第一蓝牙设备的MAC地址,通过RFID通信链路将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙辅助接入设备;After the first Bluetooth auxiliary access device receives the address acquisition request carrying the device identifier of the first Bluetooth device sent by the second Bluetooth auxiliary access device, it queries its storage according to the device identifier carried in the address acquisition request. address information table, obtain the MAC address of the first Bluetooth device, and transmit the MAC address of the first Bluetooth device to the second Bluetooth auxiliary access device through the RFID communication link; 所述第二蓝牙辅助接入设备通过有线连接将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙设备,所述第二蓝牙设备将所述第一蓝牙设备的MAC地址存储在自己的允许蓝牙连接地址表中;The second Bluetooth auxiliary access device transmits the MAC address of the first Bluetooth device to the second Bluetooth device through a wired connection, and the second Bluetooth device stores the MAC address of the first Bluetooth device in its own in the list of allowed Bluetooth connection addresses; 所述的将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙辅助接入设备,包括:The transmitting the MAC address of the second Bluetooth device to the first Bluetooth auxiliary access device includes: 所述第二蓝牙辅助接入设备接收到第一蓝牙辅助接入设备发送的携带所述第二蓝牙设备的设备标识的地址获取请求后,根据所述地址获取请求中携带的设备标识查询其存储的地址信息表,获取所述第二蓝牙设备的MAC地址,通过RFID通信链路将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙辅助接入设备;After the second Bluetooth auxiliary access device receives the address acquisition request carrying the device identifier of the second Bluetooth device sent by the first Bluetooth auxiliary access device, it queries its storage according to the device identifier carried in the address acquisition request. address information table, obtain the MAC address of the second Bluetooth device, and transmit the MAC address of the second Bluetooth device to the first Bluetooth auxiliary access device through the RFID communication link; 所述第一蓝牙辅助接入设备通过有线连接将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙设备,所述第一蓝牙设备将所述第二蓝牙设备的MAC地址存储在自己的允许蓝牙连接地址表中。The first Bluetooth auxiliary access device transmits the MAC address of the second Bluetooth device to the first Bluetooth device through a wired connection, and the first Bluetooth device stores the MAC address of the second Bluetooth device in its own in the allowed bluetooth connection address table. 5.根据权利要求4所述的蓝牙通信方法,其特征在于,所述的利用所述第一蓝牙设备和第二蓝牙设备的MAC地址,在所述第一蓝牙设备和第二蓝牙设备之间建立蓝牙连接,并进行蓝牙通信,包括:5. The bluetooth communication method according to claim 4, characterized in that, using the MAC addresses of the first bluetooth device and the second bluetooth device, between the first bluetooth device and the second bluetooth device Establish a Bluetooth connection and perform Bluetooth communication, including: 当所述第一蓝牙设备需要发起和所述第二蓝牙设备之间的蓝牙通信时,所述第一蓝牙设备搜寻到所述第二蓝牙设备,向所述第二蓝牙设备发送携带所述第一蓝牙设备的MAC地址的蓝牙连接请求,所述第二蓝牙设备获取所述蓝牙连接请求中携带的所述第一蓝牙设备的MAC地址,验证所述第一蓝牙设备的MAC地址是否包含在自己的允许蓝牙连接地址表中;When the first Bluetooth device needs to initiate Bluetooth communication with the second Bluetooth device, the first Bluetooth device searches for the second Bluetooth device, and sends a message carrying the second Bluetooth device to the second Bluetooth device A Bluetooth connection request of the MAC address of a Bluetooth device, the second Bluetooth device obtains the MAC address of the first Bluetooth device carried in the Bluetooth connection request, and verifies whether the MAC address of the first Bluetooth device is included in its own in the list of allowed Bluetooth connection addresses; 所述第二蓝牙设备在验证所述第一蓝牙设备的MAC地址包含在自己的允许蓝牙连接地址表中后,向所述第一蓝牙设备发送携带所述第二蓝牙设备的MAC地址的蓝牙连接响应,所述第一蓝牙设备获取所述蓝牙连接响应中携带的所述第二蓝牙设备的MAC地址,验证所述第二蓝牙设备的MAC地址是否包含在自己的允许蓝牙连接地址表中,如果是,在所述第一蓝牙设备和第二蓝牙设备之间建立蓝牙连接,并进行蓝牙通信。After the second Bluetooth device verifies that the MAC address of the first Bluetooth device is included in its own allowed Bluetooth connection address table, it sends a Bluetooth connection carrying the MAC address of the second Bluetooth device to the first Bluetooth device. In response, the first Bluetooth device obtains the MAC address of the second Bluetooth device carried in the Bluetooth connection response, and verifies whether the MAC address of the second Bluetooth device is included in its own Bluetooth connection allowed address table, if Yes, establishing a Bluetooth connection between the first Bluetooth device and the second Bluetooth device, and performing Bluetooth communication. 6.一种蓝牙通信系统,包括:第一蓝牙辅助接入设备、第一蓝牙设备、第二蓝牙辅助接入设备和第二蓝牙设备;6. A bluetooth communication system, comprising: a first bluetooth auxiliary access device, a first bluetooth device, a second bluetooth auxiliary access device and a second bluetooth device; 所述的第一蓝牙辅助接入设备,用于与所述第一蓝牙设备有线连接,获取所述第一蓝牙设备的媒体接入控制MAC地址,在所述第一蓝牙辅助接入设备和所述第二蓝牙辅助接入设备之间建立射频识别RFID通信链路,所述第一蓝牙辅助接入设备通过RFID通信链路直接将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙辅助接入设备;将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙设备;The first Bluetooth auxiliary access device is configured to connect with the first Bluetooth device by wire, obtain the media access control MAC address of the first Bluetooth device, and connect the first Bluetooth auxiliary access device and the A radio frequency identification RFID communication link is established between the second Bluetooth auxiliary access devices, and the first Bluetooth auxiliary access device directly transmits the MAC address of the first Bluetooth device to the second Bluetooth access device through the RFID communication link. Auxiliary access device; transmit the MAC address of the second Bluetooth device to the first Bluetooth device; 所述的第二蓝牙辅助接入设备,用于与所述第二蓝牙设备有线连接,获取所述第二蓝牙设备的MAC地址,在所述第一蓝牙辅助接入设备和所述第二蓝牙辅助接入设备之间建立射频识别RFID通信链路,所述第二蓝牙辅助接入设备通过RFID通信链路直接将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙辅助接入设备;将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙设备;The second bluetooth auxiliary access device is used for wired connection with the second bluetooth device, to obtain the MAC address of the second bluetooth device, and to connect the first bluetooth auxiliary access device and the second bluetooth A radio frequency identification RFID communication link is established between the auxiliary access devices, and the second Bluetooth auxiliary access device directly transmits the MAC address of the second Bluetooth device to the first Bluetooth auxiliary access device through the RFID communication link ; Transmitting the MAC address of the first Bluetooth device to the second Bluetooth device; 所述的第一蓝牙设备、第二蓝牙设备,用于利用所述第一蓝牙设备和第二蓝牙设备的MAC地址,在所述第一蓝牙设备和第二蓝牙设备之间建立蓝牙连接,并进行蓝牙通信。The first bluetooth device and the second bluetooth device are used to establish a bluetooth connection between the first bluetooth device and the second bluetooth device by using the MAC addresses of the first bluetooth device and the second bluetooth device, and for Bluetooth communication. 7.根据权利要求6所述的蓝牙通信系统,其特征在于,在第一蓝牙辅助接入设备、第二蓝牙辅助接入设备中设置多个接口,每个接口唯一对应一个蓝牙设备,所述第一蓝牙辅助接入设备通过所述接口利用有线线缆连接所述第一蓝牙设备,所述第二蓝牙辅助接入设备通过所述接口利用有线线缆连接所述第二蓝牙设备,在第一蓝牙辅助接入设备、第二蓝牙辅助接入设备中还设置存储单元,该存储单元中关联存储各个蓝牙设备的MAC地址和设备标识之间的对应关系。7. The bluetooth communication system according to claim 6, characterized in that, a plurality of interfaces are set in the first bluetooth auxiliary access device and the second bluetooth auxiliary access device, and each interface is uniquely corresponding to a bluetooth device, said The first Bluetooth auxiliary access device is connected to the first Bluetooth device by using a wired cable through the interface, and the second Bluetooth auxiliary access device is connected to the second Bluetooth device by using a wired cable through the interface. The first Bluetooth auxiliary access device and the second Bluetooth auxiliary access device are also provided with a storage unit, and the storage unit associates and stores the correspondence between the MAC address and the device identification of each Bluetooth device. 8.根据权利要求7所述的蓝牙通信系统,其特征在于:8. Bluetooth communication system according to claim 7, characterized in that: 所述的第一蓝牙辅助接入设备,用于构造地址读取请求,向所述第一蓝牙设备发送所述地址读取命令,从所述第一蓝牙设备返回的地址读取响应中获取所述第一蓝牙设备的MAC地址,所述第一蓝牙辅助接入设备将所述第一蓝牙设备的MAC地址和对应的设备标识关联存储在其内部的存储单元中的地址信息表中;The first Bluetooth auxiliary access device is configured to construct an address read request, send the address read command to the first Bluetooth device, and obtain the address read response returned by the first Bluetooth device. The MAC address of the first Bluetooth device, the first Bluetooth auxiliary access device associates and stores the MAC address of the first Bluetooth device and the corresponding device identifier in an address information table in its internal storage unit; 所述的第二蓝牙辅助接入设备,用于利用应用程序构造地址读取请求,利用API向所述第二蓝牙设备发送所述地址读取命令,从所述第二蓝牙设备返回的地址读取响应中获取所述第二蓝牙设备的MAC地址,所述第二蓝牙辅助接入设备将所述第二蓝牙设备的MAC地址和对应的设备标识关联存储在其内部的存储单元中的地址信息表中。The second Bluetooth auxiliary access device is configured to use an application program to construct an address reading request, use an API to send the address reading command to the second Bluetooth device, and read the address from the returned address of the second Bluetooth device. Obtain the MAC address of the second Bluetooth device in the response, and the second Bluetooth auxiliary access device associates the MAC address of the second Bluetooth device with the corresponding device identifier and stores the address information in its internal storage unit table. 9.根据权利要求8所述的蓝牙通信系统,其特征在于:9. The bluetooth communication system according to claim 8, characterized in that: 所述的第一蓝牙辅助接入设备,接收到第二蓝牙辅助接入设备发送的携带所述第一蓝牙设备的设备标识的地址获取请求后,根据所述地址获取请求中携带的设备标识查询其存储的地址信息表,获取所述第一蓝牙设备的MAC 地址,通过RFID通信链路将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙辅助接入设备;The first Bluetooth auxiliary access device, after receiving the address acquisition request carrying the device identifier of the first Bluetooth device sent by the second Bluetooth auxiliary access device, queries according to the device identifier carried in the address acquisition request The address information table stored in it obtains the MAC address of the first Bluetooth device, and transmits the MAC address of the first Bluetooth device to the second Bluetooth auxiliary access device through an RFID communication link; 通过有线连接将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙设备,所述第一蓝牙设备将所述第二蓝牙设备的MAC地址存储在自己的允许蓝牙连接地址表中;Transmitting the MAC address of the second Bluetooth device to the first Bluetooth device through a wired connection, and the first Bluetooth device stores the MAC address of the second Bluetooth device in its own Bluetooth connection address table; 所述的第二蓝牙辅助接入设备,接收到第一蓝牙辅助接入设备发送的携带所述第二蓝牙设备的设备标识的地址获取请求后,根据所述地址获取请求中携带的设备标识查询其存储的地址信息表,获取所述第二蓝牙设备的MAC地址,通过RFID通信链路将所述第二蓝牙设备的MAC地址传输给所述第一蓝牙辅助接入设备;The second Bluetooth auxiliary access device, after receiving the address acquisition request carrying the device identifier of the second Bluetooth device sent by the first Bluetooth auxiliary access device, queries according to the device identifier carried in the address acquisition request The address information table stored in it obtains the MAC address of the second Bluetooth device, and transmits the MAC address of the second Bluetooth device to the first Bluetooth auxiliary access device through an RFID communication link; 通过有线连接将所述第一蓝牙设备的MAC地址传输给所述第二蓝牙设备,所述第二蓝牙设备将所述第一蓝牙设备的MAC地址存储在自己的允许蓝牙连接地址表中。The MAC address of the first Bluetooth device is transmitted to the second Bluetooth device through a wired connection, and the second Bluetooth device stores the MAC address of the first Bluetooth device in its own Bluetooth connection-allowed address table. 10.根据权利要求9所述的蓝牙通信系统,其特征在于:10. The bluetooth communication system according to claim 9, characterized in that: 所述的第一蓝牙设备,用于当所述第一蓝牙设备需要发起和所述第二蓝牙设备之间的蓝牙通信时,搜寻到所述第二蓝牙设备,向所述第二蓝牙设备发送携带所述第一蓝牙设备的MAC地址的蓝牙连接请求;The first bluetooth device is configured to search for the second bluetooth device when the first bluetooth device needs to initiate bluetooth communication with the second bluetooth device, and send a message to the second bluetooth device A bluetooth connection request carrying the MAC address of the first bluetooth device; 所述的第二蓝牙设备,用于获取所述蓝牙连接请求中携带的所述第一蓝牙设备的MAC地址,在验证所述第一蓝牙设备的MAC地址包含在自己的允许蓝牙连接地址表中后,向所述第一蓝牙设备发送携带所述第二蓝牙设备的MAC地址的蓝牙连接响应;The second Bluetooth device is configured to obtain the MAC address of the first Bluetooth device carried in the Bluetooth connection request, and verify that the MAC address of the first Bluetooth device is included in its own allowed Bluetooth connection address table Afterwards, sending a Bluetooth connection response carrying the MAC address of the second Bluetooth device to the first Bluetooth device; 所述的第一蓝牙设备,用于获取所述蓝牙连接响应中携带的所述第二蓝牙设备的MAC地址,验证所述第二蓝牙设备的MAC地址是否包含在自己的允许蓝牙连接地址表中,如果是,在所述第一蓝牙设备和第二蓝牙设备之间建立蓝牙连接,并进行蓝牙通信。The first Bluetooth device is configured to obtain the MAC address of the second Bluetooth device carried in the Bluetooth connection response, and verify whether the MAC address of the second Bluetooth device is included in its own allowed Bluetooth connection address table , if yes, establish a Bluetooth connection between the first Bluetooth device and the second Bluetooth device, and perform Bluetooth communication.
CN201410123694.8A 2014-03-28 2014-03-28 Bluetooth communication method and system Expired - Fee Related CN104954048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410123694.8A CN104954048B (en) 2014-03-28 2014-03-28 Bluetooth communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410123694.8A CN104954048B (en) 2014-03-28 2014-03-28 Bluetooth communication method and system

Publications (2)

Publication Number Publication Date
CN104954048A CN104954048A (en) 2015-09-30
CN104954048B true CN104954048B (en) 2018-12-28

Family

ID=54168437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410123694.8A Expired - Fee Related CN104954048B (en) 2014-03-28 2014-03-28 Bluetooth communication method and system

Country Status (1)

Country Link
CN (1) CN104954048B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973359B (en) * 2017-03-07 2020-10-09 重庆西山科技股份有限公司 Method, apparatus, wireless device and communication system for rapidly establishing wireless connection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100680497B1 (en) * 2005-07-25 2007-02-08 엘지전자 주식회사 How a terminal connects to an access point in a local area communication system
CN101247610A (en) * 2007-02-13 2008-08-20 艾威梯软件技术(北京)有限公司 Method, equipment and system for managing multi-short distance wireless technical communication
CN102647368A (en) * 2012-04-27 2012-08-22 深圳市铭美科技有限公司 Bluetooth based instant messaging method and Bluetooth based instant messaging system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009018361A1 (en) * 2007-07-30 2009-02-05 Marvell Semiconductor, Inc. Simultaneously maintaining bluetooth and 802.11 connections to increase data throughput
CN102480313B (en) * 2010-11-23 2016-08-10 英特尔移动通信有限责任公司 Mobile radio communication apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100680497B1 (en) * 2005-07-25 2007-02-08 엘지전자 주식회사 How a terminal connects to an access point in a local area communication system
CN101247610A (en) * 2007-02-13 2008-08-20 艾威梯软件技术(北京)有限公司 Method, equipment and system for managing multi-short distance wireless technical communication
CN102647368A (en) * 2012-04-27 2012-08-22 深圳市铭美科技有限公司 Bluetooth based instant messaging method and Bluetooth based instant messaging system

Also Published As

Publication number Publication date
CN104954048A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
EP4007321B1 (en) Information sharing method, terminal apparatus, storage medium, and computer program product
US10165613B2 (en) Control method for bluetooth communication and bluetooth low energy communication
US9397728B2 (en) Systems and methods for secure intermediary data transfers using close proximity wireless communication
CN103297096B (en) Apparatus and method for transmitting and receiving multimedia data by using NFC
WO2018127200A1 (en) Method for smart device to access network, mobile terminal, cloud server, device, and system
JP5937095B2 (en) Method and apparatus for connecting wireless network in digital device
JP6150185B2 (en) Send, store, receive, and / or retrieve identification information or data, and / or transfer information or data between an accessory or related product and a smart electronic device to any different server or storage medium and / or System and method for pairing from or to
EP3687208B1 (en) Temporary pairing for wireless devices
EP3253080B1 (en) Data sharing method and system
TWI477993B (en) Profile exchange method and system
CN104955166A (en) Bluetooth communication method and system
JP2018037978A (en) Communication device, communication method, and program
CN106464688B (en) Wireless communication system
TW200410525A (en) Bluetooth remote access device
KR20150068413A (en) Discovering and connecting wireless devices without discoverability
RU2015111201A (en) METHOD AND DEVICES FOR PAIRING INSIDE THE GROUP OF WIRELESS DEVICES
CN103068066A (en) Intelligent mobile communication terminal and wireless network access method and system thereof
CN106792493A (en) The matching method of bluetooth equipment, device and bluetooth equipment
CN103957593A (en) Wireless network accessing method, device and system
KR102458486B1 (en) Apparatus and method for connecting device in wireless lan system
US20150312945A1 (en) Apparatus and method for managing instant connection based on wireless local area network
CN103957037B (en) Method of automatic communication between PC terminal and Android mobile terminal based on Bluetooth
CN103974375A (en) Wireless network access method, device and system
CN104954048B (en) Bluetooth communication method and system
RU2016112188A (en) SYSTEM OF AUTHENTICATION OF THE MACHINE OF THE PROCESSING THE IMAGE AND THE MACHINE OF THE PROCESSING THE IMAGE

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
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

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

Granted publication date: 20181228

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