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.