Intelligent set top box and pairing method thereof

By designing the processor in the smart set-top box to determine the number of Bluetooth devices and connection status, and turning on the automatic pairing function when necessary, the problem of users being unable to use the smart set-top box when the remote control is damaged or pairing abnormally is solved, and the automatic pairing function is realized to ensure the user experience.

CN119922370APending Publication Date: 2025-05-02HISENSE BROADBAND MULTIMEDIA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311423823.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

When the remote control is damaged or when there is an abnormal pairing with the smart set-top box, the user cannot manually start the automatic pairing application, resulting in the inability to use the smart set-top box normally.

Method used

Design an intelligent set-top box to determine the number of paired Bluetooth devices through the processor. If it is zero, the automatic pairing function will be enabled; if there is a paired Bluetooth device but the connection status is abnormal, the scanning function will be enabled to receive the Bluetooth scanning broadcast, and the name and MAC address of the new device will be obtained. If the conditions are met, the automatic pairing function will be enabled.

Benefits of technology

When the remote control is damaged or the pairing status is abnormal, the smart set-top box can automatically turn on the pairing function, solving the problem that users cannot use the smart set-top box normally and ensuring that users can continue to use Bluetooth devices to control the smart set-top box.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922370A_ABST
    Figure CN119922370A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent set top box and a pairing method thereof, and the method comprises the steps: starting an automatic pairing function if the number of Bluetooth devices in a first Bluetooth device list is zero; if the number of the Bluetooth devices in the first Bluetooth device list is not zero, judging the connection state of the Bluetooth devices in a third Bluetooth device list; if the connection state of the Bluetooth equipment in the third Bluetooth equipment list is not connected, starting a scanning function; receiving a Bluetooth scanning broadcast within a preset time, and obtaining names and MAC addresses of Bluetooth devices in a fourth Bluetooth device list; the names of the Bluetooth devices in the third Bluetooth device list comprise the names of the Bluetooth devices in the fourth Bluetooth device list, and the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not comprise the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list. According to the application, the problem that a user cannot normally use the intelligent set top box when the Bluetooth equipment is damaged or pairing of the Bluetooth equipment and the intelligent set top box is abnormal is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a smart set-top box and a pairing method thereof. Background Art

[0002] The smart set-top box includes an automatic pairing application, and the smart set-top box and the remote control can only be connected via Bluetooth. When the smart set-top box is turned on for the first time, the automatic pairing application starts, and the remote control issues a series of key combinations to automatically pair the smart set-top box and the remote control. However, when the smart set-top box is turned on again, the smart set-top box and the remote control are automatically paired.

[0003] When the remote control is damaged or an abnormality occurs when pairing with the smart set-top box, the user cannot manually start the automatic pairing application of the smart set-top box, resulting in the user being unable to use the smart set-top box normally. Summary of the invention

[0004] The present application provides a smart set-top box and a pairing method thereof, which enables an automatic pairing function when a remote control is damaged or the pairing status is abnormal.

[0005] A smart set-top box, comprising:

[0006] The processor is configured as:

[0007] Determine whether the number of Bluetooth devices in the first Bluetooth device list is zero;

[0008] If the number of Bluetooth devices in the first Bluetooth device list is zero, the automatic pairing function is enabled;

[0009] If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining the connection status of the Bluetooth devices in the third Bluetooth device list;

[0010] If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, start the scanning function to receive the Bluetooth scanning broadcast;

[0011] Receive a Bluetooth scan broadcast within a preset time, and obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list;

[0012] The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the automatic pairing function is turned on;

[0013] Among them, the first Bluetooth device list is a collection of paired Bluetooth devices, the second Bluetooth device list is a collection of Bluetooth devices allowed to connect to the smart set-top box, the third Bluetooth device list is a collection of Bluetooth devices with the same name as the first Bluetooth device list and the second Bluetooth device list, and the Bluetooth devices in the fourth Bluetooth device list are a collection of Bluetooth devices carried by Bluetooth scan broadcasts.

[0014] A smart set-top box pairing method, the method comprising:

[0015] Determine whether the number of Bluetooth devices in the first Bluetooth device list is zero;

[0016] If the number of Bluetooth devices in the first Bluetooth device list is zero, the automatic pairing function is enabled;

[0017] If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining the connection status of the Bluetooth devices in the third Bluetooth device list;

[0018] If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, start the scanning function;

[0019] A broadcast is received within a preset time, the broadcast is a Bluetooth scanning broadcast, and the name and MAC address of the Bluetooth device in the fourth Bluetooth device list are obtained;

[0020] The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the automatic pairing function is turned on;

[0021] Among them, the first Bluetooth device list is a collection of paired Bluetooth devices, the second Bluetooth device list is a collection of Bluetooth devices allowed to connect to the smart set-top box, the third Bluetooth device list is a collection of Bluetooth devices with the same name as the first Bluetooth device list and the second Bluetooth device list, and the Bluetooth devices in the fourth Bluetooth device list are a collection of Bluetooth devices carried by Bluetooth scan broadcasts.

[0022] Beneficial effect: The present application provides a smart set-top box, including a processor. The processor responds to a power-on instruction, obtains a first Bluetooth device list, the first Bluetooth device list is a collection of paired Bluetooth devices, and determines whether the number of Bluetooth devices in the first Bluetooth device list is zero. If the number of Bluetooth devices in the first Bluetooth device list is zero, it means that after the smart set-top box is turned on and used, no Bluetooth device has been paired with it, so it is necessary to turn on the automatic pairing function. If the number of Bluetooth devices in the first Bluetooth device list is not zero, it means that after the smart set-top box is turned on and used, there are paired Bluetooth devices. However, the paired Bluetooth device may not be connected to the smart set-top box, so it is necessary to select Bluetooth devices with the same name from the first Bluetooth device list and the collection of Bluetooth devices allowed to be connected to the smart set-top box, and determine the connection status of these Bluetooth devices. The second Bluetooth device list is a collection of Bluetooth devices allowed to be connected to the smart set-top box, and the third Bluetooth device list is a collection of Bluetooth devices with the same name in the first Bluetooth device list and the second Bluetooth device list, that is, the Bluetooth device with the same name is selected from the first Bluetooth device list and the second Bluetooth device list to obtain the third Bluetooth device list, and the connection status of the Bluetooth devices in the third Bluetooth device list is determined. If the connection status of the Bluetooth device in the third Bluetooth device list is connected, stop. If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, it means that the connection status of the Bluetooth device in the third Bluetooth device list is abnormal at this time. If the user still wants to use the Bluetooth device to connect to the smart set-top box, it is necessary to turn on the scanning function. After the scanning function is started, the smart set-top box can scan the Bluetooth device in Bluetooth mode. The Bluetooth device sends a combination key to the smart set-top box to inform the smart set-top box that the Bluetooth device is in a state that can be scanned at this time. After the smart set-top box scans the Bluetooth device, it can receive a Bluetooth scanning broadcast. Receiving a Bluetooth scanning broadcast within a preset time indicates that the Bluetooth device in the third Bluetooth device list is still in a bound and unconnected state at this time. If you want to use a new Bluetooth device to connect to the smart set-top box, you need to obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list, and judge whether the name of the Bluetooth device in the third Bluetooth device list is the same as the name of the Bluetooth device in the fourth Bluetooth device list, and whether the MAC address of the Bluetooth device in the third Bluetooth device list includes the MAC address of the Bluetooth device in the fourth Bluetooth device list. The name of the Bluetooth device in the third Bluetooth device list is the same as the name of the Bluetooth device in the fourth Bluetooth device list, and the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, indicating that the Bluetooth device in the fourth Bluetooth device list and the Bluetooth device in the third Bluetooth device list are of the same type, but are not the same Bluetooth device, so the automatic pairing function needs to be turned on.In the present application, when the number of Bluetooth devices in the first Bluetooth device list is zero, or, the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, and the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, the smart set-top box turns on the automatic pairing function to solve the problem that the user cannot use the smart set-top box normally when the Bluetooth device is damaged or there is an abnormality in pairing with the smart set-top box. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0024] Figure 1 A diagram of a usage scenario of a smart set-top box provided according to some embodiments;

[0025] Figure 2 A schematic diagram of the structure of a smart set-top box provided according to some embodiments;

[0026] Figure 3 A first flow chart of a smart set-top box pairing method provided according to some embodiments;

[0027] Figure 4 A second flow chart of a smart set-top box pairing method provided according to some embodiments;

[0028] Figure 5 A third flow chart of a smart set-top box pairing method provided according to some embodiments;

[0029] Figure 6 A fourth flow chart of a smart set-top box pairing method provided according to some embodiments;

[0030] Figure 7 A fifth flow chart of a smart set-top box pairing method provided according to some embodiments;

[0031] Figure 8 A sixth flow chart of a smart set-top box pairing method provided according to some embodiments;

[0032] Fig. 9 A seventh flow chart of a smart set-top box pairing method provided according to some embodiments;

[0033] Fig.10This is an eighth flow chart of a smart set-top box pairing method provided according to some embodiments. DETAILED DESCRIPTION

[0034] Some embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. However, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of the present disclosure.

[0035] Unless the context requires otherwise, throughout the specification and claims, the term "comprising" is to be interpreted as having an open, inclusive meaning, that is, "including, but not limited to"; the terms "first" and "second" are not to be understood as indicating or implying relative importance or indicating an upper limit on quantity; the term "plurality" means two or more; the term "connected" is to be understood in a broad sense, for example, "connected" can be a fixed connection, a detachable connection, or an integral connection, and can be directly connected or indirectly connected through an intermediate medium; the use of the terms "suitable for" or "configured to" implies open and inclusive language, which does not exclude devices that are suitable for or configured to perform additional tasks or steps; descriptions such as "parallel", "perpendicular", "same", "consistent", and "flush" are not limited to absolute mathematical theoretical relationships, but also include an acceptable error range generated in practice, and also include differences based on the same design concept but due to manufacturing reasons.

[0036] Figure 1 FIG. 1 is a diagram of a usage scenario of a smart set-top box provided according to some embodiments. Figure 1 As shown, the user can operate the smart set-top box 100 through the set-top box control device 400 and the display device 200 through the display device remote control device 500. The set-top box control device 400 and the display device remote control device 500 can be remote controllers, and the communication between the remote controller and the smart set-top box 100 includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the remote controller and the display device 200 communicate wirelessly or wired. Communication includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired.

[0037] The smart set-top box 100 and the display device 200 also communicate data with the server 300 respectively. The smart set-top box 100 and the display device 200 can be allowed to communicate and connect via a local area network (LAN), a wireless local area network (WLAN) and other networks. The server 300 can provide various contents and interactions to the display device 200. The server 400 can be a cluster or multiple clusters, and can include one or more types of servers.

[0038] The smart set-top box 100 can access the network and perform interactive functions such as page information browsing, audio and video playback, etc. In addition to the live broadcast function, it can also provide users with on-demand, conference viewing and other services, pause, fast forward, fast rewind and other time-shift functions.

[0039] In some embodiments, the smart set-top box does not have an infrared mode or other human-computer interaction placement, and can only be connected to the remote control via Bluetooth. The smart set-top box includes an automatic pairing application, and the smart set-top box and the remote control can only be connected via Bluetooth. After the smart set-top box is turned on for the first time, the automatic pairing application is started, and the remote control sends a series of key combinations, and the smart set-top box and the remote control are automatically paired. However, after the smart set-top box is started again, the smart set-top box and the remote control are automatically paired. When the remote control is damaged or there is an abnormality in pairing with the smart set-top box, the user cannot manually start the automatic pairing application of the smart set-top box, resulting in the user being unable to use the smart set-top box normally.

[0040] In order to solve this problem, the present application proposes a smart set-top box. Figure 2 FIG. 1 is a schematic diagram of the structure of a smart set-top box provided according to some embodiments. Figure 2 As shown, in some embodiments, the smart set-top box includes an internal memory 101 and a processor 102 , and the memory 101 is communicatively connected to the processor 102 .

[0041] The memory 101 is used to store a first Bluetooth device list, a second Bluetooth device list, a third Bluetooth device list and a fourth Bluetooth device list, wherein the first Bluetooth device list is a collection of paired Bluetooth devices, the second Bluetooth device list is a collection of Bluetooth devices allowed to be connected to the smart set-top box, the third Bluetooth device list is a collection of Bluetooth devices with the same name as the first Bluetooth device list and the second Bluetooth device list, and the fourth Bluetooth device list is a collection of Bluetooth devices carried by Bluetooth scanning broadcasts. Among them, the Bluetooth device includes a remote control.

[0042] The processor 102 is configured to: obtain a first Bluetooth device list in response to a power-on instruction; determine whether the number of Bluetooth devices in the first Bluetooth device list is zero; if the number of Bluetooth devices in the first Bluetooth device list is zero, enable an automatic pairing function; if the number of Bluetooth devices in the first Bluetooth device list is not zero, determine the connection status of the Bluetooth devices in the third Bluetooth device list; if the connection status of the Bluetooth devices in the third Bluetooth device list is not connected, enable a scanning function to receive a Bluetooth scanning broadcast; receive a Bluetooth scanning broadcast within a preset time, obtain a name and MAC address of a Bluetooth device in a fourth Bluetooth device list; the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, and enable an automatic pairing function.

[0043] Among them, the MAC address (Media Access Control Address) is also called the physical address or hardware address. It is an address used to confirm the location of a network device. Each device in the network has a unique network identifier, which is called a MAC address or network card address. It is written inside the hardware by the network equipment manufacturer during production.

[0044] The processor 102 is installed with a pull-up application and an automatic pairing application. The pull-up application is used to pull up the automatic pairing application. The pull-up application is configured to: in response to an unlock instruction, obtain a first Bluetooth device list; determine whether the number of Bluetooth devices in the first Bluetooth device list is zero; if the number of Bluetooth devices in the first Bluetooth device list is zero, start the automatic pairing application; if the number of Bluetooth devices in the first Bluetooth device list is not zero, determine the connection status of the Bluetooth devices in the third Bluetooth device list; if the connection status of the Bluetooth devices in the third Bluetooth device list is not connected, turn on the scanning function to receive the Bluetooth scanning broadcast; receive the Bluetooth scanning broadcast within a preset time, obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list; the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, and the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, and start the automatic pairing application.

[0045] The processor 102 is also configured to: if the number of Bluetooth devices in the first Bluetooth device list is not zero, determine whether the Bluetooth devices in the first Bluetooth device list have the same name as the Bluetooth devices in the second Bluetooth device list; if the Bluetooth devices in the first Bluetooth device list do not have the same name as the Bluetooth devices in the second Bluetooth device list, enable the automatic pairing function; if the Bluetooth devices in the first Bluetooth device list have the same name as the Bluetooth devices in the second Bluetooth device list, determine the connection status of the Bluetooth devices in the third Bluetooth list.

[0046] The processor 102 is further configured to: call the first function; obtain the class name and package name of the automatic pairing application; introduce the class name and package name of the automatic pairing application as variables into the first function to enable the automatic pairing function; wherein the first function is a function for starting the automatic pairing page.

[0047] The processor 102 is also configured to: call the second function; obtain the name of the Bluetooth device in the third Bluetooth device list; introduce the name of the Bluetooth device in the third Bluetooth device list as a variable into the second function, and obtain the connection status of the Bluetooth device in the third Bluetooth device list according to the output value of the second function.

[0048] Processor 102 is also configured to: determine whether the scanning time exceeds the preset time; if the scanning time exceeds the preset time, stop; if the scanning time does not exceed the preset time, determine whether a broadcast is received; if no broadcast is received, continue to determine whether the scanning time exceeds the preset time; if a broadcast is received, determine whether the broadcast is a Bluetooth connection success broadcast; if the broadcast is a Bluetooth connection success broadcast, stop; if the broadcast is a Bluetooth scanning broadcast, obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list.

[0049] In some embodiments, the smart set-top box includes a processor. The processor responds to the power-on instruction to obtain a first Bluetooth device list, the first Bluetooth device list is a collection of paired Bluetooth devices, and determines whether the number of Bluetooth devices in the first Bluetooth device list is zero. If the number of Bluetooth devices in the first Bluetooth device list is zero, it means that after the smart set-top box is turned on and used, no Bluetooth device has been paired with it, so it is necessary to turn on the automatic pairing function. If the number of Bluetooth devices in the first Bluetooth device list is not zero, it means that after the smart set-top box is turned on and used, there are paired Bluetooth devices. However, the paired Bluetooth devices may not be connected to the smart set-top box, so it is necessary to select Bluetooth devices with the same name from the first Bluetooth device list and the collection of Bluetooth devices allowed to be connected to the smart set-top box, and determine the connection status of these Bluetooth devices. The second Bluetooth device list is a collection of Bluetooth devices allowed to be connected to the smart set-top box, and the third Bluetooth device list is a collection of Bluetooth devices with the same name in the first Bluetooth device list and the second Bluetooth device list, that is, select Bluetooth devices with the same name from the first Bluetooth device list and the second Bluetooth device list to obtain the third Bluetooth device list, and determine the connection status of the Bluetooth devices in the third Bluetooth device list. If the connection status of the Bluetooth device in the third Bluetooth device list is connected, stop. If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, it means that the connection status of the Bluetooth device in the third Bluetooth device list is abnormal at this time. If the user still wants to use the Bluetooth device to connect to the smart set-top box, it is necessary to turn on the scanning function. After the scanning function is started, the smart set-top box can scan the Bluetooth device in Bluetooth mode. The Bluetooth device sends a combination key to the smart set-top box to inform the smart set-top box that the Bluetooth device is in a state that can be scanned at this time. After the smart set-top box scans the Bluetooth device, it can receive a Bluetooth scanning broadcast. Receiving a Bluetooth scanning broadcast within a preset time indicates that the Bluetooth device in the third Bluetooth device list is still in a bound and unconnected state at this time. If you want to use a new Bluetooth device to connect to the smart set-top box, you need to obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list, and determine whether the name of the Bluetooth device in the third Bluetooth device list is the same as the name of the Bluetooth device in the fourth Bluetooth device list, and whether the MAC address of the Bluetooth device in the third Bluetooth device list includes the MAC address of the Bluetooth device in the fourth Bluetooth device list. The name of the Bluetooth device in the third Bluetooth device list is the same as the name of the Bluetooth device in the fourth Bluetooth device list, and the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, indicating that the Bluetooth device in the fourth Bluetooth device list and the Bluetooth device in the third Bluetooth device list are of the same type, but are not the same Bluetooth device, so the automatic pairing function needs to be turned on.In some embodiments, when the number of Bluetooth devices in the first Bluetooth device list is zero, or, the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, and the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, the smart set-top box turns on the automatic pairing function to solve the problem that the user cannot use the smart set-top box normally when the Bluetooth device is damaged or there is an abnormality in pairing with the smart set-top box.

[0050] In order to solve this problem, in addition to providing a smart set-top box, the present application also provides a smart set-top box pairing method. Figure 3 This is a first flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 4 This is a second flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 5 FIG. 3 is a third flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 3 , Figure 4 and Figure 5 As shown, the pairing method of the smart set-top box includes:

[0051] S100: Obtain a first Bluetooth device list.

[0052] In response to the power-on instruction, the processor of the smart set-top box starts up. After the processor starts up, it is necessary to register a broadcast receiver to receive the broadcast sent by the operating system of the smart set-top box.

[0053] The processor is installed with a pull-up application and an automatic pairing application, and the pull-up application is used to pull up the automatic pairing application. After the processor is started, the pull-up application is started, and the pull-up application registers a broadcast receiver to receive the broadcast sent by the operating system of the smart set-top box.

[0054] S101: Register a broadcast receiver.

[0055] The broadcast receiver is used to receive broadcasts sent by Bluetooth devices.

[0056] The handler registers the broadcast receiver. For example, the application is launched to register the broadcast receiver.

[0057] S102: Obtain a first Bluetooth device list.

[0058] The first Bluetooth device list is a collection of paired Bluetooth devices. The Bluetooth devices in the first Bluetooth device list may include Bluetooth devices that are allowed to be connected to the smart set-top box, and may also include other Bluetooth devices that cannot be connected to the smart set-top box.

[0059] The processor obtains a first Bluetooth device list. For example, the application is launched to obtain the first Bluetooth device list.

[0060] S200: Determine whether the number of Bluetooth devices in the first Bluetooth device list is zero.

[0061] The first Bluetooth device list is a collection of paired Bluetooth devices. It is determined whether the number of Bluetooth devices in the first Bluetooth device list is zero. If the number of Bluetooth devices in the first Bluetooth device list is zero, it means that no Bluetooth device has been paired with the smart set-top box after it is turned on and used; if the number of Bluetooth devices in the first Bluetooth device list is not zero, it means that a Bluetooth device has been paired with the smart set-top box after it is turned on and used.

[0062] The processor determines whether the number of Bluetooth devices in the first Bluetooth device list is zero. For example, the application is launched to determine whether the number of Bluetooth devices in the first Bluetooth device list is zero.

[0063] S300: If the number of Bluetooth devices in the first Bluetooth device list is zero, enable the automatic pairing function.

[0064] The number of Bluetooth devices in the first Bluetooth device list is zero, indicating that no Bluetooth device has been paired with the smart set-top box since it was turned on. If the user wants to control the smart set-top box through a Bluetooth device, the automatic pairing function needs to be turned on to pair the Bluetooth device with the smart set-top box (i.e., pairing). After the pairing is completed and the connection is completed, the smart set-top box can be controlled using the Bluetooth device.

[0065] If the number of Bluetooth devices in the first Bluetooth device list is zero, the processor starts the automatic pairing function. For example, if the number of Bluetooth devices in the first Bluetooth device list is zero, the application is launched to launch the automatic pairing application.

[0066] S400: If the number of Bluetooth devices in the first Bluetooth device list is not zero, determine whether the connection status of the Bluetooth devices in the third Bluetooth device list is connected.

[0067] If the number of Bluetooth devices in the first Bluetooth device list is not zero, it means that a Bluetooth device has been paired with the smart set-top box after it was turned on and used. However, the Bluetooth device that has been paired with the smart set-top box may not be able to connect to the smart set-top box, so it is necessary to select Bluetooth devices with the same name from the first Bluetooth device list and the set of Bluetooth devices allowed to connect to the smart set-top box, and determine the connection status of these Bluetooth devices.

[0068] If the number of Bluetooth devices in the first Bluetooth device list is not zero, the processor determines whether the connection status of the Bluetooth device in the third Bluetooth device list is connected. For example, if the number of Bluetooth devices in the first Bluetooth device list is not zero, the application is launched to determine whether the connection status of the Bluetooth device in the third Bluetooth device list is connected.

[0069] Figure 6 FIG4 is a fourth flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 6 As shown, determining whether the connection status of the Bluetooth device in the third Bluetooth device list is connected includes:

[0070] S401: Determine whether a Bluetooth device in the first Bluetooth device list has the same name as a Bluetooth device in the second Bluetooth device list.

[0071] The second Bluetooth device list is a collection of Bluetooth devices allowed to connect to the smart set-top box. The first Bluetooth device list contains the names and addresses of the Bluetooth devices, while the second Bluetooth device list only contains the names of the Bluetooth devices but not the MAC addresses of the Bluetooth devices.

[0072] S402: If the Bluetooth device in the first Bluetooth device list and the Bluetooth device in the second Bluetooth device list do not have the same name, enable the automatic pairing function.

[0073] S403: If the Bluetooth device in the first Bluetooth device list has the same name as the Bluetooth device in the second Bluetooth device list, determine whether the connection status of the Bluetooth device in the third Bluetooth device list is connected.

[0074] Figure 7 FIG. 5 is a fifth flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 7 As shown, determining the connection status of the Bluetooth device in the third Bluetooth device list includes:

[0075] S431: Call the second function.

[0076] The second function is a function for determining the connection status, and the variable of the second function is the name of the Bluetooth device. When the output value of the second function is the first value, it indicates that the connection status of the Bluetooth device is connected; when the output value of the second function is the second value, it indicates that the connection status of the Bluetooth device is not connected. For example, if the output value of the second function is true, it indicates that the connection status of the Bluetooth device is connected; if the output value of the second function is false, it indicates that the connection status of the Bluetooth device is not connected.

[0077] S432: Obtain the name of the Bluetooth device in the third Bluetooth device list.

[0078] The variable of the second function is the name of the Bluetooth device in the third Bluetooth device list.

[0079] S433: Introduce the name of the Bluetooth device in the third Bluetooth device list as a variable into the second function, and obtain the connection status of the Bluetooth device in the third Bluetooth device list according to the output value of the second function.

[0080] When the output value of the second function is the first value, the connection status of the Bluetooth device in the third Bluetooth device list is connected; when the output value of the second function is the second value, the connection status of the Bluetooth device in the third Bluetooth device list is not connected.

[0081] S500: If the connection status of the Bluetooth device in the third Bluetooth device list is connected, stop.

[0082] If the connection status of the Bluetooth device in the third Bluetooth device list is connected, it means that the Bluetooth device in the third Bluetooth device list is paired with the smart set-top box and the connection is completed, and you can stop it.

[0083] If the connection status of the Bluetooth device in the third Bluetooth device list is connected, pull up the application and stop it.

[0084] S600: If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, start the scanning function to receive the Bluetooth scanning broadcast.

[0085] If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, it means that the Bluetooth device in the third Bluetooth device list is not connected to the smart set-top box, but the user still wants to use the Bluetooth device to control the smart set-top box, so the scanning function is turned on. After the scanning function is turned on, the smart set-top box can scan the Bluetooth device in Bluetooth mode. The Bluetooth device sends a combination key to the smart set-top box to inform the smart set-top box that the Bluetooth device is in a state that can be scanned. After the smart set-top box scans the Bluetooth device, it can receive the Bluetooth scanning broadcast.

[0086] If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, the processor starts the scanning function. For example, if the connection status of the Bluetooth device in the third Bluetooth device list is not connected, the application is launched to start the scanning function.

[0087] S700: A broadcast is received within a preset time, the broadcast is a Bluetooth scanning broadcast, and the name and MAC address of the Bluetooth device in the fourth Bluetooth device list are obtained.

[0088] Receiving the broadcast within the preset time means that the broadcast is received within the scanning time that does not exceed the preset time.

[0089] The fourth Bluetooth device list is a collection of Bluetooth devices carried by the Bluetooth scan broadcast.

[0090] A broadcast is received within a preset time, the broadcast is a Bluetooth scanning broadcast, and the processor obtains the name and MAC address of the Bluetooth device in the fourth Bluetooth device list. For example, a broadcast is received within a preset time, the broadcast is a Bluetooth scanning broadcast, and the application is launched to obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list.

[0091] Figure 8 FIG6 is a sixth flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 8 As shown, a broadcast is received within a preset time, the broadcast is a Bluetooth scanning broadcast, and the name and MAC address of the Bluetooth device in the fourth Bluetooth device list are obtained, including:

[0092] S701: Determine whether the scanning time exceeds a preset time. For example, the preset time is 5 minutes.

[0093] S702: If the scanning time exceeds the preset time, stop.

[0094] If the scanning time exceeds the preset time, pull up the application to stop and the scanning stops.

[0095] S703: If the scanning time does not exceed the preset time, determine whether a broadcast is received.

[0096] S704: If a broadcast is received, determine whether the broadcast is a Bluetooth connection success broadcast.

[0097] If no broadcast is received, continue to determine whether the scanning time exceeds the preset time.

[0098] S705: If the broadcast is a successful Bluetooth connection broadcast, stop.

[0099] If the broadcast is a successful Bluetooth connection broadcast, it means that the Bluetooth device in the third Bluetooth device list is successfully connected, and the application is launched and stopped.

[0100] S706: If the broadcast is a Bluetooth scanning broadcast, obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list.

[0101] If the broadcast type is a successful Bluetooth connection broadcast, it means that the Bluetooth in the third Bluetooth device list is not successfully connected. In order to control the smart set-top box through the Bluetooth device, it is necessary to obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list.

[0102] S800: The name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, and the automatic pairing function is enabled.

[0103] The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the processor starts the automatic pairing function. For example, the names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the application is launched to launch the automatic pairing application.

[0104] Fig. 9 FIG. 7 is a seventh flow chart of a smart set-top box pairing method provided according to some embodiments. Fig. 9 As shown, the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, and the automatic pairing function is enabled, including:

[0105] S801: Determine whether the names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, and whether the MAC addresses of the Bluetooth devices in the third Bluetooth device list include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list.

[0106] Since the second Bluetooth device list only contains the name of the Bluetooth device but not the MAC address of the Bluetooth device, if only the name of the Bluetooth device in the second Bluetooth device list is determined to include the name of the Bluetooth device in the fourth Bluetooth device list, and it is not determined whether the MAC address of the Bluetooth device in the second Bluetooth device list includes the MAC address of the Bluetooth device in the fourth Bluetooth device list, then the Bluetooth device in the scanned fourth Bluetooth device list may be the Bluetooth device in the third Bluetooth device list (the Bluetooth device is abnormal, that is, the Bluetooth device is in a paired but not connected state), and the automatic pairing function cannot be started again, or it cannot be connected after pairing, and the Bluetooth device and the smart set-top box cannot be connected. Therefore, it is only possible to determine whether the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, and whether the MAC address of the Bluetooth device in the third Bluetooth device list includes the MAC address of the Bluetooth device in the fourth Bluetooth device list.

[0107] S802: The names of the Bluetooth devices in the third Bluetooth device list do not include the names of the Bluetooth devices in the fourth Bluetooth device list, and stop.

[0108] If the name of the Bluetooth device in the third Bluetooth device list does not include the name of the Bluetooth device in the fourth Bluetooth device list, the Bluetooth device in the fourth Bluetooth device list and all the Bluetooth devices in the third Bluetooth device list do not belong to the same type of Bluetooth device, that is, the Bluetooth device may not be paired with the smart set-top box. Therefore, when the name of the Bluetooth device in the third Bluetooth device list does not include the name of the Bluetooth device in the fourth Bluetooth device list, just stop.

[0109] S803: The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the automatic pairing function is enabled.

[0110] If the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, the Bluetooth device in the fourth Bluetooth device list and some Bluetooth devices in the third Bluetooth device list belong to the same type of Bluetooth device, that is, the Bluetooth device can be paired with the smart set-top box, but the Bluetooth device may be the Bluetooth device in the third Bluetooth device list. The Bluetooth device in the third Bluetooth device list cannot be paired with the smart set-top box to complete the connection, so a new Bluetooth device needs to be replaced. If the name of the Bluetooth device in the third Bluetooth device list includes the name of the Bluetooth device in the fourth Bluetooth device list, and the MAC address of the Bluetooth device in the third Bluetooth device list does not include the MAC address of the Bluetooth device in the fourth Bluetooth device list, the Bluetooth device in the fourth Bluetooth device list and some Bluetooth devices in the third Bluetooth device list belong to the same type of Bluetooth device, but they are not the same Bluetooth device. Therefore, if you want to pair the Bluetooth device with the smart set-top box to complete the connection, you need to turn on the automatic pairing function to pair the Bluetooth device with the smart set-top box.

[0111] Fig.10 FIG8 is an eighth flow chart of a smart set-top box pairing method provided according to some embodiments. Figure 8 As shown, turn on the automatic pairing function, that is, pull up the automatic pairing application, including:

[0112] t100: Call the first function.

[0113] The first function is the function that starts the automatic pairing page. The variables are the class name and package name.

[0114] t200: Get the class name and package name of the automatic pairing application.

[0115] t300: The class name and package name of the automatic pairing application are introduced into the first function as variables, and the automatic pairing application is started to enter the automatic pairing page.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A smart set-top box, characterized in that: include: The processor is configured as: Determine whether the number of Bluetooth devices in the first Bluetooth device list is zero; If the number of Bluetooth devices in the first Bluetooth device list is zero, enable the automatic pairing function; If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining the connection status of the Bluetooth devices in the third Bluetooth device list; If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, start the scanning function to receive the Bluetooth scanning broadcast; Receive the Bluetooth scanning broadcast within a preset time, and obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list; The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the automatic pairing function is enabled; Among them, the first Bluetooth device list is a collection of paired Bluetooth devices, the second Bluetooth device list is a collection of Bluetooth devices allowed to connect to the smart set-top box, the third Bluetooth device list is a collection of Bluetooth devices with the same name as the first Bluetooth device list and the second Bluetooth device list, and the Bluetooth devices in the fourth Bluetooth device list are a collection of Bluetooth devices carried by Bluetooth scan broadcasts.

2. The smart set-top box according to claim 1, characterized in that: include: processor, with pull-up app and auto-pairing app installed; The pull-up application is configured as: Determine whether the number of Bluetooth devices in the first Bluetooth device list is zero; If the number of Bluetooth devices in the first Bluetooth device list is zero, starting the automatic pairing application; If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining the connection status of the Bluetooth devices in the third Bluetooth device list; If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, start the scanning function to receive the Bluetooth scanning broadcast; Receive the Bluetooth scanning broadcast within a preset time, and obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list; The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the automatic pairing application is started; Among them, the first Bluetooth device list is a collection of paired Bluetooth devices, the second Bluetooth device list is a collection of Bluetooth devices allowed to connect to the smart set-top box, the third Bluetooth device list is a collection of Bluetooth devices with the same name as the first Bluetooth device list and the second Bluetooth device list, and the Bluetooth devices in the fourth Bluetooth device list are a collection of Bluetooth devices carried by Bluetooth scan broadcasts.

3. The smart set-top box according to claim 1, characterized in that: The processor is further configured to: If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining whether the Bluetooth devices in the first Bluetooth device list and the Bluetooth devices in the second Bluetooth device list have the same name; If the Bluetooth device in the first Bluetooth device list and the Bluetooth device in the second Bluetooth device list do not have the same name, enable the automatic pairing function; If the Bluetooth device in the first Bluetooth device list has the same name as the Bluetooth device in the second Bluetooth device list, the connection status of the Bluetooth device in the third Bluetooth device list is determined.

4. The smart set-top box according to claim 2, characterized in that: The processor is further configured to: Call the first function; Get the class name and package name of the automatic pairing application; The class name and package name of the automatic pairing application are introduced into the first function as variables to start the automatic pairing program; wherein the first function is a function for starting the automatic pairing page.

5. The smart set-top box according to claim 1, characterized in that: The processor is further configured to: Call the second function; Obtain the name of the Bluetooth device in the third Bluetooth device list; The names of the Bluetooth devices in the third Bluetooth device list are introduced into the second function as variables, and the connection states of the Bluetooth devices in the third Bluetooth device list are obtained according to the output values ​​of the second function.

6. The smart set-top box according to claim 1, characterized in that: The processor is further configured to: Determine whether the scanning time exceeds the preset time; If the scanning time exceeds the preset time, it stops; If the scanning time does not exceed the preset time, determine whether the broadcast is received; If no broadcast is received, continue to determine whether the scanning time exceeds the preset time; If a broadcast is received, determine whether the broadcast is a successful Bluetooth connection broadcast; If the broadcast is a successful Bluetooth connection broadcast, stop; If the broadcast is a Bluetooth scanning broadcast, obtain the name and MAC address of the Bluetooth device in the fourth Bluetooth device list.

7. The smart set-top box according to claim 1, characterized in that: The automated application is configured to: In response to the pairing instruction, automatic pairing is completed.

8. A method for pairing a smart set-top box, characterized in that: The method comprises: Determine whether the number of Bluetooth devices in the first Bluetooth device list is zero; If the number of Bluetooth devices in the first Bluetooth device list is zero, enable the automatic pairing function; If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining the connection status of the Bluetooth devices in the third Bluetooth device list; If the connection status of the Bluetooth device in the third Bluetooth device list is not connected, start the scanning function; A broadcast is received within a preset time, the broadcast is a Bluetooth scanning broadcast, and the name and MAC address of the Bluetooth device in the fourth Bluetooth device list are obtained; The names of the Bluetooth devices in the third Bluetooth device list include the names of the Bluetooth devices in the fourth Bluetooth device list, the MAC addresses of the Bluetooth devices in the third Bluetooth device list do not include the MAC addresses of the Bluetooth devices in the fourth Bluetooth device list, and the automatic pairing function is enabled; Among them, the first Bluetooth device list is a collection of paired Bluetooth devices, the second Bluetooth device list is a collection of Bluetooth devices allowed to connect to the smart set-top box, the third Bluetooth device list is a collection of Bluetooth devices with the same name as the first Bluetooth device list and the second Bluetooth device list, and the Bluetooth devices in the fourth Bluetooth device list are a collection of Bluetooth devices carried by Bluetooth scan broadcasts.

9. The pairing method according to claim 8, characterized in that: If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining the connection status of the Bluetooth devices in the third Bluetooth device list includes: If the number of Bluetooth devices in the first Bluetooth device list is not zero, determining whether the Bluetooth devices in the first Bluetooth device list and the Bluetooth devices in the second Bluetooth device list have the same name; If the Bluetooth device in the first Bluetooth device list and the Bluetooth device in the second Bluetooth device list do not have the same name, enable the automatic pairing function; If the Bluetooth device in the first Bluetooth device list has the same name as the Bluetooth device in the second Bluetooth device list, the connection status of the Bluetooth device in the third Bluetooth device list is determined.

10. The pairing method according to claim 8, characterized in that: Determine the connection status of the Bluetooth device in the third Bluetooth list, including: Call the second function; Obtain the name of the Bluetooth device in the third Bluetooth device list; The names of the Bluetooth devices in the third Bluetooth device list are introduced into the second function as variables, and the connection states of the Bluetooth devices in the third Bluetooth device list are obtained according to the output values ​​of the second function.