CN105933988B - Bluetooth is connected control method and device automatically with 2.4G Dual modules - Google Patents
Bluetooth is connected control method and device automatically with 2.4G Dual modules Download PDFInfo
- Publication number
- CN105933988B CN105933988B CN201610423929.4A CN201610423929A CN105933988B CN 105933988 B CN105933988 B CN 105933988B CN 201610423929 A CN201610423929 A CN 201610423929A CN 105933988 B CN105933988 B CN 105933988B
- Authority
- CN
- China
- Prior art keywords
- modules
- receiver
- frequency
- default
- bluetooth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/69—Spread spectrum techniques
- H04B1/713—Spread spectrum techniques using frequency hopping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Control method is connected automatically with 2.4G Dual modules the invention discloses a kind of bluetooth, including:When control device starts, control bluetooth module and 2.4G modules are started, to enter connection mode;Control 2.4G modules carry out frequency hopping operation according to the cycle of the first preset duration on default frequency, to receive the packet that default receiver is broadcasted;Packet according to receiving judges whether the receiver matched with 2.4G modules;When it is determined that during in the presence of the receiver matched with 2.4G modules, the data command for agreeing to connection is sent to receiver;After the data command for agreeing to connection is sent, default querying command to receiver is sent;When receiver is received to the response message of querying command, control 2.4G modules carry out frequency hopping operation according to the cycle of the second preset duration on default frequency;And control to close bluetooth module.Control device is connected automatically with 2.4G Dual modules the invention also discloses a kind of bluetooth.
Description
Technical field
Controlling party is connected automatically with 2.4G Dual modules the present invention relates to wireless communication technique field, more particularly to a kind of bluetooth
Method and device.
Background technology
It is well known that the wireless connection on existing smart machine includes 2.4G modules and bluetooth module, due to both of which
Using 2.4G signalling channels, therefore easily produce interference.But in existing smart machine, there is 2.4G modules and indigo plant when simultaneously
Tooth module, it is necessary to selectivity when setting up connection, it is necessary to user switches over manually, so as to reach the purpose of selection, its flexibility
It is poor.
The content of the invention
Control method and device, purport are connected automatically with 2.4G Dual modules it is a primary object of the present invention to provide a kind of bluetooth
Improve the flexibility of bluetooth connection and the connection control of 2.4G modules.
To achieve the above object, a kind of bluetooth that the present invention is provided is connected control method automatically with 2.4G Dual modules
Bluetooth is connected control method automatically with 2.4G Dual modules, it is characterised in that the bluetooth module is with 2.4G modules certainly
Dynamic method for handover control includes:
When control device starts, control bluetooth module and 2.4G modules are started, to enter connection mode;
In the 2.4G modules when connection mode is entered, control 2.4G modules are according to the cycle of the first preset duration pre-
If carrying out frequency hopping operation on frequency, to receive the packet that default receiver is broadcasted;
The packet according to receiving judges whether the receiver matched with the 2.4G modules;
When it is determined that during in the presence of the receiver matched with the 2.4G modules, the data for agreeing to connection are sent to the receiver
Order;So that the receiver sets up synchronous with the Hopping time of the 2.4G modules according to the data command;
After the data command for agreeing to connection is sent, default querying command to the receiver is sent;
When the receiver is received to the response message of the querying command, the 2.4G modules are controlled according to second
The cycle of preset duration carries out frequency hopping operation on the default frequency, with the frequency hopping for causing the 2.4G modules and the reception
The frequency-hopping synchronization of device;And control to close the bluetooth module.
Preferably, the packet that the basis is received judges whether the receiver step of packet described in linkup transmit
Also include after rapid:
When it is determined that in the absence of the receiver matched with the 2.4G modules or the receiver ought do not received to described
During the response message of querying command, 2.4G modules are closed in control.
Preferably, first preset duration is the product of the second preset duration and the default frequency quantity.
Preferably, the receiver broadcast data packet includes:
On the receiver after electricity, frequency hopping behaviour is carried out on the default frequency with the cycle of second preset duration
Make, and the packet is broadcasted in current frequency;The packet includes the identification information of receiver, connects handle
Status information and current Game Protocol pattern;
The packet that the basis is received judges whether that the receiver matched with the 2.4G modules includes:
Identification information in the packet determines whether there is the receiver matched with the 2.4G modules.
Preferably, after the data command for agreeing to connection is sent, sending default querying command to the receiver includes:
After the data command for agreeing to connection is sent in current frequency, default querying command is sent to described in next frequency
Receiver.
Additionally, to achieve the above object, the present invention also provides a kind of bluetooth and is connected control device automatically with 2.4G Dual modules,
The bluetooth module includes with 2.4G module automatic switching control devices:
First control module, for when control device starts, control bluetooth module and 2.4G modules to be started, to enter
Enter connection mode;In the 2.4G modules when connection mode is entered, 2.4G modules are controlled according to the cycle of the first preset duration
Frequency hopping operation is carried out on default frequency, to receive the packet that default receiver is broadcasted;
Judge module, for being judged whether and connecing that the 2.4G modules are matched according to the packet for receiving
Receive device;
Sending module, for when it is determined that during in the presence of the receiver matched with the 2.4G modules, being sent to the receiver
Agree to the data command of connection;So that the receiver sets up the Hopping time with the 2.4G modules according to the data command
It is synchronous;After the data command for agreeing to connection is sent, default querying command to the receiver is sent;
Second control module, for when the receiver is received to the response message of the querying command, controlling institute
State 2.4G modules carries out frequency hopping operation according to the cycle of the second preset duration on the default frequency, to cause the 2.4G moulds
The frequency-hopping synchronization of the frequency hopping of block and the receiver;And control to close the bluetooth module.
Preferably, second control module be additionally operable to when determine in the absence of matched with the 2.4G modules receiver,
Or when the receiver is not received to the response message of the querying command, 2.4G modules are closed in control.
Preferably, first preset duration is the product of the second preset duration and the default frequency quantity.
Preferably, the receiver is used for after the power-up, with the cycle of second preset duration in the default frequency
On carry out frequency hopping operation, and broadcast the packet in current frequency;The packet includes that the identity of receiver is believed
The status information and current Game Protocol pattern of breath, connection handle;
The judge module specifically for, the identification information in the packet determine whether there is with it is described
The receiver of 2.4G modules matching.
Preferably, the sending module is specifically for after the data command for agreeing to connection is sent in current frequency, next
Frequency sends default querying command to the receiver.
The embodiment of the present invention is by the way that when control device starts, control bluetooth module and 2.4G modules are started, to enter
Enter connection mode;In the 2.4G modules when connection mode is entered, 2.4G modules are controlled according to the cycle of the first preset duration
Frequency hopping operation is carried out on default frequency, to receive the packet that default receiver is broadcasted;According to the data for receiving
Bag judges whether the receiver matched with the 2.4G modules;When it is determined that in the presence of the receiver matched with the 2.4G modules
When, the data command for agreeing to connection is sent to the receiver;So that the receiver is set up and institute according to the data command
State the Hopping time synchronization of 2.4G modules;After the data command for agreeing to connection is sent, default querying command is sent to described
Receiver;When the receiver is received to the response message of the querying command, the 2.4G modules are controlled according to second
The cycle of preset duration carries out frequency hopping operation on the default frequency, with the frequency hopping for causing the 2.4G modules and the reception
The frequency-hopping synchronization of device;And control to close the bluetooth module.Such that it is able to be automatically obtained the connection of bluetooth module and 2.4G modules
Control, the connection control to bluetooth connection and 2.4G modules, the present invention are realized relative to mode in the prior art manually
Improve the flexibility of bluetooth connection and the connection control of 2.4G modules.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that bluetooth of the present invention is connected control method first embodiment with 2.4G Dual modules automatically;
Fig. 2 is the schematic flow sheet that bluetooth of the present invention is connected control method second embodiment with 2.4G Dual modules automatically;
Fig. 3 is that the functional module structure that bluetooth of the present invention is connected the embodiment of control device one automatically with 2.4G Dual modules is illustrated
Figure.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of bluetooth and is connected control method, reference picture 1, the indigo plant that the present invention is provided automatically with 2.4G Dual modules
Tooth module includes with 2.4G module control method for automatically switching:
Step S10, when control device starts, control bluetooth module and 2.4G modules are started, to enter connection mode
Formula;
Bluetooth provided in an embodiment of the present invention is connected control method and is mainly used in wireless connection automatically with 2.4G Dual modules
In equipment, which kind of mode is wireless connection is set up using for automatically selecting.The present embodiment provide with bluetooth and 2.4G Dual modules
Automatic connection control method is applied in game paddle, for controlling game paddle to be attached also using bluetooth and controlled terminal
It is that wireless connection is carried out using 2.4G and controlled terminal.I.e. above-mentioned control device is game paddle, and controlled device can be hand
Machine, PAD, intelligent television etc..Specifically, when game paddle starts bluetooth module simultaneously and 2.4G modules work, for energy
The selection of consumption, 2.4G modules are considered as first carries out wireless connection;When 2.4G modules cannot carry out wireless connection, then select
Bluetooth module, while in order to avoid both crosstalks, it is determined that during using a kind of connected mode, being then automatically switched off another mould
The work of block.
Specifically, there is bluetooth module and 2.4G modules in game paddle, and in game paddle starting up or multiple
When position starts, bluetooth module enters initialization program with 2.4G modules, and enters connection mode.For the connection of bluetooth module
Process sets up bluetooth connection using existing connection protocol, and the connection procedure of 2.4G modules needs in the following ways.
Step S20, in the 2.4G modules when connection mode is entered, control 2.4G modules are according to the first preset duration
Cycle carries out frequency hopping operation on default frequency, to receive the packet that default receiver is broadcasted;
Step S30, according to the receiver that the packet for receiving judges whether to be matched with the 2.4G modules;
Step S40, when it is determined that during in the presence of the receiver matched with the 2.4G modules, being sent to the receiver and agreeing to connect
The data command for connecing;So that the receiver sets up synchronous with the Hopping time of the 2.4G modules according to the data command;
Step S50, after the data command for agreeing to connection is sent, sends default querying command to the receiver;
Step S60, when the receiver is received to the response message of the querying command, controls the 2.4G modules
Cycle according to the second preset duration carries out frequency hopping operation on the default frequency, with cause the 2.4G modules frequency hopping with
The frequency-hopping synchronization of the receiver;And control to close the bluetooth module.
In particular it is required that setting up the wireless connection of 2.4G modules, it is necessary first to by receiver be inserted into computer or other
In equipment, powered with to receiver.Now, receiver will broadcast default packet, and connection is received and set up for 2.4G modules.
In the present embodiment, receiver broadcast data packet includes:On the receiver after electricity, with the cycle of second preset duration in institute
Stating carries out frequency hopping operation on default frequency, and broadcasts the packet in current frequency;The packet includes receiver
The status information and current Game Protocol pattern of identification information, connection handle;The data that the basis is received
Bag judges whether that the receiver matched with the 2.4G modules includes:Identification information in the packet is true
It is fixed to whether there is the receiver matched with the 2.4G modules.
In the present embodiment, above-mentioned identification information is the ID of receiver, and receiver and 2.4G modules under normal circumstances
There is matching relationship, 2.4G modules can only be set up with the receiver of specified matching and be connected, herein can be by receiver No. ID
It is identified.The status information of above-mentioned connection handle refers to whether the receiver establishes with handle and be connected, the present embodiment
In, a receiver can connect 1 game paddle, it is also possible to the multiple game paddles of connection, do not do further limit herein.
Above-mentioned Game Protocol pattern is the Game Protocol pattern of receiver end, in the present embodiment, for different game or same
The different editions of individual game there may be different Game Protocol patterns, and user can set Game Protocol pattern, or automatically
Game according to current operation selects corresponding Game Protocol pattern;Oneself current Game Protocol mould is broadcasted in this receiver
Formula, after game hand pommel and receiver end are set up and be connected, can confirm according to the current Game Protocol pattern of game hand pommel
Whether transmission instruction control receiver changes Game Protocol pattern, so that the Game Protocol pattern and game hand of receiver end
The Game Protocol patterns match of pommel.
The quantity of above-mentioned default frequency can be configured according to actual needs in the present embodiment, it is preferable that use herein
16 frequencies, as 16 passages, 16 passages are the passages for avoiding bluetooth and wifi these 2.4G signals.
The time span of above-mentioned first preset duration can be configured according to actual needs, as long as reception can be received
The packet that device sends.For example, in the present embodiment, above-mentioned first preset duration is the second preset duration default with described
The product of frequency quantity.In the present embodiment, because bluetooth is when initialization starts connection, in order to avoid 2.4G modules connect to bluetooth
The interference for connecing, it is preferable that need to confirm to need within 1S to carry out wireless connection still using bluetooth module using 2.4G modules
Carry out wireless connection.In the present embodiment, the 2.4G module walks all of frequency time ensure in 1S or so, it is preferable that 2.4G
The module walks all of frequency time is less than 1.1S.I.e. in the present embodiment, 2.4G modules according to the first preset duration cycle
It refers to that 2.4G modules carry out a frequency hopping every the first Preset Time, then 2.4G modules to carry out frequency hopping operation on default frequency
Travel through the product that all of frequency time is the first preset duration and frequency quantity.Here, above-mentioned first preset duration is 64ms,
Above-mentioned second preset duration is 4ms.
2.4G modules determine whether there is the receiver matched with the 2.4G modules according to the packet for receiving, analysis,
Work as presence, then proceed connection, do not exist, directly close 2.4G modules.It should be noted that determine do not exist with it is described
The receiver of 2.4G modules matching includes, in the packet for receiving in the absence of the receiver that is matched with the 2.4G modules and
It is not received by the situation of packet.
When there is the receiver matched with the 2.4G modules, then the data for agreeing to connection are sent to the receiver
Order, the content that the data command includes can be configured according to actual needs, for example, can include ID, the mesh of game paddle
Target Game Protocol pattern and frequency-hopping synchronization time adjustment data etc., so that receiver receives the data command when carrying out
Between synchronous correction so that the Hopping time of receiver and 2.4G modules is consistent.
After the data command for agreeing to connection is sent, in addition it is also necessary to send a querying command to the receiver, it is possible to understand that
Be the querying command send time point be at least send data command next frequency, or under N number of frequency, N
It is more than or equal to 2.In the present embodiment, in order to improve the experience of user, it is ensured that short period determination is entered using which kind of mode
Row wireless connection, it is preferable that after the data command for agreeing to connection is sent, sends default querying command to the receiver bag
Include:After the data command for agreeing to connection is sent in current frequency, default querying command to the reception is sent in next frequency
Device.The content of above-mentioned querying command can be configured according to actual needs, and in the present embodiment, above-mentioned receiver is either received
Can be responded to data command or querying command, when the response for receiving querying command, then it is assumed that 2.4G modules are
With receiver successful connection, will now control the 2.4G modules according to the cycle of the second preset duration on the default frequency
Carry out frequency hopping operation.
It is understood that above-described embodiment is described, in the case where 2.4G modules can be connected normally, use
2.4G modules are attached, when 2.4G modules are connected it is abnormal when need to be attached using bluetooth module by the way of below carry out in detail
Describe in detail bright.
The embodiment of the present invention is by the way that when control device starts, control bluetooth module and 2.4G modules are started, to enter
Enter connection mode;In the 2.4G modules when connection mode is entered, 2.4G modules are controlled according to the cycle of the first preset duration
Frequency hopping operation is carried out on default frequency, to receive the packet that default receiver is broadcasted;According to the data for receiving
Bag judges whether the receiver matched with the 2.4G modules;When it is determined that in the presence of the receiver matched with the 2.4G modules
When, the data command for agreeing to connection is sent to the receiver;So that the receiver is set up and institute according to the data command
State the Hopping time synchronization of 2.4G modules;After the data command for agreeing to connection is sent, default querying command is sent to described
Receiver;When the receiver is received to the response message of the querying command, the 2.4G modules are controlled according to second
The cycle of preset duration carries out frequency hopping operation on the default frequency, with the frequency hopping for causing the 2.4G modules and the reception
The frequency-hopping synchronization of device;And control to close the bluetooth module.Such that it is able to be automatically obtained the connection of bluetooth module and 2.4G modules
Control, the connection control to bluetooth connection and 2.4G modules, the present invention are realized relative to mode in the prior art manually
Improve the flexibility of wireless connection control.
Specifically, above-described embodiment is taught in the case that 2.4G modules can connect normally, the process of connection, in 2.4G
Module needs to set up bluetooth connection using bluetooth module in the case of can not normally connecting, because bluetooth module is opened in game paddle
Bluetooth is entered when dynamic and normally connects startup, therefore only need to complete normal bluetooth company by closing 2.4G modules herein
Connect.In the present embodiment, the packet that above-mentioned basis is received judges whether the receiver step of packet described in linkup transmit
Also include after rapid:
When it is determined that in the absence of the receiver matched with the 2.4G modules or the receiver ought do not received to described
During the response message of querying command, 2.4G modules are closed in control.
As shown in Fig. 2 in a second embodiment, above-mentioned bluetooth module includes with 2.4G module control method for automatically switching:
Step S10, when control device starts, control bluetooth module and 2.4G modules are started, to enter connection mode
Formula;
Step S20, in the 2.4G modules when connection mode is entered, control 2.4G modules are according to the first preset duration
Cycle carries out frequency hopping operation on default frequency, to receive the packet that default receiver is broadcasted;
Step S30, according to the receiver that the packet for receiving judges whether to be matched with the 2.4G modules;
If so, step S40 is then performed, if it is not, then performing step S80;
Step S40, the data command for agreeing to connection is sent to the receiver;So that the receiver is according to the data
Order is set up synchronous with the Hopping time of the 2.4G modules;
Step S50, after the data command for agreeing to connection is sent, sends default querying command to the receiver;
Step S70, judges whether response of the receiver to the querying command is received within the default time period
Information;If so, then performing step S60;If it is not, then performing step S80;
Step S60, controls the 2.4G modules to be jumped on the default frequency according to the cycle of the second preset duration
Frequency is operated, to cause the frequency hopping of the 2.4G modules and the frequency-hopping synchronization of the receiver;And control to close the bluetooth module;
2.4G modules are closed in step S80, control.
Reference picture 3, the present invention also provides a kind of bluetooth and is connected control device, the bluetooth module automatically with 2.4G Dual modules
Include with 2.4G module automatic switching control devices:
First control module 10, for when control device starts, control bluetooth module and 2.4G modules to be started, with
Into connection mode;In the 2.4G modules when connection mode is entered, 2.4G modules are controlled according to the week of the first preset duration
Phase carries out frequency hopping operation on default frequency, to receive the packet that default receiver is broadcasted;
Judge module 20, for judging whether what is matched with the 2.4G modules according to the packet for receiving
Receiver;
Sending module 30, for when it is determined that during in the presence of the receiver matched with the 2.4G modules, being sent out to the receiver
Send the data command for agreeing to connect;When setting up the frequency hopping with the 2.4G modules according to the data command for the receiver
Between it is synchronous;After the data command for agreeing to connection is sent, default querying command to the receiver is sent;
Second control module 40, for when the receiver is received to the response message of the querying command, control
The 2.4G modules carry out frequency hopping operation according to the cycle of the second preset duration on the default frequency, to cause the 2.4G
The frequency-hopping synchronization of the frequency hopping of module and the receiver;And control to close the bluetooth module.
Bluetooth provided in an embodiment of the present invention is connected control device and is mainly used in wireless connection automatically with 2.4G Dual modules
In equipment, which kind of mode is wireless connection is set up using for automatically selecting.The present embodiment provide with bluetooth and 2.4G Dual modules
Automatic connection control device is applied in game paddle, for controlling game paddle to be attached also using bluetooth and controlled terminal
It is that wireless connection is carried out using 2.4G and controlled terminal.I.e. above-mentioned control device is game paddle, and controlled device can be hand
Machine, PAD, intelligent television etc..Specifically, when game paddle starts bluetooth module simultaneously and 2.4G modules work, for energy
The selection of consumption, 2.4G modules are considered as first carries out wireless connection;When 2.4G modules cannot carry out wireless connection, then select
Bluetooth module, while in order to avoid both crosstalks, it is determined that during using a kind of connected mode, being then automatically switched off another mould
The work of block.
Specifically, there is bluetooth module and 2.4G modules in game paddle, and in game paddle starting up or multiple
When position starts, bluetooth module enters initialization program with 2.4G modules, and enters connection mode.For the connection of bluetooth module
Process sets up bluetooth connection using existing connection protocol, and the connection procedure of 2.4G modules needs in the following ways.
In particular it is required that setting up the wireless connection of 2.4G modules, it is necessary first to by receiver be inserted into computer or other
In equipment, powered with to receiver.Now, receiver will broadcast default packet, and connection is received and set up for 2.4G modules.
In the present embodiment, receiver broadcast data packet includes:On the receiver after electricity, with the cycle of second preset duration in institute
Stating carries out frequency hopping operation on default frequency, and broadcasts the packet in current frequency;The packet includes receiver
The status information and current Game Protocol pattern of identification information, connection handle;The judge module is specifically used for, root
The receiver matched with the 2.4G modules is determined whether there is according to the identification information in the packet.
In the present embodiment, above-mentioned identification information is the ID of receiver, and receiver and 2.4G modules under normal circumstances
There is matching relationship, 2.4G modules can only be set up with the receiver of specified matching and be connected, herein can be by receiver No. ID
It is identified.The status information of above-mentioned connection handle refers to whether the receiver establishes with handle and be connected, the present embodiment
In, a receiver can connect 1 game paddle, it is also possible to the multiple game paddles of connection, do not do further limit herein.
Above-mentioned Game Protocol pattern is the Game Protocol pattern of receiver end, in the present embodiment, for different game or same
The different editions of individual game there may be different Game Protocol patterns, and user can set Game Protocol pattern, or automatically
Game according to current operation selects corresponding Game Protocol pattern;Oneself current Game Protocol mould is broadcasted in this receiver
Formula, after game hand pommel and receiver end are set up and be connected, can confirm according to the current Game Protocol pattern of game hand pommel
Whether transmission instruction control receiver changes Game Protocol pattern, so that the Game Protocol pattern and game hand of receiver end
The Game Protocol patterns match of pommel.
The quantity of above-mentioned default frequency can be configured according to actual needs in the present embodiment, it is preferable that use herein
16 frequencies, as 16 passages, 16 passages are the passages for avoiding bluetooth and wifi these 2.4G signals.
The time span of above-mentioned first preset duration can be configured according to actual needs, as long as reception can be received
The packet that device sends.For example, in the present embodiment, above-mentioned first preset duration is the second preset duration default with described
The product of frequency quantity.In the present embodiment, because bluetooth is when initialization starts connection, in order to avoid 2.4G modules connect to bluetooth
The interference for connecing, it is preferable that need to confirm to need within 1S to carry out wireless connection still using bluetooth module using 2.4G modules
Carry out wireless connection.In the present embodiment, the 2.4G module walks all of frequency time ensure in 1S or so, it is preferable that 2.4G
The module walks all of frequency time is less than 1.1S.I.e. in the present embodiment, 2.4G modules according to the first preset duration cycle
It refers to that 2.4G modules carry out a frequency hopping every the first Preset Time, then 2.4G modules to carry out frequency hopping operation on default frequency
Travel through the product that all of frequency time is the first preset duration and frequency quantity.Here, above-mentioned first preset duration is 64ms,
Above-mentioned second preset duration is 4ms.
2.4G modules determine whether there is the receiver matched with the 2.4G modules according to the packet for receiving, analysis,
Work as presence, then proceed connection, do not exist, directly close 2.4G modules.It should be noted that determine do not exist with it is described
The receiver of 2.4G modules matching includes, in the packet for receiving in the absence of the receiver that is matched with the 2.4G modules and
It is not received by the situation of packet.
When there is the receiver matched with the 2.4G modules, then the data for agreeing to connection are sent to the receiver
Order, the content that the data command includes can be configured according to actual needs, for example, can include ID, the mesh of game paddle
Target Game Protocol pattern and frequency-hopping synchronization time adjustment data etc., so that receiver receives the data command when carrying out
Between synchronous correction so that the Hopping time of receiver and 2.4G modules is consistent.
After the data command for agreeing to connection is sent, in addition it is also necessary to send a querying command to the receiver, it is possible to understand that
Be the querying command send time point be at least send data command next frequency, or under N number of frequency, N
It is more than or equal to 2.In the present embodiment, in order to improve the experience of user, it is ensured that short period determination is entered using which kind of mode
Row wireless connection, it is preferable that the sending module 30 specifically for, current frequency send agree to connection data command after,
Default querying command to the receiver is sent in next frequency.The content of above-mentioned querying command can be entered according to actual needs
Row is set, and in the present embodiment, above-mentioned receiver either receives data command or querying command and can respond, when connecing
Receive the response of querying command, then it is assumed that 2.4G modules with receiver successful connection, will now control the 2.4G modules
Cycle according to the second preset duration carries out frequency hopping operation on the default frequency.
It is understood that above-described embodiment is described, in the case where 2.4G modules can be connected normally, use
2.4G modules are attached, when 2.4G modules are connected it is abnormal when need to be attached using bluetooth module by the way of below carry out in detail
Describe in detail bright.
The embodiment of the present invention is by the way that when control device starts, control bluetooth module and 2.4G modules are started, to enter
Enter connection mode;In the 2.4G modules when connection mode is entered, 2.4G modules are controlled according to the cycle of the first preset duration
Frequency hopping operation is carried out on default frequency, to receive the packet that default receiver is broadcasted;According to the data for receiving
Bag judges whether the receiver matched with the 2.4G modules;When it is determined that in the presence of the receiver matched with the 2.4G modules
When, the data command for agreeing to connection is sent to the receiver;So that the receiver is set up and institute according to the data command
State the Hopping time synchronization of 2.4G modules;After the data command for agreeing to connection is sent, default querying command is sent to described
Receiver;When the receiver is received to the response message of the querying command, the 2.4G modules are controlled according to second
The cycle of preset duration carries out frequency hopping operation on the default frequency, with the frequency hopping for causing the 2.4G modules and the reception
The frequency-hopping synchronization of device;And control to close the bluetooth module.Such that it is able to be automatically obtained the connection of bluetooth module and 2.4G modules
Control, the connection control to bluetooth connection and 2.4G modules, the present invention are realized relative to mode in the prior art manually
Improve the flexibility of wireless connection control.
Specifically, above-described embodiment is taught in the case that 2.4G modules can connect normally, the process of connection, in 2.4G
Module needs to set up bluetooth connection using bluetooth module in the case of can not normally connecting, because bluetooth module is opened in game paddle
Bluetooth is entered when dynamic and normally connects startup, therefore only need to complete normal bluetooth company by closing 2.4G modules herein
Connect.In the present embodiment, above-mentioned second control module be additionally operable to when determining in the absence of the receiver that is matched with the 2.4G modules or
When the receiver is not received to the response message of the querying command, 2.4G modules are closed in control to person.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of bluetooth is connected control method automatically with 2.4G Dual modules, it is characterised in that the bluetooth module and 2.4G modules
Control method for automatically switching includes:
When control device starts, control bluetooth module and 2.4G modules are started simultaneously, to enter connection mode;
In the 2.4G modules when connection mode is entered, control 2.4G modules are according to the cycle of the first preset duration in default frequency
Frequency hopping operation is carried out on point, to receive the packet that default receiver is broadcasted;During all of frequency of the 2.4G module walks
Between be less than 1.1S;
The packet according to receiving judges whether the receiver matched with the 2.4G modules;
When it is determined that during in the presence of the receiver matched with the 2.4G modules, being sent to the receiver and agreeing to that the data of connection are ordered
Order;So that the receiver sets up synchronous with the Hopping time of the 2.4G modules according to the data command;
After the data command for agreeing to connection is sent, default querying command to the receiver is sent;
When the receiver is received to the response message of the querying command, control the 2.4G modules default according to second
The cycle of duration carries out frequency hopping operation on the default frequency, to cause the frequency hopping and the receiver of the 2.4G modules
Frequency-hopping synchronization;And control to close the bluetooth module;Wherein,
The packet that the basis is received is judged whether after the receiver step matched with the 2.4G modules
Also include:
When it is determined that in the absence of the receiver matched with the 2.4G modules or the receiver ought do not received to the inquiry
During the response message of order, 2.4G modules are closed in control.
2. bluetooth as claimed in claim 1 is connected control method automatically with 2.4G Dual modules, it is characterised in that described first is pre-
If when a length of second preset duration and the default frequency quantity product.
3. bluetooth as claimed in claim 1 is connected control method automatically with 2.4G Dual modules, it is characterised in that the receiver
Broadcast data packet includes:
On the receiver after electricity, frequency hopping operation is carried out on the default frequency with the cycle of second preset duration, and
The packet is broadcasted in current frequency;The packet includes the identification information of receiver, the state of connection handle
Information and current Game Protocol pattern;
The packet that the basis is received judges whether that the receiver matched with the 2.4G modules includes:According to
Identification information in the packet determines whether there is the receiver matched with the 2.4G modules.
4. bluetooth as claimed in claim 1 is connected control method automatically with 2.4G Dual modules, it is characterised in that agree to sending
After the data command of connection, sending default querying command to the receiver includes:
After the data command for agreeing to connection is sent in current frequency, default querying command to the reception is sent in next frequency
Device.
5. a kind of bluetooth is connected control device automatically with 2.4G Dual modules, it is characterised in that the bluetooth module and 2.4G modules
Automatic switching control device includes:
First control module, for when control device starts, control bluetooth module and 2.4G modules to be started, to enter simultaneously
Enter connection mode;In the 2.4G modules when connection mode is entered, 2.4G modules are controlled according to the cycle of the first preset duration
Frequency hopping operation is carried out on default frequency, to receive the packet that default receiver is broadcasted;The 2.4G module walks own
The frequency time be less than 1.1S;
Judge module, for judging whether the reception matched with the 2.4G modules according to the packet for receiving
Device;
Sending module, for when it is determined that during in the presence of the receiver matched with the 2.4G modules, sent to the receiver and agreed to
The data command of connection;So that the receiver sets up same with the Hopping time of the 2.4G modules according to the data command
Step;After the data command for agreeing to connection is sent, default querying command to the receiver is sent;
Second control module, for when the receiver is received to the response message of the querying command, control to be described
2.4G modules carry out frequency hopping operation according to the cycle of the second preset duration on the default frequency, to cause the 2.4G modules
Frequency hopping and the receiver frequency-hopping synchronization;And control to close the bluetooth module;Wherein,
Second control module is additionally operable to work as and determines in the absence of the receiver matched with the 2.4G modules or ought not receive
To the receiver to the response message of the querying command when, 2.4G modules are closed in control.
6. bluetooth as claimed in claim 5 is connected control device automatically with 2.4G Dual modules, it is characterised in that described first is pre-
If when a length of second preset duration and the default frequency quantity product.
7. bluetooth as claimed in claim 5 is connected control device automatically with 2.4G Dual modules, it is characterised in that the receiver
For after the power-up, frequency hopping operation being carried out on the default frequency with the cycle of second preset duration, and current
Frequency broadcasts the packet;The packet includes the identification information of receiver, the status information of connection handle and works as
Preceding Game Protocol pattern;
The judge module is specifically for the identification information in the packet is determined whether there is and the 2.4G
The receiver of module matching.
8. bluetooth as claimed in claim 5 is connected control device automatically with 2.4G Dual modules, it is characterised in that the transmission mould
Block is specifically for after the data command for agreeing to connection is sent in current frequency, default querying command being sent extremely in next frequency
The receiver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610423929.4A CN105933988B (en) | 2016-06-15 | 2016-06-15 | Bluetooth is connected control method and device automatically with 2.4G Dual modules |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610423929.4A CN105933988B (en) | 2016-06-15 | 2016-06-15 | Bluetooth is connected control method and device automatically with 2.4G Dual modules |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105933988A CN105933988A (en) | 2016-09-07 |
CN105933988B true CN105933988B (en) | 2017-05-31 |
Family
ID=56830116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610423929.4A Active CN105933988B (en) | 2016-06-15 | 2016-06-15 | Bluetooth is connected control method and device automatically with 2.4G Dual modules |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933988B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737949A (en) * | 2017-04-14 | 2018-11-02 | 展讯通信(上海)有限公司 | Bluetooth equipment and its method for avoiding WiFi system from interfering and Bluetooth system |
CN109150239B (en) * | 2017-06-27 | 2020-07-24 | 深圳市道通智能航空技术有限公司 | Communication method and device of radio frequency equipment and computer storage medium |
CN108924804A (en) * | 2018-07-09 | 2018-11-30 | 苏州澜普智能技术有限公司 | A method of based on inexpensive GFSK chip and mobile communication |
CN109600862A (en) * | 2019-01-14 | 2019-04-09 | 深圳博英特科技有限公司 | A kind of two-way communication implementation method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471704B (en) * | 2007-12-26 | 2013-03-20 | 陈澎 | Dual-mode equipment and network management method |
CN202261502U (en) * | 2011-10-17 | 2012-05-30 | 王琦凡 | Wireless connection switching device |
CN102882564B (en) * | 2012-08-23 | 2014-10-29 | 深圳雷柏科技股份有限公司 | Dual-mode wireless communication intelligent switching method and equipment thereof |
CN105517193A (en) * | 2016-01-29 | 2016-04-20 | 深圳市凯立德科技股份有限公司 | Method for building connection and device |
-
2016
- 2016-06-15 CN CN201610423929.4A patent/CN105933988B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105933988A (en) | 2016-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105933988B (en) | Bluetooth is connected control method and device automatically with 2.4G Dual modules | |
KR101649994B1 (en) | Apparatus and method for automatic sim card selection according to network environment in dual mode terminal | |
CN109257725A (en) | For adaptive scanning and/or the system and method for broadcast | |
US20070238463A1 (en) | Mobile communications system, base station apparatus, user equipment, and inter-cell handover control method for use therewith | |
JP4747173B2 (en) | Target cell search method and system for multimode-multiband terminal in mobile communication environment | |
CN108923819B (en) | Communication connection method, equipment and system | |
CN104333902A (en) | Data synchronization method, synchronization system, equipment having base station functions and terminal | |
CN107493608A (en) | A kind of method and apparatus for carrying out Stochastic accessing | |
CN104811962B (en) | Small cell base station state switching method and device | |
CN106105370A (en) | Method and apparatus for device-to-device synchronization priority | |
CN109451792A (en) | Method, base station and the user equipment of adjustment information transmission | |
CN105471570B (en) | Using single transceiver multiple time division duplex links while operate | |
EP2719241A1 (en) | Combined frame of two communication protocols on same carrier for machine -to -machine and for broadband communication | |
CN103781016A (en) | Method and device for selecting communication mode and terminal | |
CN104994527A (en) | Method for intelligent household electrical appliance to access router, intelligent household electrical appliance and mobile terminal | |
JP2008511200A (en) | Multimode-multiband terminal handover method and system using multi-target cells in mobile communication environment | |
US10200952B2 (en) | Wireless access point control method, related device, and system | |
RU2012123983A (en) | USER DEVICE, METHOD FOR CARRYING OUT SERVICE TRANSFER, BASE STATION AND RADIO COMMUNICATION SYSTEM | |
CN101999250A (en) | Wireless terminal device, method of controlling wireless terminal device, and control program of wireless terminal device to station, station control method, and station control program | |
CN104581847B (en) | A kind of configuration method and device of wireless device | |
CN104158562A (en) | Frequency hopping method based on radio-frequency remote control system | |
CN105264989B (en) | A kind of resource allocation methods, resource competition method and relevant apparatus | |
CN109525967A (en) | Control and shared channel in device-to-device communication | |
CN104754665A (en) | Switching method and equipment for user equipment under CoMP mode | |
US9794880B1 (en) | Communication device and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |