Device control method, device control apparatus, device, and computer storage medium

By establishing an infrared soft bus through the HDMI CEC protocol, the infrared signals from the set-top box remote control are received and encapsulated, solving the problem of separate control of the TV and set-top box, realizing unified control of the set-top box by the TV, and improving the user experience.

CN119788894BActive Publication Date: 2026-04-21CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD
Filing Date
2023-10-07
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In existing technologies, televisions and set-top boxes require separate remote controls, which is complex to operate and makes it difficult to control the set-top box via infrared commands received from the television remote, resulting in a waste of set-top box resources.

Method used

By building an infrared soft bus based on the HDMI CEC protocol, infrared signals from external devices are received, the signals are encapsulated and processed to generate button events, enabling the TV to control the set-top box.

Benefits of technology

This technology enables TVs to receive infrared signals from set-top box remote controls, eliminating the need for users to distinguish between different remotes, simplifying operation, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788894B_ABST
    Figure CN119788894B_ABST
Patent Text Reader

Abstract

This invention provides a device control method, apparatus, device, and computer storage medium. The method includes: establishing an infrared soft bus according to the HDMI CEC protocol for consumer electronics control, the infrared soft bus being configured to receive infrared signals for controlling a television and / or a set-top box; receiving a target infrared signal sent by an external device according to the infrared soft bus, the target infrared signal including a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the television; encapsulating the target infrared signal to obtain a button event, the button event being used to control the television and / or the set-top box; and sending a button event to the set-top box when an audio / video signal input is detected, thereby controlling the set-top box. In this embodiment, the set-top box can be controlled by receiving infrared commands sent by the set-top box remote control via the television.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of remote control technology, and particularly relates to a device control method, apparatus, equipment, and computer storage medium. Background Technology

[0002] Currently, both televisions and set-top boxes on the market have their own remote controls. Using different remotes to control the TV and set-top box separately is quite cumbersome, especially when using the set-top box. You need to first use the set-top box remote to turn it on, then use the TV remote to switch to the set-top box's signal source, and finally use the set-top box remote to view its content. This operation method is too cumbersome for users, and most elderly people in the family are unfamiliar with it. Therefore, most people only use the TV remote to watch the media resources provided by the television itself, without utilizing the set-top box's media resources, resulting in a waste of set-top box resources.

[0003] Existing methods for sharing a remote control between a television and a set-top box typically involve converting the television remote control's button information into set-top box remote control button information, which is then distributed to the set-top box via different methods. Alternatively, the set-top box remote control's button information can be converted into television remote control button information and distributed to the television. In these methods, both the television remote control and the set-top box remote control must send infrared commands to the television and the set-top box remote control, respectively. These methods have limitations, namely, making it difficult to control the set-top box by receiving infrared commands sent by the set-top box remote control from the television. Summary of the Invention

[0004] This application provides a device control method, apparatus, device, and computer storage medium to solve the problem of difficulty in controlling a set-top box via infrared commands sent by a TV receiver set-top box remote control.

[0005] In a first aspect, embodiments of this application provide a device control method, the method comprising:

[0006] An infrared soft bus is built according to the HDMI CEC protocol for consumer electronics control, and the infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box.

[0007] According to the infrared soft bus, a target infrared signal sent by an external device is received, the target infrared signal including a first sub-infrared signal for controlling the set-top box, and / or a second sub-infrared signal for controlling the television;

[0008] The target infrared signal is encapsulated and processed to obtain a key event, which is used to control the TV and / or the set-top box.

[0009] When an audio or video signal input is detected to the set-top box, the button event is sent to the set-top box to control the set-top box.

[0010] Secondly, embodiments of this application provide a device control apparatus, comprising:

[0011] A module is provided for building an infrared soft bus according to the HDMI CEC protocol for consumer electronics control. The infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box.

[0012] The receiving module is configured to receive a target infrared signal sent by an external device according to the infrared soft bus, wherein the target infrared signal includes a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the television.

[0013] The processing module is used to encapsulate and process the target infrared signal to obtain a key event, which is used to control the TV and / or the set-top box.

[0014] The sending module is used to send the button event to the set-top box when an audio or video signal input is detected, so as to control the set-top box.

[0015] Thirdly, embodiments of this application provide a terminal device, the device including: a processor and a memory storing computer program instructions;

[0016] When the processor executes computer program instructions, it implements the device control method as described in the first aspect.

[0017] Fourthly, embodiments of this application provide a computer storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the device control method as described in the first aspect is implemented.

[0018] Fifthly, embodiments of this application provide a computer program product, characterized in that, when the instructions in the computer program product are executed by the processor of an electronic device, the electronic device performs the device control method as described in the first aspect.

[0019] The device control method, apparatus, device, and computer storage medium of this invention establish an infrared soft bus according to the HDMI CEC protocol for consumer electronics control. This infrared soft bus is configured to receive infrared signals for controlling a television and / or a set-top box. Based on the infrared soft bus, a target infrared signal sent by an external device is received. The target infrared signal includes a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the television. The target infrared signal is encapsulated to obtain a button event, which is used to control the television and / or the set-top box. When an audio / video signal input is detected from the set-top box, the button event is sent to the set-top box to control it. This allows the television to receive infrared signals from the set-top box remote control, enabling control of the set-top box via the television. This avoids the limitation of only being able to receive infrared signals from the set-top box itself, eliminating the need for the user to worry about whether the remote control is from the set-top box or the television. Users simply need to send remote control commands to the television, achieving seamless integration of the television and set-top box with minimal user impact and a superior user experience. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic flowchart of the device control method provided in the embodiments of this application;

[0022] Figure 2 This is a software architecture diagram of a television and a set-top box provided in an embodiment of this application;

[0023] Figure 3 This is a schematic diagram of the HDMI CEC protocol specification provided in an embodiment of this application;

[0024] Figure 4 This is a schematic diagram of the HDMI CEC protocol specification provided in an embodiment of this application;

[0025] Figure 5 This is a schematic diagram of the HDMI CEC protocol specification provided in an embodiment of this application;

[0026] Figure 6 This is a schematic diagram illustrating the detailed value description of the CEC frame in the HDMI CEC protocol specification provided in this application embodiment;

[0027] Figure 7 This is a schematic diagram of the structure of the device control apparatus provided in the embodiments of this application;

[0028] Figure 8 This is a schematic diagram of the hardware structure of the terminal device provided in the embodiments of this application. Detailed Implementation

[0029] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0030] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0031] This application provides a device control method, apparatus, device, and computer storage medium. The following first illustrates an example of the device control method applicable to this application.

[0032] Figure 1 A flowchart illustrating a device control method according to an embodiment of this application is shown. Figure 1 As shown, the method includes:

[0033] Step 101: Build an infrared soft bus according to the Consumer Electronics Control HDMI CEC protocol. The infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box.

[0034] Step 102: According to the infrared soft bus, receive the target infrared signal sent by the external device. The target infrared signal includes a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the television.

[0035] Step 103: Encapsulate the target infrared signal to obtain a button event, which is used to control the TV and / or the set-top box.

[0036] Step 104: When an audio or video signal input is detected to the set-top box, the button event is sent to the set-top box to control the set-top box.

[0037] In step 102, an infrared soft bus is built according to the Consumer Electronics Control HDMI CEC protocol, and the infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box.

[0038] An infrared soft bus is a set of virtual data transmission lines programmed using computer languages, used to receive and control infrared signals from a TV or set-top box. The HDMI CEC protocol is a communication protocol based on the HDMI standard that allows bidirectional communication and control between various consumer electronic devices, specifically allowing two-way communication and control between a TV and a set-top box.

[0039] In step 102, according to the infrared soft bus, a target infrared signal sent by an external device is received, the target infrared signal including a first sub-infrared signal for controlling the set-top box, and / or a second sub-infrared signal for controlling the television;

[0040] The aforementioned external devices can be TV remote controls or set-top box remote controls. After the infrared soft bus is set up, the target infrared signal from the external device can be received and parsed through the infrared soft bus. The target infrared signal can be the second sub-infrared signal sent by the TV remote control or the first sub-infrared signal sent by the set-top box remote control.

[0041] It should be noted that, as Figure 2 As shown, Figure 2 This diagram illustrates the software architecture of a television and a set-top box according to an embodiment of this application. After the infrared soft bus is successfully established, since the infrared soft bus includes both a television soft bus and a set-top box soft bus, the software architecture in the television includes an infrared decoding module, an event management center, an input distributor, and the television soft bus. The set-top box includes a set-top box soft bus.

[0042] After the infrared soft bus is successfully established, the TV remote or set-top box remote sends the target infrared signal to the TV. The infrared decoding module demodulates the target infrared signal and can parse the user code and operation code based on the NEC protocol. The user code can identify whether the target infrared signal is the second sub-infrared signal from the TV remote or the first sub-infrared signal from the set-top box remote. If it is the second sub-infrared signal, the infrared operation code is written to the device input node / dev / input / event1. If it is the set-top box infrared signal, a new device input node / dev / input / stb is added (if it doesn't exist, it doesn't need to be added), and the operation code is written to / dev / input / stb.

[0043] In step 103, the target infrared signal is encapsulated to obtain a key event, which is used to control the TV and / or the set-top box.

[0044] In one embodiment, the encapsulation processing of the target infrared signal to obtain a key event includes:

[0045] The first sub-infrared signal is parsed based on the target key value code file to obtain the first key value;

[0046] The second sub-infrared signal is parsed based on a preset second key code value file to obtain a second key code value, which is the default key code value in the television.

[0047] The first key code value and / or the second key code value are encapsulated into the key event.

[0048] In this embodiment, as Figure 2 As shown, when the event management center detects event input in / dev / input / stb and / dev / input / event1, it parses the opcode of the event in / dev / input / event1 into a first keycode value according to the system default keycode, and parses the opcode of the event in / dev / input / stb into a second keycode value according to the keycode in the target keycode file transmitted by the set-top box infrared soft bus. The first keycode value and / or the second keycode value are then encapsulated into an Android system button event.

[0049] In step 104, when an audio or video signal input is detected to the set-top box, the button event is sent to the set-top box to control the set-top box.

[0050] In one embodiment of this application, the step of sending the button event to the set-top box to control the set-top box when an audio / video signal input is detected includes:

[0051] When an audio / video signal is detected from the set-top box, and the audio / video signal input is in full-screen display mode, the button event is sent to the set-top box via the infrared soft bus to control the set-top box.

[0052] When an audio / video signal is detected from the set-top box, and the audio / video signal input is not in full-screen mode, the button event is responded to; and

[0053] Send the button event to the set-top box to control the set-top box.

[0054] In this embodiment, the input distributor determines whether the TV's HDMI signal source has a set-top box audio / video signal input. If not, it sends a button event to the TV. If an HDMI signal source is input and the current signal source is displayed in full screen, the input distributor sends the button event to the TV's soft bus, which then sends the button event to the set-top box's soft bus via HDMI for response. If an HDMI signal source is input but not in full screen, the input distributor distributes the button event to both the TV and the TV's soft bus, and then sends it to the set-top box's soft bus via the TV's soft bus. Correspondingly, the TV and set-top box respond to the button event upon receiving it, thereby enabling control of the TV and set-top box.

[0055] After the soft bus service is successfully established, the input distributor can notify the TV soft bus to send button events to the set-top box via the Android Interface Definition Language (AIDL). The TV soft bus sends button events to the set-top box via the `HdmiCecControlersendCommand` method. The set-top box's `HdmiCecLocalDevice` listens for `CecMessage` messages and responds to button events. `HdmiCecControler` and `HdmiCecLocalDevice` are control classes implemented in the Android native system based on HDMI CEC messages, capable of transmitting button events.

[0056] In this embodiment, an infrared soft bus is built according to the HDMI CEC protocol for consumer electronics control. This soft bus is configured to receive infrared signals used to control the TV and / or set-top box. Based on the soft bus, a target infrared signal sent by an external device is received. This target infrared signal includes a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the TV. The target infrared signal is encapsulated to obtain a button event, which is used to control the TV and / or the set-top box. When an audio / video signal input is detected from the set-top box, the button event is sent to the set-top box to control it. This allows the TV to receive infrared signals from the set-top box remote control, enabling control of the set-top box via the TV. This avoids the limitation of only being able to receive infrared signals from the set-top box itself, eliminating the need for the user to worry about whether the remote control is from the set-top box or the TV. Users simply need to send remote control commands to the TV, achieving seamless integration between the TV and set-top box with minimal user impact and a superior user experience.

[0057] In one embodiment of this application, the step of establishing an infrared soft bus according to the consumer electronics control HDMI CEC protocol includes:

[0058] A television soft bus is constructed in the television, and a set-top box soft bus is constructed in the set-top box;

[0059] The operating status of the set-top box soft bus is obtained by querying the operation code among the multiple pre-acquired operation codes, and the multiple operation codes are constructed based on the HDMI CEC protocol;

[0060] Detect the storage status of the first key value code file in the television;

[0061] When the working state is the start state and the storage state is that the first key value code file is stored in the TV, the TV soft bus sends the retrieval operation code among the plurality of operation codes to the set-top box soft bus to retrieve the first description information of the target key value code file in the set-top box;

[0062] Obtain the second description information of the first key-value code file;

[0063] If the first description information matches the second description information, the function of receiving the target infrared signal is enabled on the TV soft bus and the set-top box soft bus.

[0064] In this embodiment, the infrared soft bus includes a set-top box soft bus and a television soft bus. The television soft bus is defined as ServiceTv, and the set-top box soft bus is defined as ServiceStb.

[0065] After ServiceTv starts, it obtains the working status of ServiceStb by querying the operation code. If ServiceStb is not started, the process ends and the infrared soft bus establishment fails. It should be noted that when HDMI CEC is enabled by default, the set-top box will also be turned on after the TV is turned on, and ServiceStb will start successfully.

[0066] While obtaining the working status of ServiceStb, it is also necessary to check whether the TV stores the first key value file, i.e., the storage status of the first key value file, which is the key value file of the set-top box. The key value file is used to parse the infrared signal and obtain the control intent of the infrared signal.

[0067] With ServiceStb running and the TV storing the first key value file, in order for the TV to successfully parse the infrared signal sent by the set-top box remote control, it needs to verify whether the first key value file is the set-top box's key value file. Therefore, the TV can obtain the first description information of the target key value file in the set-top box by acquiring the operation code, and then determine whether the first key value file is correct by comparing the first description information with the second description information. The aforementioned first and second description information may include file size and MD5 information.

[0068] The first and second description information must match if the file size and MD5 hash in both are the same. If they match, the function of receiving the target infrared signal is enabled on both the TV soft bus and the set-top box soft bus.

[0069] In this embodiment, by constructing an infrared soft bus in the TV and the set-top box, the infrared module of the TV can be extended to the infrared module of the set-top box through the soft bus, while the infrared module of the set-top box itself stops working. The TV and the set-top box share the infrared receiving device of the TV, realizing the function of the TV receiving the infrared signal of the set-top box remote control.

[0070] In one embodiment of this application, after obtaining the second description information of the first key-value code file, the method further includes:

[0071] If the first description information does not match the second description information, the transmission operation code among the plurality of operation codes is sent to the set-top box soft bus through the TV soft bus to obtain the target key value code file in the set-top box;

[0072] Replace the first key-value code file with the target key-value code file.

[0073] In this embodiment, if the first description information and the second description information do not match, it indicates that the first key value code file stored in the TV is not the target key value code file in the set-top box, and the target key value code file needs to be obtained again. Therefore, the target key value code file fed back by the set-top box can be obtained by sending a transmission operation code to the set-top box soft bus.

[0074] After receiving the target key value code file from the set-top box, the TV replaces the first key value code file with the target key value code file. Specifically, it can clear the existing first key value code file and then store the obtained target key value code file.

[0075] In addition, after the TV receives the target key value code file transmitted by the set-top box, it can also retrieve the third description information of the target key value code file after the transmission is completed, and then match the third description information with the first description information to determine that no errors occurred in the transmission of the target key value code file.

[0076] In this embodiment, if the first key value code file in the TV is incorrect, re-acquiring the target key value code file can ensure the accuracy of the infrared signal parsing of the set-top box remote control.

[0077] In one embodiment of this application, after enabling the TV soft bus and the set-top box soft bus to receive the target infrared signal when the first description information matches the second description information, the method further includes:

[0078] The TV soft bus sends an enable operation code from among the multiple operation codes to the set-top box soft bus, so that the set-top box soft bus disables the infrared receiving function of the set-top box.

[0079] In this embodiment, the infrared receiver in the set-top box can be turned off by using the enable operation code, thus managing the infrared receiving function of the set-top box. Additionally, the enable operation code is also used to notify the infrared receiving module in the television to initiate a dual decoding process, that is, to perform dual decoding on the first sub-infrared signal sent by the set-top box remote control and the second sub-infrared signal sent by the television remote control.

[0080] In this embodiment, by enabling the operation code to disable the infrared receiving function of the set-top box, it is possible to prevent the set-top box and the TV from simultaneously receiving the first sub-infrared signal from the set-top box remote control, thereby achieving accurate reception of the first sub-infrared signal.

[0081] In one embodiment of this application, the query opcode, transmission opcode, acquisition opcode, and enable opcode in the above embodiments are all constructed based on the HDMI CEC protocol. The HDMI CEC protocol will be described in detail below; the HDMI CEC protocol specification is as follows... Figure 3, Figure 4 , Figure 5 As shown.

[0082] The HDMI CEC protocol specifies that the maximum length of an HDMI frame cannot exceed 20 bytes. An HDMI frame contains a boot block and a data block, such as... Figure 3 As shown, the boot block and data block together are 10 bits, as follows: Figure 4 As shown, a header or data block consists of 8 data bits, an EOM (End of Message) bit, and an ACK (Acknowledgement) bit. The EOM bit identifies the last block of the message: "0" indicates that there are more data blocks to follow, and "1" indicates the end of the message. The ACK bit is used by the receiver to acknowledge the message initiator; the initiator sets this bit to 1. For point-to-point messages, devices with the same destination address as the message will change the ACK bit to "0," while other devices will not take any action. For broadcast messages, devices that refuse to receive the message will change the ACK bit to 0, while other devices will not take any action. Figure 6 A detailed value description for a CEC frame.

[0083] Therefore, in accordance with the HDMI CEC specification, the following operation codes are defined: connection query operation code, transmission operation code, acquisition operation code, and start operation code.

[0084] The opcode is defined within the reserved operator range of 0x77-0xFF. The key value code transmission opcode is based on the HDMI CEC extension protocol, transmitting key value code files. The files are uniformly encoded in UTF-8, with each character of the file filled based on CEC frame data blocks. Before each file transmission, the opcode is retrieved using the key value code information to determine if the file transmission is complete; if not, it needs to restart from 0. Since the key value code file is currently approximately 15kb in size, multiple CEC frames are required to achieve the desired file transmission. If the transmission is interrupted during the process, the soft bus establishment fails.

[0085] like Figure 7 As shown in the figure, this application embodiment also provides a device control apparatus 700, which includes:

[0086] The module 701 is used to build an infrared soft bus according to the consumer electronics control HDMI CEC protocol, wherein the infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box.

[0087] The receiving module 702 is configured to receive a target infrared signal sent by an external device according to the infrared soft bus, wherein the target infrared signal includes a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the television.

[0088] Processing module 703 is used to encapsulate and process the target infrared signal to obtain a key event, which is used to control the TV and / or the set-top box.

[0089] The sending module 704 is used to send the button event to the set-top box when an audio or video signal input is detected to control the set-top box.

[0090] Optionally, the assembly module 701 includes:

[0091] A submodule is constructed for constructing a TV soft bus in the TV and a set-top box soft bus in the set-top box;

[0092] The first acquisition submodule is used to acquire the working status of the set-top box soft bus through the TV soft bus and the query operation code among the pre-acquired multiple operation codes, wherein the multiple operation codes are constructed based on the HDMI CEC protocol;

[0093] The detection submodule is used to detect the storage status of the first key value code file in the TV, wherein the first key value code file is the key value code file of the set-top box;

[0094] The second acquisition submodule is used to acquire the first description information of the target key value file in the set-top box by sending the acquisition operation code among the plurality of operation codes to the set-top box soft bus through the TV soft bus when the working state is the start state and the storage state is that the first key value code file is stored in the TV.

[0095] The third acquisition submodule is used to acquire the second description information of the first key value code file;

[0096] The enable submodule is used to enable the TV soft bus and the set-top box soft bus to receive the target infrared signal when the first description information matches the second description information.

[0097] Optionally, the assembly module 701 further includes:

[0098] The fourth acquisition submodule is used to acquire the target key value code file in the set-top box by sending the transmission operation code among the plurality of operation codes to the set-top box soft bus through the TV soft bus when the first description information and the second description information do not match.

[0099] The replacement submodule is used to replace the first key-value code file with the target key-value code file.

[0100] Optionally, the assembly module 701 is specifically used for:

[0101] When the working state is the start state and the storage state is that the first key value code file is not stored in the TV, the transmission operation code among the plurality of operation codes is sent to the set-top box soft bus through the TV soft bus to obtain the target key value code file in the set-top box.

[0102] Optionally, the assembly module 701 is specifically used for:

[0103] The TV soft bus sends an enable operation code from among the multiple operation codes to the set-top box soft bus, so that the set-top box soft bus disables the infrared receiving function of the set-top box.

[0104] Optionally, the processing module 703 further includes:

[0105] The first parsing submodule is used to parse the first sub-infrared signal based on the target key value code file to obtain the first key value;

[0106] The second parsing submodule is used to parse the second sub-infrared signal based on a preset second key code value file to obtain the second key code value, wherein the second key code value is the default key code value in the television.

[0107] An encapsulation submodule is used to encapsulate the first key code value and / or the second key code value into the key event.

[0108] Optionally, the sending module 704 is specifically used for:

[0109] When an audio / video signal is detected from the set-top box, and the audio / video signal input is in full-screen display mode, the button event is sent to the set-top box via the infrared soft bus to control the set-top box.

[0110] Optionally, the device control unit 700 is specifically used for:

[0111] When an audio / video signal is detected from the set-top box, and the audio / video signal input is not in full-screen mode, the button event is responded to; and

[0112] Send the button event to the set-top box to control the set-top box.

[0113] Figure 8 A schematic diagram of the hardware structure of the terminal device provided in an embodiment of this application is shown.

[0114] The terminal device may include a processor 801 and a memory 802 storing computer program instructions.

[0115] Specifically, the processor 801 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0116] Memory 802 may include mass storage for data or instructions. For example, and not limitingly, memory 802 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 802 may include removable or non-removable (or fixed) media. Where appropriate, memory 802 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 802 is non-volatile solid-state memory.

[0117] In a particular embodiment, memory 802 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Thus, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.

[0118] The processor 801 implements any of the device control methods described in the above embodiments by reading and executing computer program instructions stored in the memory 802.

[0119] In one example, the terminal device may also include a communication interface 803 and a bus 810. Wherein, for example... Figure 8 As shown, the processor 801, memory 802, and communication interface 803 are connected through bus 810 and complete communication with each other.

[0120] The communication interface 803 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0121] Bus 810 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a First Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 810 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0122] Furthermore, in conjunction with the device control methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the device control methods in the above embodiments.

[0123] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0124] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0125] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0126] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device control apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable device control apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0127] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A device control method, characterized in that, The methods include: An infrared soft bus is built according to the HDMI CEC protocol for consumer electronics control, and the infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box. The infrared soft bus includes a television soft bus and a set-top box soft bus; According to the infrared soft bus, a target infrared signal sent by an external device is received, the target infrared signal including a first sub-infrared signal for controlling the set-top box, and / or a second sub-infrared signal for controlling the television; The target infrared signal is encapsulated and processed to obtain a key event, which is used to control the TV and / or the set-top box. When an audio or video signal input is detected to the set-top box, the button event is sent to the set-top box to control the set-top box; The process of building an infrared soft bus based on the HDMI CEC protocol for consumer electronics control includes: A television soft bus is constructed in the television, and a set-top box soft bus is constructed in the set-top box; The operating status of the set-top box soft bus is obtained by querying the operation code among the multiple pre-acquired operation codes, and the multiple operation codes are constructed based on the HDMI CEC protocol; The storage status of the first key value code file in the television is detected, and the first key value code file is the key value code file of the set-top box; When the working state is the start state and the storage state is that the first key value code file is stored in the TV, the TV soft bus sends the retrieval operation code among the plurality of operation codes to the set-top box soft bus to retrieve the first description information of the target key value code file in the set-top box; Obtain the second description information of the first key-value code file; If the first description information matches the second description information, the function of receiving the target infrared signal is enabled on the TV soft bus and the set-top box soft bus.

2. The equipment control method as described in claim 1, characterized in that, After obtaining the second description information of the first key-value code file, the method further includes: If the first description information does not match the second description information, the transmission operation code among the plurality of operation codes is sent to the set-top box soft bus through the TV soft bus to obtain the target key value code file in the set-top box; Replace the first key-value code file with the target key-value code file.

3. The equipment control method as described in claim 1, characterized in that, After detecting the storage status of the first key-value code file in the television, the method further includes: When the working state is the start state and the storage state is that the first key value code file is not stored in the TV, the transmission operation code among the plurality of operation codes is sent to the set-top box soft bus through the TV soft bus to obtain the target key value code file in the set-top box.

4. The equipment control method as described in claim 1, characterized in that, After enabling the TV soft bus and the set-top box soft bus to receive the target infrared signal when the first description information matches the second description information, the method further includes: The TV soft bus sends an enable operation code from among the multiple operation codes to the set-top box soft bus, so that the set-top box soft bus disables the infrared receiving function of the set-top box.

5. The equipment control method according to any one of claims 1-4, characterized in that, The process of encapsulating the target infrared signal to obtain the key event includes: The first sub-infrared signal is parsed based on the target key value code file to obtain the first key value; The second sub-infrared signal is parsed based on a preset second key code value file to obtain a second key code value, which is the default key code value in the television. The first key code value and / or the second key code value are encapsulated into the key event.

6. The equipment control method as described in claim 1, characterized in that, The step of sending the button event to the set-top box to control the set-top box when an audio or video signal input is detected includes: When an audio / video signal is detected from the set-top box, and the audio / video signal input is in full-screen display mode, the button event is sent to the set-top box via the infrared soft bus to control the set-top box.

7. The equipment control method as described in claim 1, characterized in that, After sending the button event to the set-top box to control the set-top box upon detecting audio or video signal input, the method further includes: When an audio / video signal is detected from the set-top box, and the audio / video signal input is not in full-screen mode, the button event is responded to; and Send the button event to the set-top box to control the set-top box.

8. A device control apparatus, characterized in that, include: A module is provided for building an infrared soft bus according to the HDMI CEC protocol for consumer electronics control. The infrared soft bus is configured to receive infrared signals for controlling the TV and / or set-top box. The receiving module is configured to receive a target infrared signal sent by an external device according to the infrared soft bus, wherein the target infrared signal includes a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling the television. The processing module is used to encapsulate and process the target infrared signal to obtain a key event, which is used to control the TV and / or the set-top box. The sending module is used to send the button event to the set-top box when an audio or video signal input is detected to control the set-top box. The construction module includes: A submodule is constructed for constructing a TV soft bus in the TV and a set-top box soft bus in the set-top box; The first acquisition submodule is used to acquire the working status of the set-top box soft bus through the TV soft bus and the query operation code among the pre-acquired multiple operation codes, wherein the multiple operation codes are constructed based on the HDMI CEC protocol; The detection submodule is used to detect the storage status of the first key value code file in the TV, wherein the first key value code file is the key value code file of the set-top box; The second acquisition submodule is used to acquire the first description information of the target key value file in the set-top box by sending the acquisition operation code among the plurality of operation codes to the set-top box soft bus through the TV soft bus when the working state is the start state and the storage state is that the first key value code file is stored in the TV. The third acquisition submodule is used to acquire the second description information of the first key value code file; The enable submodule is used to enable the TV soft bus and the set-top box soft bus to receive the target infrared signal when the first description information matches the second description information.

9. A terminal device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the device control method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the device control method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Internet protocol television (IPTV), method and system for implementing IPTV value added service, set top box (STB) and remote controller

    CN101958924A

  • Method and television device for controlling set top box through television remote controller

    CN105323617A