CN113490218A - Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium - Google Patents

Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium Download PDF

Info

Publication number
CN113490218A
CN113490218A CN202110636923.6A CN202110636923A CN113490218A CN 113490218 A CN113490218 A CN 113490218A CN 202110636923 A CN202110636923 A CN 202110636923A CN 113490218 A CN113490218 A CN 113490218A
Authority
CN
China
Prior art keywords
remote controller
broadcast
bluetooth remote
pairing
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.)
Granted
Application number
CN202110636923.6A
Other languages
Chinese (zh)
Other versions
CN113490218B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110636923.6A priority Critical patent/CN113490218B/en
Publication of CN113490218A publication Critical patent/CN113490218A/en
Application granted granted Critical
Publication of CN113490218B publication Critical patent/CN113490218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a pairing method, a pairing device, a Bluetooth remote controller, an intelligent device and a storage medium, wherein the method comprises the following steps: when the power-on state is the starting state, the Bluetooth remote controller sends a directional back-connection broadcast with a first broadcast duration to the target equipment; when the connection back fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combined key or not; when the first key instruction is a preset combination key and binding record information does not exist, the Bluetooth remote controller sends infrared information and a first pairing broadcast data packet of a second broadcast duration, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after candidate equipment in a preset range is in infrared connection with the Bluetooth remote controller; and when the first key instruction is not the preset combined key, the Bluetooth remote controller sends infrared information and a directional loop broadcast data packet of a third broadcast duration. By adopting the method, the Bluetooth pairing efficiency can be improved.

Description

Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium
Technical Field
The present application relates to the field of bluetooth technology, and in particular, to a pairing method, a pairing apparatus, a bluetooth remote controller, an intelligent device, and a storage medium.
Background
With the continuous updating and development of bluetooth technology, bluetooth has become a standard configuration for smart appliances such as smart televisions, smart electronic scales, smart air conditioners, and the like, so that more and more remote controllers begin to be attached with bluetooth functions.
However, the existing bluetooth remote controller pairing technology usually needs to be triggered actively based on a user to realize the binding pairing between the bluetooth remote controller and the intelligent electrical appliance, for example, the user must press a specific combination key on the bluetooth remote controller at the same time, and the bluetooth remote controller can send code matching infrared help pairing. However, this pairing method has an operation premise that the user must know the operation of the combination key in advance, otherwise the pairing is difficult to succeed. Therefore, the existing pairing technology is adopted to realize the Bluetooth pairing connection between the Bluetooth remote controller and the intelligent electric appliance, the pairing operation difficulty is increased, and the pairing result is influenced by the fact that code matching infrared rays sent by the Bluetooth remote controller are extremely prone to interference.
Therefore, the existing Bluetooth remote controller pairing technology has the technical problem of low pairing efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a pairing method, a pairing apparatus, a bluetooth remote controller, an intelligent device and a storage medium for improving bluetooth pairing efficiency between the bluetooth remote controller and the intelligent device.
In a first aspect, the present application provides a pairing method, including:
when the power-on state is the starting state, the Bluetooth remote controller sends a directional feedback broadcast with a first broadcast duration to a target device, and the target device is a device successfully connected with the Bluetooth remote controller in a historical period;
when the connection back fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combined key or not;
when the first key instruction is a preset combination key and binding record information does not exist, the Bluetooth remote controller sends infrared information and a first pairing broadcast data packet of a second broadcast duration, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after candidate equipment in a preset range is in infrared connection with the Bluetooth remote controller;
and when the first key instruction is not the preset combined key, the Bluetooth remote controller sends infrared information and a directional loopback broadcast data packet of a third broadcast duration, and the directional loopback broadcast data packet and the infrared information are used for Bluetooth pairing after the target equipment and the Bluetooth remote controller establish infrared connection.
In some embodiments of the present application, when the first key instruction is a preset combination key and there is no binding record information, before the bluetooth remote controller sends the first pairing broadcast data packet of the infrared information and the second broadcast duration, the method further includes: when the first key instruction is a preset combination key, the Bluetooth remote controller detects whether binding record information exists; if the binding record information exists, the Bluetooth remote controller clears the binding record information.
In some embodiments of the present application, when the first key instruction is not a preset combination key, after the bluetooth remote controller sends the infrared information and the directional loopback broadcast data packet of the third broadcast duration, the method further includes: detecting a loop connection state with a target device; and if the reconnection state is reconnection failure, sending a second pairing broadcast data packet with a fourth broadcast duration so that the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the second pairing broadcast data packet.
In some embodiments of the present application, after the bluetooth remote controller detects the connection state with the target device, the method further includes: if the connection state is connection success, the Bluetooth remote controller acquires a first HID key value corresponding to the second key instruction; the Bluetooth remote controller sends the first HID key value to the target device, so that the target device can perform action response based on the first HID key value.
In some embodiments of the present application, when the power-on state is the activated state, after the bluetooth remote controller sends the directional backhaul broadcast of the first broadcast duration to the target device, the method further includes: if the connection back succeeds, the Bluetooth remote controller acquires a second HID key value corresponding to the third key instruction; and the Bluetooth remote controller sends the second HID key value to the target device so that the target device can perform action response based on the second HID key value.
In a second aspect, the present application further provides a pairing method, including:
the target equipment receives a directional back connection broadcast of a first broadcast duration sent by a Bluetooth remote controller, the Bluetooth remote controller is equipment successfully connected with the target equipment in a historical time period, and the directional back connection broadcast is used for back connection between the target equipment and the Bluetooth remote controller;
when the reconnection fails, the target device receives infrared information sent by the Bluetooth remote controller and a directional reconnection broadcast data packet of a second broadcast time length, wherein the infrared information and the directional reconnection broadcast data packet of the second broadcast time length are sent when the Bluetooth remote controller determines reconnection failure and the obtained key instruction is not a preset combination key;
and the target equipment is in loop connection with the Bluetooth remote controller according to the infrared information and the directional loop connection broadcast data packet.
In some embodiments of the present application, after the target device performs the loopback with the bluetooth remote controller according to the infrared information and the directional loopback broadcast data packet, the method further includes: if the target equipment fails to be reconnected with the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet, the target equipment receives a pairing broadcast data packet of a third broadcast duration sent by the Bluetooth remote controller; and carrying out Bluetooth pairing with the Bluetooth remote controller according to the pairing broadcast data packet.
In some embodiments of the present application, before the target device receives the directional backhaul broadcast of the first broadcast duration sent by the bluetooth remote controller, the method further includes: the target device detects the Bluetooth connection state; if the Bluetooth connection state is connection failure, detecting whether binding record data exists or not; correspondingly, the target device receives the directional loopback broadcast of the first broadcast duration sent by the bluetooth remote controller, and the method comprises the following steps: if the binding record data does not exist, the target device scans based on preset scanning time to acquire a directional loop broadcast of first broadcast time sent by the Bluetooth remote controller; if the binding record data exist, the target device adds the binding record data to a white list; and the target equipment acquires the directional back-connection broadcast of the first broadcast duration sent by the Bluetooth remote controller according to the white list.
In a third aspect, the present application further provides a pairing method, including:
the candidate device receives infrared information and a matched broadcast data packet with preset broadcast duration sent by the Bluetooth remote controller, the matched broadcast data packet with the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller is in failure in back connection with target equipment, the obtained key instruction is not a preset combined key, and it is determined that binding record information does not exist, and the target equipment is equipment which is successfully connected with the Bluetooth remote controller in a historical period;
and the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the infrared information and the pairing broadcast data packet with the preset broadcast duration.
In some embodiments of the present application, before the candidate device receives the infrared information and the pairing broadcast data packet of the preset broadcast duration sent by the bluetooth remote controller, the method further includes: detecting a connection state of the candidate equipment and the Bluetooth remote controller; if the connection state is connection failure, detecting whether binding record data exists or not; correspondingly, the candidate device receives the infrared information sent by the bluetooth remote controller and the pairing broadcast data packet with the preset broadcast duration, and the method comprises the following steps: if the binding record data does not exist, the candidate device scans based on the preset scanning duration to acquire the infrared information sent by the Bluetooth remote controller and the matched broadcast data of the preset broadcast duration; if the binding record data exist, the candidate device adds the binding record data to a white list; and the candidate equipment acquires the infrared information and the matched broadcast data with the preset broadcast duration according to the white list.
In a fourth aspect, the present application provides a pairing apparatus comprising:
the device comprises a feedback broadcast module, a feedback module and a feedback module, wherein the feedback broadcast module is used for sending a directional feedback broadcast with a first broadcast duration to a target device when the power-on state is a starting state, and the target device is an intelligent device which is successfully connected with a Bluetooth remote controller in a historical period;
the instruction judging module is used for judging whether the acquired first key instruction is a preset combination key or not when the return connection fails;
the first sending module is used for sending infrared information and a first pairing broadcast data packet of a second broadcast duration when the first key instruction is a preset combination key and binding record information does not exist, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after candidate equipment in a preset range is in infrared connection with a Bluetooth remote controller;
and the second sending module is used for sending the infrared information and the directional reconnection broadcast data packet of the third broadcast duration when the first key instruction is not the preset combined key, and the directional reconnection broadcast data packet and the infrared information are used for Bluetooth pairing after the target equipment and the Bluetooth remote controller are in infrared connection.
In a fifth aspect, the present application further provides a pairing apparatus, including:
the first receiving module is used for receiving a directional reconnection broadcast of a first broadcast duration sent by a Bluetooth remote controller, the Bluetooth remote controller is a device successfully connected with a target device in a historical time period, and the directional reconnection broadcast is used for performing reconnection between the target device and the Bluetooth remote controller;
the second receiving module is used for receiving infrared information sent by the Bluetooth remote controller and a directional loopback broadcast data packet of a second broadcast duration when the loopback is lost, wherein the infrared information and the directional loopback broadcast data packet of the second broadcast duration are sent by the Bluetooth remote controller when the loopback is determined to be lost and the obtained key instruction is not a preset combination key;
and the Bluetooth reconnection module is used for performing reconnection with the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet.
In a sixth aspect, the present application further provides a pairing apparatus, including:
the first receiving module is used for receiving infrared information and a matched broadcast data packet of preset broadcast duration sent by the Bluetooth remote controller, wherein the matched broadcast data packet of the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller fails to be connected with target equipment, the obtained key instruction is not a preset combined key, and binding record information does not exist, and the target equipment is equipment successfully connected with the Bluetooth remote controller in a historical period;
and the Bluetooth pairing module is used for carrying out Bluetooth pairing on the Bluetooth remote controller according to the infrared information and the broadcasting data packet matched with the preset broadcasting duration.
In a seventh aspect, the present application further provides a bluetooth remote controller, including:
one or more processors;
a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the pairing method of the first aspect.
In an eighth aspect, the present application further provides a smart device, including:
one or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pairing method of the second aspect.
In a ninth aspect, the present application further provides a smart device, including:
one or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pairing method of the third aspect.
In a tenth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program being loaded by a processor to perform the steps of the pairing method of the first aspect.
In an eleventh aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program being loaded by a processor to perform the steps in the pairing method of the second aspect.
In a twelfth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program being loaded by a processor to perform the steps in the pairing method of the third aspect.
In a thirteenth aspect, the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the bluetooth remote controller reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the bluetooth remote controller executes the pairing method provided by the first aspect.
In a fourteenth aspect, the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the smart device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the smart device performs the pairing method provided by the second aspect.
In a fifteenth aspect, the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the smart device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the smart device performs the pairing method provided by the third aspect.
According to the pairing method, the pairing device, the Bluetooth remote controller, the intelligent device and the storage medium, the Bluetooth remote controller can automatically start the directional feedback broadcast of the target device when the power-on state is the starting state by detecting the power-on state of the Bluetooth remote controller, so that Bluetooth pairing with the device can be realized without active triggering of a user, the pairing process is simplified, and the pairing efficiency is improved. Meanwhile, the Bluetooth remote controller can adopt a corresponding broadcast mode to realize Bluetooth pairing with corresponding equipment based on different obtained key instructions under the condition of failure of reconnection, so that the Bluetooth pairing safety is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a scenario of a pairing method in an embodiment of the present application;
FIG. 2 is a flow chart of a pairing method in an embodiment of the present application;
FIG. 3 is a schematic flow chart of a pairing method in an embodiment of the present application;
FIG. 4 is a schematic flow chart of another pairing method in the embodiment of the present application;
FIG. 5 is a schematic flow chart of another pairing method in the embodiment of the present application;
FIG. 6 is a schematic structural diagram of a pairing apparatus according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another embodiment of the present application;
FIG. 8 is a schematic structural diagram of another pairing apparatus in the embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
The embodiment of the application provides a pairing method, a pairing device, a bluetooth remote controller, an intelligent device and a storage medium, which are respectively described in detail below.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a pairing method provided in the present application, where the pairing of bluetooth remote controllers can be applied to a pairing system of bluetooth remote controllers. The bluetooth remote controller pairing system comprises an intelligent device 100 and a bluetooth remote controller 200. The smart device 100 may be a device that includes both receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communications over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display. The intelligent device 100 may specifically be a desktop terminal or a mobile terminal, and the intelligent device 100 may also specifically be one of an intelligent television, an intelligent electronic scale, an intelligent air conditioner, and the like. The bluetooth remote controller 200 may be an electrical appliance remote controller with a bluetooth module therein, such as a television remote controller, an air conditioner remote controller, etc.
It should be understood by those skilled in the art that the application environment shown in fig. 1 is only one application scenario applicable to the present application scheme, and does not constitute a limitation on the application scenario of the present application scheme, and other application environments may further include more or less computer devices than those shown in fig. 1, for example, only one bluetooth remote controller 200 is shown in fig. 1, and it is understood that the bluetooth remote controller pairing system may further include one or more other servers, or one or more other terminals, which are not limited herein.
It should be understood by those skilled in the art that the scenario diagram of the bluetooth remote controller pairing system shown in fig. 1 is only an example, and the bluetooth remote controller pairing system and the scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
Referring to fig. 2, an embodiment of the present application provides a pairing method, which is mainly exemplified by applying the method to the bluetooth remote controller 200 in fig. 1, and the method includes steps S201 to S204, which are specifically as follows:
s201, when the power-on state is the starting state, the Bluetooth remote controller sends a directional feedback broadcast with a first broadcast duration to the target device, and the target device is an intelligent device successfully connected with the Bluetooth remote controller in a historical period.
The first broadcast duration may be preset to limit a duration of the directional loopback broadcast operation performed by the bluetooth remote controller 200, for example, 1.28 seconds, 1.5 seconds, and the like, and may be specifically set according to an actual service requirement.
As shown in fig. 1, the target device may be the smart device 100 that is successfully connected to the bluetooth remote controller 200 in a history period, and the history period may be a valid time period before the current time of the device, for example, the current time of the device is 0 o 'clock 0/3/1/2020, and the history period may be 0 o' clock 0/3/1/2020, but the history period in other embodiments is not limited to this.
Specifically, the starting condition of the directional loopback pairing task of the bluetooth remote controller 200 is the starting state of the bluetooth remote controller, and the triggering of the starting state may be that any one key provided on the bluetooth remote controller 200 is triggered, for example, a "power key" is triggered and, for example, a "direction key" is triggered, and the triggering manner may be that the key is pressed for a certain length of time or repeatedly pressed for 2 to more times. Meanwhile, the start state may be triggered by a voice recognition module in the bluetooth remote controller 200 recognizing a specified voice content currently sent by the user, such as "start bluetooth", and the like.
More specifically, as shown in fig. 3, after the user uses one of the above-mentioned power-on starting manners for the bluetooth remote controller 200, so that the bluetooth remote controller 200 detects that its own power-on state is a starting state, the bluetooth remote controller 200 may first perform directional backhaul broadcast on a target device that has been successfully connected in a historical period based on a preset first broadcast duration, for example, the bluetooth remote controller 200 sends a data packet for the directional backhaul broadcast to the target device, where the data packet includes a MAC address of the bluetooth remote controller and a MAC address of the target device, and after receiving the data packet, the target device may perform bluetooth pairing with the bluetooth remote controller 200 based on the MAC address of the bluetooth remote controller.
It should be noted that the number of target devices may be one or multiple, and the number of target devices is not limited in the present application. If a plurality of target devices exist in the same historical period, the bluetooth remote controller 200 may sequence the target devices based on the connection time points of the target devices, so that the target devices whose connection time points are closest to the current time are arranged in front, which is convenient for the bluetooth remote controller 200 to request reconnection for the target devices in the sequence, that is, if the first target device arranged in front cannot be successfully reconnected, the bluetooth remote controller 200 may sequentially request reconnection according to the arrangement sequence of the target devices until all the target devices to be requested to be reconnected cannot be successfully reconnected, that is, the directional reconnection process may be exited, and the undirected pairing process may be entered. However, if the loopback operation is successful, bluetooth pairing can be realized in the directional loopback process. The non-directional pairing procedure and the directional loopback procedure involved in the present embodiment will be described in detail below.
S202, when the reconnection fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combined key.
The first key instruction may be a key instruction detected after the bluetooth remote controller 200 starts the directional backhaul broadcast, and the key instruction is triggered by a user using the bluetooth remote controller 200, and the triggering manner may be a click, a double click, a long press, and the like.
The preset combination key may be an anti-interference combination key set according to actual service requirements, and the combination keys set by different manufacturers may be different, for example, an "OK" key and a "return" key on the bluetooth remote controller 200, that is, "OK + return" may be selected and set as the preset combination key.
Specifically, after the bluetooth remote controller 200 sends the directional backhaul broadcast with the first broadcast duration to the target device, if the first broadcast duration is timed out and is not successfully paired with the target device, it indicates that the backhaul connection fails. At this time, the bluetooth remote controller 200 may further determine whether the obtained first key instruction is a preset combination key, and then perform different operations based on the determination result of the preset combination key to complete bluetooth pairing with the smart device.
S203, when the first key instruction is a preset combination key and binding record information does not exist, the Bluetooth remote controller sends infrared information and a first pairing broadcast data packet of a second broadcast duration, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after the candidate equipment in a preset range is in infrared connection with the Bluetooth remote controller.
The binding record information may refer to binding record information of the smart device connected to the bluetooth remote controller 200 during a history period, and for example, the binding record information may include at least one of a device name, a device serial number, a device MAC address, a binding time, and a secret key.
The infrared information can be infrared code matching of information such as MAC addresses or manufacturer codes of the Bluetooth remote controller, and is used for establishing infrared connection between the Bluetooth remote controller and the intelligent equipment, so that the Bluetooth remote controller can conveniently respond to user instructions and then correspondingly control the intelligent equipment through the infrared connection.
The second broadcast duration may be preset to limit the duration of the unidirectional pairing broadcast operation performed by the bluetooth remote controller 200, for example, 30 seconds, 45 seconds, and the like, and may be specifically set according to an actual service requirement.
The first pairing broadcast packet may be a packet including a MAC address of the bluetooth remote controller and a MAC address of the smart device, and the first pairing broadcast packet is transmitted by the bluetooth remote controller 200 by sending a unidirectional pairing broadcast to the smart device 100.
The candidate device may be an intelligent device, such as a smart television, a smart printer, or a smart air conditioner, which has a bluetooth communication function within a preset range and uses the bluetooth remote controller 200 as a center. And the preset range may be a signal radiation range set based on actual service requirements, for example, a circular range having a radius of two meters with the "bluetooth remote controller 200" as a center.
Specifically, in the case of failure of the bluetooth remote controller 200, when it is determined that the obtained first key instruction is the preset combination key and it is detected that the local database does not have the binding record information, the bluetooth remote controller 200 sends infrared information to a candidate device within the preset range, and establishes an infrared connection with a certain candidate device using the infrared information, so that the candidate device with the infrared connection can respond to the instruction sent by the user through the bluetooth remote controller 200, and perform corresponding operations, such as turning up the volume, returning to the home page, and the like.
Optionally, in an embodiment, in the case of loss of connection in step S202, when the bluetooth remote controller 200 determines that the obtained first key instruction is the preset combination key, the bluetooth remote controller first detects whether the local database has the binding record information; if the first pairing broadcast data packet exists, the Bluetooth remote controller 200 clears the binding record information, so that the local database does not have the binding record information, and then sends the first pairing broadcast data packet of the infrared information and the second broadcast time length.
Specifically, as shown in fig. 3, before the bluetooth remote controller 200 sends the infrared information and the first pairing broadcast data packet, if it is determined that the obtained first key instruction is the preset combination key, it may be further detected whether binding record information is pre-stored in the local database, that is, whether binding record information associated with the target device exists. If yes, the binding record information can be deleted, so that interference is avoided when the Bluetooth pairing device is bound with other intelligent devices, and Bluetooth pairing stability is improved.
For example, after the bluetooth remote controller 200 is back-coupled and failed with the target device, if it is detected that the first key instruction triggered by the user is the preset combination key "OK + return" and the binding record information corresponding to the target device is locally stored, the binding record information may be deleted first, and then the infrared information may be sent to other candidate devices within a range of 2 meters, so that the bluetooth remote controller 200 may establish an infrared connection with one of the candidate devices, and the candidate device that establishes an infrared connection with the bluetooth remote controller 200 may be used to respond to the remote controller operation instruction of the user, thereby preventing the instruction sent by the user from being unresponsive for a long time. After sending the infrared information, the bluetooth remote controller 200 may also send a unidirectional bluetooth pairing broadcast for a second broadcast duration (e.g., 30 seconds), that is, send a first pairing broadcast data packet, so that the bluetooth remote controller 200 establishes a bluetooth connection with the corresponding candidate smart device.
And S204, when the first key instruction is not the preset combined key, the Bluetooth remote controller sends infrared information and a directional reconnection broadcast data packet of a third broadcast duration, and the directional reconnection broadcast data packet and the infrared information are used for Bluetooth pairing after the target equipment and the Bluetooth remote controller establish infrared connection.
The third broadcast duration may be preset to limit the duration of the directional backhaul broadcast operation performed by the bluetooth remote controller 200, for example, 1.28 seconds, 1.5 seconds, and the like, and may be specifically set according to an actual service requirement.
Specifically, as shown in fig. 3, the bluetooth remote controller 200 determines that the acquired first key instruction is not the preset combination key, for example, the bluetooth remote controller 200 detects that the first key instruction triggered by the user is not the preset combination key "OK + return", but is a certain single key or other combination keys. Then, the bluetooth remote controller 200 at this time may send the infrared information to the target device again, so that the target device establishes infrared connection with the bluetooth remote controller 200, and then timely responds and executes the remote controller operation of the user by using the infrared connection communication, thereby preventing the instruction sent by the user from being unresponsive for a long time. After sending the infrared information, the bluetooth remote controller 200 may further send a directional bluetooth pairing broadcast for a third broadcast duration (e.g., 30 seconds), that is, send a directional backhaul broadcast data packet, so that the bluetooth remote controller 200 establishes a bluetooth connection with the first bluetooth device, and sequentially complete subsequent pairing tasks.
Optionally, in an embodiment, after this step, the pairing method further includes: detecting a loop connection state with a target device; and if the reconnection state is reconnection failure, sending a second pairing broadcast data packet with a fourth broadcast duration so that the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the second pairing broadcast data packet.
The fourth broadcast duration may be preset to limit the duration of the unidirectional pairing broadcast operation performed by the bluetooth remote controller 200, for example, 30 seconds, 45 seconds, and the like, and may be specifically set according to actual service requirements.
Specifically, as shown in fig. 3, after the bluetooth remote controller 200 sends the directional backhaul broadcast to the target device based on the preset third broadcast duration, if the third broadcast duration is timed up, the bluetooth remote controller 200 may detect the backhaul state between the bluetooth remote controller and the target device again, and if the backhaul state is still loss, the bluetooth remote controller may send the unidirectional pairing broadcast, that is, send the second pairing broadcast packet, to the candidate device within the preset range based on the fourth broadcast duration, and the candidate device to receive the second pairing broadcast packet performs bluetooth pairing with the bluetooth remote controller 200 by using the MAC address in the packet.
In addition, if no candidate device is connected to the fourth broadcast duration before the fourth broadcast duration is timed out, the bluetooth remote controller 200 may stop broadcasting, wait for the next key triggering, save the invalid broadcast dead cycle duration, and improve the bluetooth pairing efficiency.
It should be noted that, in the unidirectional pairing broadcast method and the directional backhaul broadcast method according to the embodiments of the present application, although the corresponding selected time duration may be determined according to an actual application situation, it may be clear that, in order to improve the bluetooth pairing efficiency, the broadcast time duration for performing the unidirectional pairing broadcast should be greater than the broadcast time duration for performing the directional backhaul broadcast. For example, the second broadcast duration and the fourth broadcast duration may each be set to 30 seconds so that there is sufficient time for bluetooth pairing of bluetooth remote controller 200 and the candidate device, and the first broadcast duration and the third broadcast duration may each be set to 1.28 seconds so that bluetooth pairing of bluetooth remote controller 200 and the target device can be performed quickly.
Optionally, in an embodiment, after the bluetooth remote controller detects the connection status with the target device, the pairing method further includes: if the connection state is connection success, the Bluetooth remote controller acquires a first HID key value corresponding to the second key instruction; the Bluetooth remote controller sends the first HID key value to the target device, so that the target device can perform action response based on the first HID key value.
Among them, hid (human Interface device) is a bluetooth protocol, which defines the protocol, features and usage procedures of bluetooth in the human Interface device. The HID key value may refer to key information adapted to a bluetooth protocol, for example, key value information for changing channels or adjusting volume.
The first HID key value may refer to key information adapted to a bluetooth protocol, for example, key value information such as changing a channel or adjusting a volume. The detailed description is explained above and will not be described herein.
The second key instruction may be a key instruction detected after the bluetooth remote controller 200 sends the infrared information and starts the directional backhaul broadcast, and the key instruction is triggered by a user using the bluetooth remote controller 200, and the triggering manner may be a click, a double click, a long press, and the like.
Specifically, as shown in fig. 3, after the bluetooth remote controller 200 sends the directional backhaul broadcast to the target device based on the preset third broadcast duration, if the third broadcast duration is timed out, the bluetooth remote controller 200 may detect the backhaul status of the target device again. If the loopback state is a loopback success, the bluetooth remote controller 200 may obtain the first HID key value corresponding to the second key instruction, so as to send the first HID key value to the target device, so that the target device receives and responds to the indication of the first HID key to execute an action, for example, execute an operation of "returning to home page".
In one embodiment, after the bluetooth remote controller sends the directional loopback broadcast of the first broadcast duration to the target device, the pairing method further includes: if the connection back succeeds, the Bluetooth remote controller acquires a second HID key value corresponding to the third key instruction; and the Bluetooth remote controller sends the second HID key value to the target device so that the target device can perform action response based on the second HID key value.
The third key instruction may be a key instruction detected after the bluetooth remote controller 200 starts the directional backhaul broadcast, and the key instruction is triggered by a user using the bluetooth remote controller 200, and the triggering manner may be a click, a double click, a long press, and the like.
Specifically, as shown in fig. 3, after the bluetooth remote controller 200 performs a loopback broadcast on the target device based on a preset first broadcast duration, if a loopback success is detected, it may wait for the user to trigger the key to obtain a second HID key value corresponding to the third key instruction. The HID key values related to the embodiment of the application are hexadecimal numbers, and the HID key values corresponding to the keys can be represented by the hexadecimal numbers with different numerical values. For example, 0x2b0 represents "left key", 0x2b1 represents "right key", and so on.
More specifically, after detecting that the second HID key value is obtained, the bluetooth remote controller 200 may send the second HID key value to the target device, so that the target device receives and responds to the indication of the second HID key value to execute some action, for example, execute an operation of "turning up the volume".
In the pairing method in the embodiment, the bluetooth remote controller detects the power-on state of the bluetooth remote controller, namely, when the power-on state is detected to be the starting state, the bluetooth remote controller automatically starts the directional back connection broadcast of the target device, and the bluetooth pairing with the device can be realized without active triggering of a user, so that the pairing process is simplified, and the bluetooth pairing efficiency is improved. In addition, the Bluetooth remote controller can adopt a corresponding broadcast mode to realize Bluetooth pairing with corresponding equipment based on the difference of the obtained key instructions under the condition of failure of Bluetooth pairing, the Bluetooth remote controller comprises a non-directional pairing broadcast mode and a directional reconnection broadcast mode, the broadcasting is carried out based on corresponding preset broadcast duration, and the pairing information is clear, so that the Bluetooth pairing efficiency is improved, the probability of interference in Bluetooth pairing is reduced, and the Bluetooth pairing safety is improved.
Referring to fig. 4, an embodiment of the present application further provides another pairing method, which is mainly exemplified by applying the method to the intelligent device 100 in fig. 1, and the method includes steps S401 to S404, which are specifically as follows:
s401, when the power-on state is the starting state, the intelligent device detects the connection state with the target Bluetooth remote controller, and the target Bluetooth remote controller is a Bluetooth remote controller successfully connected with the intelligent device in a historical period.
S402, if the connection state is connection failure, whether the binding record information exists is detected.
And S403, if the Bluetooth data does not exist, performing Bluetooth scanning pairing on the candidate Bluetooth remote controllers in the preset range based on the preset scanning duration, wherein the candidate Bluetooth remote controllers are the Bluetooth remote controllers which are sending broadcast data packets.
Specifically, in this embodiment, performing bluetooth scanning pairing to a candidate bluetooth remote controller within a preset range based on a preset scanning duration specifically means performing channel scanning based on a preset scanning duration, so as to obtain a directional backhaul broadcast sent by a certain bluetooth remote controller in a preceding step S201, or a first pairing broadcast data packet sent in a preceding step S203, or a directional backhaul broadcast data packet sent in a preceding step S204.
S404, if the Bluetooth remote controller exists, the binding record information is added into a white list, and the target Bluetooth remote controller is directionally and continuously broadcasted based on the binding record information in the white list.
Specifically, in this embodiment, the intelligent device adds the binding record information to the white list, that is, when channel scanning is performed to obtain the directional backhaul broadcast sent by a certain bluetooth remote controller, first determines whether the certain bluetooth remote controller belongs to the white list, and if the certain bluetooth remote controller belongs to the white list, receives a broadcast packet sent by the certain bluetooth remote controller, for example, the above-mentioned directional backhaul broadcast, the first pairing broadcast data packet, or the directional backhaul broadcast data packet.
The connection state may refer to a bluetooth connection state between the smart device 100 and the bluetooth remote controller 200, and includes two states of "connection success" and "connection failure".
The scanning duration may be preset to limit the duration of the bluetooth scanning operation executed by the smart device 00, for example, 30 seconds, 45 seconds, and the like, and may be specifically set according to an actual service requirement.
The candidate bluetooth remote controller may be a bluetooth remote controller that is sending out a broadcast packet within a preset range, and the preset range may be a signal detection range set based on actual service requirements, for example, a circular range with a radius of two meters around the "smart device 100".
The white list may refer to a list corresponding to a "black list", and if the white list is established, the bluetooth remote controller or other bluetooth devices in the white list may preferentially pass through the white list. And if the Bluetooth remote controller is listed in the blacklist, the corresponding Bluetooth remote controller or other Bluetooth equipment cannot pass through the blacklist.
Specifically, after the intelligent device 100 is powered on and started, the connection state detection task between the intelligent device 100 and the target bluetooth remote controller is automatically triggered, which may be based on preset periodic timing detection, or based on real-time detection of the trigger of a user on a certain button on the intelligent device 100, or based on detection after receiving infrared information of a certain bluetooth remote controller and waiting for a certain preset duration.
More specifically, as shown in fig. 5, after the smart device 100 is triggered to detect the connection status with the target bluetooth remote controller, if it detects that the connection status is "connection failure", it may further determine whether there is a binding record information pre-stored locally, where the binding record information may be binding record information of the bluetooth remote controller or other bluetooth devices connected to the smart device 100 in a history period, and the binding record information includes, for example, a device name, a device serial number, a binding time, a secret key, and the like.
Further, if the smart device 100 does not detect that the binding record information is stored, based on a preset scanning duration, the bluetooth ble (bluetooth ble) function may be started to scan the candidate bluetooth remote controllers within the preset range until the connection state after any one candidate bluetooth remote controller is connected thereto is "connection success". On the contrary, if the intelligent device 100 detects that there is the binding record information, it indicates that the bluetooth remote controller corresponding to the binding record information is a legal device, and the intelligent device 100 may add the binding record information to a preset white list, so that the intelligent device 100 may subsequently request connection one by one with reference to the device information recorded by the white list until the connection state after any candidate bluetooth remote controller is connected thereto is "connection success".
In the pairing method in the above embodiment, the intelligent device detects the connection state with the target bluetooth remote controller, that is, when the connection state is a connection failure, different measures are taken to implement bluetooth pairing based on the detection condition of the binding record information, and if the binding record information is detected to exist, the binding record information is added to the white list, so that the intelligent device references the bluetooth remote controller recorded by the white list to implement fast bluetooth pairing connection, or directly scans and pairs the surrounding bluetooth remote controllers when no binding record information is detected. By adopting the method, the intelligent equipment can quickly carry out Bluetooth pairing connection when detecting that the binding record information exists, and does not need to traverse surrounding Bluetooth remote controllers, thereby effectively improving the Bluetooth pairing efficiency.
In order to better implement the pairing method in the embodiment of the present application, on the basis of the pairing method, there is also provided a pairing apparatus in the embodiment of the present application, as shown in fig. 6, the pairing apparatus 600 includes:
the loopback broadcasting module 610 is configured to send a directional loopback broadcast with a first broadcast duration to a target device when the power-on state is a start state, where the target device is an intelligent device successfully connected with a bluetooth remote controller in a historical period;
the instruction judging module 620 is configured to, when the connection failure occurs, judge whether the obtained first key instruction is a preset combination key;
a first sending module 630, configured to send infrared information and a first pairing broadcast data packet of a second broadcast duration when the first key instruction is a preset combination key and binding record information does not exist, where the first pairing broadcast data packet and the infrared information are used for performing bluetooth pairing after establishing infrared connection between a candidate device in a preset range and a bluetooth remote controller;
and a second sending module 640, configured to send the infrared information and a directional backhaul broadcast data packet of a third broadcast duration when the first key instruction is not the preset combination key, where the directional backhaul broadcast data packet and the infrared information are used for bluetooth pairing after the target device establishes infrared connection with the bluetooth remote controller.
In some embodiments of the present application, the pairing apparatus 600 further includes a record clearing module, configured to detect whether there is binding record information in the bluetooth remote controller when the first key instruction is a preset combination key; if the binding record information exists, the Bluetooth remote controller clears the binding record information.
In some embodiments of the present application, the pairing apparatus 600 further includes a reconnection repetition module for detecting a reconnection status with the target device; and if the reconnection state is reconnection failure, sending a second pairing broadcast data packet with a fourth broadcast duration so that the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the second pairing broadcast data packet.
In some embodiments of the present application, the pairing device 600 further includes a first key value obtaining module, configured to, if the reconnection status is reconnection success, obtain, by the bluetooth remote controller, a first HID key value corresponding to the second key instruction; the Bluetooth remote controller sends the first HID key value to the target device, so that the target device can perform action response based on the first HID key value.
In some embodiments of the present application, the pairing device 600 further includes a second key value obtaining module, configured to, if the connection is successful, obtain, by the bluetooth remote controller, a second HID key value corresponding to the third key instruction; and the Bluetooth remote controller sends the second HID key value to the target device so that the target device can perform action response based on the second HID key value.
In the above embodiment, the bluetooth remote controller detects the power-on state of the bluetooth remote controller, that is, when the power-on state is detected to be the start state, the bluetooth remote controller automatically starts the directional loopback broadcast of the target device, and can realize bluetooth pairing with the device without active triggering of the user, thereby simplifying the pairing process and improving the bluetooth pairing efficiency. In addition, the Bluetooth remote controller can adopt a corresponding broadcast mode to realize Bluetooth pairing with corresponding equipment based on the difference of the obtained key instructions under the condition of failure of Bluetooth pairing, the Bluetooth remote controller comprises a non-directional pairing broadcast mode and a directional reconnection broadcast mode, the broadcasting is carried out based on corresponding preset broadcast duration, and the pairing information is clear, so that the Bluetooth pairing efficiency is improved, the probability of interference in Bluetooth pairing is reduced, and the Bluetooth pairing safety is improved.
In order to better implement the pairing method in the embodiment of the present application, on the basis of the pairing method, there is also provided a pairing apparatus in the embodiment of the present application, as shown in fig. 7, the pairing apparatus 700 includes:
the first receiving module 710 is configured to receive a directional backhaul broadcast of a first broadcast duration sent by a bluetooth remote controller, where the bluetooth remote controller is a device successfully connected with a target device in a historical period, and the directional backhaul broadcast is used for performing backhaul connection between the target device and the bluetooth remote controller;
the second receiving module 720 is configured to receive, when the reconnection is failed, the infrared information and the directional reconnection broadcast data packet of the second broadcast duration sent by the bluetooth remote controller, where the infrared information and the directional reconnection broadcast data packet of the second broadcast duration are sent by the bluetooth remote controller when the reconnection is determined to be failed and the obtained key instruction is not the preset combination key;
and the Bluetooth reconnection module 730 is used for performing reconnection with the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet.
In some embodiments of the present application, the pairing apparatus 700 further includes a third receiving module, configured to receive a pairing broadcast data packet of a third broadcast duration sent by the bluetooth remote controller if the target device fails to reconnect with the bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet; and carrying out Bluetooth pairing with the Bluetooth remote controller according to the pairing broadcast data packet.
In some embodiments of the present application, the pairing apparatus 700 further includes a third receiving module, configured to detect a bluetooth connection status; if the Bluetooth connection state is connection failure, detecting whether binding record data exists or not; correspondingly, if no binding record data exists, scanning is carried out based on preset scanning time length so as to obtain the directional loop broadcast of the first broadcast time length sent by the Bluetooth remote controller; if the binding record data exists, adding the binding record data to a white list; and acquiring the directional back-connection broadcast of the first broadcast duration sent by the Bluetooth remote controller according to the white list.
In the above embodiment, the intelligent device detects the connection state with the target bluetooth remote controller, that is, when the connection state is a connection failure, different measures are taken to realize bluetooth pairing based on the detection condition of the binding record information, and if the binding record information is detected to exist, the binding record information is added to the white list, so that the intelligent device can realize fast bluetooth pairing connection with reference to the bluetooth remote controller recorded by the white list, or directly scan the surrounding bluetooth remote controllers for pairing connection when no binding record information is detected. By adopting the method, the intelligent equipment can quickly carry out Bluetooth pairing connection when detecting that the binding record information exists, and does not need to traverse surrounding Bluetooth remote controllers, thereby effectively improving the Bluetooth pairing efficiency.
In order to better implement the pairing method in the embodiment of the present application, based on the pairing method, an embodiment of the present application further provides a pairing apparatus, as shown in fig. 8, the pairing apparatus 800 includes:
the first receiving module is used for receiving infrared information and a matched broadcast data packet of preset broadcast duration sent by the Bluetooth remote controller, wherein the matched broadcast data packet of the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller fails to be connected with target equipment, the obtained key instruction is not a preset combined key, and binding record information does not exist, and the target equipment is equipment successfully connected with the Bluetooth remote controller in a historical period;
and the Bluetooth pairing module is used for carrying out Bluetooth pairing on the Bluetooth remote controller according to the infrared information and the broadcasting data packet matched with the preset broadcasting duration.
In some embodiments of the present application, the pairing apparatus 800 further includes a status detection module, configured to detect a connection status with the bluetooth remote controller; if the connection state is connection failure, detecting whether binding record data exists or not; correspondingly, if no binding record data exists, scanning is carried out based on preset scanning time to obtain the infrared information sent by the Bluetooth remote controller and the matched broadcast data of the preset broadcast time; if the binding record data exists, adding the binding record data to a white list; and acquiring the matched broadcast data of the infrared information and the preset broadcast duration according to the white list.
In the above embodiment, the intelligent device detects the connection state with the target bluetooth remote controller, that is, when the connection state is a connection failure, different measures are taken to realize bluetooth pairing based on the detection condition of the binding record information, and if the binding record information is detected to exist, the binding record information is added to the white list, so that the intelligent device can realize fast bluetooth pairing connection with reference to the bluetooth remote controller recorded by the white list, or directly scan the surrounding bluetooth remote controllers for pairing connection when no binding record information is detected. By adopting the method, the intelligent equipment can quickly carry out Bluetooth pairing connection when detecting that the binding record information exists, and does not need to traverse surrounding Bluetooth remote controllers, thereby effectively improving the Bluetooth pairing efficiency.
In some embodiments of the present application, the pairing apparatus 600 may be implemented in a form of a computer program, which may be run on a computer device as shown in fig. 9. The memory of the computer device may store various program modules constituting the pairing apparatus 600, such as the loopback broadcasting module 610, the instruction judging module 620, the first sending module 630 and the second sending module 640 shown in fig. 9. The respective program modules constitute computer programs that cause the processors to execute the steps in the pairing methods of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 9 may perform step S201 through the loopback broadcasting module 610 in the pairing apparatus 600 shown in fig. 9. The computer device may perform step S202 through the instruction determination module 620. The computer device may perform step S203 through the first transmission module 630. The computer device may perform step S204 through the second transmitting module 640. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement a pairing method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In some embodiments of the present application, there is provided a computer device comprising one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to perform the steps of the pairing method described above. The steps of the pairing method herein may be steps in the pairing methods of the respective embodiments described above.
In some embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, which is loaded by a processor, so that the processor performs the steps of the above-mentioned pairing method. The steps of the pairing method herein may be steps in the pairing methods of the respective embodiments described above.
The pairing method, the pairing device, the bluetooth remote controller, the intelligent device and the storage medium provided by the embodiment of the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (19)

1. A pairing method, comprising:
when the power-on state is the starting state, the Bluetooth remote controller sends a directional back-connection broadcast of a first broadcast duration to a target device, wherein the target device is a device successfully connected with the Bluetooth remote controller in a historical period;
when the connection back fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combined key or not;
when the first key instruction is the preset combination key and binding record information does not exist, the Bluetooth remote controller sends infrared information and a first pairing broadcast data packet of a second broadcast duration, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after candidate equipment in a preset range is in infrared connection with the Bluetooth remote controller;
and when the first key instruction is not the preset combination key, the Bluetooth remote controller sends the infrared information and a directional reconnection broadcast data packet of a third broadcast duration, wherein the directional reconnection broadcast data packet and the infrared information are used for Bluetooth pairing after the target equipment and the Bluetooth remote controller establish infrared connection.
2. The pairing method as claimed in claim 1, wherein, when the first key instruction is the preset combination key and no binding record information exists, before the bluetooth remote controller sends a first pairing broadcast packet with infrared information and a second broadcast duration, the method further comprises:
when the first key instruction is the preset combination key, the Bluetooth remote controller detects whether the binding record information exists;
and if so, the Bluetooth remote controller clears the binding record information.
3. The pairing method of claim 1, wherein after the bluetooth remote controller transmits the infrared information and a directional loopback broadcast packet of a third broadcast duration when the first key instruction is not the preset combination key, the method further comprises:
detecting a loop back state with the target device;
and if the reconnection state is reconnection failure, sending a second pairing broadcast data packet with a fourth broadcast duration so that the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the second pairing broadcast data packet.
4. The pairing method of claim 3, wherein after the Bluetooth remote controller detects a loop back status with the target device, the method further comprises:
if the reconnection state is that reconnection is successful, the Bluetooth remote controller acquires a first HID key value corresponding to a second key instruction;
and the Bluetooth remote controller sends the first HID key value to the target equipment so that the target equipment can perform action response based on the first HID key value.
5. The pairing method of claim 1, wherein after the bluetooth remote controller sends the directed backhaul broadcast to the target device for the first broadcast duration when the power-on state is the active state, the method further comprises:
if the connection is successful, the Bluetooth remote controller acquires a second HID key value corresponding to the third key instruction;
and the Bluetooth remote controller sends the second HID key value to the target equipment so that the target equipment can perform action response based on the second HID key value.
6. A pairing method, comprising:
the target equipment receives a directional reconnection broadcast of a first broadcast duration sent by a Bluetooth remote controller, wherein the Bluetooth remote controller is an equipment successfully connected with the target equipment in a historical time period, and the directional reconnection broadcast is used for performing reconnection between the target equipment and the Bluetooth remote controller;
when the reconnection fails, the target device receives infrared information and a directional reconnection broadcast data packet of a second broadcast time length sent by the Bluetooth remote controller, wherein the infrared information and the directional reconnection broadcast data packet of the second broadcast time length are sent when the Bluetooth remote controller determines reconnection failure and the obtained key instruction is not a preset combination key;
and the target equipment is in loop connection with the Bluetooth remote controller according to the infrared information and the directional loop-back broadcast data packet.
7. The method of claim 6, wherein after the target device is back-connected to the Bluetooth remote control according to the infrared information and the directional back-connection broadcast data packet, further comprising:
if the target equipment fails to be connected with the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet, the target equipment receives a pairing broadcast data packet of a third broadcast duration sent by the Bluetooth remote controller;
and carrying out Bluetooth pairing with the Bluetooth remote controller according to the pairing broadcast data packet.
8. The method of claim 6 or 7, wherein before the target device receives the directed loopback broadcast of the first broadcast duration sent by the Bluetooth remote controller, further comprising:
the target device detects a Bluetooth connection state;
if the Bluetooth connection state is connection failure, detecting whether binding record data exists or not;
correspondingly, the target device receives the directional loopback broadcast of the first broadcast duration sent by the bluetooth remote controller, and the method includes:
if the binding record data does not exist, the target device scans based on preset scanning time to acquire the directional back-connection broadcast of the first broadcast time sent by the Bluetooth remote controller;
if the binding record data exists, the target device adds the binding record data to a white list;
and the target equipment acquires the directional back-connection broadcast of the first broadcast duration sent by the Bluetooth remote controller according to the white list.
9. A pairing method, comprising:
the method comprises the steps that candidate equipment receives infrared information and a matched broadcast data packet of preset broadcast time length, wherein the matched broadcast data packet of the infrared information and the preset broadcast time length is sent when the Bluetooth remote controller is in failure after being connected with target equipment, an obtained key instruction is not a preset combined key, and binding record information does not exist, and the target equipment is equipment which is successfully connected with the Bluetooth remote controller in a historical period;
and the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the infrared information and the pairing broadcast data packet of the preset broadcast duration.
10. The method of claim 9, wherein before the candidate device receives the pairing broadcast data packet of the infrared information and the preset broadcast duration sent by the bluetooth remote controller, the method further comprises:
the candidate device detects a connection state with the Bluetooth remote controller;
if the connection state is connection failure, detecting whether binding record data exists or not;
correspondingly, the candidate device receives the infrared information sent by the bluetooth remote controller and the pairing broadcast data packet with the preset broadcast duration, and the method comprises the following steps:
if the binding record data does not exist, the candidate device scans based on preset scanning duration to acquire the infrared information sent by the Bluetooth remote controller and the matched broadcast data of the preset broadcast duration;
if the binding record data exists, the candidate device adds the binding record data to a white list;
and the candidate equipment acquires the infrared information and the matched broadcast data of the preset broadcast duration according to the white list.
11. A pairing apparatus, comprising:
the device comprises a feedback broadcast module, a feedback module and a feedback module, wherein the feedback broadcast module is used for sending a directional feedback broadcast with a first broadcast duration to a target device when the power-on state is a starting state, and the target device is a device successfully connected with a Bluetooth remote controller in a historical period;
the instruction judging module is used for judging whether the acquired first key instruction is a preset combination key or not when the return connection fails;
the first sending module is used for sending infrared information and a first pairing broadcast data packet of a second broadcast duration when the first key instruction is the preset combination key and binding record information does not exist, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after the candidate equipment in a preset range is in infrared connection with the Bluetooth remote controller;
and the second sending module is used for sending the infrared information and a directional reconnection broadcast data packet of a third broadcast duration when the first key instruction is not the preset combination key, wherein the directional reconnection broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after the target equipment and the Bluetooth remote controller establish infrared connection.
12. A pairing apparatus, comprising:
the first receiving module is used for receiving a directional reconnection broadcast of a first broadcast duration sent by a Bluetooth remote controller, wherein the Bluetooth remote controller is a device successfully connected with the target device in a historical period, and the directional reconnection broadcast is used for performing reconnection between the target device and the Bluetooth remote controller;
the second receiving module is used for receiving infrared information and a directional loopback broadcast data packet of a second broadcast duration sent by the Bluetooth remote controller when loopback failure occurs, wherein the infrared information and the directional loopback broadcast data packet of the second broadcast duration are sent when the Bluetooth remote controller determines that loopback failure occurs and an obtained key instruction is not a preset combination key;
and the Bluetooth reconnection module is used for performing reconnection with the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet.
13. A pairing apparatus, comprising:
the Bluetooth remote controller comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving infrared information and a matched broadcast data packet of preset broadcast duration sent by the Bluetooth remote controller, the matched broadcast data packet of the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller is in failure of being connected with target equipment, an obtained key instruction is not a preset combined key, and binding record information does not exist, and the target equipment is equipment which is successfully connected with the Bluetooth remote controller in a historical period;
and the Bluetooth pairing module is used for carrying out Bluetooth pairing on the Bluetooth remote controller according to the infrared information and the broadcasting data packet matched with the preset broadcasting duration.
14. A bluetooth remote control, comprising:
one or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pairing method of any one of claims 1 to 5.
15. A smart device, comprising:
one or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pairing method of any one of claims 6 to 8.
16. A smart device, comprising:
one or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pairing method of any one of claims 9 or 10.
17. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps of the pairing method of any one of claims 1 to 5.
18. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps of the pairing method of any one of claims 6 to 8.
19. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps of the pairing method of any one of claims 9 or 10.
CN202110636923.6A 2021-06-08 2021-06-08 Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium Active CN113490218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110636923.6A CN113490218B (en) 2021-06-08 2021-06-08 Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110636923.6A CN113490218B (en) 2021-06-08 2021-06-08 Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium

Publications (2)

Publication Number Publication Date
CN113490218A true CN113490218A (en) 2021-10-08
CN113490218B CN113490218B (en) 2024-03-12

Family

ID=77934813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110636923.6A Active CN113490218B (en) 2021-06-08 2021-06-08 Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium

Country Status (1)

Country Link
CN (1) CN113490218B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071439A (en) * 2021-11-15 2022-02-18 宁波奥克斯电气股份有限公司 Method, device, equipment and storage medium for pairing Bluetooth remote controller and multiple equipment
CN114120609A (en) * 2021-10-27 2022-03-01 深圳市芯中芯科技有限公司 Remote controller pairing, binding and pairing system and method based on Bluetooth broadcast
CN114640980A (en) * 2022-04-21 2022-06-17 四川长虹电器股份有限公司 Bluetooth communication method and system
CN114745580A (en) * 2022-04-08 2022-07-12 海信视像科技股份有限公司 Display device, control device and communication back connection method
CN114979974A (en) * 2022-04-13 2022-08-30 深圳市智岩科技有限公司 Wireless control method, device and equipment
CN115103342A (en) * 2022-05-12 2022-09-23 宁波奥克斯电气股份有限公司 Bluetooth binding control method, electric equipment and Bluetooth digital remote controller
CN115419991A (en) * 2022-09-06 2022-12-02 珠海格力电器股份有限公司 Control method and control device of air conditioner, electronic equipment and air conditioner
WO2023179119A1 (en) * 2022-03-22 2023-09-28 Oppo广东移动通信有限公司 Near field communication device connection method and apparatus, device, storage medium, and product
CN115134764B (en) * 2022-05-27 2024-06-04 阿里云计算有限公司 Bluetooth-based communication method and device

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110116665A1 (en) * 2009-11-17 2011-05-19 King Bennett M System and method of providing three-dimensional sound at a portable computing device
CN103237142A (en) * 2013-04-25 2013-08-07 刘义柏 Method for generating automobile control instruction through Bluetooth earphone and cell phone
CN104053042A (en) * 2014-06-23 2014-09-17 海信集团有限公司 Voice pushing method, device and system
CN105744420A (en) * 2016-03-23 2016-07-06 惠州Tcl移动通信有限公司 Smart sports headphones and smart sports system
CN106303641A (en) * 2016-08-18 2017-01-04 深圳Tcl数字技术有限公司 Bluetooth pairing methods and bluetooth equipment
CN106996004A (en) * 2016-01-26 2017-08-01 青岛海尔洗衣机有限公司 A kind of intelligent electrical appliance control and use its washing machine
US20170289735A1 (en) * 2016-03-31 2017-10-05 Indrajith Rajapaksa Point-and-connect bluetooth pairing
US20170315721A1 (en) * 2016-04-29 2017-11-02 Timothy James Merel Remote touchscreen interface for virtual reality, augmented reality and mixed reality devices
WO2018053995A1 (en) * 2016-09-20 2018-03-29 深圳创维数字技术有限公司 Bluetooth pairing method and device
CN108833216A (en) * 2018-03-28 2018-11-16 珠海格力电器股份有限公司 voice broadcast method and device
CN108882214A (en) * 2018-07-09 2018-11-23 深圳市潮流网络技术有限公司 A kind of quick matching method of Bluetooth remote control
CN109729512A (en) * 2019-03-19 2019-05-07 深圳创维数字技术有限公司 A kind of Bluetooth pairing methods, device, terminal and storage medium
CN110288820A (en) * 2019-07-31 2019-09-27 歌尔股份有限公司 A kind of connection method of remote control equipment and host
CN111602344A (en) * 2018-08-01 2020-08-28 华为技术有限公司 Bluetooth communication method and dual-mode Bluetooth terminal
CN111885556A (en) * 2020-06-17 2020-11-03 福建新大陆通信科技股份有限公司 Fast Bluetooth adaptation method, system, remote controller, intelligent terminal and medium
US20210051459A1 (en) * 2018-01-29 2021-02-18 Bmc Medical Co., Ltd. Method and device for sending medical instrument data, and method and device for receiving medical instrument data

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110116665A1 (en) * 2009-11-17 2011-05-19 King Bennett M System and method of providing three-dimensional sound at a portable computing device
CN103237142A (en) * 2013-04-25 2013-08-07 刘义柏 Method for generating automobile control instruction through Bluetooth earphone and cell phone
CN104053042A (en) * 2014-06-23 2014-09-17 海信集团有限公司 Voice pushing method, device and system
CN106996004A (en) * 2016-01-26 2017-08-01 青岛海尔洗衣机有限公司 A kind of intelligent electrical appliance control and use its washing machine
CN105744420A (en) * 2016-03-23 2016-07-06 惠州Tcl移动通信有限公司 Smart sports headphones and smart sports system
US20170289735A1 (en) * 2016-03-31 2017-10-05 Indrajith Rajapaksa Point-and-connect bluetooth pairing
US20170315721A1 (en) * 2016-04-29 2017-11-02 Timothy James Merel Remote touchscreen interface for virtual reality, augmented reality and mixed reality devices
WO2018032681A1 (en) * 2016-08-18 2018-02-22 深圳Tcl数字技术有限公司 Bluetooth pairing method and bluetooth device
CN106303641A (en) * 2016-08-18 2017-01-04 深圳Tcl数字技术有限公司 Bluetooth pairing methods and bluetooth equipment
WO2018053995A1 (en) * 2016-09-20 2018-03-29 深圳创维数字技术有限公司 Bluetooth pairing method and device
US20210051459A1 (en) * 2018-01-29 2021-02-18 Bmc Medical Co., Ltd. Method and device for sending medical instrument data, and method and device for receiving medical instrument data
CN108833216A (en) * 2018-03-28 2018-11-16 珠海格力电器股份有限公司 voice broadcast method and device
CN108882214A (en) * 2018-07-09 2018-11-23 深圳市潮流网络技术有限公司 A kind of quick matching method of Bluetooth remote control
CN111602344A (en) * 2018-08-01 2020-08-28 华为技术有限公司 Bluetooth communication method and dual-mode Bluetooth terminal
CN109729512A (en) * 2019-03-19 2019-05-07 深圳创维数字技术有限公司 A kind of Bluetooth pairing methods, device, terminal and storage medium
CN110288820A (en) * 2019-07-31 2019-09-27 歌尔股份有限公司 A kind of connection method of remote control equipment and host
CN111885556A (en) * 2020-06-17 2020-11-03 福建新大陆通信科技股份有限公司 Fast Bluetooth adaptation method, system, remote controller, intelligent terminal and medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114120609A (en) * 2021-10-27 2022-03-01 深圳市芯中芯科技有限公司 Remote controller pairing, binding and pairing system and method based on Bluetooth broadcast
CN114120609B (en) * 2021-10-27 2023-11-14 深圳市芯中芯科技有限公司 Remote controller pairing, binding and pairing system and method based on Bluetooth broadcasting
CN114071439A (en) * 2021-11-15 2022-02-18 宁波奥克斯电气股份有限公司 Method, device, equipment and storage medium for pairing Bluetooth remote controller and multiple equipment
CN114071439B (en) * 2021-11-15 2023-10-27 宁波奥克斯电气股份有限公司 Bluetooth remote controller and multi-device pairing method, device and storage medium
WO2023179119A1 (en) * 2022-03-22 2023-09-28 Oppo广东移动通信有限公司 Near field communication device connection method and apparatus, device, storage medium, and product
CN114745580A (en) * 2022-04-08 2022-07-12 海信视像科技股份有限公司 Display device, control device and communication back connection method
CN114979974A (en) * 2022-04-13 2022-08-30 深圳市智岩科技有限公司 Wireless control method, device and equipment
CN114640980A (en) * 2022-04-21 2022-06-17 四川长虹电器股份有限公司 Bluetooth communication method and system
CN115103342A (en) * 2022-05-12 2022-09-23 宁波奥克斯电气股份有限公司 Bluetooth binding control method, electric equipment and Bluetooth digital remote controller
CN115103342B (en) * 2022-05-12 2024-06-11 宁波奥克斯电气股份有限公司 Bluetooth binding control method, electrical equipment and Bluetooth digital remote controller
CN115134764B (en) * 2022-05-27 2024-06-04 阿里云计算有限公司 Bluetooth-based communication method and device
CN115419991A (en) * 2022-09-06 2022-12-02 珠海格力电器股份有限公司 Control method and control device of air conditioner, electronic equipment and air conditioner

Also Published As

Publication number Publication date
CN113490218B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN113490218B (en) Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium
US11888644B2 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
CN103686674A (en) Network access method, intelligent terminal and WiFi access equipment
CN107205239B (en) Method for detecting wireless network connection and detection equipment
WO2003028300A1 (en) Remote control system using mobile communication terminal
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
CN110769517B (en) Random access method and related equipment
CN105959968B (en) wifi configuration method and device
US7363483B2 (en) System for rebooting relay apparatus based on detection of completely no communication establishment data presence
CN106851198B (en) Network camera operation method and network camera
CN112104532B (en) Network connection method, network distribution device, electronic equipment and storage medium
CN113746217B (en) Wireless equipment matching communication method and system based on trend judgment and electronic equipment
CN112333849A (en) Equipment connection disconnection processing method and device, mobile terminal and storage medium
CN108541078B (en) Terminal binding method, system, terminal and server
CN112543477A (en) Method, device, terminal and storage medium for sending measurement report
CN113315847B (en) Method, equipment and system for configuring Internet protocol address
EP3691346B1 (en) Modem and communication method
CN112788658B (en) Data sharing method of communication equipment, communication equipment and storage medium
CN112152888B (en) Information writing method and device for household appliance and equipment
CN114243954A (en) Wireless equipment matching communication system and method based on waveform characteristics and electronic equipment
CN113453208A (en) Equipment screen saver unlocking method, device and system based on Bluetooth communication
CN112291749A (en) Method and device for awakening T-Box, T-Box and server
CN111565396A (en) System and method for rapidly realizing distribution of multiple WiFi devices
CN111083694A (en) Application program login method, device, terminal and storage medium
CN112866065B (en) Equipment network distribution method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant