CN113490218B - 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
CN113490218B
CN113490218B CN202110636923.6A CN202110636923A CN113490218B CN 113490218 B CN113490218 B CN 113490218B CN 202110636923 A CN202110636923 A CN 202110636923A CN 113490218 B CN113490218 B CN 113490218B
Authority
CN
China
Prior art keywords
remote controller
pairing
bluetooth remote
bluetooth
broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110636923.6A
Other languages
Chinese (zh)
Other versions
CN113490218A (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

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, intelligent equipment and a storage medium, wherein the pairing method comprises the following steps: when the power-on state is the starting state, the Bluetooth remote controller sends directional reconnection broadcast with a first broadcast duration to the target equipment; when the reconnection fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combined key; when the first key instruction is a preset combined key and binding record information does not exist, the Bluetooth remote controller transmits infrared information and a first pairing broadcast data packet with 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 connected with the Bluetooth remote controller in an infrared mode; when the first key instruction is not a preset combined key, the Bluetooth remote controller sends infrared information and a directional loopback broadcast data packet of a third broadcast duration. The Bluetooth pairing efficiency can be improved by adopting the method.

Description

Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium
Technical Field
The application relates to the technical field of bluetooth, in particular to a pairing method, a pairing device, a bluetooth remote controller, intelligent equipment and a storage medium.
Background
Along with the continuous updating and development of the Bluetooth technology, bluetooth has become the standard of intelligent appliances such as intelligent televisions, intelligent electronic scales, intelligent air conditioners and the like, so that more and more remote controllers begin to have Bluetooth functions.
However, in the existing bluetooth remote controller pairing technology, the binding pairing between the bluetooth remote controller and the intelligent electrical appliance can be realized only by active triggering of a user, 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 out pairing code infrared help pairing. However, there is an operational premise in this pairing manner that the user must know the combination key operation in advance, otherwise the pairing is difficult to succeed. Therefore, the Bluetooth pairing connection between the Bluetooth remote controller and the intelligent electrical appliance is realized by adopting the existing pairing technology, the pairing operation difficulty can be increased, and the pairing infrared emitted by the Bluetooth remote controller is extremely easy to interfere to influence the pairing result.
Therefore, the existing Bluetooth remote controller pairing technology has the technical problem of low pairing efficiency.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a pairing method, a pairing device, 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 directional reconnection broadcast with a first broadcast duration to target equipment, wherein the target equipment is equipment successfully connected with the Bluetooth remote controller in a history period;
when the reconnection fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combined key;
when the first key instruction is a preset combined key and binding record information does not exist, the Bluetooth remote controller transmits infrared information and a first pairing broadcast data packet with 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 connected with the Bluetooth remote controller in an infrared mode;
when the first key instruction is not a preset combined key, the Bluetooth remote controller sends infrared information and a directional callback broadcast data packet with a third broadcast duration, and the directional callback broadcast data packet and the infrared information are used for Bluetooth pairing after the target equipment and the Bluetooth remote controller are connected in an infrared mode.
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 combined key, the Bluetooth remote controller detects whether binding record information exists or not; if so, 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 reconnection state with the target device; and if the reconnection state is that the reconnection fails, 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 status with the target device, the method further includes: if the reconnection state is successful, 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 respond based on the first HID key value.
In some embodiments of the present application, when the power-on state is the start-up state, after the bluetooth remote controller sends the directional loopback broadcast of the first broadcast duration to the target device, the method further includes: if the connection is successful, the Bluetooth remote controller acquires a second HID key value corresponding to the third key instruction; the Bluetooth remote controller sends the second HID key value to the target device so that the target device responds to the action based on the second HID key value.
In a second aspect, the present application further provides a pairing method, including:
the target device receives 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 history period, and the directional reconnection broadcast is used for reconnecting the target device with the Bluetooth remote controller;
when the reconnection fails, the target device receives a directional reconnection broadcast data packet of the second broadcast duration and the infrared information sent by the Bluetooth remote controller, wherein the directional reconnection broadcast data packet of the second broadcast duration and the infrared information are sent by the Bluetooth remote controller when the reconnection failure is determined, and the acquired key instruction is not a preset combination key;
and the target equipment is connected with the Bluetooth remote controller in a reconnection mode according to the infrared information and the directional reconnection broadcast data packet.
In some embodiments of the present application, after the target device is connected back to the bluetooth remote controller according to the infrared information and the directional back-connection broadcast packet, the method further includes: if the target equipment fails to connect back 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 with 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 loopback broadcast of the first broadcast duration sent by the bluetooth remote controller, the method further includes: the target equipment 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 comprises the following steps: if the binding record data does not exist, the target equipment scans based on a preset scanning time length to acquire a directional loopback broadcast of a first broadcasting time length sent by the Bluetooth remote controller; if the binding record data exists, the target device adds the binding record data to the white list; and the target equipment acquires the directional callback 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 a pairing broadcast data packet of infrared information and preset broadcast duration sent by the Bluetooth remote controller, wherein the pairing broadcast data packet of the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller fails to connect back with the target device, the obtained key instruction is not a preset combined key, and the target device is a device successfully connected with the Bluetooth remote controller in a history period;
And the candidate equipment performs Bluetooth pairing with the Bluetooth remote controller according to the pairing broadcast data packet of the infrared information and the preset broadcast duration.
In some embodiments of the present application, before the candidate device receives the paired broadcast data packet of the infrared information and the preset broadcast duration sent by the bluetooth remote controller, the method further includes: candidate equipment detects the 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 a pairing broadcast data packet of infrared information and preset broadcast duration sent by the Bluetooth remote controller, and the pairing broadcast data packet comprises: if the binding record data does not exist, the candidate equipment scans based on the preset scanning time length to acquire the infrared information sent by the Bluetooth remote controller and the pairing broadcast data of the preset broadcast time length; if the binding record data exists, the candidate device adds the binding record data to the white list; and the candidate equipment acquires the pairing broadcast data of the infrared information and the preset broadcast duration according to the white list.
In a fourth aspect, the present application provides a pairing device, including:
the back connection broadcasting module is used for sending directional back connection broadcasting of the first broadcasting duration to target equipment when the power-on state is a starting state, wherein the target equipment is intelligent equipment successfully connected with the Bluetooth remote controller in a history period;
The instruction judging module is used for judging whether the acquired first key instruction is a preset combined key or not when the reconnection fails;
the first sending module is used for sending the first pairing broadcast data packet of the infrared information and the second broadcast duration when the first key instruction is a preset combined key and no binding record information exists, and the first pairing broadcast data packet and the infrared information are used for carrying out Bluetooth pairing after the candidate equipment in the preset range is connected with the Bluetooth remote controller in an infrared mode;
and the second sending module is used for sending the infrared information and the directional reconnection broadcast data packet with the third broadcast duration when the first key instruction is not a 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 connected in an infrared mode.
In a fifth aspect, the present application further provides a pairing device, including:
the first receiving module is used for receiving directional reconnection broadcast of a first broadcast duration sent by the Bluetooth remote controller, wherein the Bluetooth remote controller is equipment successfully connected with the target equipment in a history period, and the directional reconnection broadcast is used for reconnecting the target equipment with the Bluetooth remote controller;
the second receiving module is used for receiving the infrared information and the directional reconnection broadcast data packet of the second broadcast duration sent by the Bluetooth remote controller when the reconnection fails, wherein 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 fails and the acquired key instruction is not a preset combination key;
And the Bluetooth reconnection module is used for reconnecting 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 device, including:
the first receiving module is used for receiving a pairing broadcast data packet of infrared information and preset broadcast duration sent by the Bluetooth remote controller, wherein the pairing broadcast data packet of the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller fails to connect back with the target device, the obtained key instruction is not a preset combined key, and the target device is a device successfully connected with the Bluetooth remote controller in a history period when no binding record information exists;
and the Bluetooth pairing module is used for carrying out Bluetooth pairing on the Bluetooth remote controller according to the infrared information and the pairing broadcast data packet of the preset broadcast duration.
In a seventh aspect, the present application further provides a bluetooth remote control, 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 first aspect.
In an eighth aspect, the present application further provides an intelligent device, including:
One or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in memory and configured to be executed by the processor to implement the pairing method of the second aspect described above.
In a ninth aspect, the present application further provides an intelligent 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 also provides a computer readable storage medium having stored thereon a computer program to be loaded by a processor for performing the steps of the pairing method of the first aspect.
In an eleventh aspect, the present application further provides a computer readable storage medium having stored thereon a computer program to be loaded by a processor for performing the steps of the pairing method of the second aspect described above.
In a twelfth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program that is loaded by a processor to perform the steps in the pairing method of the above 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 performs the pairing method provided in 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 in 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 in the third aspect.
According to the pairing method, the pairing device, the Bluetooth remote controller, the intelligent equipment and the storage medium, the Bluetooth remote controller can automatically start the directional callback broadcast to the target equipment 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 equipment can be achieved without active triggering of a user, the pairing process is simplified, and the pairing efficiency is improved. Meanwhile, the Bluetooth remote controller can realize Bluetooth pairing with corresponding equipment by adopting a corresponding broadcasting mode 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 of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a pairing method in an embodiment of the present application;
FIG. 2 is a flow chart of a pairing method according to an embodiment of the disclosure;
FIG. 3 is a schematic flow chart of a pairing method according to an embodiment of the disclosure;
FIG. 4 is a flow chart of another pairing method according to an embodiment of the disclosure;
FIG. 5 is a schematic flow chart of another pairing method according to an embodiment of the disclosure;
fig. 6 is a schematic structural diagram of a pairing device in an embodiment of the present application;
FIG. 7 is a schematic view of another pairing device according to the embodiment of the application;
FIG. 8 is a schematic structural view of a further pairing device according to an embodiment of the application;
fig. 9 is a schematic structural diagram of a computer device in the embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The embodiment of the application provides a pairing method, a pairing device, a Bluetooth remote controller, intelligent equipment and a storage medium, and the pairing method, the pairing device, the Bluetooth remote controller, the intelligent equipment and the storage medium are respectively described in detail below.
Referring to fig. 1, fig. 1 is a schematic diagram of a scenario of a pairing method provided in the present application, where the bluetooth remote control pairing can be applied to a bluetooth remote control pairing system. 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 receive and transmit hardware, i.e., a device having receive and transmit hardware capable of performing bi-directional communications over a bi-directional 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 be a desktop terminal or a mobile terminal, and the intelligent device 100 may 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 electric appliance remote controller having 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 scenario, and is not limited to the application scenario of the present application scenario, and other application environments may also include more or fewer 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 also 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 schematic view of the scenario of the bluetooth remote control pairing system shown in fig. 1 is only an example, and the bluetooth remote control pairing system and scenario described in the embodiments of the present invention are for more clearly describing the technical solution of the embodiments of the present invention, and do not constitute a limitation on the technical solution provided by the embodiments of the present invention, and those skilled in the art can know that, as the bluetooth remote control pairing system evolves and new service scenarios appear, the technical solution provided by the embodiments of the present invention is equally applicable to similar technical problems.
Referring to fig. 2, an embodiment of the present application provides a pairing method, mainly for the bluetooth remote controller 200 in fig. 1, which is mainly used for illustration, the method includes steps S201 to S204, and specifically includes the following steps:
s201, when the power-on state is the starting state, the Bluetooth remote controller sends directional reconnection broadcast with a first broadcast duration to target equipment, and the target equipment is intelligent equipment successfully connected with the Bluetooth remote controller in a history period.
The first broadcast duration may be a duration preset to limit the bluetooth remote controller 200 to perform the directional loopback broadcast operation, for example, 1.28 seconds, 1.5 seconds, etc., and may be specifically set according to actual service requirements.
As shown in fig. 1, the target device may be the smart device 100 successfully connected to the bluetooth remote controller 200 in a history period, where the history period may be a valid period before the current time of the device, for example, the current time of the device is 0 point 1/3/2020, and the history period may be 0 point 1/2/2020 to 0 point 1/3/2020, which is not limited to the history period setting in other embodiments.
Specifically, the precondition of starting the directional reconnection pairing task of the bluetooth remote controller 200 is a starting state of the bluetooth remote controller, and the triggering of the starting state may be that any one of the keys set on the bluetooth remote controller 200 is triggered, for example, a "power key" is triggered, and also, for example, a "direction key" is triggered, and the triggering manner may be that the key is pressed for a certain period of time, or repeatedly pressed for 2 times to more times. Meanwhile, the triggering of the start state may be that the voice recognition module built in the bluetooth remote controller 200 recognizes the specified voice content currently sent by the user, such as "start bluetooth", etc.
More specifically, as shown in fig. 3, after the user adopts one of the above power-on start modes for the bluetooth remote controller 200, so that the bluetooth remote controller 200 detects that its power-on state is the start state, the bluetooth remote controller 200 may first perform directional back broadcasting on the target device that has been successfully connected in the history period based on the preset first broadcasting duration, for example, the bluetooth remote controller 200 sends a data packet for the directional back broadcasting to the target device, where the data packet includes the MAC address of the bluetooth remote controller and the MAC address of the target device, and after the target device receives the data packet, bluetooth pairing may be performed with the bluetooth remote controller 200 based on the MAC address of the bluetooth remote controller.
It should be noted that the number of the target devices may be one or more, and the number of the target devices is not limited in this application. If there are multiple target devices in the same history period, the bluetooth remote controller 200 may sort the target devices based on the connection time points of the target devices, so that the target device with the connection time point closest to the current time is arranged in front, which is convenient for the bluetooth remote controller 200 to request for a reconnection of the target devices in the sequence in sequence, that is, if the first target device arranged in front cannot be successfully reconnected, the bluetooth remote controller 200 may request for a reconnection in sequence according to the arrangement sequence of the target devices until all the target devices to be requested for reconnection cannot be successfully reconnected, i.e. the directional reconnection process may be exited, and the unidirectional pairing process is entered. However, if the connection is successful, bluetooth pairing can be realized in the directional connection flow. The non-directional pairing process and the directional reconnection process 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 directional loopback broadcast, and the key instruction is triggered by a user using the bluetooth remote controller 200, where the triggering manner may be clicking, double clicking, long pressing, and the like.
The preset combination key may be an anti-interference combination key set according to actual service requirements, and combination keys set by different manufacturers may be different, for example, an "OK" key plus a "return" key on the bluetooth remote controller 200, that is, "ok+return" may be selected to be set as the preset combination key.
Specifically, after the bluetooth remote controller 200 sends the directional callback broadcast of the first broadcast duration to the target device, if the timing of the first broadcast duration is finished and the pairing with the target device is not successful, the failure of the callback is indicated. At this time, the bluetooth remote controller 200 may further determine whether the obtained first key command is a preset combination key, and further execute different operations to complete bluetooth pairing with the intelligent device based on the determination result of the preset combination key.
And S203, when the first key instruction is a preset combined key and binding record information does not exist, the Bluetooth remote controller transmits infrared information and a first pairing broadcast data packet with a second broadcast duration, and the first pairing broadcast data packet and the infrared information are used for Bluetooth pairing after the candidate equipment in a preset range is connected with the Bluetooth remote controller in an infrared mode.
The binding record information may refer to binding record information of an intelligent device connected to the bluetooth remote controller 200 in 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 key.
The infrared information can be an infrared code pair comprising information such as an MAC address or a manufacturer code of the Bluetooth remote controller, and the infrared code pair is used for establishing infrared connection between the Bluetooth remote controller and the intelligent device, so that the Bluetooth remote controller can conveniently and correspondingly control the intelligent device through the infrared connection after responding to a user instruction.
The second broadcast duration may be a duration preset to limit the bluetooth remote controller 200 to perform the unidirectional pairing broadcast operation, for example, 30 seconds, 45 seconds, etc., and may be specifically set according to actual service requirements.
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 an undirected pairing broadcast to the smart device 100.
The candidate device may be an intelligent device, for example, an intelligent television, an intelligent printer, or an intelligent air conditioner, which has a bluetooth communication function in a preset range, centering on the bluetooth remote controller 200. The preset range may be a signal radiation range set based on actual service requirements, for example, a circular range with a radius of two meters around the bluetooth remote controller 200.
Specifically, in the case of the failure of the connection back in step S202, when it is determined that the acquired first key instruction is a preset combination key and it is detected that the local database does not have binding record information, the bluetooth remote controller 200 sends infrared information to the candidate devices within the preset range, and establishes an infrared connection with a certain candidate device by using the infrared information, so that the candidate device having the infrared connection can respond to the instruction sent by the user through the bluetooth remote controller 200, and perform corresponding operations, such as volume adjustment, homepage return, and the like.
Optionally, in one embodiment, in the case of a failure of the back connection in step S202, when the bluetooth remote controller 200 determines that the acquired first key command is a preset combination key, the bluetooth remote controller first detects whether binding record information exists in the local database; if so, the bluetooth remote controller 200 clears the binding record information so that the binding record information does not exist in the local database, and then transmits the infrared information and the first pairing broadcast data packet of the second broadcast duration.
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 acquired first key instruction is a preset combination key, it may further detect whether binding record information is pre-stored in the local database, that is, whether binding record information associated with the target device exists. If so, the binding record information can be deleted, so that interference is avoided when the binding record information is bound with other intelligent equipment, and Bluetooth pairing stability is improved.
For example, after the bluetooth remote controller 200 fails to connect back to the target device, if the first key command triggered by the user is detected to be "ok+return" of the preset combination key, and binding record information corresponding to the target device is stored locally, the binding record information may be deleted first, and then infrared information is sent to other candidate devices within a range of 2 meters, so that the bluetooth remote controller 200 establishes an infrared connection with one of the candidate devices, and the candidate device established with the infrared connection with the bluetooth remote controller 200 responds to the remote controller operation command of the user, thereby avoiding the command sent by the user from being not responded for a long time. After sending the infrared information, the bluetooth remote controller 200 may also send an undirected bluetooth pairing broadcast with a second broadcast duration (e.g., 30 seconds), that is, send a first pairing broadcast 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 a preset combined key, the Bluetooth remote controller transmits infrared information and a directional loopback broadcast data packet with 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 are connected in an infrared mode.
The third broadcasting duration may be a duration preset to limit the bluetooth remote controller 200 to perform the directional loopback broadcasting operation, for example, 1.28 seconds, 1.5 seconds, etc., and may be specifically set according to actual service requirements.
Specifically, as shown in fig. 3, the bluetooth remote controller 200 determines that the acquired first key instruction is not a preset combination key, for example, the bluetooth remote controller 200 detects that the first key instruction triggered by the user is not a preset combination key "ok+back", but a single key or other combination keys. Then, the bluetooth remote controller 200 can send the infrared information to the target device again, so that the target device and the bluetooth remote controller 200 are connected by infrared, and further the remote controller operation of the user is responded and executed in time by using the infrared connection communication, so that the long-time unresponsiveness of the instruction sent by the user is avoided. After sending the infrared information, the bluetooth remote controller 200 may also send a directional bluetooth pairing broadcast with a third broadcast duration (e.g. 30 seconds), that is, send a directional callback broadcast packet, so that the bluetooth remote controller 200 establishes a bluetooth connection with the first bluetooth device, and sequentially completes the subsequent pairing tasks.
Optionally, in one embodiment, after the step, the pairing method further includes: detecting a reconnection state with the target device; and if the reconnection state is that the reconnection fails, 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 broadcasting duration may be a duration preset to limit the bluetooth remote controller 200 to perform the unidirectional pairing broadcasting operation, for example, 30 seconds, 45 seconds, etc., 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 callback 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 callback state of the target device again, if the callback state is still a callback failure, send the non-directional pairing broadcast to the candidate device within the preset range based on the fourth broadcast duration again, that is, send the second pairing broadcast packet, 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 broadcasting duration before the fourth broadcasting duration is finished, the bluetooth remote controller 200 can stop broadcasting and wait for the next key trigger, so that the invalid broadcasting dead-cycle duration is saved, and the bluetooth pairing efficiency is improved.
It should be noted that, in the embodiment of the present application, the non-directional pairing broadcasting manner and the directional loopback broadcasting manner, the corresponding selected duration may be determined according to the actual application situation, but it may be clear that, in order to improve bluetooth pairing efficiency, the broadcasting duration for performing the non-directional pairing broadcasting should be longer than the broadcasting duration for performing the directional loopback broadcasting. 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 remote control 200 to bluetooth pair with the candidate device, while the first broadcast duration and the third broadcast duration may each be set to 1.28 seconds so that bluetooth remote control 200 can quickly bluetooth pair with the target device.
Optionally, in one embodiment, after the bluetooth remote controller detects the connection state with the target device, the pairing method further includes: if the reconnection state is successful, 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 respond based on the first HID key value.
Wherein HID (Human Interface Device) is a bluetooth protocol defining the protocols, features and usage procedures of bluetooth in a human interface device. HID key may refer to key information adapted to bluetooth protocol, for example, key information such as changing channels or adjusting volume.
The first HID key value may refer to key information adapted to the bluetooth protocol, for example, key information such as changing a channel or adjusting a volume. The detailed description has been explained above and will not be repeated here.
The second key instruction may be a key instruction detected after the bluetooth remote controller 200 sends infrared information and starts directional feedback broadcasting, and the key instruction is triggered by a user using the bluetooth remote controller 200, where the triggering manner may be clicking, double clicking, long pressing, and the like.
Specifically, as shown in fig. 3, after the bluetooth remote controller 200 sends the directional callback broadcast to the target device based on the preset third broadcast duration, if the third broadcast duration is timed, the bluetooth remote controller 200 may detect the callback state with the target device again. If the connection status is connection success, the bluetooth remote controller 200 may acquire the first HID key value corresponding to the second key command, so as to send the first HID key value to the target device, for the target device to receive and respond to the indication of the first HID key, and perform some action, for example, perform the operation of "returning to the home".
In one embodiment, after the bluetooth remote controller transmits the directional echo broadcast of the first broadcast duration to the target device, the pairing method further includes: if the connection is successful, the Bluetooth remote controller acquires a second HID key value corresponding to the third key instruction; the Bluetooth remote controller sends the second HID key value to the target device so that the target device responds to the action based on the second HID key value.
The third key instruction may be a key instruction detected after the bluetooth remote controller 200 starts directional loopback broadcast, and the key instruction is triggered by a user using the bluetooth remote controller 200, where the triggering manner may be clicking, double clicking, long pressing, and the like.
Specifically, as shown in fig. 3, after the bluetooth remote controller 200 performs the loopback broadcast on the target device based on the preset first broadcast duration, if the loopback success is detected, the user may wait for triggering the key to obtain the second HID key value corresponding to the third key instruction. The HID key values related to the embodiments of the present application should be hexadecimal numbers, and the HID key values corresponding to each key may be represented by hexadecimal numbers with different values. For example, 0x2b0 represents a "left key", 0x2b1 represents a "right key", and the like.
More specifically, after detecting that the second HID key is obtained, the bluetooth remote controller 200 may send the second HID key to the target device, so that the target device may receive and respond to the indication of the second HID key to perform an action, for example, to perform an operation of "turning up volume".
According to the pairing method in the embodiment, the Bluetooth remote controller can automatically start the directional callback broadcast to the target equipment when the power-on state is detected to be the starting state by detecting the power-on state of the Bluetooth remote controller, bluetooth pairing with the equipment can be achieved without active triggering of a user, pairing flow is simplified, and Bluetooth pairing efficiency is improved. In addition, the Bluetooth remote controller can realize Bluetooth pairing with corresponding equipment by adopting a corresponding broadcasting mode based on the difference of the obtained key instructions under the condition of failure in reconnection, and the Bluetooth remote controller comprises an unoriented pairing broadcasting mode and a directional reconnection broadcasting mode, broadcasts based on corresponding preset broadcasting time length, and clearly acquires pairing information, so that the Bluetooth pairing efficiency is improved, the probability of interference of Bluetooth pairing is reduced, and the Bluetooth pairing safety is improved.
Referring to fig. 4, another pairing method is mainly described by applying the method to the smart 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 a target Bluetooth remote controller, wherein the target Bluetooth remote controller is a Bluetooth remote controller successfully connected with the intelligent device in a history period.
S402, if the connection state is connection failure, detecting whether binding record information exists.
And S403, if the data packet does not exist, carrying out Bluetooth scanning pairing on candidate Bluetooth remote controllers in a preset range based on preset scanning time, wherein the candidate Bluetooth remote controllers are Bluetooth remote controllers which are sending out broadcast data packets.
Specifically, in this embodiment, bluetooth scanning pairing is performed on candidate bluetooth remote controllers within a preset range based on a preset scanning duration, specifically, channel scanning is performed based on a preset scanning duration, so as to obtain a directional loopback broadcast sent by a certain bluetooth remote controller in the preamble step S201, or a first paired broadcast data packet sent in the preamble step S203, or a directional loopback broadcast data packet sent in the preamble step S204.
S404, if the binding record information exists, the binding record information is added into a white list, and the targeted Bluetooth remote controller is subjected to directional loopback broadcasting based on the binding record information in the white list.
Specifically, in this embodiment, the smart device adds binding record information to the whitelist, when performing channel scanning to obtain a directional loopback broadcast sent by a certain bluetooth remote controller, it first determines whether the bluetooth remote controller belongs to the whitelist, and when the bluetooth remote controller belongs to the whitelist, it receives a broadcast packet sent by the bluetooth remote controller, for example, the directional loopback broadcast, the first pairing broadcast packet, or the directional loopback broadcast packet mentioned above.
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 define a duration of the bluetooth scanning operation performed by the smart device 00, for example, 30 seconds, 45 seconds, etc., and may be specifically set according to actual service requirements.
The candidate bluetooth remote controller may refer to a bluetooth remote controller that is sending out a broadcast data packet within a preset range, and the preset range may be a signal detection range set based on an actual service requirement, for example, a circular range with a radius of two meters long with the "smart device 100" as a center.
The white list may refer to a list corresponding to a "black list", and if the white list is set up, a bluetooth remote controller or other bluetooth devices in the white list may preferentially pass through. And blacklisted, the corresponding bluetooth remote control or other bluetooth device will not pass.
Specifically, after the intelligent device 100 is powered on and started, a connection state detection task between the automatic trigger and the target bluetooth remote controller may be detected based on a preset period timing, or may be detected based on a trigger of a certain button on the intelligent device 100 by a user in real time, or may be detected after receiving infrared information of a certain bluetooth remote controller and waiting for a certain preset period of time.
More specifically, as shown in fig. 5, after the intelligent device 100 is triggered to detect the connection state with the target bluetooth remote controller, if the connection state is detected to be "connection failure", it may be further determined whether binding record information is locally pre-stored, where the binding record information may be binding record information of a bluetooth remote controller or other bluetooth devices connected to the intelligent 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 key, and the like.
Further, if the smart device 100 does not detect that binding record information exists, the bluetooth BLE (BlueTooth BLE) function may be started to scan candidate bluetooth remote controllers within a preset range based on a preset scan duration until a connection state of any one candidate bluetooth remote controller after being connected with the candidate bluetooth remote controller is "connection successful". Otherwise, if the intelligent device 100 detects that the binding record information is detected, the bluetooth remote controller corresponding to the binding record information is a legal device, and the intelligent device 100 can add the binding record information to a preset white list, so that the intelligent device 100 can request connection one by one with reference to the device information recorded by the white list later until the connection state of any one candidate bluetooth remote controller after being connected with the candidate bluetooth remote controller is "connection success".
According to the pairing method in the embodiment, the intelligent device can realize Bluetooth pairing based on the detection condition of binding record information when the connection state is connection failure by detecting the connection state with the target Bluetooth remote controller, for example, the intelligent device is added to a white list when the binding record information is detected to be stored, so that the intelligent device can realize quick Bluetooth pairing connection by referring to the Bluetooth remote controller recorded in the white list, or can directly carry out scanning pairing connection on surrounding Bluetooth remote controllers when the unbinding record information is detected. By adopting the method, the intelligent device can quickly carry out Bluetooth pairing connection when the binding record information is detected to exist, and a surrounding Bluetooth remote controller does not need to be traversed, so that the Bluetooth pairing efficiency is effectively improved.
In order to better implement the pairing method in the embodiment of the present application, based on the pairing method, a pairing device is further provided in the embodiment of the present application, as shown in fig. 6, a pairing device 600 includes:
the reconnection broadcasting module 610 is configured to send a directional reconnection broadcast of a first broadcast duration to a target device when the power-on state is a start-up state, where the target device is an intelligent device successfully connected to the bluetooth remote controller in a history period;
the instruction determining module 620 is configured to determine whether the obtained first key instruction is a preset combination key when the reconnection fails;
the first sending module 630 is configured to send, when the first key instruction is a preset combination key and there is no binding record information, a first pairing broadcast packet of infrared information and a second broadcast duration, where the first pairing broadcast packet and the infrared information are used for bluetooth pairing after the candidate device in the preset range is connected with the bluetooth remote controller in an infrared manner;
and the second sending module 640 is configured to send an infrared information and a directional loopback broadcast data packet of a third broadcast duration when the first key instruction is not a preset combination key, where the directional loopback 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 device 600 further includes a record clearing module, configured to detect, when the first key instruction is a preset combination key, whether binding record information exists by the bluetooth remote controller; if so, the Bluetooth remote controller clears the binding record information.
In some embodiments of the present application, the pairing device 600 further includes a reconnection repetition module, configured to detect a reconnection state with the target device; and if the reconnection state is that the reconnection fails, 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 obtain, by using the bluetooth remote controller, a first HID key value corresponding to the second key instruction if the reconnection state is successful; the Bluetooth remote controller sends the first HID key value to the target device so that the target device can respond 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 obtain, by using the bluetooth remote controller, a second HID key value corresponding to the third key instruction if the pairing device is successful; the Bluetooth remote controller sends the second HID key value to the target device so that the target device responds to the action based on the second HID key value.
In the above embodiment, the bluetooth remote controller can automatically start the directional callback broadcast to the target device when detecting that the power-on state is the start state by detecting the power-on state of the bluetooth remote controller, 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 realize Bluetooth pairing with corresponding equipment by adopting a corresponding broadcasting mode based on the difference of the obtained key instructions under the condition of failure in reconnection, and the Bluetooth remote controller comprises an unoriented pairing broadcasting mode and a directional reconnection broadcasting mode, broadcasts based on corresponding preset broadcasting time length, and clearly acquires pairing information, so that the Bluetooth pairing efficiency is improved, the probability of interference of 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, based on the pairing method, a pairing device is further provided in the embodiment of the present application, as shown in fig. 7, a pairing device 700 includes:
the first receiving module 710 is configured to receive a directional callback broadcast of a first broadcast duration sent by a bluetooth remote controller, where the bluetooth remote controller is a device successfully connected to a target device in a history period, and the directional callback broadcast is used for reconnecting the target device to the bluetooth remote controller;
The second receiving module 720 is configured to receive, when the reconnection fails, a directional reconnection broadcast packet of the second broadcast duration and infrared information sent by the bluetooth remote controller, where the directional reconnection broadcast packet of the second broadcast duration and the infrared information is sent when the bluetooth remote controller determines that the reconnection fails, and the acquired key instruction is not a preset combination key;
the bluetooth reconnection module 730 is configured to connect back 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 device 700 further includes a third receiving module, configured to receive, if the target device fails to connect back to the bluetooth remote controller according to the infrared information and the directional reconnection broadcast packet, a pairing broadcast packet with 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, the pairing device 700 further includes a third receiving module, configured to detect a bluetooth connection state; if the Bluetooth connection state is connection failure, detecting whether binding record data exists or not; correspondingly, if binding record data does not exist, scanning is performed based on a preset scanning time length to acquire a directional loopback broadcast of a first broadcasting time length sent by the Bluetooth remote controller; if the binding record data exists, the binding record data is added to the white list; and acquiring the directional loopback broadcast of the first broadcast duration sent by the Bluetooth remote controller according to the white list.
In the above embodiment, the intelligent device may take different measures to achieve bluetooth pairing based on the detection condition of the binding record information when the connection state is the connection failure by detecting the connection state with the target bluetooth remote controller, for example, adding the binding record information to the whitelist when the binding record information is detected, so that the intelligent device can achieve rapid bluetooth pairing connection by referring to the whitelist recorded bluetooth remote controller, or directly conduct scanning pairing connection to surrounding bluetooth remote controllers when the unbinding record information is detected. By adopting the method, the intelligent device can quickly carry out Bluetooth pairing connection when the binding record information is detected to exist, and a surrounding Bluetooth remote controller does not need to be traversed, so that the Bluetooth pairing efficiency is effectively improved.
In order to better implement the pairing method in the embodiment of the present application, based on the pairing method, a pairing device is further provided in the embodiment of the present application, as shown in fig. 8, a pairing device 800 includes:
the first receiving module is used for receiving a pairing broadcast data packet of infrared information and preset broadcast duration sent by the Bluetooth remote controller, wherein the pairing broadcast data packet of the infrared information and the preset broadcast duration is sent when the Bluetooth remote controller fails to connect back with the target device, the obtained key instruction is not a preset combined key, and the target device is a device successfully connected with the Bluetooth remote controller in a history period when no binding record information exists;
And the Bluetooth pairing module is used for carrying out Bluetooth pairing on the Bluetooth remote controller according to the infrared information and the pairing broadcast data packet of the preset broadcast duration.
In some embodiments of the present application, the pairing device 800 further includes a state detection module, configured to detect a connection state with the bluetooth remote controller; if the connection state is connection failure, detecting whether binding record data exists or not; correspondingly, if the binding record data does not exist, scanning is performed based on a preset scanning time length so as to acquire the infrared information sent by the Bluetooth remote controller and the pairing broadcast data of the preset broadcast time length; if the binding record data exists, the binding record data is added to the white list; and acquiring the pairing broadcast data of the infrared information and the preset broadcast duration according to the white list.
In the above embodiment, the intelligent device may take different measures to achieve bluetooth pairing based on the detection condition of the binding record information when the connection state is the connection failure by detecting the connection state with the target bluetooth remote controller, for example, adding the binding record information to the whitelist when the binding record information is detected, so that the intelligent device can achieve rapid bluetooth pairing connection by referring to the whitelist recorded bluetooth remote controller, or directly conduct scanning pairing connection to surrounding bluetooth remote controllers when the unbinding record information is detected. By adopting the method, the intelligent device can quickly carry out Bluetooth pairing connection when the binding record information is detected to exist, and a surrounding Bluetooth remote controller does not need to be traversed, so that the Bluetooth pairing efficiency is effectively improved.
In some embodiments of the present application, pairing device 600 may be implemented in the form of a computer program that is executable on a computer apparatus as shown in fig. 9. The memory of the computer device may store various program modules constituting the pairing device 600, such as the loopback broadcasting module 610, the instruction judging module 620, the first transmitting module 630, and the second transmitting module 640 shown in fig. 9. The computer program constituted by the respective program modules causes the processor to execute the steps in the pairing method 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 device 600 shown in fig. 9. The computer apparatus 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 transmission 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 the operating system and computer programs in the non-volatile storage media. 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.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In some embodiments of the present application, a computer device is provided that includes 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 the steps in the pairing method of the above embodiments.
In some embodiments of the present application, a computer readable storage medium is provided, in which a computer program is stored, the computer program being loaded by a processor, so that the processor performs the steps of the pairing method described above. The steps of the pairing method herein may be the steps in the pairing method of the above embodiments.
The foregoing describes in detail a pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present invention, where the foregoing description of the embodiments is only for helping to understand the method and core idea of the present invention; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present invention, the present description should not be construed as limiting the present invention in summary.

Claims (17)

1. A pairing method, comprising:
when the power-on state is a starting state, the Bluetooth remote controller sends directional reconnection broadcast with a first broadcast duration to target equipment, wherein the directional reconnection broadcast is used for reconnecting the target equipment with the Bluetooth remote controller, and the target equipment is equipment successfully connected with the Bluetooth remote controller in a history period;
when the reconnection fails, the Bluetooth remote controller judges whether the acquired first key instruction is a preset combination key or not, and the preset combination key is used for triggering the remote controller to send a broadcast data packet of Bluetooth pairing after the candidate equipment and the Bluetooth remote controller are connected in an infrared mode;
when the first key instruction is the preset combined key and binding record information of intelligent equipment connected with a Bluetooth remote controller in a history period does not exist, the Bluetooth remote controller sends infrared information and a first pairing broadcast data packet with second broadcast duration, the first pairing broadcast data packet and the infrared information are used for enabling candidate equipment in a preset range to be in infrared connection with the Bluetooth remote controller and then carry out Bluetooth pairing, and the candidate equipment is intelligent equipment with Bluetooth communication function in the preset range by taking the Bluetooth remote controller as the center;
And when the first key instruction is not the preset combined key, the Bluetooth remote controller transmits the infrared information and the directional loopback broadcast data packet with the 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 are connected in an infrared mode.
2. The pairing method according to claim 1, wherein when the first key instruction is the preset combination key and there is no binding record information, before the bluetooth remote controller transmits the first paired broadcast data packet of the infrared information and the second broadcast duration, the method further comprises:
when the first key instruction is the preset combined key, the Bluetooth remote controller detects whether the binding record information exists or not;
and if the binding record information exists, the Bluetooth remote controller clears the binding record information.
3. The pairing method according to claim 1, wherein when the first key command is not the preset combination key, after the bluetooth remote controller transmits the infrared information and the directional-back broadcast packet of the third broadcast duration, the method further comprises:
Detecting a reconnection state between the target equipment and the Bluetooth remote controller;
and if the reconnection state is the 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 as defined in claim 3, wherein after the bluetooth remote controller detects the connection status with the target device, the method further comprises:
if the reconnection state is the reconnection success, the Bluetooth remote controller acquires a first HID key value corresponding to the second key instruction;
and the Bluetooth remote controller sends the first HID key value to the target equipment so that the target equipment responds to the action based on the first HID key value.
5. The pairing method according to claim 1, wherein, when the power-on state is the start-up state, after the bluetooth remote controller transmits the directional back broadcasting of the first broadcasting duration to the target device, 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 responds to the action based on the second HID key value.
6. A pairing method, comprising:
the method comprises the steps that target equipment receives directional reconnection broadcast of a first broadcast duration sent by a Bluetooth remote controller, wherein the Bluetooth remote controller is equipment successfully connected with the target equipment in a history period, and the directional reconnection broadcast is used for reconnecting the target equipment with the Bluetooth remote controller;
when the reconnection fails, the target device receives infrared information and a directional reconnection broadcast data packet with a second broadcast duration sent by the Bluetooth remote controller, wherein the infrared information and the directional reconnection broadcast data packet with the second broadcast duration are broadcast data packets which are sent by the Bluetooth remote controller when the Bluetooth remote controller determines that the reconnection fails, and the acquired key instruction is not a preset combination key, and the preset combination key is used for triggering the remote controller to send candidate equipment and the Bluetooth remote controller to establish infrared connection and then carry out Bluetooth pairing;
the target equipment is connected with the Bluetooth remote controller in a reconnection mode according to the infrared information and the directional reconnection broadcast data packet;
after the target device is connected with the Bluetooth remote controller in a reconnection way according to the infrared information and the directional reconnection broadcast data packet, the target device further comprises:
if the target device fails to connect back with the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet, the target device receives a pairing broadcast data packet with 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.
7. The method of claim 6, wherein before the target device receives the directional echo broadcast of the first broadcast duration sent by the bluetooth remote control, further comprising:
the target equipment detects a Bluetooth connection state;
if the Bluetooth connection state is connection failure, detecting whether binding record data exist or not;
correspondingly, the target device receives a directional callback broadcast of a first broadcast duration sent by a bluetooth remote controller, and the directional callback broadcast comprises:
if the binding record data does not exist, the target device scans based on a preset scanning time length to acquire the directional loopback broadcast of the first broadcasting time length 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 loopback broadcast of the first broadcast duration sent by the Bluetooth remote controller according to the white list.
8. A pairing method, comprising:
the candidate equipment receives a pairing broadcast data packet of infrared information and preset broadcast duration sent by a Bluetooth remote controller, wherein the pairing broadcast data packet of the infrared information and the preset broadcast duration is a broadcast data packet of the Bluetooth remote controller, which is sent when the Bluetooth remote controller fails to connect back with a target equipment, an obtained key instruction is not a preset combined key, and binding record information of an intelligent equipment connected with the Bluetooth remote controller in a history period is determined to be absent, the target equipment is equipment successfully connected with the Bluetooth remote controller in the history period, the preset combined key is used for triggering the remote controller to send the candidate equipment to establish infrared connection with the Bluetooth remote controller and then carry out Bluetooth pairing, and the candidate equipment is intelligent equipment with a Bluetooth communication function in a preset range by taking the Bluetooth remote controller as a center;
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;
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 candidate device further comprises:
the candidate equipment detects the connection state with the Bluetooth remote controller;
if the connection state is connection failure, detecting whether binding record data exist or not;
correspondingly, the candidate device receives a pairing broadcast data packet of infrared information and preset broadcast duration sent by a Bluetooth remote controller, and the pairing broadcast data packet comprises:
if the binding record data does not exist, the candidate equipment scans based on a preset scanning time length to acquire the pairing broadcast data of the infrared information and the preset broadcast time length sent by the Bluetooth remote controller;
if the binding record data exists, the candidate device adds the binding record data to a white list;
and the candidate equipment acquires the paired broadcast data of the infrared information and the preset broadcast duration according to the white list.
9. A pairing device, comprising:
The device comprises a loopback broadcasting module, a target device, a Bluetooth remote controller and a loopback broadcasting module, wherein the loopback broadcasting module is used for sending directional loopback broadcasting of a first broadcasting duration to the target device when the power-on state is a starting state, the target device is successfully connected with the Bluetooth remote controller in a history period, and the directional loopback broadcasting is used for carrying out loopback on the target device and the Bluetooth remote controller;
the instruction judging module is used for judging whether the acquired first key instruction is a preset combined key or not when the reconnection 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 combined key and binding record information of the intelligent device connected with the Bluetooth remote controller does not exist in a history period, wherein the first pairing broadcast data packet and the infrared information are used for enabling candidate devices in a preset range to be in Bluetooth pairing after establishing infrared connection with the Bluetooth remote controller, and the candidate devices are intelligent devices with Bluetooth communication functions in the preset range by taking the Bluetooth remote controller as a center;
and the second sending module is used for sending the infrared information and the directional loopback broadcast data packet with the third broadcast duration when the first key instruction is not the preset combined key, wherein the directional loopback broadcast data packet and the infrared information are used for Bluetooth pairing after the target equipment and the Bluetooth remote controller are connected in an infrared mode.
10. A pairing device, comprising:
the first receiving module is used for receiving directional reconnection broadcast of a first broadcast duration sent by a Bluetooth remote controller, wherein the Bluetooth remote controller is equipment successfully connected with target equipment in a history period, and the directional reconnection broadcast is used for reconnecting the target equipment with the Bluetooth remote controller;
the second receiving module is used for receiving the infrared information sent by the Bluetooth remote controller and the directional reconnection broadcast data packet with the second broadcast duration when the reconnection fails, wherein the infrared information and the directional reconnection broadcast data packet with the second broadcast duration are sent by the Bluetooth remote controller when the reconnection fails is determined, the acquired key instruction is not a preset combination key, the preset combination key is used for triggering the remote controller to send a broadcast data packet for Bluetooth pairing after the candidate device and the Bluetooth remote controller are connected in an infrared mode, and the candidate device is an intelligent device with a Bluetooth communication function in a preset range by taking the Bluetooth remote controller as the center;
the Bluetooth reconnection module is used for reconnecting the Bluetooth remote controller according to the infrared information and the directional reconnection broadcast data packet;
The third receiving module is used for receiving a pairing broadcast data packet with a third broadcast duration sent by the Bluetooth remote controller if the target device fails to connect back 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.
11. A pairing device, 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 a pairing broadcast data packet of infrared information and preset broadcast duration sent by the Bluetooth remote controller, the pairing broadcast data packet of the infrared information and the preset broadcast duration is a broadcast data packet of Bluetooth pairing after the infrared information and the preset broadcast duration are connected with a target device in a preset range, the obtained key instruction is not a preset combined key, the target device is a device successfully connected with the Bluetooth remote controller in a history period when binding record information of the intelligent device connected with the Bluetooth remote controller does not exist in the history period, the preset combined key is used for triggering the remote controller to send candidate devices to establish infrared connection with the Bluetooth remote controller, and the candidate devices are intelligent devices with Bluetooth communication functions in the preset range by taking the Bluetooth remote controller as a center;
The Bluetooth pairing module is used for carrying out Bluetooth pairing on the Bluetooth remote controller according to the infrared information and the pairing broadcast data packet of the preset broadcast duration;
the state detection module is used for detecting the connection state with the Bluetooth remote controller; if the connection state is connection failure, detecting whether binding record data exist or not; correspondingly, if the binding record data does not exist, the candidate device scans based on a preset scanning duration to acquire the infrared information sent by the Bluetooth remote controller and the pairing 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 paired broadcast data of the infrared information and the preset broadcast duration according to the white list.
12. 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.
13. An intelligent 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 7.
14. An intelligent 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 claim 8.
15. A computer readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the pairing method according to any one of claims 1 to 5.
16. 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 according to any one of claims 6 to 7.
17. A computer readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the pairing method as defined in claim 8.
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 CN113490218A (en) 2021-10-08
CN113490218B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114120609B (en) * 2021-10-27 2023-11-14 深圳市芯中芯科技有限公司 Remote controller pairing, binding and pairing system and method based on Bluetooth broadcasting
CN114071439B (en) * 2021-11-15 2023-10-27 宁波奥克斯电气股份有限公司 Bluetooth remote controller and multi-device pairing method, device and storage medium
CN114666744B (en) * 2022-03-22 2024-03-01 Oppo广东移动通信有限公司 Method, device, equipment, storage medium and product for connecting near field communication equipment
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
CN115419991A (en) * 2022-09-06 2022-12-02 珠海格力电器股份有限公司 Control method and control device of air conditioner, electronic equipment and air conditioner

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (4)

* 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
US10097948B2 (en) * 2016-03-31 2018-10-09 Intel Corporation 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
CN108391237A (en) * 2018-01-29 2018-08-10 北京怡和嘉业医疗科技股份有限公司 The sending, receiving method of medical instrument data and transmission, receiving device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106303641A (en) * 2016-08-18 2017-01-04 深圳Tcl数字技术有限公司 Bluetooth pairing methods and bluetooth equipment
WO2018032681A1 (en) * 2016-08-18 2018-02-22 深圳Tcl数字技术有限公司 Bluetooth pairing method and bluetooth device
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
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

Also Published As

Publication number Publication date
CN113490218A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN113490218B (en) Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium
CN112020048B (en) Bluetooth device pairing method, device and storage medium
CN111866998A (en) Bluetooth network distribution method, equipment and storage medium
CN111314864B (en) Network distribution method, device and equipment
CN111586665B (en) Method and device for accessing wireless network
CN105338402A (en) Bluetooth connection method and apparatus
CN109005532B (en) Bluetooth connection method, Bluetooth master device and Bluetooth slave device
CN107205239B (en) Method for detecting wireless network connection and detection equipment
US20100157964A1 (en) Server to guide reconnection in mobile internet, method for guiding server reconnection, and server reconnection method
CN104704447A (en) Using Bluetooth low energy
CN111885571A (en) Bluetooth device pairing method, device and storage medium
CN106851198B (en) Network camera operation method and network camera
CN112104532B (en) Network connection method, network distribution device, electronic equipment and storage medium
EP4250685A1 (en) Network configuration method and apparatus for internet of things device
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN112235677A (en) Master-slave switching method of wireless earphone, wireless earphone and readable storage medium
CN111586521A (en) Auxiliary playing device, control method and control device thereof, and readable storage medium
CN113746217B (en) Wireless equipment matching communication method and system based on trend judgment and electronic equipment
CN112788658B (en) Data sharing method of communication equipment, communication equipment and storage medium
CN115529574A (en) Bluetooth pairing processing method, electric equipment, terminal and server
CN112073368A (en) Method for switching network interaction modes and related device thereof
CN116528173A (en) Communication processing method and device
CN115209510B (en) Wireless network connection method and device, electronic equipment and storage medium
CN111432392B (en) Method for improving input stability of Bluetooth human-computer interaction equipment
CN114143129B (en) Gateway batch networking method, device, equipment and storage 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