Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the disclosure provides a display device, a key control method and a storage medium, wherein a user determines a target device for processing a key instruction, so that key functions of an external device and the display device can be considered, operation of the user is satisfied, the problem of key failure or shielding is avoided, and user experience is improved.
In a first aspect, the present disclosure provides a display device comprising:
The controller is configured to detect that the external equipment is accessed, and set a channel of the display equipment as a high-definition multimedia interface (HDMI) channel accessed by the external equipment;
Receiving a key instruction aiming at a first key sent by control equipment of the display equipment, and controlling a display of the display equipment to pop up a target page, wherein the target page comprises prompt information, and the prompt information is used for indicating a user to select target equipment for processing the key instruction from the external equipment and the display equipment;
and responding to the operation of selecting the target equipment, and controlling the display to display a corresponding processing result after the target equipment processes the key instruction.
As an optional implementation manner of the embodiment of the present disclosure, the target device is a display device;
The controller is specifically configured to:
And responding to the operation of selecting the target equipment, and controlling the display to display a first processing result corresponding to the display equipment after processing the key instruction.
As an optional implementation manner of the embodiment of the present disclosure, the target device is an external device;
the controller is specifically configured to:
transmitting the key instruction to the external device in response to an operation of selecting the target device;
And controlling the display to display a second processing result corresponding to the external equipment after processing the key instruction.
As an alternative implementation of the embodiments of the present disclosure, the controller is specifically configured to:
and detecting that the external equipment is accessed, determining that the external equipment is in a starting state, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment in response to the triggering operation of a user on a second key.
As an alternative implementation of the disclosed embodiments, the controller is further configured to:
detecting access to the external equipment, determining that the external equipment is switched from a power-off state to a power-on state, and acquiring an HDMI channel accessed by the external equipment;
And receiving a channel jump instruction sent by the external equipment, and setting the channel of the display equipment as an HDMI channel accessed by the external equipment according to the channel jump instruction.
As an optional implementation manner of the embodiment of the present disclosure, the target device is an external device;
The controller is specifically configured to:
and in response to the operation of selecting the target device, invoking an HDMI control service of the display device and sending the key instruction to the external device.
As an alternative implementation of the disclosed embodiments, the controller is further configured to:
and detecting that the external equipment is accessed, determining an HDMI channel accessed by the external equipment through a television input architecture TIF provided by an operating system of the display equipment, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment.
In a second aspect, the present disclosure provides a key control method, including:
detecting access to external equipment, and setting a channel of the display equipment as an HDMI channel of a high definition multimedia interface accessed by the external equipment;
Receiving a key instruction aiming at a first key sent by control equipment of the display equipment, and controlling a display of the display equipment to pop up a target page, wherein the target page comprises prompt information, and the prompt information is used for indicating a user to select target equipment for processing the key instruction from the external equipment and the display equipment;
and responding to the operation of selecting the target equipment, and controlling the display to display a corresponding processing result after the target equipment processes the key instruction.
As an optional implementation manner of the embodiment of the present disclosure, the target device is a display device;
The response to the operation of selecting the target device controls the display to display a corresponding processing result after the target device processes the key instruction, including:
And responding to the operation of selecting the target equipment, and controlling the display to display a first processing result corresponding to the display equipment after processing the key instruction.
As an optional implementation manner of the embodiment of the present disclosure, the target device is an external device;
The response to the operation of selecting the target device controls the display to display a corresponding processing result after the target device processes the key instruction, including:
transmitting the key instruction to the external device in response to an operation of selecting the target device;
And controlling the display to display a second processing result corresponding to the external equipment after processing the key instruction.
As an optional implementation manner of the embodiment of the present disclosure, the detecting that an external device is connected, setting a channel of the display device as a high-definition multimedia interface HDMI channel to which the external device is connected, includes:
and detecting that the external equipment is accessed, determining that the external equipment is in a starting state, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment in response to the triggering operation of a user on a second key.
As an alternative implementation of the embodiments of the present disclosure, the method further includes:
detecting access to the external equipment, determining that the external equipment is switched from a power-off state to a power-on state, and acquiring an HDMI channel accessed by the external equipment;
And receiving a channel jump instruction sent by the external equipment, and setting the channel of the display equipment as an HDMI channel accessed by the external equipment according to the channel jump instruction.
As an optional implementation manner of the embodiment of the present disclosure, the target device is an external device;
transmitting the key instruction to the external device in response to the operation of selecting the target device, including:
and in response to the operation of selecting the target device, invoking an HDMI control service of the display device and sending the key instruction to the external device.
As an alternative implementation of the embodiments of the present disclosure, the method further includes:
and detecting that the external equipment is accessed, determining an HDMI channel accessed by the external equipment through a television input architecture TIF provided by an operating system of the display equipment, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment.
In a third aspect, the present disclosure provides a computer-readable storage medium, including a computer program stored thereon, which when executed by a processor implements the key control method as shown in the second aspect.
In a fourth aspect, the present disclosure provides a computer program product comprising instructions which, when run on a computer, cause the computer to implement the key control method as described in the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the advantages that the external equipment is detected to be accessed, the channel of the display equipment is set to be the HDMI channel accessed by the external equipment, then the key instruction aiming at the first key sent by the control equipment of the display equipment is received, the display of the display equipment is controlled to pop up a target page, the target page comprises prompt information, the prompt information is used for indicating a user to select the target equipment for processing the key instruction from the external equipment and the display equipment, and finally the display is controlled to display the corresponding processing result after the target equipment processes the key instruction in response to the operation of selecting the target equipment.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein, and it is apparent that the embodiments in the specification are only some, rather than all, of the embodiments of the present disclosure.
The terms "first" and "second" and the like in this disclosure are used to distinguish between different objects and are not used to describe a particular order of objects. For example, the first processing result and the second processing result, etc., are used to distinguish between different processing results, not to describe a particular order of processing results.
The external device is mainly a device which can be connected with the display device so as to achieve the purposes of surfing the internet, watching network television programs or playing digital video discs and the like. In general, the external device may be a set top box, a DVD, a network box of various brands, and the like, and the embodiment of the present disclosure is not limited to the specific type of the external device. Through interaction of the external device and the display device, the user can have a richer experience.
At present, various brands of display devices generally support a key transmission function of computing electronic control (Consumer Electronics Control, CEC), and key information received by the display device can be transmitted to external devices through the key transmission function, so that the function of controlling keys corresponding to the external devices, such as playing, pausing, up, down, left, right and other keys of the external devices, is achieved.
Fig. 1A is a schematic view of an operational scenario among a display device, an external device, and a control device according to one or more embodiments of the present disclosure. As shown in fig. 1A, the external device 201 is connected to the display device 200, and a user can view contents in the external device 201 through the display device 200. The control device (e.g., remote control) 100 using the display device can control the external device 201.
Fig. 1B is a schematic diagram illustrating a process of a key control method in the prior art. As shown in fig. 1B, when the display device detects that the external device is connected, and the channel of the display device is a high-definition multimedia interface (High Definition Multimedia Interface, HDMI) channel connected to the external device, and the display device receives a key instruction sent by the control device of the display device, the key instruction is directly forwarded to the external device, and the external device processes the key instruction, the method may cause key failure of the display device.
The other key control method is that the display device detects that the external device is connected, and the channel of the display device is an HDMI channel connected with the external device, when the display device receives a key instruction sent by the control device of the display device, the display device and the external device both process the key instruction, and at the moment, information after the key instruction is processed by the display device and the external device is displayed in a page of the display device, the problem of shielding can occur, and the information is displayed inadequately.
Fig. 1C is a schematic diagram illustrating an interface display when a shielding problem occurs in another key control method in the prior art. As shown in FIG. 1C, when the external device A is connected to the display device, and the channel of the display device is the HDMI channel connected to the external device A, at this time, the display of the display device displays the picture of the external device, when both the display device and the external device process the received key instruction, the first processing result after the display device processes the key instruction is XXXX, and the second processing result after the external device A processes the key instruction is XX page, as can be seen from FIG. 1C, when the first processing result and the second processing result are displayed at the same time, the shielding problem occurs, so that the information is displayed incompletely, and the use experience of the user is affected.
In order to solve the above problems, the embodiments of the present disclosure provide a key control method, firstly, a controller of a display device detects that an external device is connected, a channel of the display device is set as an HDMI channel to which the external device is connected, then the controller receives a key instruction for a first key sent by a control device of the display device, controls a display of the display device to pop up a target page, the target page includes a prompt message, the prompt message is used to instruct a user to select a target device for processing the key instruction from the external device and the display device, and finally, the controller responds to an operation of selecting the target device, controls the display to display a corresponding processing result after the target device processes the key instruction.
In some embodiments, the control device 100 may be a remote control, and the communication between the remote control and the display device 200 may include infrared protocol communication, bluetooth protocol communication, wireless or other wired manner, etc., by which the display device 200 can be controlled. The user may control the display device 200 or the external device 201 by inputting user instructions through keys on a remote controller, voice input, control panel input, and the like.
In some embodiments, mobile terminals, tablets, computers, notebooks, and other smart devices may also be used to control the display device 200.
In some embodiments, the display device 200 may receive instructions not using the smart device or control device described above, but rather receive control of the user through touch or gesture, or the like.
In some embodiments, the display device 200 may also perform control in a manner other than the control device and the smart device, for example, the voice command control of the user may be directly received through a module configured inside the display device 200 device to obtain the voice command, or the voice command control of the user may be received through a voice control device configured outside the display device 200 device.
In some embodiments, the mobile terminal may install a software application with the display device 200, and implement connection communication through a network communication protocol for the purpose of one-to-one control operation and data communication. The audio and video contents displayed on the mobile terminal can also be transmitted to the display device 200, so as to realize the synchronous display function. The display device 200 may also be in data communication with a server via a variety of communication means, which may allow the display device 200 to be communicatively coupled via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server may be a cluster, or may be multiple clusters, and may include one or more types of servers. The server may provide various content and interactions to the display device 200. The display device 200 may be a liquid crystal display, an OLED display, a projection display device, or the like. The display device 200 may additionally provide an intelligent network television function of a computer support function in addition to the broadcast receiving television function.
Fig. 2 is a hardware configuration block diagram of the control device 100 according to one or more embodiments of the present disclosure. As shown in fig. 2, the control device includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control device may receive user input operation instructions and convert the operation instructions into instructions recognizable and responsive to the display device 200, enabling interaction between the user and the display device 200. The communication interface 130 is configured to communicate with the outside, and includes at least one of a WIFI chip, a bluetooth module, NFC, or an alternative module. The user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, keys, or an alternative module.
Fig. 3A is a block diagram of a hardware configuration of a display device 200 in accordance with one or more embodiments of the present disclosure. The display apparatus 200 as shown in fig. 3A includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, a user interface (i.e., a user input interface) 280. The controller 250 includes a central processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, and first to nth interfaces for input/output. The display 260 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals. The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator may comprise at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The display device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220. The detector 230 is used to collect signals of the external environment or interaction with the outside. The controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box. The user interface 280 may be used to receive control signals for a control device, such as an infrared remote control or the like.
In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored on the memory. The controller 250 controls the overall operation of the display apparatus 200. The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Or the user may input the user command by inputting a specific sound or gesture, the user input interface recognizes the sound or gesture through the sensor, and receives the user input command.
In some embodiments, a "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user that enables conversion between an internal form of information and a form acceptable to the user. A commonly used presentation form of a user interface is a graphical user interface (Graphic User Interface, abbreviated GUI), which refers to a graphically displayed user interface related to computer operations. It may be an interface element such as an icon, a window, and a control displayed in a display screen of the electronic device, where the control may include at least one of a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, and the like.
Fig. 3B is a schematic diagram of a software configuration in the display device 200 according to one or more embodiments of the present disclosure, and as shown in fig. 3B, the system is divided into four layers, namely, an application layer (application layer), an application framework layer (Application Framework layer), a An Zhuoyun line layer (Android runtime) and a system library layer (system runtime layer), and a kernel layer.
In some embodiments, at least one application program is running in the application program layer, and the application programs may be a Window (Window) program, a system setting program or a clock program of an operating system, or may be an application program developed by a third party developer. In particular implementations, applications in the application layer include, but are not limited to, the examples above.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software, and at least comprises at least one of an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power supply driver.
Fig. 3C is a schematic diagram of an icon control interface display of an application in the display device 200 according to one or more embodiments of the present disclosure, where the application layer includes at least one icon control that an application may display in a display, such as a live tv application icon control, a video on demand application icon control, a media center application icon control, an application center icon control, a game application icon control, and so on, as shown in fig. 3C. Live television applications can provide live television through different signal sources. Video on demand applications may provide video from different storage sources. Unlike live television applications, video-on-demand provides video displays from some storage sources. The media center application may provide various applications for playing multimedia content. An application center may be provided to store various applications.
In some embodiments, the display device is a terminal device having a display function, such as a television, a mobile phone, a computer, a learning machine, and the like. In the display device:
An output interface (display 260, and/or audio output interface 270) configured to output user interaction information;
A communicator 220 for communicating with a server;
a controller 250 configured to detect access to an external device, set a channel of the display device as a high definition multimedia interface HDMI channel to which the external device is accessed;
Receiving a key instruction aiming at a first key sent by control equipment of the display equipment, and controlling a display of the display equipment to pop up a target page, wherein the target page comprises prompt information, and the prompt information is used for indicating a user to select target equipment for processing the key instruction from the external equipment and the display equipment;
and responding to the operation of selecting the target equipment, and controlling the display to display a corresponding processing result after the target equipment processes the key instruction.
In some embodiments, the target device is a display device;
the controller 250 is specifically configured to:
And responding to the operation of selecting the target equipment, and controlling the display to display a first processing result corresponding to the display equipment after processing the key instruction.
In some embodiments, the target device is an external device;
the controller 250 is specifically configured to:
transmitting the key instruction to the external device in response to an operation of selecting the target device;
And controlling the display to display a second processing result corresponding to the external equipment after processing the key instruction.
In some embodiments, the controller 250 is specifically configured to:
and detecting that the external equipment is accessed, determining that the external equipment is in a starting state, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment in response to the triggering operation of a user on a second key.
In some embodiments, the controller 250 is further configured to:
detecting access to the external equipment, determining that the external equipment is switched from a power-off state to a power-on state, and acquiring an HDMI channel accessed by the external equipment;
And receiving a channel jump instruction sent by the external equipment, and setting the channel of the display equipment as an HDMI channel accessed by the external equipment according to the channel jump instruction.
In some embodiments, the target device is an external device;
the controller 250 is specifically configured to:
and in response to the operation of selecting the target device, invoking an HDMI control service of the display device and sending the key instruction to the external device.
In some embodiments, the controller 250 is further configured to:
and detecting that the external equipment is accessed, determining an HDMI channel accessed by the external equipment through a television input architecture TIF provided by an operating system of the display equipment, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment.
In summary, by executing the above key control method on the display device, firstly, the controller of the display device detects that the external device is connected, the channel of the display device is set as the HDMI channel to which the external device is connected, then the controller receives the key instruction for the first key sent by the control device of the display device, controls the display of the display device to pop up the target page, the target page includes the prompt information for indicating the user to select the target device for processing the key instruction from the external device and the display device, and finally, the controller responds to the operation of selecting the target device to control the display to display the corresponding processing result after the target device processes the key instruction.
Fig. 4A is a system frame diagram for performing key control according to one or more embodiments of the present disclosure, and as shown in fig. 4A, the system may include a channel setting module 401, a control module 402, and a display module 403. The system detects that external equipment is accessed, firstly, a channel setting module 401 sets a channel of the display equipment as an HDMI channel accessed by the external equipment, then, after receiving a key instruction for a first key sent by control equipment of the display equipment, a control module 402 controls a display of the display equipment to pop up a target page, the target page comprises prompt information, the prompt information is used for indicating a user to select target equipment for processing the key instruction from the external equipment and the display equipment, and finally, the display module 403 responds to the operation for selecting the target equipment and controls the display to display a corresponding processing result after the target equipment processes the key instruction.
Fig. 4B is an architecture diagram for key control in accordance with one or more embodiments of the present disclosure. Based on the above system framework, the implementation of the disclosure in the android system is shown in fig. 4B, where the android system mainly includes an application layer, a framework layer, a system operation library layer and a kernel layer, and implementation logic is mainly embodied in the application layer, where the implementation logic includes a channel setting module, a control module and a display module, and the roles of the modules have been described in detail in the above embodiments, so that repetition is avoided, and no further description is given here.
According to the key control method provided by the embodiment of the disclosure, the controller of the display device detects that the external device is accessed, the channel of the display device is set to be the HDMI channel accessed by the external device, then the controller receives the key instruction aiming at the first key sent by the control device of the display device, the display of the display device is controlled to pop up a target page, the target page comprises prompt information, the prompt information is used for indicating a user to select a target device for processing the key instruction from the external device and the display device, and finally the controller responds to the operation for selecting the target device, controls the display to display a corresponding processing result after the target device processes the key instruction. In order to describe the present solution in more detail, the following description will be given by way of example with reference to fig. 5A, and it will be understood that the steps involved in fig. 5A may include more steps or fewer steps when actually implemented, and the order between these steps may also be different, so as to enable the key control method provided in the embodiments of the present disclosure, which are not limited.
Fig. 5A is a schematic flow chart of a key control method according to an embodiment of the present disclosure, and fig. 5B is a schematic diagram of a key control method according to an embodiment of the present disclosure. The embodiment is applicable to a case where when the display device receives a key instruction sent by the control device, the key instruction is processed. As shown in fig. 5A, the key control method specifically includes the following steps:
S510, detecting that the external device is accessed, and setting the channel of the display device as the HDMI channel accessed by the external device.
The external device is mainly a device which can be connected with the display device so as to achieve the purposes of surfing the internet, watching network television programs or playing digital video discs and the like. In general, the external device may be a set top box, a DVD, a network box of various brands, and the like, and the embodiment of the present disclosure is not limited to the specific type of the external device. HDMI is a fully digital video and audio transmission interface that can transmit uncompressed audio and video signals. HDMI can be used for set top boxes, DVD players, personal computers, televisions, game consoles, combination expansion machines, digital audio and television sets, and other devices.
Specifically, after the external device is connected to the display device, the controller of the display device can detect that the display device is currently connected to the external device, and set the channel of the display device as the HDMI channel to which the external device is connected, where the picture displayed by the display of the display device is the picture of the external device.
S520, receiving a key instruction aiming at a first key sent by control equipment of the display equipment, controlling a display of the display equipment to pop up a target page, wherein the target page comprises prompt information, and the prompt information is used for indicating a user to select target equipment for processing the key instruction from external equipment and the display equipment.
The control device of the display device may be understood as a remote controller corresponding to the display device or other devices capable of controlling the display device through CEC functions. A target page may be understood as an interactive (Dialog) page with hints. The first key may be understood as a key that can be processed by both the external device and the display device, and is a key included in a control device of the display device, for example, an INFO (Information) key, a PICTURE (image setting) key, or a SOUND (SOUND setting) key, etc., which is not particularly limited in this embodiment.
Specifically, when the user wants to control the display device or the external device, the object can be achieved by operating the control device of the display device. Therefore, when the user presses a first key included in the control device of the display device, the controller of the display device can receive a key instruction for the first key sent by the control device of the display device and control the display of the display device to pop up a target page, the target page comprises prompt information, the prompt information can instruct the user to select a target device for processing the key instruction from the external device and the display device, so that the user can be given sufficient prompt and selection rights, the user can autonomously select whether the key instruction is processed by the display device or forwarded to the external device, the key instruction is processed by the external device, the processing by the external device is avoided, the key failure of the display device is caused, or the external device and the display device are processed simultaneously, and the shielding problem exists.
And S530, responding to the operation of selecting the target equipment, and controlling the display to display a corresponding processing result after the target equipment processes the key instruction.
Specifically, according to the prompt information in the target page, the user can select the target device for processing the key instruction from the external device and the display device in a mode of operating the control device or voice control, after the user selects the target device, the corresponding key instruction is processed by the target device, and then the controller of the display device responds to the operation of the target device selected by the user, so that the display can be controlled to display the corresponding processing result after the target device processes the key instruction.
Exemplary, fig. 5C is a schematic diagram of a target page provided in an embodiment of the disclosure. As shown in FIG. 5C, the external device A is connected with the display device, and the prompt information in the target page is that the external device A and the display device both process the key instruction and select the target device for processing the key instruction. Two options, namely an external device A and a display device, are arranged below the prompt message. The target page can prompt a user, so that the user can conveniently select target equipment for processing the key instruction from the external equipment and the display equipment, and the problem that the key instruction is processed by the external equipment in the prior art, which possibly causes the failure of the key of the display equipment, or the shielding problem occurs when the display equipment and the external equipment jointly process the key instruction is avoided.
In some embodiments, the detecting that the external device is accessed, and setting the channel of the display device as the high-definition multimedia interface HDMI channel accessed by the external device may specifically include:
and detecting that the external equipment is accessed, determining that the external equipment is in a starting state, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment in response to the triggering operation of a user on a second key.
The second key may be an INPUT key.
Specifically, the controller of the display device detects that the external device is accessed, determines that the external device is in a starting state, and a user calls out a second key by triggering the second key in the control device, and correspondingly, the controller of the display device responds to the triggering operation of the user on the second key, and can directly select an HDMI channel accessed by the external device to enter, namely, the channel of the display device is set as the HDMI channel accessed by the external device.
In this embodiment, the channel of the display device is set to be the HDMI channel accessed by the external device by the above method, which is simple and convenient and is beneficial to the smooth proceeding of the subsequent process.
In some embodiments, the detecting that the external device is accessed, setting the channel of the display device as the high-definition multimedia interface HDMI channel accessed by the external device may further specifically include:
detecting access to the external equipment, determining that the external equipment is switched from a power-off state to a power-on state, and acquiring an HDMI channel accessed by the external equipment;
And receiving a channel jump instruction sent by the external equipment, and setting the channel of the display equipment as an HDMI channel accessed by the external equipment according to the channel jump instruction.
Specifically, if the external device is in a power-off state, after the external device is connected to the display device, a user starts the external device, and accordingly, after detecting that the external device is connected to the display device, the controller of the display device determines that the external device is switched from the power-off state to the power-on state, the controller can acquire an HDMI channel connected to the external device. Meanwhile, after the external equipment is in a starting-up state, the physical address reported by the extended display identification data (Extended Display Identification Data, EDID) is read, and the HDMI channel accessed by the external equipment can also be obtained. The external device sends a channel jump instruction to the display device, and then the controller of the display device can receive the channel jump instruction sent by the external device, and set the channel of the display device as an HDMI channel to which the external device is connected according to the channel jump instruction.
In this embodiment, by receiving the channel jump instruction sent by the external device, and according to the channel jump instruction, the channel of the display device can be set as the HDMI channel to which the external device is connected, which is another channel setting mode, so that the channel setting method can be expanded, various conditions can be covered, and the subsequent process can be smoothly performed.
In some embodiments, the setting the channel of the display device as the high-definition multimedia interface HDMI channel accessed by the external device may further specifically include:
and detecting that the external equipment is accessed, determining an HDMI channel accessed by the external equipment through a television input architecture TIF provided by an operating system of the display equipment, and setting the channel of the display equipment as the HDMI channel accessed by the external equipment.
The television input architecture (TV Input Framework, TIF) is a standard set of application programming interfaces (Application Program Interface, API) provided by the Android (Android) system for television (Tv) manufacturers, and the TIF is mainly used for creating a TvInput module to control a television with an Android system, and provides management of system signal sources, and the corresponding system service is TvInputManagerService (television input management service). HDMITvInputService (high definition multimedia interface television input management service) is a signal control service provided by a television manufacturer and used for controlling an HDMI channel, and can provide identification registration, creation, control, destruction and the like of the HDMI channel, and the signal control service starts to operate after the system of the television is started. The operating system of the display device may be an Android system.
Accordingly, after the external device accesses the display device, the display device defaults to automatically turn on a CEC Control function, and if the CEC function is not turned on, CEC Control may be set to on and TV auto power on in Settings. And the external device is connected with the display device through the HDMI line. When the TV auto power on is set to on, the HDMI is connected to a signal source (an external device such as a DVD) and both the signal source and the display device are off, and when the signal source is on, the display device is automatically turned on and switched to the HDMI channel.
Therefore, when the controller of the display device detects that the external device is accessed, the HDMI channel to which the external device is accessed can be determined through the TIF provided by the operating system of the display device, and the channel of the display device is directly set as the HDMI channel to which the external device is accessed.
In this example, the channel setting method is used for setting the channel of the display device, so that the method is efficient and quick and is beneficial to the smooth proceeding of the subsequent process.
In some embodiments, the physical channels of the display device in the TIF may include a Tuner (Tv channel, i.e., a channel connected to a signal line of the display device), an HDMI channel, and a Composite channel (AV channel, i.e., a channel connected to a yellow-white-red line), and each channel corresponds to a unique character string inputId (input identifier) as a unique identifier of the channel. The HDMI channel is special, after an external device (such as a DVD, a box, etc.) is inserted into the HDMI port, the external device may be added into the channel list (i.e., the Name of the external device, CEC Name) as a sub-channel, and after the external device is inserted into the HDMI port, the Android system receives a notification of the underlying hardware, the external device may be automatically added into the channel list, and at the same time, the sub-channel may disappear after the external device is pulled out, so as to avoid the continuous display.
Fig. 6A is a flow chart of another key control method according to an embodiment of the disclosure, and fig. 6B is a schematic diagram of another key control method according to an embodiment of the disclosure. This embodiment is optimized based on the above embodiment. Optionally, the embodiment may be suitable for explaining a process of controlling the display to display a processing result corresponding to the target device after the target device processes the key instruction when the target device is the display device and the external device respectively. As shown in fig. 6A, the key control method specifically includes the following steps:
s610, detecting that the external device is accessed, and setting the channel of the display device as the HDMI channel accessed by the external device.
S620, receiving a key instruction aiming at the first key sent by the control equipment of the display equipment, controlling the display of the display equipment to pop up a target page, wherein the target page comprises prompt information, and the prompt information is used for indicating a user to select target equipment for processing the key instruction from the external equipment and the display equipment.
S630, it is determined whether the target device is a display device.
If yes, execution is S640, otherwise, execution is S650-S660.
Specifically, according to the prompt information in the target page, the user may select the target device for processing the key instruction from the external device and the display device by operating the control device or by voice control, etc., and after the user selects the target device, the controller of the display device needs to determine whether the target device is the display device.
S640, responding to the operation of selecting the target equipment, and controlling the display to display a first processing result corresponding to the display equipment after processing the key instruction.
Specifically, if the target device is a display device, the key instruction is processed by the display device, and accordingly, the controller of the display device directly controls the display to display a first processing result corresponding to the display device after the key instruction is processed in response to the operation of selecting the target device.
For example, if the first key is an INFO key, the display device responds to the key command after receiving the key command for the INFO key, and controls the display to display the channel information of the HDMI channel of the display device.
Exemplary, fig. 6C is a schematic page diagram of a first processing result provided by an embodiment of the present disclosure. As shown in FIG. 6C, the external device A is connected with the display device, and the display of the display device displays XX information as a first processing result corresponding to the display device after the display device processes the key instruction when the target device is the display device.
S650, in response to the operation of selecting the target device, a key instruction is transmitted to the external device.
Specifically, if the target device is an external device, the key instruction is processed by the external device, and accordingly, the controller of the display device transmits the key instruction to the external device in response to the operation of selecting the target device, so that the external device can process the key instruction after receiving the key instruction.
S660, controlling the display to display a second processing result corresponding to the external device after processing the key instruction.
After the external equipment receives the key instruction, the key instruction is processed, and correspondingly, the controller of the display equipment controls the display of the display equipment to display a second processing result corresponding to the key instruction processed by the external equipment.
For example, if the first key is an INFO key, the display device receives a key command for the INFO key, and then sends the key command to the external device, and after the external device responds to the key command, the display device controls the display to display information of the external device.
Exemplary, fig. 6D is a schematic page diagram of a second processing result provided by an embodiment of the present disclosure. As shown in FIG. 6D, the external device A is connected with the display device, and the display of the display device displays a second processing result XX page corresponding to the external device after the external device processes the key instruction when the target device is the external device A.
In this embodiment, a controller of a display device first detects that an external device is connected, sets a channel of the display device as an HDMI channel to which the external device is connected, then receives a key instruction for a first key sent by a control device of the display device, controls a display of the display device to pop up a target page, where the target page includes prompt information, the prompt information is used to instruct a user to select a target device for processing the key instruction from the external device and the display device, then determines whether the target device is the display device, if the target device is the display device, then responds to an operation for selecting the target device, controls the display to display a first processing result corresponding to the display device after processing the key instruction, if the target device is the external device, then responds to an operation for selecting the target device, sends the key instruction to the external device, controls the display to display a second processing result corresponding to the external device after processing the key instruction.
In some embodiments, the target device is an external device, and the sending the key instruction to the external device in response to the operation of selecting the target device may specifically include:
and in response to the operation of selecting the target device, invoking an HDMI control service of the display device and sending the key instruction to the external device.
Specifically, after HDMITvInputService service is started, the underlying hardware device may report the physical channel information through onHardwareAdded or onHdmiDeviceAdded. HDMIControlService (HDMI control service) is a service of the Android system, and is responsible for CEC related functions, and is also started along with the start of the display device. After the external device accesses the display device, HDMITvInputService receives the HDMI channel information reported by onHdmiDeviceAdded. If the external device supports the CEC function, HDMIControlService is obtained through HDMITVCLINET, and at this time, the key command received by the display device may be sent to the external device through HDMIControlService. Therefore, when the target device is an external device, the controller of the display device responds to the operation of selecting the target device, and the controller can send a key instruction to the external device by calling the HDMI control service (HDMIControlService) of the display device, so that the external device can process the key instruction after receiving the key instruction.
In the embodiment, the key instruction is sent to the external equipment through the method, so that the method is simple, efficient and quick, and is favorable for the smooth proceeding of the follow-up process.
In summary, by executing the above key control method on the display device, firstly, the controller of the display device detects that the external device is connected, the channel of the display device is set as the HDMI channel to which the external device is connected, then the controller receives the key instruction for the first key sent by the control device of the display device, controls the display of the display device to pop up the target page, the target page includes the prompt information for indicating the user to select the target device for processing the key instruction from the external device and the display device, and finally, the controller responds to the operation of selecting the target device to control the display to display the corresponding processing result after the target device processes the key instruction.
The embodiments of the present disclosure provide a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process executed by the above-mentioned key control method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
The present disclosure provides a computer program product comprising instructions which, when executed on a computer, cause the computer to implement the key control method described above.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. The above discussion in some examples is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.