Summary of the invention
In a first aspect, the embodiment of the present disclosure provides a kind of equivalent device Bluetooth communication method based on gateway, comprising:
Create first service;The first broadcast is sent by the first service, has the second equipment in first broadcast
Facility information and inquiry second equipment equivalent device instruction;Receive the connection request of Bluetooth gateway;In response to
It is connected to the Bluetooth gateway, the facility information and the first information of equivalent device are received from the Bluetooth gateway;Using described
The facility information of equivalent device and the first information, connect the equivalent device.
Further, the equivalent device Bluetooth communication method based on gateway, further includes: disconnection is set with the equivalence
Standby connection;The second broadcast is sent by the first service, the equipment with the equivalent device is believed in second broadcast
Cease and indicate the mark of the equivalent device free time.
Further, before the creation first service, further includes: send connection request, the connection request is used for
Request uses the second equipment of bluetooth connection;Determine that the connection request does not receive response or is rejected.
Further, described in response to being connected to the Bluetooth gateway, the equipment letter of equivalent device is received from Bluetooth gateway
Breath and the first information, comprising: in response to being connected to the Bluetooth gateway, the MAC Address of equivalent device is received from Bluetooth gateway
And key assignments, the key assignments are used for and the second device authentication.
Second aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication method based on gateway, comprising: scanning
First broadcast, it is described first broadcast by the first equipment issue, and it is described first broadcast in the second equipment facility information with
And the instruction of the equivalent device of inquiry second equipment;It is broadcasted in response to scanning to described first, the second equipment of inquiry etc.
Valence equipment;In response to inquiring the equivalent device of second equipment, activation instruction and first is sent to the equivalent device
Information;The facility information and the first information for sending the equivalent device are to first equipment.
Further, the equivalent device Bluetooth communication method based on gateway, further includes: the second broadcast of scanning, institute
It states the second broadcast to be issued by the first equipment, and facility information and expression institute in second broadcast with the equivalent device
State the mark of equivalent device free time;In response to scanning to second broadcast, the state of the equivalent device is updated for the free time.
Further, the facility information of second equipment includes: the MAC Address and device type ID of the second equipment.
Further, described in response to scanning to first broadcast, the equivalent device of the second equipment of inquiry, comprising: ring
The device type ID inquiry and described second of the second equipment of institute's band in the first broadcast should be used in scanning to first broadcast
The identical equipment of the device type of equipment.
Further, the equivalent device in response to inquiring second equipment sends to the equivalent device and swashs
Instruction living and the first information, comprising: found and second device type according to the device type ID of second equipment
Identical and idle equivalent device sends activation instruction and key assignments to the equivalent device.
The third aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication method based on gateway, comprising: response
In receiving activation instruction and the first information, second service is created;Third broadcast is sent by second service, the third is wide
The mark of equivalent device state of activation is had in broadcasting;Receive the connection request that the first equipment is sent;It is asked in response to the connection
Include the first information in asking, establishes bluetooth connection with first equipment.
Further, the equivalent device Bluetooth communication method based on gateway further include: in response to disconnect with it is described
The activation instruction and the first information are deleted in the bluetooth connection of first equipment.
Fourth aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication device based on gateway, comprising:
First creation module, for creating first service;
First broadcast module has second in first broadcast for sending the first broadcast by the first service
The instruction of the equivalent device of the facility information and inquiry second equipment of equipment;
First receiving module, for receiving the connection request of Bluetooth gateway;
Second receiving module, for receiving equivalent device from the Bluetooth gateway in response to being connected to the Bluetooth gateway
Facility information and the first information;
First link block, for using the facility information and the first information of the equivalent device, described in connection
Equivalent device.
Further, the equivalent device Bluetooth communication device based on gateway further include:
First disconnects module, for disconnecting and the connection of the equivalent device;
Second broadcast module is broadcasted for sending second by the first service, with described in second broadcast
The facility information of equivalent device and the mark for indicating the equivalent device free time.
Further, the equivalent device Bluetooth communication device based on gateway further include:
Sending module is connected, for sending connection request, the connection request is set for requesting using bluetooth connection second
It is standby;
Determining module is responded or is rejected for determining that the connection request does not receive.
Further, second receiving module, for being received from Bluetooth gateway in response to being connected to the Bluetooth gateway
The MAC Address and key assignments of equivalent device, the key assignments are used for and the second device authentication.
5th aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication device based on gateway, comprising:
First scan module, for scanning the first broadcast, first broadcast is issued by the first equipment, and described first is wide
The instruction of the equivalent device of facility information and inquiry second equipment in broadcasting with the second equipment;
Enquiry module, for, to first broadcast, inquiring the equivalent device of the second equipment in response to scanning;
First sending module is sent out for the equivalent device in response to inquiring second equipment to the equivalent device
Send activation instruction and the first information;
Second sending module, the facility information and the first information for sending the equivalent device are to described first
Equipment.
Further, the equivalent device Bluetooth communication device based on gateway further include:
Second scan module, for scanning the second broadcast, second broadcast is issued by the first equipment, and described second is wide
Facility information and the mark of the expression equivalent device free time in broadcasting with the equivalent device;
Update module, for, to second broadcast, updating the state of the equivalent device in response to scanning for the free time.
Further, the enquiry module, for using institute's band in the first broadcast in response to scanning to first broadcast
The device type ID of the second equipment inquire identical with the device type of second equipment equipment.
Further, first sending module, for being found according to the device type ID of second equipment and institute
The identical and idle equivalent device of the second device type is stated, sends activation instruction and key assignments to the equivalent device.
6th aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication device based on gateway, comprising:
Second creation module, for creating second service in response to receiving activation instruction and the first information;
Third broadcast module has equivalent device in the third broadcast for sending third broadcast by second service
The mark of state of activation;
Third receiving module, the connection request sent for receiving the first equipment;
Second link block is used in response to including the first information in the connection request, with first equipment
Establish bluetooth connection.
Further, the equivalent device Bluetooth communication device based on gateway further include:
Removing module, in response to disconnect with the bluetooth connection of first equipment, delete the activation instruction and
The first information.
7th aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication equipment based on gateway, comprising: at least
One processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely
The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing
Device is able to carry out any equivalent device Bluetooth communication method based on gateway in aforementioned first aspect.
Eighth aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication equipment based on gateway, comprising: at least
One processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely
The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing
Device is able to carry out any equivalent device Bluetooth communication method based on gateway in aforementioned second aspect.
9th aspect, the embodiment of the present disclosure provide a kind of equivalent device Bluetooth communication equipment based on gateway, comprising: at least
One processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely
The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing
Device is able to carry out any equivalent device Bluetooth communication method based on gateway in the aforementioned third aspect.
Tenth aspect, the embodiment of the present disclosure provide a kind of non-transient computer readable storage medium, which is characterized in that this is non-
Transitory computer readable storage medium stores computer instruction, and the computer instruction is for making computer execute aforementioned first aspect
In any equivalent device Bluetooth communication method based on gateway.
Tenth on the one hand, and the embodiment of the present disclosure provides a kind of non-transient computer readable storage medium, which is characterized in that should
Non-transient computer readable storage medium stores computer instruction, and the computer instruction is for making computer execute aforementioned second party
Any equivalent device Bluetooth communication method based on gateway in face.
12nd aspect, the embodiment of the present disclosure provide a kind of non-transient computer readable storage medium, which is characterized in that should
Non-transient computer readable storage medium stores computer instruction, and the computer instruction is for making computer execute aforementioned third party
Any equivalent device Bluetooth communication method based on gateway in face.
The embodiment of the present disclosure provide it is a kind of by the equivalent device Bluetooth communication method of gateway, device, electronic equipment and based on
Calculation machine readable storage medium storing program for executing.Wherein being somebody's turn to do the equivalent device Bluetooth communication method based on gateway includes: creation first service;Pass through institute
It states first service and sends the first broadcast, have the facility information of the second equipment in first broadcast and inquiry described second is set
The instruction of standby equivalent device;Receive the connection request of Bluetooth gateway;In response to being connected to the Bluetooth gateway, from the bluetooth
The facility information and the first information of gateway reception equivalent device;Use the facility information of the equivalent device and described first
Information connects the equivalent device.The embodiment of the present disclosure is inquired the equivalent device of bluetooth equipment by gateway and is activated described etc.
Valence equipment solves the problems, such as the exclusive of bluetooth equipment, and the user equipment for needing to connect bluetooth equipment is connected in time
On the bluetooth equipment needed.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and
It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter
Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure
A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment
It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure
Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can
To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts
Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian
And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein
And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein
Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways.
For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make
With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or
Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way
Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn
System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also
It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields
The skilled person will understand that the aspect can be practiced without these specific details.
Fig. 1 is the typical case schematic diagram of a scenario of the disclosure.In a typical application, there are multiple users to set in system
Standby 101, typically, user equipment 101 can be smart phone, and user equipment 101 can control bluetooth by specific APP
Equipment 102, typically, the bluetooth equipment 102 can be bluetooth electric light, and bluetooth equipment 102 can be managed by Bluetooth gateway 103
Reason is connected between user equipment 101 and Bluetooth gateway 103 and bluetooth equipment 102 and Bluetooth gateway 103 by linking bluetooth 105
It connects, Bluetooth gateway 103 can be connect by wifi 4G network 106 with cloud server.
Fig. 2 is the process for the equivalent device Bluetooth communication method embodiment one based on gateway that the embodiment of the present disclosure provides
Figure, the equivalent device Bluetooth communication method based on gateway provided in this embodiment can be by an equivalent device based on gateway indigo plants
Tooth communication device executes, should equivalent device Bluetooth communication device based on gateway can be implemented as software, or be embodied as soft
The combination of part and hardware, the equivalent device Bluetooth communication device based on gateway can integrate certain of setting in a communications system and set
In standby, such as in communication terminal device.As shown in Fig. 2, this method comprises the following steps:
Step S201 creates first service;
In this step, user equipment is localling create first service, for sending Bluetooth broadcast signal, first clothes
Business can be gatt server.
Step S202 sends the first broadcast, setting with the second equipment in first broadcast by the first service
The instruction of the equivalent device of standby information and inquiry second equipment;
User equipment sends Bluetooth broadcast signal by first service, and the equipment of bluetooth equipment is had in the Bluetooth broadcast
The instruction of information and the equivalent device of the inquiry bluetooth equipment, the facility information can be the MAC Address of bluetooth equipment
Or one or both of device type ID of bluetooth equipment, the inquiry instruction are used to inquire the bluetooth to Bluetooth gateway
The equivalent device of equipment, the equivalent device can be the equipment with the bluetooth equipment same type or have identical function
The equipment of energy, for example in an application scenarios, there is 4 bluetooth lamps in a room, user wants to open 1 therein, this 4
The brightness of small cup lamp is identical, is closely located to, in this way if only opening wherein one, opening any one effect in fact is all
The same, this 4 bluetooth lamps are the equivalent device of other side mutually.
Step S203 receives the connection request of Bluetooth gateway;
It under normal circumstances, can active transmission connection after Bluetooth gateway inquires the equivalent device of the bluetooth equipment
It requests to user equipment, to send query result to user equipment.
Step S204 receives the equipment letter of equivalent device from the Bluetooth gateway in response to being connected to the Bluetooth gateway
Breath and the first information;
When user equipment is connected to the Bluetooth gateway, the facility information and one of equivalent device can be received from Bluetooth gateway
A first information, the facility information of the equivalent device can be the MAC Address of equivalent device, and the first information can be
Bluetooth gateway is used for the user equipment and equivalence is set by the calculated key assignments of special algorithm or code key or token
It is authenticated when standby connection.
In this step, the user equipment can also send the User ID of user equipment to the Bluetooth gateway, bluetooth
Gateway authenticates the User ID, could receive the facility information of equivalent device after the authentication is passed from the Bluetooth gateway
And the first information, refusal information otherwise can be received from Bluetooth gateway.
Step S205 connects the equivalent device using the facility information and the first information of the equivalent device.
The MAC Address of equivalent device can be used in user equipment, and scanning has the Bluetooth broadcast of the address information, works as scanning
To after the Bluetooth broadcast with the address information, bluetooth connection is carried out using the first information and the equivalent device.
In this embodiment, after step S205, can also include:
Step S206 disconnects the connection with the equivalent device;
Step S207 sends the second broadcast by the first service, has the equivalent device in second broadcast
Facility information and indicate the mark of equivalent device free time.
When the communication completion of user equipment and the equivalent device, the connection with the equivalent device is disconnected.Or it is described
User equipment connects equivalent device with effective authentication means using token etc., when token is expired, disconnects and the equivalence
The connection of equipment.At this point, user equipment can send the second Bluetooth broadcast by first service, with equivalence in the broadcast
The idle mark of the MAC Address and the expression equivalent device of equipment, so that the Bluetooth gateway updates the equivalence
The state of equipment.
In this embodiment, before step S201, can also include:
Step S208, sends connection request, and the connection request uses the second equipment of bluetooth connection for requesting;
Step S209 determines that the connection request does not receive response or is rejected.
User equipment connects the second equipment, but the second equipment may be sent out by other equipment connection or the second equipment
Raw failure can not connect, and when user equipment determines that the second equipment can not connect, start to execute step S201.
The embodiment of the present disclosure provide it is a kind of by the equivalent device Bluetooth communication method of gateway, device, electronic equipment and based on
Calculation machine readable storage medium storing program for executing.Wherein being somebody's turn to do the equivalent device Bluetooth communication method based on gateway includes: creation first service;Pass through institute
It states first service and sends the first broadcast, have the facility information of the second equipment in first broadcast and inquiry described second is set
The instruction of standby equivalent device;Receive the connection request of Bluetooth gateway;In response to being connected to the Bluetooth gateway, from the bluetooth
The facility information and the first information of gateway reception equivalent device;Use the facility information of the equivalent device and described first
Information connects the equivalent device.The embodiment of the present disclosure is inquired the equivalent device of bluetooth equipment by gateway and is activated described etc.
Valence equipment solves the problems, such as the exclusive of bluetooth equipment, and the user equipment for needing to connect bluetooth equipment is connected in time
On the bluetooth equipment needed.
Fig. 3 is the process for the equivalent device Bluetooth communication method embodiment one based on gateway that the embodiment of the present disclosure provides
Figure, the equivalent device Bluetooth communication method based on gateway provided in this embodiment can be by an equivalent device based on gateway indigo plants
Tooth communication device executes, should equivalent device Bluetooth communication device based on gateway can be implemented as software, or be embodied as soft
The combination of part and hardware, the equivalent device Bluetooth communication device based on gateway can integrate certain of setting in a communications system and set
In standby, such as in Bluetooth gateway equipment.As shown in figure 3, this method comprises the following steps:
Step 301, the first broadcast of scanning, first broadcast are issued by the first equipment, and are had in first broadcast
The instruction of the equivalent device of the facility information and inquiry second equipment of second equipment;
Bluetooth gateway continually scans for broadcast singal, when scanning to information when the first broadcast, in the first broadcast of analysis.It is described
The instruction of the equivalent device of facility information and inquiry second equipment in first broadcast including the second equipment.Described second
The facility information of equipment includes one or both of MAC Address or device type ID of the second equipment.
Step 302, the equivalent device of the second equipment is inquired to first broadcast in response to scanning;
When scanning to first broadcast inquires current Bluetooth according to the information of the second equipment in first broadcast
In the bluetooth equipment that gateway is managed, if having the equivalent device of second equipment.The equivalent device of second equipment can
To be equipment identical with the type of the second equipment or have the equipment of identical function, and the equivalent device with the second equipment
It is in idle condition.In one embodiment, when the equivalent device is connected, it, which can be set, to be queried to,
Without checking the state of equivalent device when inquiring in this way, as long as the equivalent device that can be queried to all is idle.
Step 303, in response to inquiring the equivalent device of second equipment, activation instruction is sent to the equivalent device
And the first information;
When inquiring the equivalent device of second equipment, activation instruction and the first letter are sent to the equivalent device
Breath.The activation instruction is described for waiting the connection of user equipment for making the equivalent device send Bluetooth broadcast signal
The first information can be the calculated key assignments of Bluetooth gateway or code key or token etc., for the user equipment and described etc.
The connection of valence equipment authenticates.
Step 304, the facility information and the first information for sending the equivalent device are to first equipment.
Bluetooth gateway is by the facility information of the equivalent device, such as the MAC Address and first letter of equivalent device
Breath, such as key assignments or code key or token etc., are sent to user equipment, so as to user equipment setting using the equivalent device
Standby information and the first information connect the equivalent device.
In this embodiment, after step S304, can also include:
Step S305, the second broadcast of scanning, second broadcast are issued by the first equipment, and are had in second broadcast
The facility information of the equivalent device and the mark for indicating the equivalent device free time;
Step S306 updates the state of the equivalent device in response to scanning to second broadcast for the free time.
After user equipment and the sign off of the equivalent device, the second broadcast can be sent, Bluetooth gateway scanning should
Second broadcasts, facility information and the mark of the expression equivalent device free time in second broadcast with the equivalent device
Know, indicates that the equivalent device is idle, can be connected by other equipment.Equal Bluetooth gateways scanning is broadcasted to described second
When, according to the MAC Address of the facility information of the equivalent device in the broadcast, such as equivalent device, by the equivalent device
State updates can be idle, and when useful family equipment query equivalent device next time, which can be queried to.
In this embodiment, after step S302, can also include:
First equipment is connected, and receives the user information of the first equipment;
The user information is authenticated, if the authentication is passed, continues to execute step S303.
The step of having added an authentication herein, needs to receive the user information of the first equipment, such as user from the first equipment
ID goes out to be authenticated, there is the permission of connection equivalent device with the user of determination first equipment in Bluetooth gateway.
Fig. 4 is the process for the equivalent device Bluetooth communication method embodiment one based on gateway that the embodiment of the present disclosure provides
Figure, the equivalent device Bluetooth communication method based on gateway provided in this embodiment can be by an equivalent device based on gateway indigo plants
Tooth communication device executes, should equivalent device Bluetooth communication device based on gateway can be implemented as software, or be embodied as soft
The combination of part and hardware, the equivalent device Bluetooth communication device based on gateway can integrate certain of setting in a communications system and set
In standby, such as in bluetooth equipment.As shown in figure 4, this method comprises the following steps:
Step S401 creates second service in response to receiving activation instruction and the first information;
In this step, bluetooth equipment receives the activation instruction of Bluetooth gateway transmission and for connecting authenticate first
Information, bluetooth equipment are localling create second service, such as gatt sever at once.
Step S402 sends third broadcast by second service, has equivalent device state of activation in the third broadcast
Mark;
Bluetooth equipment sends third using the second service and broadcasts, and is in the third broadcast with the bluetooth equipment
The mark of state of activation, the third broadcast in can also include the bluetooth equipment MAC Address etc..
Step S403 receives the connection request that the first equipment is sent;
First equipment scans institute after receiving the facility information and the first information of equivalent device of Bluetooth gateway transmission
Third broadcast is stated, when scanning to after the third broadcast with the equivalent device information, bluetooth is sent using the first information and connects
Request is connect, bluetooth equipment receives the connection request that the first equipment is sent after having sent third broadcast.
Step S404 establishes bluetooth with first equipment in response to including the first information in the connection request
Connection.
It is determining to establish bluetooth company with most first equipment when detecting in the connection request includes the first information
It connects, handles the request of data etc. of first equipment.
In this embodiment, after step S404, can also include:
Step S405, in response to disconnect with the bluetooth connection of first equipment, delete the activation instruction and described
The first information.
In the step, after bluetooth equipment disconnects the connection with first equipment, deletes received activation and refer to
Order and the first information, to receive activation instruction and the first information next time.
Technical solution in through the foregoing embodiment, when user equipment connects bluetooth equipment, discovery needs the indigo plant connected
Tooth equipment is occupied or breaks down, and the equivalent device for inquiring the bluetooth equipment can be requested to Bluetooth gateway, with
Solve the problems, such as that bluetooth equipment occupancy can not connect.
Fig. 5 is the overall flow figure for the equivalent device Bluetooth communication system based on gateway that the embodiment of the present disclosure provides, such as
Shown in Fig. 5, whole system includes 3 part of user equipment, Bluetooth gateway and bluetooth equipment.Wherein bluetooth equipment refers to above-mentioned reality
Apply the equivalent device in example.In the communication system, when user equipment wants connection bluetooth equipment, the bluetooth equipment has been found
It is connected by other equipment or the bluetooth equipment breaks down, then referring to Fig. 5, localling create a gatt server,
The first broadcast is sent, want the MAC Address of the bluetooth equipment connected, device type with it in the broadcast and inquires the indigo plant
The instruction of the equivalent device of tooth equipment, the Bluetooth gateway scanning of surrounding to after the broadcast, according to the MAC Address of bluetooth equipment,
Device type etc. inquires the bluetooth equipment equivalent device, and when finding equivalent device, an authentication behaviour can be carried out to user equipment
Make (not shown), the facility information of equivalent device and the first information are sent to user equipment later, and to the equivalence
Equipment sends activation instruction and the first information, and when equivalent device receives activation instruction, one is created in equivalent device
Gatt server, sends third broadcast, includes the MAC Address for activating mark, equivalent device of equivalent device in the broadcast;
User equipment is after receiving the facility information and the first information of the equivalent device, scanning third broadcast, when scanning to the
It is that authentication information connects the equivalent device, and carries out data transmission using the first information after three broadcast.It transmits and ties when data
Beam or the timeliness of connection reach the time limit, disconnect, and user equipment can send the second broadcast, band in second broadcast at this time
There is the facility information of the equivalent device and indicate the mark of equivalent device free time, when Bluetooth gateway is scanned to described the
After two broadcast, the state of the equivalent device is updated for the free time, so that this etc. can be inquired and be connected to other users equipment
In valence equipment.
Fig. 6 is the structure for 60 embodiment one of equivalent device Bluetooth communication device based on gateway that the embodiment of the present disclosure provides
Schematic diagram, as shown in fig. 6, the device includes: the first creation module 61, the first broadcast module 62, the first receiving module 63, second
Receiving module 64, the first link block 65.Wherein,
First creation module 61, for creating first service;
First broadcast module 62, for sending the first broadcast by the first service, with the in first broadcast
The instruction of the equivalent device of the facility information and inquiry second equipment of two equipment;
First receiving module 63, for receiving the connection request of Bluetooth gateway;
Second receiving module 64, for receiving equivalence from the Bluetooth gateway and setting in response to being connected to the Bluetooth gateway
Standby facility information and the first information;
First link block 65 connects institute for using the facility information and the first information of the equivalent device
State equivalent device.
Further, the equivalent device Bluetooth communication device 60 based on gateway further include:
First disconnects module 66, for disconnecting and the connection of the equivalent device;
Second broadcast module 67, for by the first service send second broadcast, it is described second broadcast in band
It states the facility information of equivalent device and indicates the mark of the equivalent device free time.
Further, the equivalent device Bluetooth communication device 60 based on gateway further include:
Sending module 68 is connected, for sending connection request, the connection request uses bluetooth connection second for requesting
Equipment;
Determining module 69 is responded or is rejected for determining that the connection request does not receive.
Further, second receiving module 64, for being connect from Bluetooth gateway in response to being connected to the Bluetooth gateway
The MAC Address and key assignments of equivalent device are received, the key assignments is used for and the second device authentication.
The method that Fig. 6 shown device can execute embodiment illustrated in fig. 2, the part that the present embodiment is not described in detail can join
Examine the related description to embodiment illustrated in fig. 2.In implementation procedure and the technical effect embodiment shown in Figure 2 of the technical solution
Description, details are not described herein.
In 70 embodiment two of equivalent device Bluetooth communication device based on gateway that the embodiment of the present disclosure provides, such as Fig. 7
Shown, the equivalent device Bluetooth communication device 70 based on gateway includes: the first scan module 71, enquiry module 72, first
Sending module 73, the second sending module 74.Wherein,
First scan module 71, for scanning the first broadcast, first broadcast is issued by the first equipment, and described first
The instruction of the equivalent device of facility information and inquiry second equipment in broadcast with the second equipment;
Enquiry module 72, for, to first broadcast, inquiring the equivalent device of the second equipment in response to scanning;
First sending module 73, for the equivalent device in response to inquiring second equipment, to the equivalent device
Send activation instruction and the first information;
Second sending module 74, the facility information and the first information for sending the equivalent device are to described
One equipment.
Further, the equivalent device Bluetooth communication device 70 based on gateway further include:
Second scan module 75, for scanning the second broadcast, second broadcast is issued by the first equipment, and described second
Facility information and the mark of the expression equivalent device free time in broadcast with the equivalent device;
Update module 76, for, to second broadcast, updating the state of the equivalent device in response to scanning for the free time.
Further, the enquiry module 72, for using institute in the first broadcast in response to scanning to first broadcast
The device type ID of second equipment of band inquires equipment identical with the device type of second equipment.
Further, first sending module 73, for according to the device type ID of second equipment find with
The identical and idle equivalent device of second device type sends activation instruction and key assignments to the equivalent device.
The method that device in embodiment two described in Fig. 7 can execute embodiment illustrated in fig. 3, the present embodiment are not described in detail
Part, can refer to the related description to embodiment illustrated in fig. 3.The implementation procedure and technical effect of the technical solution are referring to Fig. 3
Description in illustrated embodiment, details are not described herein.
In 80 embodiment three of equivalent device Bluetooth communication device based on gateway that the embodiment of the present disclosure provides, such as Fig. 8
It is shown, the equivalent device Bluetooth communication device 80 based on gateway include: the second creation module 81, third broadcast module 82,
Third receiving module 83, the second link block 84.Wherein,
Second creation module 81, for creating second service in response to receiving activation instruction and the first information;
Third broadcast module 82 is set in the third broadcast with equivalence for sending third broadcast by second service
The mark of standby state of activation;
Third receiving module 83, the connection request sent for receiving the first equipment;
Second link block 84, for being set with described first in response to including the first information in the connection request
It is standby to establish bluetooth connection.
Further, the equivalent device Bluetooth communication device 80 based on gateway further include:
Removing module 85, in response to disconnect with the bluetooth connection of first equipment, delete the activation instruction with
And the first information.
The method that device in embodiment two described in Fig. 8 can execute embodiment illustrated in fig. 4, the present embodiment are not described in detail
Part, can refer to the related description to embodiment illustrated in fig. 4.The implementation procedure and technical effect of the technical solution are referring to fig. 4
Description in illustrated embodiment, details are not described herein.
Fig. 9 is the hardware block diagram for illustrating electronic equipment according to an embodiment of the present disclosure.As shown in figure 9, according to the disclosure
The electronic equipment 90 of embodiment includes memory 91 and processor 92.
The memory 91 is for storing non-transitory computer-readable instruction.Specifically, memory 91 may include one
Or multiple computer program products, the computer program product may include various forms of computer readable storage mediums, example
Such as volatile memory and/or nonvolatile memory.The volatile memory for example may include random access memory
(RAM) and/or cache memory (cache) etc..The nonvolatile memory for example may include read-only memory
(ROM), hard disk, flash memory etc..
The processor 92 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution energy
The processing unit of the other forms of power, and can control other components in electronic equipment 90 to execute desired function.?
In one embodiment of the disclosure, which makes for running the computer-readable instruction stored in the memory 91
Obtain the whole that the electronic equipment 90 executes the equivalent device Bluetooth communication method based on gateway of each embodiment of the disclosure above-mentioned
Or part steps.
Those skilled in the art will be understood that solve the technical issues of how obtaining good user experience effect, this
It also may include structure well known to communication bus, interface etc. in embodiment, these well known structures should also be included in this hair
Within bright protection scope.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
Figure 10 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in Figure 10,
According to the computer readable storage medium 100 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 101.
When the non-transitory computer-readable instruction 101 is run by processor, execute each embodiment of the disclosure above-mentioned based on net
The all or part of the steps of the equivalent device Bluetooth communication method of pass.
Above-mentioned computer readable storage medium 100 includes but is not limited to: optical storage media (such as: CD-ROM and DVD),
Magnetic-optical storage medium (such as: MO), magnetic storage medium (such as: tape or mobile hard disk), with built-in rewritable non-volatile
The media (such as: storage card) of property memory and media (such as: ROM box) with built-in ROM.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
Figure 11 is the hardware structural diagram for illustrating the terminal device according to the embodiment of the present disclosure.As shown in figure 11, the base
Include the above-mentioned equivalent device Bluetooth communication device embodiment based on gateway in the equivalent device Bluetooth communication terminal 110 of gateway.
The terminal device can be implemented in a variety of manners, and the terminal device in the disclosure can include but is not limited to such as
Mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer),
PMP (portable media player), navigation device, vehicle-mounted terminal equipment, vehicle-mounted display terminal, vehicle electronics rearview mirror etc.
Mobile terminal device and such as number TV, desktop computer etc. fixed terminal equipment.
As the embodiment of equivalent replacement, which can also include other assemblies.As shown in figure 11, gateway should be based on
Equivalent device Bluetooth communication terminal 110 may include power supply unit 111, wireless communication unit 112, A/V (audio/video) defeated
Enter unit 113, user input unit 114, sensing unit 115, interface unit 116, controller 117, output unit 118 and storage
Unit 119 etc..Figure 11 shows the terminal with various assemblies, it should be understood that being not required for implementing all show
Component, can also alternatively implement more or fewer components.
Wherein, wireless communication unit 112 allows the radio communication between terminal 110 and wireless communication system or network.
A/V input unit 113 is for receiving audio or video signal.The order that user input unit 114 can be inputted according to user is raw
At key input data with the various operations of controlling terminal equipment.Current state, the terminal 110 of the detection terminal 110 of sensing unit 115
Position, user it is mobile for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 110, terminal 110, terminal 110
With direction etc., and generate order or the signal of operation for controlling terminal 110.Interface unit 116 is used as at least one
External device (ED) connect with terminal 110 can by interface.Output unit 118 is configured to vision, audio and/or tactile side
Formula provides output signal.Storage unit 119 can store the software program etc. of the processing and control operation that are executed by controller 117
Deng, or can temporarily store oneself data through exporting or will export.Storage unit 119 may include at least one type
Storage medium.Moreover, terminal 110 can be with the network storage for the store function for executing storage unit 119 by network connection
Device cooperation.The overall operation of the usual controlling terminal equipment of controller 117.In addition, controller 117 may include for reproduce or
The multi-media module of multimedia playback data.Controller 117 can be with execution pattern identifying processing, by what is executed on the touchscreen
Handwriting input or picture draw input and are identified as character or image.Power supply unit 111 receives outer under the control of controller 117
Portion's electric power or internal power and electric power appropriate needed for each element of operation and component are provided.
The various embodiments for the equivalent device Bluetooth communication method based on gateway that the disclosure proposes can be used for example
The computer-readable medium of computer software, hardware or any combination thereof is implemented.Hardware is implemented, the base that the disclosure proposes
In gateway equivalent device Bluetooth communication method various embodiments can by using application-specific IC (ASIC),
Digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field-programmable gate array
Column (FPGA), controller, microcontroller, microprocessor, are designed to execute the electronic unit of function described herein processor
At least one of implement, in some cases, the equivalent device Bluetooth communication method based on gateway that the disclosure proposes
Various embodiments can be implemented in controller 77.The equivalent device based on gateway proposed for software implementation, the disclosure
The various embodiments of Bluetooth communication method can be come with the individual software module for allowing to execute at least one functions or operations
Implement.Software code can be implemented by the software application (or program) write with any programming language appropriate, software
Code can store in storage unit 119 and be executed by controller 117.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
The basic principle of the disclosure is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in the disclosure
The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the disclosure
Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand
With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the disclosure,.
Device involved in the disclosure, device, equipment, system block diagram only as illustrative example and be not intended to
It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that
, it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool
" etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above
"or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made
Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
In addition, as used herein, the "or" instruction separation used in the enumerating of the item started with "at least one"
It enumerates, so that enumerating for such as " at least one of A, B or C " means A or B or C or AB or AC or BC or ABC (i.e. A and B
And C).In addition, wording " exemplary " does not mean that the example of description is preferred or more preferable than other examples.
It may also be noted that in the system and method for the disclosure, each component or each step are can to decompose and/or again
Combination nova.These decompose and/or reconfigure the equivalent scheme that should be regarded as the disclosure.
The technology instructed defined by the appended claims can not departed from and carried out to the various of technology described herein
Change, replace and changes.In addition, the scope of the claims of the disclosure is not limited to process described above, machine, manufacture, thing
Composition, means, method and the specific aspect of movement of part.Can use carried out to corresponding aspect described herein it is essentially identical
Function or realize essentially identical result there is currently or later to be developed processing, machine, manufacture, event group
At, means, method or movement.Thus, appended claims include such processing, machine, manufacture, event within its scope
Composition, means, method or movement.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this
It is open.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein
General Principle can be applied to other aspect without departing from the scope of the present disclosure.Therefore, the disclosure is not intended to be limited to
Aspect shown in this, but according to principle disclosed herein and the consistent widest range of novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the disclosure
It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill
Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.