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 PDF

Info

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
module
receiver
preset
connection
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
Application number
CN201610423929.4A
Other languages
Chinese (zh)
Other versions
CN105933988A (en
Inventor
王荣峰
马尧
武林威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaojikuaipao Network Technology Co Ltd
Original Assignee
Guangzhou Xiaojikuaipao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaojikuaipao Network Technology Co Ltd filed Critical Guangzhou Xiaojikuaipao Network Technology Co Ltd
Priority to CN201610423929.4A priority Critical patent/CN105933988B/en
Publication of CN105933988A publication Critical patent/CN105933988A/en
Application granted granted Critical
Publication of CN105933988B publication Critical patent/CN105933988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details 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/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection 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

Bluetooth and 2.4G dual-module automatic connection control method and device
Technical Field
The invention relates to the technical field of wireless communication, in particular to a method and a device for controlling automatic connection of Bluetooth and 2.4G double modules.
Background
As is well known, the wireless connection on the existing smart device includes a 2.4G module and a bluetooth module, which both use 2.4G signal channels and are therefore prone to interference. However, in the existing intelligent device, when the 2.4G module and the bluetooth module exist at the same time and connection needs to be selectively established, the user needs to manually switch, so that the purpose of selection is achieved, and the flexibility is poor.
Disclosure of Invention
The invention mainly aims to provide a method and a device for controlling the automatic connection of a Bluetooth module and a 2.4G module, aiming at improving the flexibility of the connection control of the Bluetooth module and the 2.4G module.
In order to realize the purpose, the invention provides an automatic connection control method of a Bluetooth module and a 2.4G module
The automatic connection control method of the Bluetooth module and the 2.4G dual-module is characterized in that the automatic switching control method of the Bluetooth module and the 2.4G module comprises the following steps:
when the control equipment is started, the Bluetooth module and the 2.4G module are controlled to be started so as to enter a connection mode;
when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver;
judging whether a receiver matched with the 2.4G module exists or not according to the received data packet;
when it is determined that there is a receiver matching the 2.4G module, transmitting a data command to the receiver to approve connection; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command;
after sending a data command for agreeing to connection, sending a preset query command to the receiver;
when response information of the receiver to the query command is received, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration, so that frequency hopping of the 2.4G module is synchronous with frequency hopping of the receiver; and controls to turn off the bluetooth module.
Preferably, after the step of determining whether to connect to a receiver that transmits the data packet according to the received data packet, the method further includes:
and controlling to close the 2.4G module when the receiver matched with the 2.4G module is determined to be absent or when the response information of the receiver to the query command is not received.
Preferably, the first preset duration is a product of a second preset duration and the number of the preset frequency points.
Preferably, the receiver broadcasting the data packet includes:
after the receiver is powered on, frequency hopping operation is carried out on the preset frequency point at the period of the second preset duration, and the data packet is broadcasted at the current frequency point; the data packet comprises the identity identification information of the receiver, the state information of the connecting handle and the current game protocol mode;
the judging whether a receiver matched with the 2.4G module exists according to the received data packet comprises the following steps: and determining whether a receiver matched with the 2.4G module exists according to the identification information in the data packet.
Preferably, after transmitting the data command agreeing to the connection, transmitting a preset inquiry command to the receiver includes:
and after the data command agreeing to the connection is sent at the current frequency point, sending a preset query command to the receiver at the next frequency point.
In addition, in order to achieve the above object, the present invention further provides a bluetooth and 2.4G dual-module automatic connection control device, where the bluetooth module and 2.4G dual-module automatic switching control device includes:
the first control module is used for controlling the Bluetooth module and the 2.4G module to start when the control equipment is started so as to enter a connection mode; when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver;
the judging module is used for judging whether a receiver matched with the 2.4G module exists or not according to the received data packet;
a transmitting module for transmitting a data command agreeing to a connection to the receiver when it is determined that there is a receiver matching the 2.4G module; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command; after sending a data command for agreeing to connection, sending a preset query command to the receiver;
the second control module is used for controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration when response information of the receiver to the query command is received, so that frequency hopping of the 2.4G module is synchronous with that of the receiver; and controls to turn off the bluetooth module.
Preferably, the second control module is further configured to control to turn off the 2.4G module when it is determined that there is no receiver matching the 2.4G module or when no response information of the receiver to the query command is received.
Preferably, the first preset duration is a product of a second preset duration and the number of the preset frequency points.
Preferably, the receiver is configured to perform frequency hopping operation on the preset frequency point at the cycle of the second preset duration after being powered on, and broadcast the data packet at the current frequency point; the data packet comprises the identity identification information of the receiver, the state information of the connecting handle and the current game protocol mode;
the judging module is specifically configured to determine whether a receiver matched with the 2.4G module exists according to the identity information in the data packet.
Preferably, the sending module is specifically configured to send a preset query command to the receiver at a next frequency point after the current frequency point sends the data command agreeing to the connection.
The embodiment of the invention controls the Bluetooth module and the 2.4G module to start when the control equipment is started so as to enter a connection mode; when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver; judging whether a receiver matched with the 2.4G module exists or not according to the received data packet; when it is determined that there is a receiver matching the 2.4G module, transmitting a data command to the receiver to approve connection; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command; after sending a data command for agreeing to connection, sending a preset query command to the receiver; when response information of the receiver to the query command is received, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration, so that frequency hopping of the 2.4G module is synchronous with frequency hopping of the receiver; and controls to turn off the bluetooth module. Therefore, the connection control of the Bluetooth module and the 2.4G module can be automatically realized, and compared with the prior art in which the connection control of the Bluetooth module and the 2.4G module is realized in a manual mode, the connection control method and the system improve the flexibility of the connection control of the Bluetooth module and the 2.4G module.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a Bluetooth and 2.4G dual-module automatic connection control method of the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the control method for automatic connection between Bluetooth and 2.4G dual modules according to the present invention;
fig. 3 is a schematic structural diagram of functional modules of an embodiment of the bluetooth and 2.4G dual-module automatic connection control device of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a Bluetooth and 2.4G double-module automatic connection control method, and with reference to fig. 1, the Bluetooth module and 2.4G module automatic switching control method provided by the invention comprises the following steps:
step S10, when the control device is started, the Bluetooth module and the 2.4G module are controlled to start to enter a connection mode;
the Bluetooth and 2.4G dual-module automatic connection control method provided by the embodiment of the invention is mainly applied to wireless connection equipment and is used for automatically selecting which mode is adopted to establish wireless connection. The method for controlling the automatic connection between the bluetooth module and the 2.4G dual-module provided by the embodiment is applied to a gamepad, and is used for controlling the gamepad to be connected with a controlled terminal by using the bluetooth module or wirelessly connected with the controlled terminal by using the 2.4G module. Namely, the control device is a game PAD, and the controlled device can be a mobile phone, a PAD, a smart television, and the like. Specifically, when the game pad starts the bluetooth module and the 2.4G module to work simultaneously, the 2.4G module is firstly considered to be adopted for wireless connection due to selection of energy consumption; when the 2.4G module can not be in wireless connection, the Bluetooth module is selected, and meanwhile, in order to avoid crosstalk between the Bluetooth module and the Bluetooth module, when a connection mode is determined to be adopted, the work of the other module is automatically closed.
Specifically, the gamepad is provided with a bluetooth module and a 2.4G module, and when the gamepad is started or reset, the bluetooth module and the 2.4G module both enter an initialization program and enter a connection mode. The existing connection protocol is adopted for the connection process of the bluetooth module to establish the bluetooth connection, and the connection process of the 2.4G module needs to adopt the following mode.
Step S20, when the 2.4G module enters the connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a cycle of a first preset duration so as to receive a preset data packet broadcast by a receiver;
step S30, judging whether a receiver matched with the 2.4G module exists according to the received data packet;
step S40, when the receiver matched with the 2.4G module is determined to exist, sending a data command of agreeing to connection to the receiver; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command;
step S50, after sending the data command of agreeing to connect, sending a preset inquiry command to the receiver;
step S60, when receiving the response message of the receiver to the query command, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration, so that the frequency hopping of the 2.4G module is synchronized with the frequency hopping of the receiver; and controls to turn off the bluetooth module.
Specifically, a wireless connection to the 2.4G module needs to be established, and the receiver needs to be plugged into a computer or other equipment to supply power to the receiver. At this time, the receiver broadcasts a predetermined data packet for the 2.4G module to receive and establish a connection. In this embodiment, the receiver broadcasting the data packet includes: after the receiver is powered on, frequency hopping operation is carried out on the preset frequency point at the period of the second preset duration, and the data packet is broadcasted at the current frequency point; the data packet comprises the identity identification information of the receiver, the state information of the connecting handle and the current game protocol mode; the judging whether a receiver matched with the 2.4G module exists according to the received data packet comprises the following steps: and determining whether a receiver matched with the 2.4G module exists according to the identification information in the data packet.
In this embodiment, the ID information is an ID of the receiver, and in a normal case, the receiver has a matching relationship with the 2.4G module, and the 2.4G module only establishes a connection with the receiver specified for matching, and can be identified by an ID number of the receiver. The state information of the connection handle refers to whether the receiver has established a connection with the handle, in this embodiment, one receiver may be connected to 1 gamepad, or may be connected to a plurality of gamepads, which is not further limited herein. In this embodiment, different games or different versions of the same game may have different game protocol modes, and a user may set the game protocol mode or automatically select a corresponding game protocol mode according to the currently running game; the receiver broadcasts the current game protocol mode of the receiver, and after the game handle end is connected with the receiver end, whether an instruction is sent to control the receiver to change the game protocol mode can be confirmed according to the current game protocol mode of the game handle end, so that the game protocol mode of the receiver end is matched with the game protocol mode of the game handle end.
In this embodiment, the number of the preset frequency points may be set according to actual needs, preferably, 16 frequency points are adopted here, that is, 16 channels, and the 16 channels are channels that avoid 2.4G signals such as bluetooth and wifi.
The time length of the first preset duration may be set according to actual needs, as long as the data packet sent by the receiver can be received. For example, in this embodiment, the first preset duration is a product of a second preset duration and the number of preset frequency points. In this embodiment, because bluetooth is when initiating connection, in order to avoid interference of the 2.4G module on bluetooth connection, it is preferable that it is determined within 1S whether to perform wireless connection by using the 2.4G module or perform wireless connection by using the bluetooth module. In this embodiment, the time of traversing all frequency bins by the 2.4G module is guaranteed to be about 1S, and preferably, the time of traversing all frequency bins by the 2.4G module is less than 1.1S. That is, in this embodiment, the 2.4G module performs frequency hopping operation on the preset frequency points according to the period of the first preset duration means that the 2.4G module performs frequency hopping once every other first preset time, and the time of the 2.4G module traversing all the frequency points is the product of the first preset duration and the number of the frequency points. Here, the first preset time period is 64ms, and the second preset time period is 4 ms.
And the 2.4G module analyzes and determines whether a receiver matched with the 2.4G module exists according to the received data packet, if so, the connection is continued, and if not, the 2.4G module is directly closed. It should be noted that determining that there is no receiver matching the 2.4G module includes the case where there is no receiver matching the 2.4G module in the received data packet and no data packet is received.
When a receiver matched with the 2.4G module exists, a data command which agrees to connection is sent to the receiver, and the content of the data command can be set according to actual needs, such as the ID of a game handle, the game protocol mode of the target, the correction data of the frequency hopping synchronization time and the like, so that the receiver receives the data command to perform time synchronization correction, and the frequency hopping time of the receiver and the 2.4G module is kept consistent.
After the data command agreeing to the connection is sent, an inquiry command needs to be sent to the receiver, and it can be understood that the time point of sending the inquiry command is at least the next frequency point for sending the data command, and may also be the next N frequency points, where N is greater than or equal to 2. In this embodiment, in order to improve the user experience and ensure that it is determined in a short time what manner to perform wireless connection, preferably, after sending the data command agreeing to connection, sending a preset query command to the receiver includes: and after the data command agreeing to the connection is sent at the current frequency point, sending a preset query command to the receiver at the next frequency point. In this embodiment, the receiver responds no matter whether receiving the data command or the query command, and when receiving the response of the query command, the 2.4G module is considered to have been successfully connected with the receiver, and at this time, the 2.4G module is controlled to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration.
It is understood that the above embodiment describes a mode in which the 2.4G module is used to connect when the 2.4G module can be normally connected, and the mode in which the bluetooth module is used to connect when the 2.4G module is abnormally connected is described in detail below.
The embodiment of the invention controls the Bluetooth module and the 2.4G module to start when the control equipment is started so as to enter a connection mode; when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver; judging whether a receiver matched with the 2.4G module exists or not according to the received data packet; when it is determined that there is a receiver matching the 2.4G module, transmitting a data command to the receiver to approve connection; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command; after sending a data command for agreeing to connection, sending a preset query command to the receiver; when response information of the receiver to the query command is received, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration, so that frequency hopping of the 2.4G module is synchronous with frequency hopping of the receiver; and controls to turn off the bluetooth module. Therefore, the connection control of the Bluetooth module and the 2.4G module can be automatically realized, and compared with the prior art in which the connection control of the Bluetooth module and the 2.4G module is realized in a manual mode, the invention improves the flexibility of wireless connection control.
Specifically, the above embodiment explains the connection process under the condition that the 2.4G module can be normally connected, and the bluetooth module needs to be adopted to establish the bluetooth connection under the condition that the 2.4G module cannot be normally connected, and since the bluetooth module enters the bluetooth normal connection start when the gamepad is started, the normal bluetooth connection can be completed only by closing the 2.4G module. In this embodiment, after the step of determining whether to connect to a receiver that sends the data packet according to the received data packet, the method further includes:
and controlling to close the 2.4G module when the receiver matched with the 2.4G module is determined to be absent or when the response information of the receiver to the query command is not received.
As shown in fig. 2, in a second embodiment, the method for controlling automatic switching between the bluetooth module and the 2.4G module includes:
step S10, when the control device is started, the Bluetooth module and the 2.4G module are controlled to start to enter a connection mode;
step S20, when the 2.4G module enters the connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a cycle of a first preset duration so as to receive a preset data packet broadcast by a receiver;
step S30, judging whether a receiver matched with the 2.4G module exists according to the received data packet; if yes, go to step S40, otherwise go to step S80;
step S40, sending a data command to the receiver to approve the connection; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command;
step S50, after sending the data command of agreeing to connect, sending a preset inquiry command to the receiver;
step S70, determining whether response information of the receiver to the inquiry command is received within a preset time period; if yes, go to step S60; if not, go to step S80;
step S60, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a cycle of a second preset duration, so that frequency hopping of the 2.4G module is synchronized with frequency hopping of the receiver; and controlling to close the Bluetooth module;
in step S80, control turns off the 2.4G module.
Referring to fig. 3, the present invention further provides a bluetooth and 2.4G dual-module automatic connection control device, wherein the bluetooth module and 2.4G module automatic switching control device comprises:
the first control module 10 is used for controlling the Bluetooth module and the 2.4G module to start when the control equipment is started so as to enter a connection mode; when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver;
a judging module 20, configured to judge whether a receiver matched with the 2.4G module exists according to the received data packet;
a transmitting module 30 for transmitting a data command for agreeing to a connection to the receiver when it is determined that there is a receiver matching the 2.4G module; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command; after sending a data command for agreeing to connection, sending a preset query command to the receiver;
a second control module 40, configured to control the 2.4G module to perform frequency hopping operation on the preset frequency point according to a cycle of a second preset duration when receiving response information of the receiver to the query command, so that frequency hopping of the 2.4G module is synchronized with frequency hopping of the receiver; and controls to turn off the bluetooth module.
The Bluetooth and 2.4G dual-module automatic connection control device provided by the embodiment of the invention is mainly applied to wireless connection equipment and is used for automatically selecting which mode is adopted to establish wireless connection. The bluetooth and 2.4G dual-module automatic connection control device provided by this embodiment is applied to a gamepad, and is used to control whether the gamepad adopts bluetooth to connect with a controlled terminal or adopts 2.4G to wirelessly connect with the controlled terminal. Namely, the control device is a game PAD, and the controlled device can be a mobile phone, a PAD, a smart television, and the like. Specifically, when the game pad starts the bluetooth module and the 2.4G module to work simultaneously, the 2.4G module is firstly considered to be adopted for wireless connection due to selection of energy consumption; when the 2.4G module can not be in wireless connection, the Bluetooth module is selected, and meanwhile, in order to avoid crosstalk between the Bluetooth module and the Bluetooth module, when a connection mode is determined to be adopted, the work of the other module is automatically closed.
Specifically, the gamepad is provided with a bluetooth module and a 2.4G module, and when the gamepad is started or reset, the bluetooth module and the 2.4G module both enter an initialization program and enter a connection mode. The existing connection protocol is adopted for the connection process of the bluetooth module to establish the bluetooth connection, and the connection process of the 2.4G module needs to adopt the following mode.
Specifically, a wireless connection to the 2.4G module needs to be established, and the receiver needs to be plugged into a computer or other equipment to supply power to the receiver. At this time, the receiver broadcasts a predetermined data packet for the 2.4G module to receive and establish a connection. In this embodiment, the receiver broadcasting the data packet includes: after the receiver is powered on, frequency hopping operation is carried out on the preset frequency point at the period of the second preset duration, and the data packet is broadcasted at the current frequency point; the data packet comprises the identity identification information of the receiver, the state information of the connecting handle and the current game protocol mode; the judging module is specifically configured to determine whether a receiver matching the 2.4G module exists according to the identification information in the data packet.
In this embodiment, the ID information is an ID of the receiver, and in a normal case, the receiver has a matching relationship with the 2.4G module, and the 2.4G module only establishes a connection with the receiver specified for matching, and can be identified by an ID number of the receiver. The state information of the connection handle refers to whether the receiver has established a connection with the handle, in this embodiment, one receiver may be connected to 1 gamepad, or may be connected to a plurality of gamepads, which is not further limited herein. In this embodiment, different games or different versions of the same game may have different game protocol modes, and a user may set the game protocol mode or automatically select a corresponding game protocol mode according to the currently running game; the receiver broadcasts the current game protocol mode of the receiver, and after the game handle end is connected with the receiver end, whether an instruction is sent to control the receiver to change the game protocol mode can be confirmed according to the current game protocol mode of the game handle end, so that the game protocol mode of the receiver end is matched with the game protocol mode of the game handle end.
In this embodiment, the number of the preset frequency points may be set according to actual needs, preferably, 16 frequency points are adopted here, that is, 16 channels, and the 16 channels are channels that avoid 2.4G signals such as bluetooth and wifi.
The time length of the first preset duration may be set according to actual needs, as long as the data packet sent by the receiver can be received. For example, in this embodiment, the first preset duration is a product of a second preset duration and the number of preset frequency points. In this embodiment, because bluetooth is when initiating connection, in order to avoid interference of the 2.4G module on bluetooth connection, it is preferable that it is determined within 1S whether to perform wireless connection by using the 2.4G module or perform wireless connection by using the bluetooth module. In this embodiment, the time of traversing all frequency bins by the 2.4G module is guaranteed to be about 1S, and preferably, the time of traversing all frequency bins by the 2.4G module is less than 1.1S. That is, in this embodiment, the 2.4G module performs frequency hopping operation on the preset frequency points according to the period of the first preset duration means that the 2.4G module performs frequency hopping once every other first preset time, and the time of the 2.4G module traversing all the frequency points is the product of the first preset duration and the number of the frequency points. Here, the first preset time period is 64ms, and the second preset time period is 4 ms.
And the 2.4G module analyzes and determines whether a receiver matched with the 2.4G module exists according to the received data packet, if so, the connection is continued, and if not, the 2.4G module is directly closed. It should be noted that determining that there is no receiver matching the 2.4G module includes the case where there is no receiver matching the 2.4G module in the received data packet and no data packet is received.
When a receiver matched with the 2.4G module exists, a data command which agrees to connection is sent to the receiver, and the content of the data command can be set according to actual needs, such as the ID of a game handle, the game protocol mode of the target, the correction data of the frequency hopping synchronization time and the like, so that the receiver receives the data command to perform time synchronization correction, and the frequency hopping time of the receiver and the 2.4G module is kept consistent.
After the data command agreeing to the connection is sent, an inquiry command needs to be sent to the receiver, and it can be understood that the time point of sending the inquiry command is at least the next frequency point for sending the data command, and may also be the next N frequency points, where N is greater than or equal to 2. In this embodiment, in order to improve the user experience and ensure that what kind of method is used for wireless connection is determined in a short time, preferably, the sending module 30 is specifically configured to send a preset query command to the receiver at the next frequency point after the current frequency point sends a data command agreeing to connection. In this embodiment, the receiver responds no matter whether receiving the data command or the query command, and when receiving the response of the query command, the 2.4G module is considered to have been successfully connected with the receiver, and at this time, the 2.4G module is controlled to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration.
It is understood that the above embodiment describes a mode in which the 2.4G module is used to connect when the 2.4G module can be normally connected, and the mode in which the bluetooth module is used to connect when the 2.4G module is abnormally connected is described in detail below.
The embodiment of the invention controls the Bluetooth module and the 2.4G module to start when the control equipment is started so as to enter a connection mode; when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver; judging whether a receiver matched with the 2.4G module exists or not according to the received data packet; when it is determined that there is a receiver matching the 2.4G module, transmitting a data command to the receiver to approve connection; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command; after sending a data command for agreeing to connection, sending a preset query command to the receiver; when response information of the receiver to the query command is received, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration, so that frequency hopping of the 2.4G module is synchronous with frequency hopping of the receiver; and controls to turn off the bluetooth module. Therefore, the connection control of the Bluetooth module and the 2.4G module can be automatically realized, and compared with the prior art in which the connection control of the Bluetooth module and the 2.4G module is realized in a manual mode, the invention improves the flexibility of wireless connection control.
Specifically, the above embodiment explains the connection process under the condition that the 2.4G module can be normally connected, and the bluetooth module needs to be adopted to establish the bluetooth connection under the condition that the 2.4G module cannot be normally connected, and since the bluetooth module enters the bluetooth normal connection start when the gamepad is started, the normal bluetooth connection can be completed only by closing the 2.4G module. In this embodiment, the second control module is further configured to control to close the 2.4G module when it is determined that there is no receiver matching with the 2.4G module, or when response information of the receiver to the query command is not received.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A control method for automatic connection of a Bluetooth module and a 2.4G dual-module is characterized in that the control method for automatic switching of the Bluetooth module and the 2.4G module comprises the following steps:
when the control equipment is started, the Bluetooth module and the 2.4G module are controlled to be started simultaneously so as to enter a connection mode;
when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver; the time of traversing all frequency points by the 2.4G module is less than 1.1S;
judging whether a receiver matched with the 2.4G module exists or not according to the received data packet;
when it is determined that there is a receiver matching the 2.4G module, transmitting a data command to the receiver to approve connection; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command;
after sending a data command for agreeing to connection, sending a preset query command to the receiver;
when response information of the receiver to the query command is received, controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration, so that frequency hopping of the 2.4G module is synchronous with frequency hopping of the receiver; and controlling to close the Bluetooth module; wherein,
after the step of determining whether there is a receiver matched with the 2.4G module according to the received data packet, the method further includes:
and controlling to close the 2.4G module when the receiver matched with the 2.4G module is determined to be absent or when the response information of the receiver to the query command is not received.
2. The method according to claim 1, wherein the first predetermined duration is a product of a second predetermined duration and the number of the predetermined frequency points.
3. The bluetooth and 2.4G dual-module automatic connection control method of claim 1, wherein the broadcasting of the data packet by the receiver comprises:
after the receiver is powered on, frequency hopping operation is carried out on the preset frequency point at the period of the second preset duration, and the data packet is broadcasted at the current frequency point; the data packet comprises the identity identification information of the receiver, the state information of the connecting handle and the current game protocol mode;
the judging whether a receiver matched with the 2.4G module exists according to the received data packet comprises the following steps: and determining whether a receiver matched with the 2.4G module exists according to the identification information in the data packet.
4. The bluetooth and 2.4G dual-module automatic connection control method of claim 1, wherein sending a preset inquiry command to the receiver after sending a data command agreeing to connection comprises:
and after the data command agreeing to the connection is sent at the current frequency point, sending a preset query command to the receiver at the next frequency point.
5. The utility model provides a bluetooth and 2.4G bimodulus automatic connection controlling means which characterized in that, bluetooth module and 2.4G module automatic switch controlling means include:
the first control module is used for controlling the Bluetooth module and the 2.4G module to be started simultaneously when the control equipment is started so as to enter a connection mode; when the 2.4G module enters a connection mode, controlling the 2.4G module to perform frequency hopping operation on a preset frequency point according to a period of a first preset duration so as to receive a preset data packet broadcast by a receiver; the time of traversing all frequency points by the 2.4G module is less than 1.1S;
the judging module is used for judging whether a receiver matched with the 2.4G module exists or not according to the received data packet;
a transmitting module for transmitting a data command agreeing to a connection to the receiver when it is determined that there is a receiver matching the 2.4G module; the receiver establishes frequency hopping time synchronization with the 2.4G module according to the data command; after sending a data command for agreeing to connection, sending a preset query command to the receiver;
the second control module is used for controlling the 2.4G module to perform frequency hopping operation on the preset frequency point according to a period of a second preset duration when response information of the receiver to the query command is received, so that frequency hopping of the 2.4G module is synchronous with that of the receiver; and controlling to close the Bluetooth module; wherein,
the second control module is further used for controlling to close the 2.4G module when the receiver matched with the 2.4G module is determined not to exist or when the response information of the receiver to the query command is not received.
6. The apparatus of claim 5, wherein the first predetermined duration is a product of a second predetermined duration and the number of the predetermined frequency points.
7. The Bluetooth and 2.4G dual-module automatic connection control device of claim 5, wherein the receiver is configured to perform frequency hopping operation on the preset frequency point at a cycle of the second preset duration after power-on, and broadcast the data packet at a current frequency point; the data packet comprises the identity identification information of the receiver, the state information of the connecting handle and the current game protocol mode;
the judging module is specifically configured to determine whether a receiver matched with the 2.4G module exists according to the identity information in the data packet.
8. The apparatus of claim 5, wherein the sending module is specifically configured to send a preset query command to the receiver at a next frequency point after sending a data command agreeing to connect at a current frequency point.
CN201610423929.4A 2016-06-15 2016-06-15 Bluetooth is connected control method and device automatically with 2.4G Dual modules Active CN105933988B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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
WO2017152607A1 (en) Remote control method, remote controller and remote control system
CN108024239B (en) Remote control terminal, control method thereof, and computer-readable storage medium
KR101735334B1 (en) Method and apparatus for performing discovery procedures in wi-fi p2p device
KR101649994B1 (en) Apparatus and method for automatic sim card selection according to network environment in dual mode terminal
CN111770559B (en) Network connection method, terminal, base station, and computer storage medium
CN104950823B (en) A kind of scenery control method realizing multiple wireless control apparatus
CN103164938B (en) The method of pairing, remote controller and controlled device between a kind of equipment
CN108923819B (en) Communication connection method, equipment and system
CN104035403A (en) Ibeacon technology based intelligent home control system and method
KR102125799B1 (en) IoT terminal remote controller based IoT control system and control method
CN104185092A (en) Remote control adaptor and adaption method
CN104219548B (en) Control the method for Intelligent set top box switching channels and switching channels system
CN108834121B (en) Bluetooth device ad hoc network method and system
JP2009239371A5 (en)
CN103916166A (en) Bluetooth data transmission method and bluetooth device
WO2021017156A1 (en) Method for connecting remote control device and host
CN105554694A (en) Method for controlling Bluetooth intelligent device by utilizing Bluetooth Beacon broadcast
CN103206765B (en) Pairing method and system for remote controller and air conditioner, remote controller and air conditioner
US20080132169A1 (en) Wireless communication system and wireless communication apparatus
WO2021223405A1 (en) Method and control terminal for activating network distribution mode of air conditioner
CN109640304B (en) Method for improving low-power-consumption Bluetooth connection stability
CN113915907A (en) Refrigerator and refrigerator networking method
CN109842914B (en) Method and device for switching covering beam
CN116528203B (en) Voice remote controller system, control method and device thereof and storage medium

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