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:
when receiving a wake-up broadcast packet sent by control equipment, establishing communication link connection with the control equipment;
receiving a control signal sent by the control equipment based on the communication link connection, and determining a target application program according to the control signal;
and awakening the set-top box and starting the target application program.
As shown in fig. 1, fig. 1 is a schematic diagram of a set-top box structure of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the set-top box may include: aprocessor 1001, such as a CPU, anetwork interface 1004, auser interface 1003, amemory 1005, acommunication bus 1002. Wherein acommunication bus 1002 is used to enable connective communication between these components. Theuser interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and theoptional user interface 1003 may also include a standard wired interface, a wireless interface. Thenetwork interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Thememory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). Thememory 1005 may alternatively be a storage device separate from theprocessor 1001.
Those skilled in the art will appreciate that the set-top box configuration 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, amemory 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 set-top box control program.
In the terminal shown in fig. 1, thenetwork interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; theuser interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and theprocessor 1001 may be configured to call the set-top box control program stored in thememory 1005 and perform the following operations:
when receiving a wake-up broadcast packet sent by control equipment, establishing communication link connection with the control equipment;
receiving a control signal sent by the control equipment based on the communication link connection, and determining a target application program according to the control signal;
and awakening the set-top box and starting the target application program.
Further, the wake-up broadcast packet is generated by the control device detecting a key operation of a user touching any key, and any key of the wake-up broadcast packet generated by touching is a target key.
Further, theprocessor 1001 may call the set-top box control program stored in thememory 1005, and also perform the following operations:
the step of receiving a control signal sent by the preset device and determining a target application program according to the control signal includes:
analyzing the control signal to obtain a target key corresponding to the control signal, wherein the control signal comprises a key value of the target key;
and determining a target application program corresponding to the target key according to the key value of the target key.
Further, theprocessor 1001 may call the set-top box control program stored in thememory 1005, and also perform the following operations:
judging whether the target key is a power key or not;
and if so, waking up the set top box.
Further, theprocessor 1001 may call the set-top box control program stored in thememory 1005, and also perform the following operations:
determining an application program corresponding to the key value of the target key according to a preset mapping relation, wherein the preset mapping relation comprises the mapping relation between the key value of the key and the application program;
and determining an application program corresponding to the key value of the target key as the target application program.
Further, theprocessor 1001 may call the set-top box control program stored in thememory 1005, and also perform the following operations:
when detecting the key operation of a user touch target key, temporarily storing the key operation and sending a wake-up broadcast packet to the set top box;
and after the communication link connection with the set top box is detected, generating a corresponding control signal according to the key operation and sending the control signal to the set top box so that the set top box can determine a target application program according to the control signal and start the target application program, wherein the control signal comprises a key value of the target key.
Further, theprocessor 1001 may call the set-top box control program stored in thememory 1005, and also perform the following operations:
after the communication link connection with the set top box is detected, obtaining a key value of a target key corresponding to the key operation;
and generating the control signal according to the key value of the target key and sending the control signal to the set top box so that the set top box can determine a target application program corresponding to the target key according to the key value of the target key.
In the prior art, when a set top box is in a standby state, a user can only send a wake-up broadcast packet to the set top box by pressing a power key of a remote controller, and after the set top box is woken up, the set top box is triggered to start a corresponding application program by pressing a specific key in the remote controller, so that the operation steps are complex. Based on this, the embodiment of the application provides a set top box control method, which simplifies the step of starting an application program.
Referring to fig. 2, a first embodiment of the present invention provides a set top box control method, where the set top box control method includes:
step S10, when receiving the wake-up broadcast packet sent by the control device, establishing communication link connection with the control device;
step S20, receiving a control signal sent by the control device based on the communication link connection, and determining a target application program according to the control signal;
and step S30, waking up the set top box and starting the target application program.
In this embodiment, the set top box is an intelligent set top box, the operation modes of the set top box include a deep standby mode, a shallow standby mode and a normal operation mode, the deep standby mode is a mode in which the set top box does not operate, and may also be a shutdown mode or a deep sleep mode, when the set top box is in the deep standby mode, only a wake-up broadcast packet sent by a control device may be received, and the set top box and the control device do not establish a communication link connection; the shallow standby mode is a mode in which the set top box does not operate, and may also be a shallow sleep mode, at this time, a user cannot perceive that the set top box is in the shallow standby mode, and when the set top box is in the shallow standby mode, the set top box may establish a communication link with the control device, and may receive a part of the control signal sent by the control device; the normal operation mode is a mode in which the set-top box normally operates, and when the set-top box is in the normal operation mode, the set-top box can establish a communication link connection with the control device, can also receive all control instructions sent by the control device, and can also start a corresponding application program.
Optionally, the control device may be a bluetooth remote controller, an infrared remote controller, or a mobile terminal, and is configured to send a wake-up broadcast packet or a control signal to the set-top box, and correspondingly, the set-top box is configured with a communication module that receives and processes the control signal sent by the control device, and the communication module may be a bluetooth module, an infrared module, or a wireless communication module. For example, when the control device is a bluetooth remote controller, the bluetooth remote controller communicates with the set top box through a bluetooth signal, and the set top box is configured with a bluetooth module that receives and processes the bluetooth signal sent by the bluetooth remote controller.
Optionally, the control device includes a plurality of keys, each key is configured with a corresponding key value, and different keys have different corresponding key values for distinguishing different keys. The key may be a power key, a volume key, or a specific key, and each specific key is used for representing different applications.
Optionally, when the set top box is in the deep standby mode and a user needs to wake up the set top box, a wake-up broadcast packet is sent to the set top box by triggering the control device, where the wake-up broadcast packet is used to wake up the set top box to enter the shallow standby mode and trigger a communication module corresponding to the set top box to establish a communication link connection with the control device.
Optionally, the wake-up broadcast packet is generated by the control device detecting a key operation of a user touching any key, where any key touching the wake-up broadcast packet is a target key.
Optionally, the user may manually touch any key of the control device, where the any key is any key of the control device, and when the control device detects that the user manually touches any key of the control device, the control device may directly send a wake-up broadcast packet to the set-top box. It is understood that the wake-up broadcast packets corresponding to the respective keys may be the same or identical.
Optionally, in a specific implementation process, it is detected that a user touches at least one arbitrary key of the control device, the arbitrary key is used as a target key, a corresponding wake-up broadcast packet is generated according to the target key, and the wake-up broadcast packet is sent to the control device.
Optionally, the manner for triggering the control device to send the wake-up broadcast packet to the set-top box may be that the control device triggers itself at regular time. In a specific implementation process, the control device only needs to automatically send a wake-up broadcast packet to the set-top box in a specific time period without detecting any key touched by a user.
Optionally, after the set top box establishes a communication link connection with the control device, corresponding feedback information is sent to the control device through the communication module, where the feedback information is used to indicate that the set top box and the control device have successfully established a communication link connection.
Optionally, after receiving a feedback signal returned by the set top box, the control device sends a control signal to the set top box based on the communication link connection, where the control signal includes a key value of a target key. The target key is the same as a key manually touched by a user or a key triggered by the control equipment in timing execution. For example, the user manually touches the a key, the control device generates a corresponding control signal according to a key value corresponding to the a key, and then sends the control signal to the set top box.
It can be understood that, before the set-top box is not connected with the control device via the communication link, the set-top box cannot receive the control signal sent by the control device, based on this, when the control device detects that the user manually touches a target key of any key, the control device does not directly send the control signal corresponding to the target key to the set-top box, but when the control device detects that the user manually touches the target key of any key, temporarily stores the key value corresponding to the target key and directly sends a wake-up broadcast packet to the set-top box, and when the set-top box receives the wake-up broadcast packet and establishes the communication link with the control device, the temporarily stored key value corresponding to the target key generates a control signal to send the control signal to the set-top box.
Optionally, the set top box receives a control signal sent by the control device through a corresponding communication module, and determines a target application program according to the control signal.
Optionally, different keys correspond to corresponding applications, and the keys and the applications are in a one-to-one correspondence relationship. In this embodiment of the present application, the set top box establishes a mapping relationship between each application program and a key value of at least one key in the control device, and configures a corresponding key for each application program. And when a control signal sent by the control equipment is acquired, determining a target application program matched with a key value of a target key in the control signal according to the mapping relation, and further starting the target application program. Based on this, according to the embodiment of the application, the corresponding keys are configured for each application program stored in the set top box, and the target application program is determined through the corresponding keys, so that a user can start the corresponding target application program directly according to the control device, and the use experience of the user is improved.
Optionally, when the set top box determines a target application program to be started according to the control signal, the set top box is immediately woken up to enter a normal operation mode from a shallow standby mode and simultaneously self-start the target application program, and a user does not need to wait for the set top box to enter the normal operation mode, trigger the control device to send the control signal by touching a corresponding target key, and then wait for the set top box to receive the control signal and then open the target application program corresponding to the control signal, so that the user is prevented from manually controlling the device for many times, and the use experience of the user is improved.
In the embodiment of the application, when the control device detects that a user touches a target key in the control device, key values corresponding to the target key are temporarily stored and a wake-up broadcast packet is sent to the set top box, after the set top box receives the wake-up broadcast packet, the set top box is triggered to enter a shallow standby mode from a deep standby mode and establish a communication link connection with the control device, then the control device sends temporarily stored control signals corresponding to the target key to the set top box based on the communication link connection, and after receiving the control signals, the set top box determines corresponding target application programs according to the control signals and further wakes up the set top box to enter a normal operation mode and self-start the target application programs. According to the embodiment of the application, the set top box is awakened and the corresponding application program is started at the same time, and a user does not need to awaken the set top box through a power key and then trigger the set top box to start the corresponding application program by sending a specific key.
Alternatively, referring to fig. 3, the step S20 includes:
step S21, analyzing the control signal to obtain a target key corresponding to the control signal, wherein the control signal comprises a key value of the target key;
and step S22, determining the target application program corresponding to the target key according to the key value of the target key.
In the embodiment of the application, the control signal includes a key value of the target key, and the set top box, after receiving the control signal, analyzes the control signal to obtain the key value of the target key in the control signal, and then determines the target key according to the key value of the target key.
Optionally, the target key may be any key in the control device, the target key may also be a volume key, a power key, or a specific key, the specific key is used to mark a corresponding application, and the application corresponding to different specific keys is different. Based on this, when the set-top box receives the control signal, the set-top box needs to determine a target key according to the control signal, and then can determine a target application program according to the target key and start the target application program.
Optionally, after obtaining the target key, an embodiment of the present application further provides a set top box control method, where after step S21, the method further includes:
judging whether the target key is a power key or not;
and if so, waking up the set top box.
Optionally, when the target key is a power key, it is proved that the user needs to wake up the set top box to enter a normal operation mode, and further, the set top box is converted from a shallow standby mode to a normal operation mode, that is, a complete wake-up state, and at this time, the set top box continues to monitor a control signal sent by the control device, and further starts a corresponding application program according to the control signal.
Optionally, when the target key is not a power key, determining again whether the target key is at least one of the specific keys, and if not, converting the set-top box from the shallow standby mode to the deep standby mode.
Optionally, when the set top box is in the shallow standby mode, the set top box may receive the control signal sent by the control device, analyze the control signal to analyze a key value of a target key corresponding to the control signal, compare the analyzed key value of the target key with each preset key value, determine, when the analyzed key value is consistent with one of the preset key values, the preset key value consistent with the analyzed key value as the target preset key value in the preset key values, and then control the set top box according to the target preset key value. The method for comparing the analyzed key value of the target key with each preset key value may be to calculate similarity between the key value of the target key and each preset key value, and when the similarity between the target preset key value in the preset key values and the key value of the target key is greater than a preset similarity threshold, determine that the target preset key value is consistent with the key value of the target key.
On the basis, the mode of judging whether the target key is the power key is to compare the key value of the target key with a preset power key value, and if the key value of the target key is consistent with the preset power key value, the target key is determined to be the power key.
Optionally, when the target key is a specific key, the step of determining the target application program corresponding to the target key according to the key value of the target key includes:
determining an application program corresponding to the key value of the target key according to a preset mapping relation, wherein the preset mapping relation comprises the mapping relation between the key value of the control key and the application program;
and determining an application program corresponding to the key value of the target key as the target application program.
Optionally, the set top box stores a preset mapping relationship between key values of the keys and the application programs in advance, where the preset mapping relationship includes a one-to-one correspondence relationship between the keys and the application programs.
Optionally, after receiving the key value of the target key sent by the control device, the set top box determines, based on the preset mapping relationship, an application program corresponding to the key value of the target key, and further determines, based on the application program, the target application program of the target key, and further starts the target application program.
Optionally, when the target key is a key other than the power key and the specific key, for example, a volume key, it is proved that the user does not need to wake up the set-top box at present and does not need to start the corresponding application program, and based on this, when the target key is a key other than the power key and the specific key, the set-top box is switched from the shallow standby mode to the deep standby mode, so that the set-top box continues to monitor the wake-up broadcast packet sent by the control device.
In the embodiment of the application, the received control signal is analyzed, the key value of the target key is determined according to the analyzed control signal, the target application program corresponding to the target key is determined based on the preset mapping relation according to the key value of the target key, and the set top box is awakened to enter the normal operation mode and start the target application program, so that the user can open the corresponding application program only by touching once, the user can awaken the set top box by touching any key, and the efficiency of controlling the set top box by the user is improved.
Optionally, referring to fig. 4, an embodiment of the present application further provides a set top box control method, where the set top box control method is applied to a control device, and the set top box control method includes:
step S30, when detecting the key operation of the user touch target key, temporarily storing the key operation and sending a wake-up broadcast packet to the set-top box;
step S40, after detecting that a communication link connection is established with the set-top box, generating a corresponding control signal according to the key operation and sending the control signal to the set-top box, so that the set-top box can determine a target application program according to the control signal and start the target application program, wherein the control signal comprises a key value of the target key.
In this embodiment of the present application, the terminal in this embodiment is a control device, the control device may be a bluetooth device, may also be an infrared device, may also be a mobile terminal, and the bluetooth device may be a bluetooth remote controller. The embodiment of the present application takes a bluetooth remote controller as an embodiment for explanation.
Optionally, the control device detects whether the user touches any key in the control device in real time, and sends a wake-up broadcast packet to the set-top box when detecting a key operation of the user touching any key, so that the set-top box enters a shallow standby mode after receiving the wake-up broadcast packet and controls the communication module of the set-top box to perform communication link connection with the control device.
Optionally, the target key is at least one of any keys, when the control device detects a key operation of touching the target key by a user, the control device temporarily stores the key operation and directly sends a wake-up broadcast packet to the set-top box, and the key operation includes a key value of the target key.
Optionally, after the wake-up broadcast packet is sent, detecting in real time whether the set-top box establishes a communication link connection with a control device, and after the communication link connection with the set-top box is detected, generating a corresponding control signal according to the key operation and sending the control signal to the set-top box, so that the set-top box determines a target application according to the control signal and starts the application program, wherein the control preference includes a key value of the target key.
Optionally, the step S40 further includes:
after the communication link connection with the set top box is detected, obtaining a key value of a target key corresponding to the key operation;
and generating the control signal according to the key value of the target key and sending the control signal to the set top box so that the set top box can determine a target application program corresponding to the target key according to the key value of the target key.
Optionally, after detecting that a communication link connection is established with the set top box, the temporarily stored key operation is called, a key value of a target key corresponding to the key operation is determined according to the key operation, a corresponding control signal is generated according to the key value of the target key, and the control signal is sent to the set top box which establishes the communication link connection with the control device, so that the set top box analyzes the control signal after receiving the control signal through a corresponding communication module, the key value of the target key is further obtained, an application program to be started, namely a target application program, is determined according to the key value of the target key, and the target application program is further started.
Optionally, referring to fig. 5, fig. 5 is an execution sequence diagram of the set top box control method of the present invention, and fig. 5 illustrates an example in which a bluetooth remote controller is used as a control device. The left side of fig. 5 is a schematic flow chart for waking up the set-top box. When the set top box normally operates, whether the key value corresponding to the POWER key is sent to the set top box by the Bluetooth remote controller is detected, if yes, the set top box is switched from a normal operation mode to a deep standby mode, namely, the set top box enters deep standby, and meanwhile, the set top box is disconnected from a communication link with the Bluetooth remote controller. When the set top box is in deep standby, whether the Bluetooth remote controller sends a wake-up broadcast packet or not is monitored in real time, after the wake-up broadcast packet sent by the Bluetooth remote controller is received, a communication link connection is established with the Bluetooth remote controller, a key value sent by the Bluetooth remote controller is further received, the set top box is woken up based on the key value, an application program corresponding to the key value is started, and at the moment, the set top box enters a normal operation mode, namely, the set top box operates normally.
Optionally, a flow diagram illustrating that the bluetooth remote controller sends the corresponding key value is shown on the right side of fig. 5. When the Bluetooth remote controller detects that the key is pressed down, the key is temporarily stored and an awakening broadcast packet is sent to the set top box, then the set top box is waited to establish communication link connection with the Bluetooth remote controller, and after the communication link connection is established, namely the connection is successful, the key value corresponding to the key is sent to the set top box.
In the embodiment of the application, when the control device detects that a user touches a key operation of a target key of any keys, the control device directly sends a wake-up broadcast packet to the set-top box and temporarily stores a key value of the target key, so that the set-top box enters a shallow standby mode and actively establishes a communication link connection with the control device, the control device detects that the communication link connection is established with the set-top box, generates a corresponding control signal according to the key value of the target key and sends the control signal to the set-top box to wake up the set-top box, and then the set-top box starts a target application program corresponding to the key value of the target key, so that the efficiency of starting the application program is improved, the efficiency of waking up the set-top box is also improved, the set-top box can be conveniently woken up through any key, and the user experience is improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a set-top box control program is stored on the computer-readable storage medium, and when being executed by a processor, the set-top box control program implements the steps of the set-top box control method described above.
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, an air conditioner, 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.