Summary of the invention
In a first aspect, the embodiment of the present disclosure provides a kind of Bluetooth communication method based on Scheduling of Gateway, comprising:
The first broadcast singal of Bluetooth gateway is scanned, the information of the second equipment is had in first broadcast singal;Response
First broadcast singal is arrived in scanning, sends the link information of the first equipment to the Bluetooth gateway;Receive Bluetooth gateway hair
The first information sent, and first service is created, the first service sends the second broadcast singal, band in second broadcast singal
There is the first information;Receive the connection request of Bluetooth gateway;In response to being connected to the Bluetooth gateway, receive what Bluetooth gateway was sent
Second information;According to second information, Bluetooth connection request is sent to second equipment.
Further, the Bluetooth communication method based on Scheduling of Gateway, further includes: set in response to being connected to described second
It is standby, data are sent to second equipment;In response to receiving the open command or the second information mistake of the Bluetooth gateway
Phase disconnects the connection with second equipment.
It further, include the MAC Address of the second equipment in first broadcast singal.
Further, described to arrive first broadcast singal in response to scanning, the link information of the first equipment is sent to institute
State Bluetooth gateway, comprising: arrive first broadcast singal in response to scanning, send the User ID and the second equipment of the first equipment
MAC Address to the Bluetooth gateway.
Second aspect, the embodiment of the present disclosure provide a kind of Bluetooth communication method based on Scheduling of Gateway, comprising:
The first broadcast singal is sent, the information of the second equipment is had in first broadcast singal;In response to receiving
The link information for stating the first equipment sends the first information to first equipment;Scheduling queue is added in first equipment, and
The primary scheduling of triggering;If first equipment is scheduled, first equipment is connected according to the first information;Send the
Two information give first equipment, so that first equipment connects second equipment.
Further, before sending the first broadcast singal, further includes: receive that one or more second equipment send the
Three broadcast singals, and connect one or more of second equipment;Receive the type ID letter of one or more of second equipment
Breath;The information of second equipment is inquired from cloud according to the type id information of second equipment.
Further, the first broadcast singal of the transmission, comprising: creation second service, described in second service simulation
Second equipment sends first broadcast singal.
Further, the link information in response to receiving the first equipment sends the first letter to first equipment
Breath, comprising: in response to receiving the User ID of first equipment, the User ID is authenticated, if the authentication is passed, to
First equipment sends the first key assignments.
Further, described that scheduling queue is added in first equipment, and trigger primary scheduling, comprising: by described the
Scheduling queue is added in the User ID of one equipment, judges that the priority orders of first equipment and third equipment, the third are set
The standby equipment to be presently attached in second equipment.
Further, it if first equipment is scheduled, is set according to first information connection described first
It is standby, comprising: if the priority of first equipment is higher than the third equipment, to connect described the using first key assignments
One equipment.
Further, the second information of the transmission is to first equipment, so that first equipment connection described second
Equipment, comprising: send token to first equipment, so that first equipment is set using token connection described second
It is standby.
Further, the second information of the transmission is to first equipment, so that first equipment connection described second
After equipment, further includes: the first scheduling of triggering updates second letter if the first current equipment is scheduled again
Breath;Otherwise open command is sent to first equipment.
The third aspect, the embodiment of the present disclosure provide a kind of Bluetooth communication device based on Scheduling of Gateway, comprising:
Scan module has the second equipment in first broadcast singal for scanning the first broadcast singal of gateway
Information;
First sending module sends the link information of the first equipment for arriving first broadcast singal in response to scanning
To the Bluetooth gateway;
First receiving module for receiving the first information of Bluetooth gateway transmission, and creates first service, first clothes
Business sends the second broadcast singal, has the first information in second broadcast singal;
Second receiving module, for receiving the connection request of Bluetooth gateway;
Third receiving module, for receiving the second information that Bluetooth gateway is sent in response to being connected to the Bluetooth gateway;
First link block, for sending connection request to second equipment according to second information.
Further, based on the Bluetooth communication device of Scheduling of Gateway, further includes:
5th sending module, for sending data to second equipment in response to being connected to second equipment;
First disconnects module, for the open command or the second information mistake in response to receiving the Bluetooth gateway
Phase disconnects the connection with second equipment.
It further, include the MAC Address of the second equipment in first broadcast singal.
Further, the first sending module sends the first equipment for arriving first broadcast singal in response to scanning
The MAC Address of User ID and the second equipment is to the Bluetooth gateway.
Fourth aspect, the embodiment of the present disclosure provide a kind of Bluetooth communication device based on Scheduling of Gateway, comprising:
Second sending module has the letter of the second equipment for sending the first broadcast singal in first broadcast singal
Breath;
Third sending module sends the to first equipment for the information in response to receiving first equipment
One information;
Scheduler module for scheduling queue to be added in first equipment, and triggers primary scheduling;
Second link block, if scheduled for first equipment, according to first information connection described the
One equipment;
4th sending module, for sending the second information to first equipment, so that described in first equipment connection
Second equipment.
Further, the Bluetooth communication device based on Scheduling of Gateway further include:
Third link block, the third broadcast singal sent for receiving one or more second equipment, and described in connection
One or more second equipment;
4th receiving module, for receiving the type id information of one or more of second equipment;
First enquiry module, for inquiring second equipment from cloud according to the type id information of second equipment
Information.
Further, the second sending module, further includes:
First creation module, for creating second service, the second service simulates second equipment and sends described the
One broadcast singal.
Further, third sending module, for the User ID in response to receiving first equipment, to the user
ID is authenticated, if the authentication is passed, sends the first key assignments to first equipment.
Further, scheduler module judges described first for scheduling queue to be added in the User ID of first equipment
The priority orders of equipment and third equipment, the third equipment are the equipment being presently attached in second equipment.
Further, the second link block, if the priority for first equipment is higher than the third equipment,
First equipment is connected using first key assignments.
Further, the 4th sending module, for sending token to first equipment, so that first equipment uses
The token connects second equipment.
Further, the Bluetooth communication device based on Scheduling of Gateway, further includes:
Scheduler module is updated, updates institute if the first current equipment is scheduled again for triggering the first scheduling
State the second information;Otherwise open command is sent to first equipment.
5th aspect, the embodiment of the present disclosure provide a kind of Bluetooth communication equipment based on Scheduling of 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 Bluetooth communication method based on Scheduling of Gateway in aforementioned first aspect.
6th aspect, the embodiment of the present disclosure provide a kind of Bluetooth communication equipment based on Scheduling of 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 Bluetooth communication method based on Scheduling of Gateway in aforementioned first aspect.
7th 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 Bluetooth communication method based on Scheduling of Gateway.
Eighth 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 second aspect
In any Bluetooth communication method based on Scheduling of Gateway.
The embodiment of the present disclosure provides a kind of Bluetooth communication method based on Scheduling of Gateway, device, electronic equipment and computer
Readable storage medium storing program for executing.Wherein being somebody's turn to do the Bluetooth communication method based on Scheduling of Gateway includes: the first broadcast singal for scanning Bluetooth gateway,
The information of the second equipment is had in first broadcast singal;First broadcast singal is arrived in response to scanning, first is sent and sets
Standby link information is to the Bluetooth gateway;The first information that Bluetooth gateway is sent is received, and creates first service, described first
Service sends the second broadcast singal, has the first information in second broadcast singal;Receive the connection request of Bluetooth gateway;It rings
Ying Yu is connected to the Bluetooth gateway, receives the second information that Bluetooth gateway is sent;According to second information, to described second
Equipment sends Bluetooth connection request.The embodiment of the present disclosure solves the problems, such as the exclusive of bluetooth equipment by the scheduling of Bluetooth gateway,
The user equipment for needing to connect bluetooth equipment is connected in time on the bluetooth equipment of needs.
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 can be smart phone, and user equipment 101 can be set by specific APP to control bluetooth
Standby 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 flow chart for the Bluetooth communication method embodiment one based on Scheduling of Gateway that the embodiment of the present disclosure provides, this
Embodiment provide should Bluetooth communication method based on Scheduling of Gateway can by one based on the Bluetooth communication device of Scheduling of Gateway come
It executes, being somebody's turn to do the Bluetooth communication device based on Scheduling of Gateway can be implemented as software, or be embodied as the combination of software and hardware, should
Bluetooth communication device based on Scheduling of Gateway can integrate in certain equipment of setting in a communications system, such as communication terminal device
In.As shown in Fig. 2, this method comprises the following steps:
Step S201 scans the first broadcast singal of Bluetooth gateway, has the second equipment in first broadcast singal
Information;
In this step, the broadcast singal that user equipment scans Bluetooth gateway is sent includes institute in the broadcast singal
The facility information for the second equipment that Bluetooth gateway is connected is stated, second equipment is bluetooth equipment, the letter of second equipment
Breath can be MAC Address, device type ID of the such as described bluetooth equipment etc., since Bluetooth gateway may be connected with multiple bluetooths
Equipment, therefore the broadcast singal that user equipment scans can be carousel, take turns the MAC of the multiple bluetooth equipment of streaming
Address and/or device type ID.
Step S202 arrives first broadcast singal in response to scanning, sends the link information of the first equipment to the indigo plant
Tooth gateway;
First equipment can be user equipment.When user equipment scans to have the second facility information broadcast singal when,
The Bluetooth gateway is sent by the equipment link information of user equipment, the link information may include the user equipment
The MAC Address of User ID and second equipment.
Step S203 receives the first information that Bluetooth gateway is sent, and creates first service, and the first service sends the
Two broadcast singals have the first information in second broadcast singal;
In this step, user equipment receives the first information that Bluetooth gateway is sent, and the first information can be one
Key assignments determines the user equipment for gateway later.When receiving the first information, user equipment is localling create first
Service, the first service send the second broadcast singal, and the first information is had in second broadcast singal.Wherein
The first service can be gatt sever, and the first information is the key assignments, to facilitate Bluetooth gateway being dispatched to use
The user equipment is notified using the key assignments when equipment of family.
Step S204 receives the connection request of Bluetooth gateway;
In this step, user equipment receives the connection request of Bluetooth gateway, may include step in the connection request
The first information in S203, to confirm that user equipment and the Bluetooth gateway can connect.
Step S205 receives the second information that Bluetooth gateway is sent in response to being connected to the Bluetooth gateway;
In this step, when user equipment is connected to the Bluetooth gateway, the second information that Bluetooth gateway is sent is received,
Second information is used to carry out bluetooth connection and communication with the second equipment.In the disclosure, second information can be order
Board.
Step 206, according to second information, Bluetooth connection request is sent to second equipment.
In this step, the user equipment uses second information, sends bluetooth connection to second equipment and asks
It asks.
In this embodiment, the Bluetooth communication method based on Scheduling of Gateway can further include following steps:
Step 207, in response to being connected to second equipment, data are sent to second equipment;
Step 208, it in response to receiving the open command of the Bluetooth gateway or second equipment, disconnects and described the
The connection of two equipment.
User equipment has sent Bluetooth connection request to the second equipment in step 206, after connecting upper second equipment,
Data can be sent to the second equipment.When receiving the open command of the Bluetooth gateway, the connection with the second equipment is disconnected;
Or when the second information is expired, the connection with the second equipment is disconnected, for example when the second information is token, token has one
Effective time, when being more than this effective time, user equipment and the connection of second equipment can disconnect automatically.
The embodiment of the present disclosure provides a kind of Bluetooth communication method based on Scheduling of Gateway, device, electronic equipment and computer
Readable storage medium storing program for executing.Wherein being somebody's turn to do the Bluetooth communication method based on Scheduling of Gateway includes: the first broadcast singal for scanning Bluetooth gateway,
The information of the second equipment is had in first broadcast singal;First broadcast singal is arrived in response to scanning, first is sent and sets
Standby link information is to the Bluetooth gateway;The first information that Bluetooth gateway is sent is received, and creates first service, described first
Service sends the second broadcast singal, has the first information in second broadcast singal;Receive the connection request of Bluetooth gateway;It rings
Ying Yu is connected to the Bluetooth gateway, receives the second information that Bluetooth gateway is sent;According to second information, to described second
Equipment sends Bluetooth connection request.The embodiment of the present disclosure solves the problems, such as the exclusive of bluetooth equipment by the scheduling of Bluetooth gateway,
The user equipment for needing to connect bluetooth equipment is connected in time on the bluetooth equipment of needs.
Fig. 3 is the flow chart for the Bluetooth communication method embodiment one based on Scheduling of Gateway that the embodiment of the present disclosure provides, this
Embodiment provide should Bluetooth communication method based on Scheduling of Gateway can by one based on the Bluetooth communication device of Scheduling of Gateway come
It executes, being somebody's turn to do the Bluetooth communication device based on Scheduling of Gateway can be implemented as software, or be embodied as the combination of software and hardware, should
Bluetooth communication device based on Scheduling of Gateway can integrate in certain equipment of setting in a communications system, such as Bluetooth gateway equipment
In.As shown in figure 3, this method comprises the following steps:
Step 301, the first broadcast singal is sent, the information of the second equipment is had in first broadcast singal;
In this step, Bluetooth gateway sends the first broadcast singal, has the second equipment in first broadcast singal
Information, the information of second equipment can be the MAC Address of the such as described bluetooth equipment, device type ID etc., due to bluetooth
Gateway may be connected with multiple bluetooth equipments, therefore Bluetooth gateway it is the multiple can to take turns streaming with timesharing carousel broadcast singal
The MAC Address and/or device type ID of bluetooth equipment.
Step 302, in response to receiving the link information of the first equipment, the first information is sent to first equipment;
First equipment can be user equipment, scan the broadcast singal of Bluetooth gateway always, when scanning is to the
When the broadcast singal of the information of two equipment, the link information of the first equipment can be sent to the Bluetooth gateway.Work as Bluetooth gateway
When receiving the link information of first equipment, the first information is sent to first equipment.The company of the first equipment herein
Connecing information can be the User ID and/or MAC Address of user equipment, and the first information can be key assignments, and one of the step
Typical example is the User ID and/or MAC Address that Bluetooth gateway receives user equipment, is authenticated to the User ID,
If the authentication is passed, a key assignments is sent when the key assignments dispatches the user equipment for after to user equipment and is set with user
Standby connection.
Step 303, scheduling queue is added in first equipment, and triggers primary scheduling;
A scheduling queue is safeguarded in Bluetooth gateway, is all requests and the progress bluetooth connection of the second equipment in scheduling queue
User equipment User ID, when the User ID by authentication, then by the User ID be added scheduling queue in, and trigger one
Secondary scheduling, wherein the scheduling can be based on scheduling strategy.Scheduling strategy herein can be priority-based, and citing comes
It says, user equipment A wants connection bluetooth equipment C, but user equipment B is communicated with bluetooth equipment C at this time, when triggering is dispatched
When, the priority of user equipment A Yu user equipment B are judged, if the priority of user equipment A is higher than user equipment B, directly
The communication of user equipment B and bluetooth equipment C are interrupted, scheduling user's set A is communicated with bluetooth equipment C, if user equipment A and use
The priority of family equipment B is identical, then judges whether user equipment B and the communication of bluetooth equipment C are in idle, if in the spare time
When, then scheduling user's set A is communicated with bluetooth equipment C.Above-mentioned scheduling strategy is only to illustrate, and is not limited in actual use
Above-mentioned strategy.
Step 304, if first equipment is scheduled, first equipment is connected according to the first information;
If determining that the first equipment is scheduled in scheduling in step 303, then gateway according to sending in step 302
The first information connect first equipment.In this step, the second broadcast singal of Bluetooth gateway scanning first terminal, due to
The first information is had in second broadcast singal, so Bluetooth gateway can determine the first equipment simultaneously according to the first information
Connect the first equipment.
Step 305, the second information is sent to first equipment, so that first equipment connects second equipment.
After being connected to the first equipment, the Bluetooth gateway sends the second information to the first equipment, so that described first
Equipment connects second equipment.Second information typically can be token, and user equipment can be used the token and connect
Bluetooth equipment is connect, to obtain the exclusive right of bluetooth equipment.
In this embodiment, the Bluetooth communication method based on Scheduling of Gateway can further include following steps:
After step 305, can also include:
Step 306, the first scheduling of triggering updates second letter if the first current equipment is scheduled again
Breath;Otherwise open command is sent to first equipment.
In the case where first equipment has been coupled to bluetooth equipment, another triggers scheduling, repeats at this time
Used strategy when scheduling is stated, which equipment judgement should currently dispatch, if the first current equipment is scheduled again,
Second information then can be directly updated, in a typical application, second information is token, if current scheduling
First equipment is not dispatched, but scheduled other equipment, then Bluetooth gateway sends open command to the first equipment, with disconnected
Open the connection of the first equipment Yu the bluetooth equipment.The above process is illustrated, the second information is token, and Bluetooth gateway is to first
Equipment sends the token, and specifying the effective time of the token is 45 seconds, and the dispatching cycle of Bluetooth gateway is 30 seconds, then
When triggering scheduling, the currently scheduled equipment of judgement, if being still first equipment, by the token it is effective when
Between be updated to 45 seconds, if not first equipment, then send open command to the first equipment, make the first equipment and the indigo plant
Tooth equipment disconnects;If the connection between the Bluetooth gateway and first equipment goes wrong, lead to the bluetooth
Gateway not can connect to first equipment, then when the token holding time of the first equipment reaches 45 seconds, the first equipment also will
It is disconnected with the bluetooth equipment.
In this embodiment, the Bluetooth communication method based on Scheduling of Gateway can further include following steps:
Before step 301, can also include:
Step 3001, the third broadcast singal that one or more second equipment are sent is received, and is connected one or more
A second equipment;
Step 3002, the type id information of one or more of second equipment is received;
Step 3003, the information of second equipment is inquired from cloud according to the type id information of second equipment.
Wherein, in step 3001, after bluetooth equipment powers on for the first time or equipment is reset, bluetooth equipment sends wide
Signal is broadcast, after Bluetooth gateway receives the broadcast singal, connects the bluetooth equipment, it is to be understood that an indigo plant
Tooth gateway can receive multiple broadcast singals and connect multiple bluetooth equipments.After being connected to the bluetooth equipment,
The type id information that bluetooth equipment is sent is received, after receiving the type id information, the Bluetooth gateway is according to institute
The type id information for stating bluetooth equipment inquires the various attribute informations of the bluetooth equipment to cloud, such as the bluetooth equipment
MAC Address etc..
Before the step 301, can also include:
Step 3004, second service is created, the second service simulates second equipment and sends the first broadcast letter
Number.
In this step, the Bluetooth gateway simulates the bluetooth equipment that it is managed localling create gatt server,
First broadcast singal is sent, since the Bluetooth gateway can manage multiple bluetooth equipments, which can be with
It is the rotation between the broadcast singal of multiple bluetooth equipments, for example Bluetooth gateway manages 5 bluetooth equipments altogether, then it can be with every
A broadcast singal was changed every 0.2 second, it, can be with the broadcast singal of complete 5 equipment of rotation in this way within 1 second.
Fig. 4 is the overall flow figure for the Bluetooth communication system based on Scheduling of Gateway that the embodiment of the present disclosure provides, such as Fig. 4 institute
Show, when bluetooth equipment first powers on or resets, sends broadcast singal to Bluetooth gateway, Bluetooth gateway is believed according to the broadcast
Number connection bluetooth equipment, bluetooth equipment reports the type ID or device id of bluetooth equipment, Bluetooth gateway to Bluetooth gateway later
The attribute (not shown) of the bluetooth equipment, such as bluetooth can be inquired to cloud according to the type ID or device id at this time
The MAC Address of equipment.Bluetooth gateway is localling create gatt server later, simulates the bluetooth equipment and sends broadcast singal, should
It include the MAC Address of the bluetooth equipment in broadcast singal, when there is user equipment to want to connect the bluetooth equipment, scanning is arrived
The broadcast singal with bluetooth equipment MAC Address that Bluetooth gateway is sent, connects Bluetooth gateway, and send user equipment later
User id, Bluetooth gateway authenticate user id, and a key assignments is sent if the authentication is passed to user equipment, user equipment
After receiving this key assignments, gatt server is being locallyd create, and send the broadcast singal for having the key assignments, Bluetooth gateway exists
After authenticating to user equipment, primary scheduling can be triggered, if it is determined that dispatch the user equipment, then use the key assignments
Connection is described to be used for equipment, and sends a token to user equipment, and user equipment is connected using the token and the bluetooth equipment
It connects.When being dispatched to other equipment, Bluetooth gateway, which sends commands to user equipment, makes it disconnect the connection with bluetooth equipment;Or
After the token expires, the user equipment is made to disconnect the connection with the bluetooth equipment.
Fig. 5 is the structural representation for 50 embodiment one of Bluetooth communication device based on Scheduling of Gateway that the embodiment of the present disclosure provides
Figure, as shown in figure 5, the device includes: scan module 51, the first sending module 52, the first receiving module 53, the second receiving module
54, third receiving module 55, the first link block 56.Wherein,
Scan module 51 has the second equipment in first broadcast singal for scanning the first broadcast singal of gateway
Information;
First sending module 52 sends the connection letter of the first equipment for arriving first broadcast singal in response to scanning
Cease the Bluetooth gateway;
First receiving module 53 for receiving the first information of Bluetooth gateway transmission, and creates first service, and described first
Service sends the second broadcast singal, has the first information in second broadcast singal;
Second receiving module 54, for receiving the connection request of Bluetooth gateway;
Third receiving module 55, for receiving the second letter that Bluetooth gateway is sent in response to being connected to the Bluetooth gateway
Breath;
First link block 56, for sending connection request to second equipment according to second information.
Further, the Bluetooth communication device 50 based on Scheduling of Gateway, further includes:
5th sending module 57, for sending data to second equipment in response to being connected to second equipment;
First disconnects module 58, for the open command or the second information mistake in response to receiving the Bluetooth gateway
Phase disconnects the connection with second equipment.
It further, include the MAC Address of the second equipment in first broadcast singal.
Further, the first sending module 52 sends the first equipment for arriving first broadcast singal in response to scanning
User ID and the second equipment MAC Address to the Bluetooth gateway.
The method that Fig. 5 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 60 embodiment two of Bluetooth communication device based on Scheduling of Gateway that the embodiment of the present disclosure provides, as shown in fig. 6,
The Bluetooth communication device based on Scheduling of Gateway include: the second sending module 61, third sending module 62, scheduler module 63,
Second link block 64, the 4th sending module 65.Wherein,
Second sending module 61 has the second equipment in first broadcast singal for sending the first broadcast singal
Information;
Third sending module 62 is sent for the information in response to receiving first equipment to first equipment
The first information;
Scheduler module 63 for scheduling queue to be added in first equipment, and triggers primary scheduling;
Second link block 64, if scheduled for first equipment, according to first information connection
First equipment;
4th sending module 65, for sending the second information to first equipment, so that first equipment connects institute
State the second equipment.
Further, the Bluetooth communication device 60 based on Scheduling of Gateway further include:
Third link block 66, the third broadcast singal sent for receiving one or more second equipment, and connect institute
State one or more second equipment;
4th receiving module 67, for receiving the type id information of one or more of second equipment;
First enquiry module 68, for inquiring second equipment from cloud according to the type id information of second equipment
Information.
Further, the second sending module 61, further includes:
First creation module, for creating second service, the second service simulates second equipment and sends described the
One broadcast singal.
Further, third sending module 62, for the User ID in response to receiving first equipment, to the use
Family ID is authenticated, if the authentication is passed, sends the first key assignments to first equipment.
Further, scheduler module 63 judge described for scheduling queue to be added in the User ID of first equipment
The priority orders of one equipment and third equipment, the third equipment are the equipment being presently attached in second equipment.
Further, the second link block 64, if the priority for first equipment is higher than the third equipment,
Then first equipment is connected using first key assignments.
Further, the 4th sending module 65, for sending token to first equipment, so that first equipment makes
Second equipment is connected with the token.
Further, the Bluetooth communication device 60 based on Scheduling of Gateway, further includes:
Scheduler module 69 is updated, is updated for triggering the first scheduling if the first current equipment is scheduled again
Second information;Otherwise open command is sent to first equipment.
The method that device in above-described embodiment two can execute embodiment illustrated in fig. 3, what the present embodiment was 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 institute
Show the description in embodiment, details are not described herein.
Fig. 7 is the hardware block diagram for illustrating electronic equipment according to an embodiment of the present disclosure.As shown in fig. 7, according to the disclosure
The electronic equipment 70 of embodiment includes memory 71 and processor 72.
The memory 71 is for storing non-transitory computer-readable instruction.Specifically, memory 71 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 72 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 70 to execute desired function.?
In one embodiment of the disclosure, which makes for running the computer-readable instruction stored in the memory 71
The electronic equipment 70 execute each embodiment of the disclosure above-mentioned the Bluetooth communication method based on Scheduling of Gateway whole or portion
Step by step.
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.
Fig. 8 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in figure 8, root
According to the computer readable storage medium 80 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 81.When this
When non-transitory computer-readable instruction 81 is run by processor, execute each embodiment of the disclosure above-mentioned based on Scheduling of Gateway
Bluetooth communication method all or part of the steps.
Above-mentioned computer readable storage medium 80 includes but is not limited to: and optical storage media (such as: CD-ROM and DVD), magnetic
Optical storage media (such as: MO), magnetic storage medium (such as: tape or mobile hard disk), with built-in rewritable nonvolatile
The media (such as: storage card) of 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.
Fig. 9 is the hardware structural diagram for illustrating the terminal device according to the embodiment of the present disclosure.As shown in figure 9, this is based on
The Bluetooth communication terminal 90 of Scheduling of Gateway includes the above-mentioned Bluetooth communication device embodiment based on Scheduling 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 9, gateway should be based on
The Bluetooth communication terminal 90 of scheduling may include power supply unit 91, wireless communication unit 92, A/V (audio/video) input unit
93, user input unit 94, sensing unit 95, interface unit 96, controller 97, output unit 98 and storage unit 99 etc..
Fig. 9 shows the terminal with various assemblies, can also be with it should be understood that be not required for implementing all components shown
Alternatively implement more or fewer components.
Wherein, wireless communication unit 92 allows the radio communication between terminal 90 and wireless communication system or network.A/V
Input unit 93 is for receiving audio or video signal.It is defeated that the order that user input unit 94 can be inputted according to user generates key
Enter data with the various operations of controlling terminal equipment.Sensing unit 95 detects the current state of terminal 90, the position of terminal 90, use
Family is mobile for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 90, terminal 90, terminal 90 and direction etc., and
And generate order or the signal for the operation for being used for controlling terminal 90.Interface unit 96 is used as at least one external device (ED) and terminal 90
Connection can by interface.Output unit 98 is configured to provide output signal with vision, audio and/or tactile manner.It deposits
Storage unit 99 can store the software program etc. of the processing and control operation that are executed by controller 97, or can temporarily deposit
Store up oneself data through exporting or will export.Storage unit 99 may include the storage medium of at least one type.Moreover, terminal
90 can cooperate with the network storage device for the store function for executing storage unit 99 by network connection.Controller 97 is usually controlled
The overall operation of terminal device processed.In addition, controller 97 may include for reproducing or the multimedia mould of multimedia playback data
Block.The handwriting input executed on the touchscreen or picture can be drawn input with execution pattern identifying processing by controller 97
It is identified as character or image.Power supply unit 91 receives external power or internal power under the control of controller 97 and provides behaviour
Make electric power appropriate needed for each element and component.
The various embodiments for the Bluetooth communication method based on Scheduling of Gateway that the disclosure proposes, which can be used, for example to be calculated
The computer-readable medium of machine software, hardware or any combination thereof is implemented.For hardware implement, the disclosure propose based on net
The various embodiments for closing the Bluetooth communication method of scheduling can be by using application-specific IC (ASIC), digital signal
Processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), processor, controller, microcontroller, microprocessor, be designed in the electronic unit for executing function described herein
At least one implement, in some cases, the various realities for the Bluetooth communication method based on Scheduling of Gateway that the disclosure proposes
The mode of applying can be implemented in controller 77.The Bluetooth communication side based on Scheduling of Gateway proposed for software implementation, the disclosure
The various embodiments of method can be implemented with the individual software module that allows to execute at least one functions or operations.Software generation
Code can be implemented by the software application (or program) write with any programming language appropriate, and software code can store
It is executed in storage unit 99 and by controller 97.
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.