CN107197346B - Television terminal, Bluetooth device reconnection method and computer readable storage medium - Google Patents

Television terminal, Bluetooth device reconnection method and computer readable storage medium Download PDF

Info

Publication number
CN107197346B
CN107197346B CN201710395817.7A CN201710395817A CN107197346B CN 107197346 B CN107197346 B CN 107197346B CN 201710395817 A CN201710395817 A CN 201710395817A CN 107197346 B CN107197346 B CN 107197346B
Authority
CN
China
Prior art keywords
bluetooth
remote controller
key
television terminal
stored
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
CN201710395817.7A
Other languages
Chinese (zh)
Other versions
CN107197346A (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 CN201710395817.7A priority Critical patent/CN107197346B/en
Publication of CN107197346A publication Critical patent/CN107197346A/en
Application granted granted Critical
Publication of CN107197346B publication Critical patent/CN107197346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)
  • Details Of Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a Bluetooth device reconnection method, which comprises the following steps: the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller; the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not; when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller; the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not; and if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected. The invention also discloses a television terminal and a computer readable storage medium. The invention reduces the operation steps of Bluetooth pairing and reconnection, reduces the complexity and improves the efficiency.

Description

Television terminal, Bluetooth device reconnection method and computer readable storage medium
Technical Field
The invention relates to the technical field of air conditioners, in particular to a television terminal, a Bluetooth device connection method and a computer readable storage medium.
Background
With the development of the television industry, the Bluetooth specification is upgraded, the transmission speed performance is continuously improved, the Bluetooth function becomes the mainstream basic function of the television, and the Bluetooth remote controller gradually replaces the traditional infrared remote controller. In the prior art, when the Bluetooth remote controller is not connected with a television, the infrared code value is sent to the television end, the television end reminds a user of automatically checking the code, and the connection is established with the television after the code is successfully checked. After the Bluetooth remote controller end is paired with the television end, television pairing information is recorded, namely the television end records the Bluetooth MAC and the interactive encryption Key (LINK _ KEY) of the Bluetooth remote controller. The Bluetooth remote controller belongs to interactive equipment, which can enter a standby mode for saving electric quantity and no operation for a period of time, and when a user presses a key, the Bluetooth remote controller wakes up again to send a continuous broadcast and establishes connection with a host which is paired previously; the television end also records the MAC address and the LINK _ KEY of the paired remote controller, and immediately establishes connection after receiving the return broadcast.
But currently, all bluetooth interaction devices only store the last paired host device (television) information; meanwhile, the television end can only be matched with one remote controller at the same time, namely the matched remote controller (even the connected Bluetooth remote controller) exists at present, the current matched Bluetooth remote controller can be eliminated when the matched broadcast is received, and then the matched connection is established with the remote controller which receives the matched broadcast at the last time. The prior method has the following defects: 1. after the remote controller is paired and connected with the television A (TVA), the remote controller is paired and connected with the television B (TVB), and the remote controller cannot be connected back with the television A after being awakened by deep rest, because the connection established by the LINK _ KEY is sent back to the television B. 2. After the television is paired with the remote controller C, connection pairing is established with the remote controller D; the remote controller C cannot establish a back connection with the television after being awakened after a deep rest. Since the television stores the LINK KEY that was last set up to couple with the remote D.
In summary, the existing bluetooth device is connected back, and only the last successful bluetooth device can be connected back, and other bluetooth devices cannot be connected back, and need to be paired again, resulting in a complicated bluetooth pairing process and poor efficiency.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a television terminal, a Bluetooth device reconnection method and a computer readable storage medium, and aims to solve the technical problems that the existing Bluetooth device reconnection can only establish connection with the Bluetooth device successfully paired for the last time through reconnection, other Bluetooth devices cannot establish connection through reconnection, and the pairing operation needs to be carried out again, so that the Bluetooth pairing operation process is complex and the efficiency is poor.
In order to achieve the above object, the present invention provides a bluetooth device reconnection method, including the following steps:
the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller;
the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller;
the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not;
if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected;
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, the television terminal judges whether the Bluetooth remote controller corresponding to the Bluetooth return broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, the television terminal determines whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, the television terminal fills an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizes the filled interactive key to the Bluetooth remote controller;
after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected;
and judging whether the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is a user-defined Bluetooth remote controller or not according to the user-defined remote controller name or the user-defined return connection broadcast indicator in the return connection.
Preferably, the method further comprises:
and if the stored encryption key of the Bluetooth remote controller is determined not to be null or 0, or the MAC address of the Bluetooth remote controller in the Bluetooth return connection broadcast is inconsistent with the MAC address in the stored paired record list, or the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is not a user-defined Bluetooth remote controller, discarding the local return connection broadcast, and prompting the return connection failure.
Preferably, before the step of receiving the bluetooth backhaul broadcast sent by the bluetooth remote controller after the bluetooth remote controller is dormant, the method further includes:
the television terminal receives the pairing broadcast sent by the Bluetooth remote controller;
after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, and sends a message of successful pairing connection.
Preferably, after the steps of establishing a connection with the bluetooth remote controller after receiving the pairing broadcast, starting an encryption interaction with the bluetooth remote controller, and sending a message that the pairing connection is successful, the method further includes:
the television terminal judges whether the currently stored pairing record is larger than a preset threshold value;
if not, storing the pairing information;
if yes, deleting the stored pairing record according to a set rule, and storing the pairing information.
Preferably, if yes, deleting the stored pairing record according to a set rule, and storing the pairing information of this time includes:
and if the currently stored pairing record is larger than a preset threshold value, deleting the first pairing record in the stored pairing record list by the television terminal, and storing the pairing information at the last of the pairing record list.
In addition, to achieve the above object, the present invention also provides a television terminal, including: a memory, a processor, and a bluetooth device loopback program stored on the memory and operable on the processor, the bluetooth device loopback program when executed by the processor implementing the steps of:
receiving a Bluetooth back connection broadcast sent by a Bluetooth remote controller;
judging whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, establishing connection with the Bluetooth remote controller, and starting encryption and key interaction with the Bluetooth remote controller;
judging whether the key of the Bluetooth device remote controller is consistent with the stored key;
if the key of the Bluetooth equipment remote controller is consistent with the stored key, updating the connection state between the Bluetooth remote controller and the television terminal to be connected;
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, judging whether the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, determining whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, filling an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizing the filled interactive key to the Bluetooth remote controller;
after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected;
and judging whether the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is a user-defined Bluetooth remote controller or not according to the user-defined remote controller name or the user-defined return connection broadcast indicator in the return connection.
Preferably, the bluetooth device loopback program when executed by the processor implements the steps of:
and if the currently stored pairing record is larger than the preset threshold value, deleting the first pairing record in the stored pairing record list, and storing the pairing information at the last of the pairing record list.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a bluetooth device reconnection program stored thereon, which when executed by a processor implements the steps of the bluetooth device reconnection method as described above.
The television terminal can store a plurality of matching records with the Bluetooth remote controllers with the plurality of Bluetooth remote controllers by modifying the strategy, and can quickly establish connection for data interaction when receiving the back connection broadcast of the Bluetooth remote controllers. Effectively avoid present bluetooth equipment to articulate at present, can only establish connection through the reconnection with the bluetooth equipment that pairs successfully at last time, other bluetooth equipment can't establish connection through the reconnection, need pair the operation again, lead to the bluetooth to pair the operation process complicacy, the technical problem that efficiency is poor reduces the bluetooth and pairs the operating procedure of reconnecting, reduces the complexity, raises the efficiency.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a Bluetooth device connection back method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a process of establishing a bluetooth connection between a television terminal and a bluetooth remote controller according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a Bluetooth device connection back method according to another embodiment of the present invention;
FIG. 5 is a schematic view of a process for pairing a television with multiple remote controllers according to the present invention;
FIG. 6 is a schematic flow chart illustrating the remote control and the television being connected back according to an embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating the remote control and the television being connected back in another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller; the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not; when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller; the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not; and if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected.
Because present bluetooth equipment reconnection can only establish connection through reconnection with the bluetooth equipment that pairs successfully last time, other bluetooth equipment can't establish connection through reconnection, need pair the operation again, lead to the bluetooth to pair the operation process complicated, the technical problem of efficiency difference. The invention provides a solution, a television terminal can store a plurality of matching records with a plurality of Bluetooth remote controllers by modifying a strategy, and can quickly establish connection for data interaction when receiving the back connection broadcast of the Bluetooth remote controllers. Effectively avoid present bluetooth equipment to articulate at present, can only establish connection through the reconnection with the bluetooth equipment that pairs successfully at last time, other bluetooth equipment can't establish connection through the reconnection, need pair the operation again, lead to the bluetooth to pair the operation process complicacy, the technical problem that efficiency is poor reduces the bluetooth and pairs the operating procedure of reconnecting, reduces the complexity, raises the efficiency.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The television terminal is connected and back-connected with a plurality of Bluetooth remote controllers in a Bluetooth mode, and the television terminal is controlled by the remote controllers.
As shown in fig. 1, the television terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the television terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a temperature sensor, and a holman sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a bluetooth device loopback application program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a bluetooth device loopback application stored in the memory 1005 and perform the following operations:
the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller;
the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller;
the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not;
and if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected.
Further, after the step of the television terminal determining whether the key of the bluetooth device remote controller is consistent with the stored key, the processor 1001 may call the bluetooth device loopback application program stored in the memory 1005, and further perform the following operations:
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, the television terminal judges whether the Bluetooth remote controller corresponding to the Bluetooth return broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, the television terminal determines whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, the television terminal fills an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizes the filled interactive key to the Bluetooth remote controller;
and after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected.
Further, the processor 1001 may call a bluetooth device loopback application stored in the memory 1005, and further perform the following operations:
and if the stored encryption key of the Bluetooth remote controller is determined not to be null or 0, or the MAC address of the Bluetooth remote controller in the Bluetooth return connection broadcast is inconsistent with the MAC address in the stored paired record list, or the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is not a user-defined Bluetooth remote controller, discarding the local return connection broadcast, and prompting the return connection failure.
Further, before the step of receiving the bluetooth backhaul broadcast transmitted by the television terminal after the bluetooth remote controller is dormant, the processor 1001 may call the bluetooth device backhaul application stored in the memory 1005, and further perform the following operations:
the television terminal receives the pairing broadcast sent by the Bluetooth remote controller;
after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, and sends a message of successful pairing connection.
Further, after the steps of establishing connection with the bluetooth remote controller, starting encryption interaction with the bluetooth remote controller, and sending a message that the pairing connection is successful after receiving the pairing broadcast, the processor 1001 may call the bluetooth device reconnection application stored in the memory 1005, and further perform the following operations:
the television terminal judges whether the currently stored pairing record is larger than a preset threshold value;
if not, storing the pairing information;
if yes, deleting the stored pairing record according to a set rule, and storing the pairing information.
Further, the processor 1001 may invoke a bluetooth device loopback application stored in the memory 1005, and also perform the following operations:
and if so, deleting the first pairing record in the stored pairing record list, and storing the pairing information at the last of the pairing record list.
Referring to fig. 2, a first embodiment of the present invention provides a bluetooth device reconnection method, including:
step S10, the television terminal receives the Bluetooth return broadcast sent by the Bluetooth remote controller;
in an embodiment of the invention, the television terminal can be connected with the bluetooth remote controller through the remote controller, the connection establishment between the television terminal and the bluetooth remote controller is completed through pairing, encryption is required in the interaction process of the television terminal and the bluetooth remote controller, and the interaction is realized through an encryption Key (LINK _ Key). The television terminal can be paired with a plurality of remote controllers, so that the television terminal can store the pairing information of the plurality of remote controllers at the same time.
Specifically, referring to fig. 3, the process of establishing the bluetooth connection between the television terminal and the bluetooth remote controller includes:
step S11, the television terminal receives the pairing broadcast sent by the Bluetooth remote controller;
and step S12, after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, and sends a message of successful pairing connection. When the television terminal needs to be controlled, the television terminal can actively search the Bluetooth MAC address of the Bluetooth remote controller or search the Bluetooth MAC address of the television terminal through the Bluetooth remote controller, taking the example that the Bluetooth MAC address of the television terminal is searched through the Bluetooth remote controller, the television terminal receives the pairing broadcast sent by the Bluetooth remote controller, after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, sends a message that the pairing connection is successful, and interaction information between the television terminal and the Bluetooth remote controller needs to be encrypted, so that the accuracy and the safety of the interaction are guaranteed.
And in order to save resources and cause resource waste, the Bluetooth remote controller which establishes pairing connection with the television terminal enters a standby state and disconnects Bluetooth connection with the television terminal when key operation is not received within a period of time (30 s or 40s and the like according to requirements). After the bluetooth remote controller receives the awakening operation of the bluetooth remote controller such as key operation, the bluetooth remote controller needs to send a bluetooth loopback broadcast to the television terminal, wherein the bluetooth loopback broadcast carries a bluetooth MAC address and a secret key of the bluetooth remote controller. After the Bluetooth connection with the Bluetooth remote controller is disconnected, the Bluetooth remote controller is marked to be in a disconnected state, and after the Bluetooth remote controller is marked to be in the disconnected state, the television terminal receives Bluetooth return connection broadcast sent by the Bluetooth remote controller. In an embodiment of the present invention, the pairing record stored in the television terminal is limited, a preset threshold value is set, and when the stored pairing record reaches the preset threshold value, if no deletion operation is performed, a new pairing record cannot be stored. When a new pairing record exists, namely after the step of receiving the pairing broadcast, the television terminal establishes connection with the bluetooth remote controller, starts encryption interaction with the bluetooth remote controller, and sends a message that the pairing connection is successful, the method further comprises the following steps: the television terminal judges whether the currently stored pairing record is larger than a preset threshold value; if not, storing the pairing information; if so, deleting the stored pairing record according to a set rule, and storing the pairing information, where the deleting of the stored pairing record by the set rule may be deleting the pairing record stored for the first time, or deleting the pairing record with the lowest pairing frequency in a preset time period (10 days or 15 days), or deleting another set rule such as using a pairing record with the farthest pairing record from the current time. And if the pairing record is greater than or equal to the preset threshold value, deleting the first pairing record in the stored pairing record list, and storing the pairing information at the last of the pairing record list. If the current pairing record is smaller than the preset threshold, the current pairing record is directly stored at the last of the pairing record list. The storage format of the pairing record is as follows:
<N1 Tag="0c:f3:ee:f0:03:09">
<N1 Tag="Name" Type="string">TCL_RC601S</N1>
<N2 Tag="DevClass" Type="int">1280</N2>
<N3Tag="LINK_KEY" Type="binary">5886613ba5581dbba0f4192e3e356027</N3> </N1>
<N2 Tag="0c:f3:ee:f0:03:08">
<N1 Tag="Name" Type="string">TCL_RC601S</N1>
<N2 Tag="DevClass" Type="int">1280</N2>
<N3Tag="LINK_KEY "Type="binary">9998813ba5581dbba0f4192e3e356027</N3> < </N2>
and after the corresponding television terminal enters a standby state in the Bluetooth remote controller and is disconnected from the television terminal, if the pairing record of the Bluetooth remote controller is deleted, the Bluetooth connection back broadcast of the Bluetooth equipment does not need to be detected, and the pairing is carried out again according to the subsequent pairing broadcast.
Step S20, the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast is consistent with the MAC address in the stored paired record list;
therefore, after each Bluetooth remote controller is successfully paired with the television terminal, the pairing record is stored, and after the television terminal receives the Bluetooth return broadcast sent by the Bluetooth remote controller, whether the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast is consistent with the MAC address in the stored paired record list or not is judged, wherein the MAC address is the Bluetooth MAC address. The comparison method is the existing method, and is not described in detail herein.
Step S30, when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller;
and after the television terminal stores the MAC address consistent with the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller. And when the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast is inconsistent with the MAC address in the stored paired record list, discarding the current Bluetooth return broadcast to prompt that the Bluetooth return broadcast is lost, and reestablishing Bluetooth pairing or restarting the Bluetooth return broadcast after changing information carried in the Bluetooth return broadcast.
Step S40, the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key; and judging whether the secret keys of the television terminal and the Bluetooth remote controller are the same or not through encryption and secret key interaction. If the opposite party of the interactive information between the television terminal and the Bluetooth remote controller can decrypt, judging that the key of the Bluetooth equipment remote controller is consistent with the stored key; and if the opposite party of the interactive information between the television terminal and the Bluetooth remote controller can not decrypt, judging that the key of the Bluetooth equipment remote controller is inconsistent with the stored key.
And step S50, if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected.
If the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal is judged to be connected with the Bluetooth remote controller and can perform encryption information interaction, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected, reports the connection state, the Bluetooth remote controller and the television terminal are waken from disconnection to connection, and is connected back, and the Bluetooth remote controller is reconnected with the Bluetooth connection of the television terminal.
The television terminal can store a plurality of matching records with the Bluetooth remote controllers through modifying the strategy, and can quickly establish connection for data interaction when receiving the back-connection broadcast of the Bluetooth remote controllers. Effectively avoid present bluetooth equipment to articulate at present, can only establish connection through the reconnection with the bluetooth equipment that pairs successfully at last time, other bluetooth equipment can't establish connection through the reconnection, need pair the operation again, lead to the bluetooth to pair the operation process complicacy, the technical problem that efficiency is poor reduces the bluetooth and pairs the operating procedure of reconnecting, reduces the complexity, raises the efficiency.
Further, referring to fig. 4, a second embodiment of the present invention provides a bluetooth device reconnection method, where after the step of determining whether a key of a bluetooth device remote controller is consistent with a stored key, the television terminal further includes:
step S60, if the key of the Bluetooth device remote controller is not consistent with the stored key, the television terminal judges whether the Bluetooth remote controller corresponding to the Bluetooth return broadcast is a user-defined Bluetooth remote controller;
step S70, when the Bluetooth remote controller is self-defined, the television terminal determines whether the stored encryption key of the Bluetooth remote controller is not null or 0;
step S80, if not, the television terminal fills an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizes the filled interactive key to the Bluetooth remote controller;
and step S90, after the synchronization is completed, updating the connection state between the Bluetooth remote controller and the television terminal to be connected.
In this embodiment, after the bluetooth remote controller is paired with the television terminal a, it is paired with the television B, and after the bluetooth backhaul broadcast is sent to the television terminal a after the remote controller is dormant, when the key is interacted, it may be inconsistent with the key stored in the television a, and it is first determined whether the backhaul device is a user-defined bluetooth remote controller, and the determination methods are various, for example, the determination is performed according to a user-defined remote controller name or a user-defined backhaul broadcast indicator in the backhaul. If the LINK _ KEY is not the self-defined Bluetooth remote controller, discarding the LINK, namely losing the LINK, if the LINK _ KEY is the self-defined Bluetooth remote controller, determining whether the LINK _ KEY locally stored in the television terminal A is not empty or is all 0, and if not, determining that the LINK _ KEY is wrong and invalid, namely failing the LINK; and if so, the local LINK _ KEY stored in the television terminal A is independently obtained, the interactive password is filled, so that the television terminal A is consistent with the KEY of the Bluetooth remote controller, the connection is updated, the connection state is reported, and the connection return is completed. In the embodiment, by verifying whether the Bluetooth remote controller is the user-defined remote controller or not and verifying the content of the key, the reconnection operation is still completed in other modes after the key of the Bluetooth remote controller is inconsistent with that of the television terminal, thereby avoiding the connection efficiency from being delayed by resending and increasing the reconnection success rate.
For better describing the embodiment of the present invention, the process of bluetooth device connection back includes:
step 1: by modifying the pairing policy, the television can establish pairing with multiple remote controllers. Therefore, after the television is paired with the multiple remote controllers, connection can be established when any remote controller sends back the continuous broadcast. With specific reference to fig. 5, the following implementation steps are shown.
The process for establishing pairing connection between a television and multiple remote controllers is as follows, and specifically with reference to fig. 5:
s101, the remote controller sends a pairing broadcast, and after the television receives the pairing broadcast, a pairing process is started;
s102, establishing connection, starting encryption, and successfully pairing connection.
And after the pairing is successful, the white list added by the MAC of the remote controller is paired, and the pairing is convenient for subsequent quick back-connection broadcast.
S103, judging whether the currently stored pairing record is larger than a threshold value; reading the currently stored pairing list records, judging whether the total number of the currently paired equipment records is greater than a threshold value (15), if so, executing S104, and if not, executing S105; s104, deleting the first pairing record in the storage list; and S105, storing the pairing information at the last.
After the multiple remote controllers (remote controller C, remote controller D) are paired with the television, the process of the remote controller C or D and the television is as follows: in connection with figure 6 of the drawings,
s106, after the remote controller is dormant, the remote controller presses any key to send back the continuous broadcast; after the remote controller is dormant, the connection with the television is disconnected, and a disconnection event is sent; when the user presses any Key to wake up the connection, the connection broadcast is sent back, and the broadcast is provided with the MAC address of the remote controller and the encryption Key (LINK _ KEY).
S107, judging whether the MAC address of the opposite terminal equipment in the broadcast is consistent with that in the white list, if so, executing S108, and if not, executing S109; and in the television Bluetooth protocol stack, judging whether the MAC in the back connection broadcast is consistent with the paired Bluetooth remote controller MAC stored in the white list.
And S108, establishing connection, and if the encryption and the key interaction are started to be consistent, initiating connection by the television terminal, and starting the encryption and the key interaction.
S109, the loop broadcast is not processed, and if the loop broadcast is not consistent, the loop processing is discarded.
S110, judging whether the key of the loop back connection device is consistent with the local storage key, if so, executing S111, and if not, executing S112. And judging whether the KEY sent by the reconnection equipment is consistent with the locally stored LINK _ KEY or not corresponding to the locally stored LINK _ KEY of the MAC of the reconnection Bluetooth equipment.
And S111, updating the connection, reporting the connection state to complete the connection, if the connection state is consistent with the connection state, updating the connection, reporting the connection success state, and completing the reconnection.
And S112, processing flow in step 2, and if the two are not consistent, the next step 2 processing flow is entered.
Step 2: (the following steps are understood in conjunction with FIG. 7)
After the remote controller is paired and connected with a television A (TVA), pairing is established with a television B (TVB), when the remote controller is sent back and connected with the television A after being deeply retired, the remote controller is inconsistent with the stored secret key in the television A during secret key interaction, and the problem can be solved by the following steps, and the attached drawing 7 is combined:
s113, establishing connection, and finding that the key sent back in the connection is inconsistent with the locally stored key when encryption and key interaction are started; as mentioned in step S108, when the connection is established and encryption and KEY interaction are started, the KEY sent by the backhaul device is inconsistent with the KEY (LINK _ KEY) corresponding to the MAC stored locally.
S114, determine whether the backhaul device is a user-defined bluetooth remote controller, and the determination method is various, for example: according to the self-defined remote controller name or the self-defined loopback broadcast indicator in the loopback. If so, go to S115, otherwise, go to S116.
S115, determine whether LINK _ KEY of local corresponding loopback MAC is not null or 0, if yes, execute S117, otherwise execute S116.
S116, abandoning the current return broadcast, losing and ending the return connection, if the current return broadcast is not the user-defined Bluetooth remote controller, abandoning the return connection, namely losing and losing the return connection
If not, the LINK _ KEY is false and invalid, i.e. the connection back fails.
S117, the LINK _ KEY of the local loopback MAC is used for filling the interactive KEY, so that the KEYs of the two parties are consistent. If yes, reading the locally stored LINK _ KEY, and filling an interactive KEY, so that the KEYs of the two parties are consistent;
and S118, updating the connection, reporting the connection completion status, updating the connection and reporting the connection status, and completing the connection.
In an embodiment, the present invention further provides a television terminal, including: a memory, a processor, and a bluetooth device loopback program stored on the memory and operable on the processor, the bluetooth device loopback program when executed by the processor implementing the steps of:
the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller;
in an embodiment of the invention, the television terminal can be connected with the bluetooth remote controller through the remote controller, the connection establishment between the television terminal and the bluetooth remote controller is completed through pairing, encryption is required in the interaction process of the television terminal and the bluetooth remote controller, and the interaction is realized through an encryption Key (LINK _ Key). The television terminal can be paired with a plurality of remote controllers, so that the television terminal can store the pairing information of the plurality of remote controllers at the same time.
Specifically, the process of establishing the bluetooth connection between the television terminal and the bluetooth remote controller includes:
the television terminal receives the pairing broadcast sent by the Bluetooth remote controller; after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, and sends a message of successful pairing connection. When the television terminal needs to be controlled, the television terminal can actively search the Bluetooth MAC address of the Bluetooth remote controller or search the Bluetooth MAC address of the television terminal through the Bluetooth remote controller, taking the example that the Bluetooth MAC address of the television terminal is searched through the Bluetooth remote controller, the television terminal receives the pairing broadcast sent by the Bluetooth remote controller, after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, sends a message that the pairing connection is successful, and interaction information between the television terminal and the Bluetooth remote controller needs to be encrypted, so that the accuracy and the safety of the interaction are guaranteed.
And in order to save resources and cause resource waste, the Bluetooth remote controller which establishes pairing connection with the television terminal enters a standby state and disconnects Bluetooth connection with the television terminal when key operation is not received within a period of time (30 s or 40s and the like according to requirements). After the bluetooth remote controller receives the awakening operation of the bluetooth remote controller such as key operation, the bluetooth remote controller needs to send a bluetooth loopback broadcast to the television terminal, wherein the bluetooth loopback broadcast carries a bluetooth MAC address and a secret key of the bluetooth remote controller. After the Bluetooth connection with the Bluetooth remote controller is disconnected, the Bluetooth remote controller is marked to be in a disconnected state, and after the Bluetooth remote controller is marked to be in the disconnected state, the television terminal receives Bluetooth return connection broadcast sent by the Bluetooth remote controller. In an embodiment of the present invention, the pairing record stored in the television terminal is limited, a preset threshold value is set, and when the stored pairing record reaches the preset threshold value, if no deletion operation is performed, a new pairing record cannot be stored. When a new pairing record exists, namely after the step of receiving the pairing broadcast, the television terminal establishes connection with the bluetooth remote controller, starts encryption interaction with the bluetooth remote controller, and sends a message that the pairing connection is successful, the method further comprises the following steps: the television terminal judges whether the currently stored pairing record is larger than a preset threshold value; if not, storing the pairing information; if so, deleting the stored pairing record according to a set rule, and storing the pairing information, where the deleting of the stored pairing record by the set rule may be deleting the pairing record stored for the first time, or deleting the pairing record with the lowest pairing frequency in a preset time period (10 days or 15 days), or deleting another set rule such as using a pairing record with the farthest pairing record from the current time. And if the pairing record is greater than or equal to the preset threshold value, deleting the first pairing record in the stored pairing record list, and storing the pairing information at the last of the pairing record list. If the current pairing record is smaller than the preset threshold, the current pairing record is directly stored at the last of the pairing record list. The storage format of the pairing record is as follows:
<N1 Tag="0c:f3:ee:f0:03:09">
<N1 Tag="Name" Type="string">TCL_RC601S</N1>
<N2 Tag="DevClass" Type="int">1280</N2>
<N3Tag="LINK_KEY" Type="binary">5886613ba5581dbba0f4192e3e356027</N3> </N1>
<N2 Tag="0c:f3:ee:f0:03:08">
<N1 Tag="Name" Type="string">TCL_RC601S</N1>
<N2 Tag="DevClass" Type="int">1280</N2>
<N3Tag="LINK_KEY "Type="binary">9998813ba5581dbba0f4192e3e356027</N3> < </N2>
and after the corresponding television terminal enters a standby state in the Bluetooth remote controller and is disconnected from the television terminal, if the pairing record of the Bluetooth remote controller is deleted, the Bluetooth connection back broadcast of the Bluetooth equipment does not need to be detected, and the pairing is carried out again according to the subsequent pairing broadcast.
The television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
therefore, after each Bluetooth remote controller is successfully paired with the television terminal, the pairing record is stored, and after the television terminal receives the Bluetooth return broadcast sent by the Bluetooth remote controller, whether the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast is consistent with the MAC address in the stored paired record list or not is judged, wherein the MAC address is the Bluetooth MAC address. The comparison method is the existing method, and is not described in detail herein.
When the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller;
and after the television terminal stores the MAC address consistent with the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller. And when the MAC address of the Bluetooth remote controller in the Bluetooth return broadcast is inconsistent with the MAC address in the stored paired record list, discarding the current Bluetooth return broadcast to prompt that the Bluetooth return broadcast is lost, and reestablishing Bluetooth pairing or restarting the Bluetooth return broadcast after changing information carried in the Bluetooth return broadcast.
The television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not; and judging whether the secret keys of the television terminal and the Bluetooth remote controller are the same or not through encryption and secret key interaction. If the opposite party of the interactive information between the television terminal and the Bluetooth remote controller can decrypt, judging that the key of the Bluetooth equipment remote controller is consistent with the stored key; and if the opposite party of the interactive information between the television terminal and the Bluetooth remote controller can not decrypt, judging that the key of the Bluetooth equipment remote controller is inconsistent with the stored key.
And if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected.
If the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal is judged to be connected with the Bluetooth remote controller and can perform encryption information interaction, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected, reports the connection state, the Bluetooth remote controller and the television terminal are waken from disconnection to connection, and is connected back, and the Bluetooth remote controller is reconnected with the Bluetooth connection of the television terminal.
The television terminal can store a plurality of matching records with the Bluetooth remote controllers through modifying the strategy, and can quickly establish connection for data interaction when receiving the back-connection broadcast of the Bluetooth remote controllers. Effectively avoid present bluetooth equipment to articulate at present, can only establish connection through the reconnection with the bluetooth equipment that pairs successfully at last time, other bluetooth equipment can't establish connection through the reconnection, need pair the operation again, lead to the bluetooth to pair the operation process complicacy, the technical problem that efficiency is poor reduces the bluetooth and pairs the operating procedure of reconnecting, reduces the complexity, raises the efficiency.
Further, after the step of determining whether the key of the bluetooth device remote controller is consistent with the stored key by the television terminal, the bluetooth device loopback program when executed by the processor implements the steps of:
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, the television terminal judges whether the Bluetooth remote controller corresponding to the Bluetooth return broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, the television terminal determines whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, the television terminal fills an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizes the filled interactive key to the Bluetooth remote controller;
and after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected.
In this embodiment, after the bluetooth remote controller is paired with the television terminal a, it is paired with the television B, and after the bluetooth backhaul broadcast is sent to the television terminal a after the remote controller is dormant, when the key is interacted, it may be inconsistent with the key stored in the television a, and it is first determined whether the backhaul device is a user-defined bluetooth remote controller, and the determination methods are various, for example, the determination is performed according to a user-defined remote controller name or a user-defined backhaul broadcast indicator in the backhaul. If the LINK _ KEY is not the self-defined Bluetooth remote controller, discarding the LINK, namely losing the LINK, if the LINK _ KEY is the self-defined Bluetooth remote controller, determining whether the LINK _ KEY locally stored in the television terminal A is not empty or is all 0, and if not, determining that the LINK _ KEY is wrong and invalid, namely failing the LINK; and if so, the local LINK _ KEY stored in the television terminal A is independently obtained, the interactive password is filled, so that the television terminal A is consistent with the KEY of the Bluetooth remote controller, the connection is updated, the connection state is reported, and the connection return is completed. In the embodiment, by verifying whether the Bluetooth remote controller is the user-defined remote controller or not and verifying the content of the key, the reconnection operation is still completed in other modes after the key of the Bluetooth remote controller is inconsistent with that of the television terminal, thereby avoiding the connection efficiency from being delayed by resending and increasing the reconnection success rate.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a bluetooth device loopback program is stored on the computer-readable storage medium, and when executed by a processor, the bluetooth device loopback program implements the following operations:
the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller;
the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller;
the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not;
and if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected.
Further, after the step of determining whether the key of the bluetooth device remote controller is consistent with the stored key by the television terminal, the bluetooth device loopback program is executed by the processor to implement the following operations:
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, the television terminal judges whether the Bluetooth remote controller corresponding to the Bluetooth return broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, the television terminal determines whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, the television terminal fills an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizes the filled interactive key to the Bluetooth remote controller;
and after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected.
Further, the bluetooth device loopback program when executed by the processor implements the following operations:
and if the stored encryption key of the Bluetooth remote controller is determined not to be null or 0, or the MAC address of the Bluetooth remote controller in the Bluetooth return connection broadcast is inconsistent with the MAC address in the stored paired record list, or the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is not a user-defined Bluetooth remote controller, discarding the local return connection broadcast, and prompting the return connection failure.
Further, before the step of receiving the bluetooth backhaul broadcast sent by the bluetooth remote controller after the bluetooth remote controller is dormant, the bluetooth device backhaul program is executed by the processor to implement the following operations:
the television terminal receives the pairing broadcast sent by the Bluetooth remote controller;
after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, and sends a message of successful pairing connection.
Further, after the step of establishing connection with the bluetooth remote controller by the television terminal after receiving the pairing broadcast, starting encryption interaction with the bluetooth remote controller, and sending a message that the pairing connection is successful, the bluetooth device reconnection program is executed by the processor to implement the following operations:
the television terminal judges whether the currently stored pairing record is larger than a preset threshold value;
if not, storing the pairing information;
if yes, deleting the stored pairing record according to a set rule, and storing the pairing information.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a television, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A Bluetooth device connection back method, comprising:
the television terminal receives the Bluetooth back connection broadcast sent by the Bluetooth remote controller;
the television terminal judges whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, the television terminal establishes connection with the Bluetooth remote controller and starts encryption and key interaction with the Bluetooth remote controller;
the television terminal judges whether the key of the Bluetooth device remote controller is consistent with the stored key or not;
if the key of the Bluetooth device remote controller is consistent with the stored key, the television terminal updates the connection state between the Bluetooth remote controller and the television terminal to be connected;
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, the television terminal judges whether the Bluetooth remote controller corresponding to the Bluetooth return broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, the television terminal determines whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, the television terminal fills an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizes the filled interactive key to the Bluetooth remote controller;
after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected;
and judging whether the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is a user-defined Bluetooth remote controller or not according to the user-defined remote controller name or the user-defined return connection broadcast indicator in the return connection.
2. The bluetooth device loopback method as recited in claim 1, the method further comprising:
and if the stored encryption key of the Bluetooth remote controller is determined not to be null or 0, or the MAC address of the Bluetooth remote controller in the Bluetooth return connection broadcast is inconsistent with the MAC address in the stored paired record list, or the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is not a user-defined Bluetooth remote controller, discarding the local return connection broadcast, and prompting the return connection failure.
3. The bluetooth device reconnection method according to claim 1 or 2, wherein before the step of the television terminal receiving the bluetooth reconnection broadcast transmitted after the bluetooth remote controller is dormant, the method further comprises:
the television terminal receives the pairing broadcast sent by the Bluetooth remote controller;
after receiving the pairing broadcast, the television terminal establishes connection with the Bluetooth remote controller, starts encryption interaction with the Bluetooth remote controller, and sends a message of successful pairing connection.
4. The method for connecting back to a bluetooth device according to claim 3, wherein after the steps of establishing connection with the bluetooth remote controller, starting encrypted interaction with the bluetooth remote controller, and sending a message that the pairing connection is successful after receiving the pairing broadcast, the method further comprises:
the television terminal judges whether the currently stored pairing record is larger than a preset threshold value;
if not, storing the pairing information;
if yes, deleting the stored pairing record according to a set rule, and storing the pairing information.
5. The method of claim 4, wherein if yes, deleting the stored pairing record according to a set rule, and storing the pairing information of this time comprises:
and if the currently stored pairing record is larger than a preset threshold value, deleting the first pairing record in the stored pairing record list by the television terminal, and storing the pairing information at the last of the pairing record list.
6. A television terminal, characterized in that the television terminal comprises: a memory, a processor, and a bluetooth device loopback program stored on the memory and operable on the processor, the bluetooth device loopback program when executed by the processor implementing the steps of:
receiving a Bluetooth back connection broadcast sent by a Bluetooth remote controller;
judging whether the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored paired record list or not;
when the MAC address of the Bluetooth remote controller in the Bluetooth back connection broadcast is consistent with the MAC address in the stored matched record list, establishing connection with the Bluetooth remote controller, and starting encryption and key interaction with the Bluetooth remote controller;
judging whether the key of the Bluetooth device remote controller is consistent with the stored key;
if the key of the Bluetooth equipment remote controller is consistent with the stored key, updating the connection state between the Bluetooth remote controller and the television terminal to be connected;
if the key of the Bluetooth equipment remote controller is inconsistent with the stored key, judging whether the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is a user-defined Bluetooth remote controller;
when the Bluetooth remote controller is a user-defined Bluetooth remote controller, determining whether the stored encryption key of the Bluetooth remote controller is not null or 0;
if not, filling an interactive key through the stored encryption key of the Bluetooth remote controller, and synchronizing the filled interactive key to the Bluetooth remote controller;
after the synchronization is finished, updating the connection state between the Bluetooth remote controller and the television terminal to be connected;
and judging whether the Bluetooth remote controller corresponding to the Bluetooth return connection broadcast is a user-defined Bluetooth remote controller or not according to the user-defined remote controller name or the user-defined return connection broadcast indicator in the return connection.
7. The television terminal of claim 6, wherein the bluetooth device loopback program when executed by the processor performs the steps of:
and if the currently stored pairing record is larger than the preset threshold value, deleting the first pairing record in the stored pairing record list, and storing the pairing information at the last of the pairing record list.
8. A computer readable storage medium, having a bluetooth device loopback program stored thereon, which when executed by a processor implements the steps of the bluetooth device loopback method according to any of claims 1 to 5.
CN201710395817.7A 2017-05-27 2017-05-27 Television terminal, Bluetooth device reconnection method and computer readable storage medium Active CN107197346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710395817.7A CN107197346B (en) 2017-05-27 2017-05-27 Television terminal, Bluetooth device reconnection method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710395817.7A CN107197346B (en) 2017-05-27 2017-05-27 Television terminal, Bluetooth device reconnection method and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107197346A CN107197346A (en) 2017-09-22
CN107197346B true CN107197346B (en) 2021-06-15

Family

ID=59876130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710395817.7A Active CN107197346B (en) 2017-05-27 2017-05-27 Television terminal, Bluetooth device reconnection method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107197346B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023180096A1 (en) * 2022-03-24 2023-09-28 Orange Method for managing equipment within a home audiovisual environment, and corresponding computer program, data medium and playback device

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108135033B (en) * 2017-12-19 2020-07-31 维沃移动通信有限公司 Bluetooth connection method and mobile terminal
CN108668266A (en) * 2018-04-19 2018-10-16 浙江东胜物联技术有限公司 One kind one matches two blue Tooth remote controllers
CN108541080B (en) * 2018-04-23 2020-09-22 Oppo广东移动通信有限公司 Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
US12004061B2 (en) 2018-08-01 2024-06-04 Huawei Technologies Co., Ltd. Bluetooth communication method and dual-mode Bluetooth terminal
CN109451474A (en) * 2018-10-15 2019-03-08 四川长虹电器股份有限公司 Controlled terminal equipment and its bluetooth return even method
CN109951893A (en) * 2019-03-21 2019-06-28 青岛海信电器股份有限公司 A kind of terminal device awakening method and device
CN112866771A (en) * 2019-11-27 2021-05-28 海信视像科技股份有限公司 Display device and method for establishing Bluetooth connection
CN111149378A (en) * 2019-12-13 2020-05-12 深圳市伊欧乐科技有限公司 Data transmission method, device and computer readable storage medium
CN113225690B (en) * 2020-01-21 2022-09-02 华为技术有限公司 Bluetooth connection method, system and electronic equipment
CN111615090B (en) * 2020-04-27 2023-07-14 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111629366B (en) * 2020-04-27 2023-06-09 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN112153435A (en) * 2020-09-02 2020-12-29 深圳创维-Rgb电子有限公司 Remote controller sleep control processing method and device and intelligent terminal
WO2023093328A1 (en) * 2021-11-23 2023-06-01 Oppo广东移动通信有限公司 Bluetooth back-connection method and apparatus, information storage method and apparatus, and terminal device
CN114745580A (en) * 2022-04-08 2022-07-12 海信视像科技股份有限公司 Display device, control device and communication back connection method

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8515350B2 (en) * 2011-04-11 2013-08-20 Qualcomm Innovation Center, Inc. Resolving an application service change in a system using bluetooth
CN102315942B (en) * 2011-09-30 2015-07-08 北京中清怡和科技有限公司 Security terminal with Bluetooth and communication method thereof of security terminal and client end
CN103209007B (en) * 2012-01-11 2016-09-07 中兴通讯股份有限公司 A kind of method that bluetooth equipment quickly matches and bluetooth equipment
WO2013191648A1 (en) * 2012-06-20 2013-12-27 Certis Cisco Security Pte Ltd Bluetooth pairing system, method, and apparatus
CN102983892B (en) * 2012-11-19 2016-01-20 深圳市文鼎创数据科技有限公司 Bluetooth pairing methods and system
CN105325021B (en) * 2013-03-15 2020-02-14 因特鲁斯特公司 Method and apparatus for remote portable wireless device authentication
CN103228060B (en) * 2013-04-02 2016-12-28 深圳市文鼎创数据科技有限公司 The processing method and processing device of Bluetooth pairing information
CN105281809A (en) * 2014-05-30 2016-01-27 刘洪明 Auxiliary bluetooth low-power-consumption equipment pairing method and system
CN104363250B (en) * 2014-12-03 2018-02-09 北京深思数盾科技股份有限公司 A kind of method and system for equipment connection
CN104883685A (en) * 2015-05-12 2015-09-02 努比亚技术有限公司 Network access method and device
CN104967971B (en) * 2015-06-26 2018-04-27 飞天诚信科技股份有限公司 A kind of method for realizing the automatic Hui Lian of bluetooth under android system
KR102527330B1 (en) * 2015-09-17 2023-05-02 삼성전자주식회사 Input apparatus and the controlling method thereof
CN105392212A (en) * 2015-10-30 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method, system and intelligent terminal
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN105416205B (en) * 2015-12-10 2018-04-06 安徽江淮汽车集团股份有限公司 A kind of vehicle remote control method and system
CN105554905A (en) * 2015-12-10 2016-05-04 飞天诚信科技股份有限公司 Method and device for achieving connection between intelligent secret key device and upper computer Bluetooth
CN105491511A (en) * 2015-12-30 2016-04-13 北京华大智宝电子系统有限公司 Bluetooth device matching method, Bluetooth device and Bluetooth device matching system
CN105933039B (en) * 2016-06-24 2018-06-29 飞天诚信科技股份有限公司 A kind of bluetooth equipment and its method of work
CN106209811A (en) * 2016-07-04 2016-12-07 福州米立科技有限公司 Bluetooth equipment secure log auth method and device
CN106709362A (en) * 2016-12-06 2017-05-24 武汉斗鱼网络科技有限公司 File encryption method and device and file decryption method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023180096A1 (en) * 2022-03-24 2023-09-28 Orange Method for managing equipment within a home audiovisual environment, and corresponding computer program, data medium and playback device
FR3133933A1 (en) * 2022-03-24 2023-09-29 Orange Method for managing equipment within a domestic audiovisual environment, computer program, data carrier and corresponding restitution device.

Also Published As

Publication number Publication date
CN107197346A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107197346B (en) Television terminal, Bluetooth device reconnection method and computer readable storage medium
US10645559B2 (en) Bluetooth connection method and terminal
US10320719B2 (en) Message withdrawal method, apparatus and storage medium
CN109803347B (en) Service processing method and mobile communication terminal
US20200329013A1 (en) Device Bootstrap Method, Terminal, and Server
CN108738008B (en) Bluetooth pairing method and system
US20170353593A1 (en) Communication event processing method and apparatus
US20170171255A1 (en) Method and device for establishing a data connection and computer-readable medium
WO2019011324A1 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
KR20220055490A (en) Radio capability ID transmission method, terminal device and network node
US20200004578A1 (en) Method for fingerprint recognition and related products
CN110809267A (en) Device connection method, electronic device and computer readable storage medium
CN109144596B (en) Quick starting method, device, terminal, server and system
CN105530684B (en) Network access method, device and system
WO2017000495A1 (en) Method and device for adding contacts
KR102596801B1 (en) PC5 link establishment methods, equipment and systems
KR102552981B1 (en) Random access method, terminal equipment and network equipment
CN109165197B (en) File processing method, terminal and server
CN111885591A (en) Network connection method, device, storage medium and terminal
CN112333849A (en) Equipment connection disconnection processing method and device, mobile terminal and storage medium
WO2019154183A1 (en) Method for registration to network, and mobile terminal
CN114095295B (en) Intelligent doorbell information inheritance method, intelligent doorbell and computer readable storage medium
CN114302433B (en) Mesh networking method for multiple devices, device and readable storage medium
CN111615158B (en) Updating method, reconstruction request processing method, terminal and network equipment

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