Equipment control method and device, equipment and computer storage medium

CN119788894AActive Publication Date: 2025-04-08CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311284078.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2025-04-08
Estimated Expiration
2043-10-07

Smart Images

  • Figure CN119788894A_ABST
    Figure CN119788894A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment control method and device, equipment and a computer storage medium, and the method comprises the steps: building an infrared soft bus according to a consumer electronics control HDMI CEC protocol, and the infrared soft bus is configured to receive an infrared signal used for controlling a television and / or a set top box; according to the infrared soft bus, a target infrared signal sent by the external device is received, and the target infrared signal comprises a first sub-infrared signal used for controlling the set top box and / or a second sub-infrared signal used for controlling the television; packaging the target infrared signal to obtain a key event which is used for controlling a television and / or a set top box; and when it is detected that the set top box has audio and video signal input, sending a key event to the set top box so as to control the set top box. According to the embodiment of the invention, the set top box can be controlled by receiving the infrared instruction sent by the remote controller of the set top box through the television.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of remote control technology, and in particular relates to a device control method, device, equipment and computer storage medium. Background Art

[0002] Currently, TVs and set-top boxes on the market have their own remote controls. It is very troublesome to use different remote controls to control the TV and set-top box respectively. Especially when using a set-top box, you need to first use the set-top box remote control to turn on the set-top box, then use the TV remote control to switch to the signal source of the set-top box, and use the set-top box remote control to view the content of the set-top box. This operation method is too costly for users, and most elderly people at home do not know how to operate it. Therefore, when most people watch TV, they only use the TV remote control to watch the media resources that come with the TV, and do not use the media resources of the set-top box, resulting in a waste of set-top box resources.

[0003] In the prior art methods of sharing a remote control between a TV and a set-top box, the TV remote control key information is converted into the set-top box remote control key information, and then distributed to the set-top box in different ways, or the set-top box remote control key information is converted into the TV remote control key information and distributed to the TV. In this method, the TV remote control must send an infrared command to the TV, and the set-top box remote control must send an infrared command to the set-top box. These methods have certain limitations, that is, it is difficult to control the set-top box by receiving the infrared command sent by the set-top box remote control through the TV. Summary of the invention

[0004] The embodiments of the present application provide a device control method, apparatus, device and computer storage medium to solve the problem that it is difficult to control a set-top box by receiving infrared commands sent by a remote controller of the set-top box through a television.

[0005] In a first aspect, an embodiment of the present application provides a device control method, the method comprising:

[0006] Building 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 a television and / or a set-top box;

[0007] According to the infrared soft bus, receiving a target infrared signal sent by an external device, 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 a television;

[0008] Packaging the target infrared signal to obtain a key event, wherein the key event is used to control the television and / or the set-top box;

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

[0010] In a second aspect, an embodiment of the present application provides a device control apparatus, including:

[0011] A building module for building an infrared soft bus according to a consumer electronics control HDMI CEC protocol, wherein the infrared soft bus is configured to receive infrared signals for controlling a television and / or a set-top box;

[0012] A receiving module, used for receiving 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 a television;

[0013] A processing module, used for encapsulating the target infrared signal to obtain a key event, wherein the key event is used to control the television and / or the set-top box;

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

[0015] In a third aspect, an embodiment of the present application provides a terminal device, the device comprising: a processor and a memory storing computer program instructions;

[0016] When the processor executes the computer program instructions, the device control method according to the first aspect is implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the device control method of the first aspect is implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the device control method as in the first aspect.

[0019] The device control method, apparatus, device and computer storage medium of the embodiment of the present invention build an infrared soft bus according to the consumer electronics control HDMI CEC protocol, and the infrared soft bus is configured to receive infrared signals for controlling a television and / or a set-top box; according to the infrared soft bus, receive a target infrared signal sent by an external device, and 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; encapsulate the target infrared signal to obtain a key event, and the key event is used to control the television and / or the set-top box; when it is detected that the set-top box has an audio and video signal input, send the key event to the set-top box to control the set-top box. The television is enabled to receive infrared signals from the set-top box remote control, so that the set-top box can be controlled by the television, avoiding the situation that the infrared signal of the set-top box can only be received by the set-top box, so that the user does not need to care whether the set-top box remote control or the television remote control is used, and only needs to hold the remote control to send remote control instructions to the television, thereby realizing the integration of the television and the set-top box, and the user is almost unaware, and the user experience is better. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 It is a flowchart of a device control method provided in an embodiment of the present application;

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

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

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

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

[0026] Figure 6 is a schematic diagram describing the detailed values ​​of a cec frame in the HDMI CEC protocol specification provided in an embodiment of the present application;

[0027] Figure 7 is a schematic diagram of the structure of the device control device provided in an embodiment of the present application;

[0028] Figure 8 It is a schematic diagram of the hardware structure of the terminal device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0029] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0030] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0031] The embodiments of the present application provide a device control method, apparatus, device and computer storage medium. The following first describes an example of the device control method provided by the embodiments of the present application to which the present application can be applied.

[0032] Figure 1 FIG. 1 is a flow chart of a device control method provided by an embodiment of the present application. Figure 1 As shown, the method includes:

[0033] Step 101, building 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 a television and / or a set-top box;

[0034] Step 102, receiving 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 a television;

[0035] Step 103, encapsulating the target infrared signal to obtain a key event, wherein the key event is used to control the television and / or the set-top box;

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

[0037] In step 102, an infrared soft bus is established according to the consumer electronics control HDMI CEC protocol, and the infrared soft bus is configured to receive infrared signals for controlling a television and / or a set-top box;

[0038] The infrared soft bus is a set of virtual data transmission lines written in computer language, which is used to receive infrared signals to control the TV or set-top box. The HDMI CEC protocol is a communication protocol based on the HDMI standard, which allows two-way communication and control between various consumer electronic devices, that is, it allows two-way communication and control between the TV and the set-top box.

[0039] In step 102, a target infrared signal sent by an external device is received 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 a television;

[0040] The above-mentioned external device can be a TV remote control or a set-top box remote control. After the infrared soft bus is built, the target infrared signal from the external device can be received and analyzed through the infrared soft bus, wherein 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 if Figure 2 As shown, Figure 2 The software architecture diagram of a TV and a set-top box provided by an embodiment of the present application is shown. After the infrared soft bus is successfully established, since the infrared soft bus includes a TV soft bus and a set-top box soft bus, the software architecture in the TV includes an infrared decoding module, an event management center, an input distributor, and a TV 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 control or set-top box remote control sends the target infrared signal to the TV. After the infrared decoding module demodulates the target infrared signal, it can parse out the user code and operation code of the target infrared signal based on the NEC protocol. The user code can be used to identify whether the target infrared signal is the second sub-infrared signal of the TV remote control or the first sub-infrared signal of the set-top box remote control. 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 a set-top box infrared signal, a new device input node / dev / input / stb is added (if it does not exist, it does not need to be added if it exists), and the operation code is written to / dev / input / stb.

[0043] In step 103, the target infrared signal is packaged to obtain a key event, and the key event is used to control the television and / or the set-top box;

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

[0045] Parsing the first sub-infrared signal based on the target key-value code file to obtain a first key code value;

[0046] Parsing the second sub-infrared signal based on a preset second key code value file to obtain a second key code value, where the second key code value is a default key code value in the television;

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

[0048] In this embodiment, if Figure 2 As shown, when the event management center scans / dev / input / stb and / dev / input / event1 for event input, the event in / dev / input / event1 is parsed into a first key code value according to the system default key code, and the event in / dev / input / stb is parsed into a second key code value according to the key code in the target key code file transmitted by the infrared soft bus of the set-top box. The first key code value and / or the second key code value are encapsulated as an Android system key event.

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

[0050] In an embodiment of the present application, when it is detected that the set-top box has an audio or video signal input, sending the key event to the set-top box to control the set-top box includes:

[0051] When it is detected that the set-top box has an audio or video signal and the audio or video signal input is displayed in full screen, the key event is sent to the set-top box through the infrared soft bus to control the set-top box.

[0052] When it is detected that the set-top box has an audio or video signal and the audio or video signal input is not displayed in full screen, responding to the key event; and

[0053] The key event is sent to the set-top box to control the set-top box.

[0054] In this embodiment, the input distributor determines whether the HDMI signal source of the current TV has a set-top box audio and video signal input. If not, the key event is sent to the TV. If there is an HDMI signal source input and the current signal source is displayed in full screen, the key event is sent to the TV soft bus, and the TV soft bus sends the key event to the set-top box soft bus of the set-top box through HDMI for response. If there is an HDMI signal source input but it is not full screen, the input distributor distributes the key event to the TV and the TV soft bus at the same time, and then sends it to the set-top box soft bus through the TV soft bus. Correspondingly, the TV and the set-top box respond to the key event after receiving the key event to achieve control of the TV and the set-top box.

[0055] After the soft bus Service is successfully established, the input distributor can notify the TV soft bus to send key events to the set-top box through the Android interface definition language AIDL. The TV soft bus sends key events to the set-top box through the HdmiCecControlersendCommand method, and the set-top box HdmiCecLocalDevice listens to CecMessage messages and responds to key events. HdmiCecControler and HdmiCecLocalDevice are control classes based on HDMI CEC message implementation implemented by the Android native system, which can transmit key events.

[0056] In this embodiment, 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 a television and / or a set-top box; a target infrared signal sent by an external device is received according to the infrared soft bus, and 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 packaged and processed to obtain a key event, and the key event is used to control the television and / or the set-top box; when it is detected that the set-top box has an audio and video signal input, the key event is sent to the set-top box to control the set-top box. The television is enabled to receive infrared signals from the set-top box remote control, so that the set-top box can be controlled by the television, avoiding the situation that the infrared signal of the set-top box can only be received by the set-top box, so that the user does not need to care about whether the set-top box remote control or the television remote control is used, and only needs to hold the remote control to send remote control instructions to the television, thereby realizing the integration of the television and the set-top box, and the user is almost unaware, and the user experience is better.

[0057] In one embodiment of the present application, the infrared soft bus is built according to the consumer electronics control HDMI CEC protocol, including:

[0058] Constructing a TV soft bus in the TV, and constructing a set-top box soft bus in the set-top box;

[0059] Acquire the working state of the set-top box soft bus through the TV soft bus and a query operation code in a plurality of pre-acquired operation codes, wherein the plurality of operation codes are constructed based on the HDMI CEC protocol;

[0060] detecting a storage status of a first key-value code file in the television;

[0061] When the working state is the startup state and the storage state is that the first key-value code file is stored in the television, sending an acquisition operation code among the multiple operation codes to the set-top box soft bus through the television soft bus to acquire first description information of the target key-value code file in the set-top box;

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

[0063] When the first description information matches the second description information, the function of the television soft bus and the set-top box soft bus to receive the target infrared signal is enabled.

[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 is started, the working status of ServiceStb is obtained by querying the operation code. If ServiceStb is not started, the process ends and the infrared soft bus fails to be established. It should be noted that when HDMI CEC is turned on by default, the set-top box will also be turned on after the TV is turned on, and ServiceStb will be successfully started.

[0066] When obtaining the working status of ServiceStb, it is also necessary to obtain whether the TV stores the first key code file, that is, the storage status of the first key code file, where the first key code file is the key code file of the set-top box. The key code file is used to parse the infrared signal and obtain the control intent of the infrared signal.

[0067] When ServiceStb is in the startup state, and the storage state is that the first key-value code file is stored in the TV, in order for the TV to successfully parse the infrared signal sent by the set-top box remote control, it is necessary to verify whether the first key-value code file is the key-value code file of the set-top box. Therefore, the TV can obtain the first description information of the target key-value code file in the set-top box by obtaining the operation code, and then determine whether the first key-value code file is correct by comparing the first description information with the second description information. The above-mentioned first description information and second description information may include file size and MD5 information.

[0068] The first description information and the second description information match each other when the file sizes and MD5 information in the first description information and the second description information are the same. In the case of matching, the function of receiving the target infrared signal of the TV soft bus and the set-top box soft bus is enabled.

[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 expanded to the infrared module of the set-top box through the soft bus, and 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, thereby realizing the function of the TV receiving the infrared signal of the set-top box remote control.

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

[0071] In the case that the first description information does not match the second description information, sending a transmission operation code among the multiple operation codes to the set-top box soft bus through the television soft bus to obtain the target key-value code file in the set-top box;

[0072] The first key-value code file is replaced with the target key-value code file.

[0073] In this embodiment, when the first description information does not match the second description information, it means 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 re-acquired. Therefore, a transmission operation code can be sent to the set-top box soft bus to obtain the target key-value code file fed back by the set-top box through the transmission operation code.

[0074] After receiving the target key-value code file fed back by the set-top box, the TV replaces the first key-value code file with the target key-value code file. Specifically, the TV may 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 re-acquire 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 error occurred during the transmission of the target key-value code file.

[0076] In this embodiment, when the first key-value code file in the television is an incorrect file, the target key-value code file is re-acquired, so as to ensure the accuracy of the infrared signal analysis of the set-top box remote control.

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

[0078] An on operation code among the multiple operation codes is sent to the set-top box soft bus through the television soft bus, so that the set-top box soft bus turns off the infrared receiving function of the set-top box.

[0079] In this embodiment, the infrared receiving device in the set-top box can be turned off by the opening operation code, that is, the infrared receiving function of the set-top box can be managed. In addition, the opening operation code is also used to notify the infrared receiving module in the television to start the double decoding process, that is, 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 are double decoded.

[0080] In this embodiment, by turning off the infrared receiving function of the set-top box through the opening operation code, the set-top box and the television can be prevented from simultaneously receiving the first sub-infrared signal of the set-top box remote control, thereby achieving accurate reception of the first sub-infrared signal.

[0081] In one embodiment of the present application, the query operation code, the transmission operation code, the acquisition operation code and the opening operation code in the above embodiment are all constructed based on the HDMI CEC protocol. The HDMI CEC protocol is described in detail below. The HDMI CEC protocol specification is as follows: Figure 3, Figure 4 , Figure 5 shown.

[0082] The HDMI CEC protocol stipulates that the maximum length of an HDMI frame cannot exceed 20 bytes. An HDMI frame contains a guide block and a data block. Figure 3 As shown, the boot block and data block have a total of 10 bits, such as Figure 4 As shown in the figure, 8 bits of data, EOM (end of message bit) and ACK (acknowledgement bit) form a guide or data block. The EOM bit is used to identify 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 respond to the message initiator, and the message initiator sets this bit to 1. For point-to-point messages, the device with the same target address in the message changes the ACK bit to "0", and other devices do not act; for broadcast messages, the device that refuses to receive the message changes the ACK bit to 0, and other devices do not act. Figure 6 A detailed value description of a cec frame.

[0083] Therefore, according to the HDMI CEC specification, the following operation codes are customized, including connection query operation code, transmission operation code, acquisition operation code and opening operation code.

[0084] The operation code definition range is between the reserved operators of 0x77-0xFF. The key-value code transmission operation code is based on the HDMI CEC extension protocol to transmit the key-value code file. The file is uniformly encoded in UTF-8, and each character of the file is filled based on the cec frame data block. Before each file transfer, it is necessary to use the key-value code information to obtain the operation code to determine whether the file transfer is complete. If it is not completed, it is necessary to restart the transfer from 0. Since the key-value code file is currently about 15kb in size, multiple cec frames need to be transmitted to achieve the purpose of file transmission. If the transmission is interrupted during the transmission process, the soft bus establishment fails.

[0085] like Figure 7 As shown, the embodiment of the present application further provides a device control device 700, and the device control device 700 includes:

[0086] A building 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 a television and / or a set-top box;

[0087] A receiving module 702, 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 a television;

[0088] A processing module 703 is used to encapsulate the target infrared signal to obtain a key event, and the key event is used to control the TV and / or the set-top box;

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

[0090] Optionally, the building module 701 includes:

[0091] A construction submodule, used to construct a TV soft bus in the TV and a set-top box soft bus in the set-top box;

[0092] A first acquisition submodule, configured to acquire the working state of the set-top box soft bus through the TV soft bus and a query operation code in a plurality of pre-acquired operation codes, wherein the plurality of operation codes are constructed based on the HDMI CEC protocol;

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

[0094] A second acquisition submodule is used for sending an acquisition operation code among the multiple operation codes to the set-top box soft bus through the TV soft bus to acquire first description information of the target key-value code file in the set-top box when the working state is the startup state and the storage state is that the first key-value code file is stored in the TV;

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

[0096] The enabling 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 building module 701 further includes:

[0098] a fourth acquisition submodule, configured to, when the first description information does not match the second description information, send a transmission operation code among the multiple operation codes to the set-top box soft bus through the television soft bus to acquire the target key-value code file in the set-top box;

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

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

[0101] When the working state is the startup state and the storage state is that the first key-value code file is not stored in the TV, a transmission operation code among the multiple 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 building module 701 is specifically used for:

[0103] An on operation code among the multiple operation codes is sent to the set-top box soft bus through the television soft bus, so that the set-top box soft bus turns off the infrared receiving function of the set-top box.

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

[0105] A first parsing submodule, configured to parse the first sub-infrared signal based on the target key-value code file to obtain a first key code value;

[0106] A second parsing submodule, configured to parse the second infrared sub-signal based on a preset second key code value file to obtain a second key code value, where the second key code value is a default key code value in the television;

[0107] The 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 configured to:

[0109] When it is detected that the set-top box has an audio or video signal and the audio or video signal input is displayed in full screen, the key event is sent to the set-top box through the infrared soft bus to control the set-top box.

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

[0111] When it is detected that the set-top box has an audio or video signal and the audio or video signal input is not displayed in full screen, responding to the key event; and

[0112] The key event is sent to the set-top box to control the set-top box.

[0113] Figure 8 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present 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), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0116] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.

[0117] In certain embodiments, the memory 802 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) 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 an aspect of the present disclosure.

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

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

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

[0121] Bus 810 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, first video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 810 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0122] In addition, in combination with the device control method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any device control method in the above embodiment is implemented.

[0123] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present 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, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in 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, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0125] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. 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 embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0126] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram 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 device to produce a machine so that these instructions executed by the processor of the computer or other programmable device control device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. 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 can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0127] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A device control method, characterized in that: Methods include: Building 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 a television and / or a set-top box; According to the infrared soft bus, receiving a target infrared signal sent by an external device, the target infrared signal comprising a first sub-infrared signal for controlling the set-top box and / or a second sub-infrared signal for controlling a television; Packaging the target infrared signal to obtain a key event, wherein the key event is used to control the television and / or the set-top box; When it is detected that the set-top box has an audio or video signal input, the key event is sent to the set-top box to control the set-top box.

2. The device control method according to claim 1, characterized in that: The infrared soft bus includes a TV soft bus and a set-top box soft bus; The infrared soft bus is built according to the consumer electronics control HDMI CEC protocol, including: Constructing a TV soft bus in the TV, and constructing a set-top box soft bus in the set-top box; Acquire the working state of the set-top box soft bus through the TV soft bus and a query operation code in a plurality of pre-acquired operation codes, wherein the plurality of operation codes are constructed based on the HDMI CEC protocol; Detecting a storage status of a first key-value code file in the television, where the first key-value code file is a key-value code file of the set-top box; When the working state is the startup state and the storage state is that the first key-value code file is stored in the television, sending an acquisition operation code among the multiple operation codes to the set-top box soft bus through the television soft bus to acquire first description information of the target key-value code file in the set-top box; Obtaining second description information of the first key-value code file; When the first description information matches the second description information, the function of the television soft bus and the set-top box soft bus to receive the target infrared signal is enabled.

3. The device control method according to claim 2, characterized in that: After obtaining the second description information of the first key-value code file, the method further includes: In the case that the first description information does not match the second description information, sending a transmission operation code among the multiple operation codes to the set-top box soft bus through the television soft bus to obtain the target key-value code file in the set-top box; The first key-value code file is replaced with the target key-value code file.

4. The device control method according to claim 2, 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 startup state and the storage state is that the first key-value code file is not stored in the TV, a transmission operation code among the multiple 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.

5. The device control method according to claim 2, characterized in that: In the case where the first description information matches the second description information, after enabling the function of the TV soft bus and the set-top box soft bus to receive the target infrared signal, the method further includes: An on operation code among the multiple operation codes is sent to the set-top box soft bus through the television soft bus, so that the set-top box soft bus turns off the infrared receiving function of the set-top box.

6. The device control method according to any one of claims 2 to 5, characterized in that: The encapsulating and processing the target infrared signal to obtain a key event includes: Parsing the first sub-infrared signal based on the target key-value code file to obtain a first key code value; Parsing the second sub-infrared signal based on a preset second key code value file to obtain a second key code value, where the second key code value is a default key code value in the television; The first key code value and / or the second key code value is encapsulated as the key event.

7. The device control method according to claim 1, characterized in that: When the set-top box is detected to have an audio or video signal input, the key event is sent to the set-top box to control the set-top box, including: When it is detected that the set-top box has an audio or video signal and the audio or video signal input is displayed in full screen, the key event is sent to the set-top box through the infrared soft bus to control the set-top box.

8. The device control method according to claim 1, characterized in that: After the step of sending the key event to the set-top box to control the set-top box when the set-top box has an audio or video signal input, the method further comprises: When it is detected that the set-top box has an audio or video signal and the audio or video signal input is not displayed in full screen, responding to the key event; and The key event is sent to the set-top box to control the set-top box.

9. A device control device, characterized in that: include: A building module for building an infrared soft bus according to a consumer electronics control HDMI CEC protocol, wherein the infrared soft bus is configured to receive infrared signals for controlling a television and / or a set-top box; A receiving module, used for receiving 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 a television; A processing module, used for encapsulating the target infrared signal to obtain a key event, wherein the key event is used to control the television and / or the set-top box; The sending module is used to send the key event to the set-top box when it is detected that the set-top box has an audio or video signal input, so as to control the set-top box.

10. A terminal device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the device control method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the device control method according to any one of claims 1 to 8 is implemented.

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

  • Multiplexing method and apparatus of remote controller, and storage medium

    CN109361943A

  • Distributed cloud gaming method and system where interactivity and resources are securely shared among multiple users and networks

    US20120028712A1

  • Methods and apparatus for audience measurement and determining infrared signal based on signature of symbol alphabet

    US20180167680A1