CN114222172A - Method and device for acquiring HDMI-CEC function of electronic equipment - Google Patents

Method and device for acquiring HDMI-CEC function of electronic equipment Download PDF

Info

Publication number
CN114222172A
CN114222172A CN202111524260.5A CN202111524260A CN114222172A CN 114222172 A CN114222172 A CN 114222172A CN 202111524260 A CN202111524260 A CN 202111524260A CN 114222172 A CN114222172 A CN 114222172A
Authority
CN
China
Prior art keywords
cec
key
main menu
hdmi
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111524260.5A
Other languages
Chinese (zh)
Inventor
郭平平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd, Haining Eswin IC Design Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202111524260.5A priority Critical patent/CN114222172A/en
Publication of CN114222172A publication Critical patent/CN114222172A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4221Dedicated function buttons, e.g. for the control of an EPG, subtitles, aspect ratio, picture-in-picture or teletext
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42212Specific keyboard arrangements
    • H04N21/42213Specific keyboard arrangements for facilitating data entry
    • H04N21/42216Specific keyboard arrangements for facilitating data entry for quick navigation, e.g. through an EPG
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for acquiring an HDMI-CEC function of electronic equipment, and relates to the technical field of CEC communication. The main technical scheme of the invention is as follows: when a user operates and touches a CEC shortcut key on the remote controller, receiving a signal correspondingly triggered by touching the CEC shortcut key; and calling and displaying a CEC main menu from a client application of the electronic equipment by processing the signal, wherein the CEC main menu is used for configuring the HDMI-CEC function of the electronic equipment. The invention is mainly applied to acquiring the HDMI-CEC function by triggering and opening the CEC menu of the electronic equipment by one key.

Description

Method and device for acquiring HDMI-CEC function of electronic equipment
Technical Field
The invention relates to the technical field of CEC communication, in particular to a method and a device for acquiring HDMI-CEC functions of electronic equipment.
Background
Both smart and non-smart tvs are now widely used with multiple High Definition Multimedia Interface (HDMI) ports for connecting various devices, such as set-top boxes, game consoles, media players, home theaters, and the like. All of these devices have their own remote controls for turning the system on/off and browsing through content and menus. This means that for multiple devices connected to the television, the user has multiple remote controls available for selection.
Now, a single bus protocol of Consumer Electronics Control (CEC) can be adopted, and a CEC signal is used to enable a user to Control various other devices connected to an HDMI interface by using a remote controller of one electronic device. This is the HDMI-CEC function of the electronic device, and in short, in the case of connecting a plurality of HDMI devices externally, it is possible to operate various functional applications by using one remote controller instead of a plurality of remote controllers.
For example, the user may control other devices connected to the HDMI interface of the tv set, such as a set-top box, a game console, a media player, a home theater, etc., by using the tv set's remote control.
At present, if the HDMI-CEC function of the electronic device is to be turned on, a user needs to manually operate a setting page of the electronic device by using a remote controller, and then operate and search in the setting page to call out a CEC main menu, and then related CEC function configuration can be performed in the CEC main menu.
However, such operation steps are complicated, and for an electronic device that is unknown to have the HDMI-CEC function, it is determined that the electronic device does not have the HDMI-CEC function only when the user cannot find the main CEC menu, which not only delays the use time of the device, but also needs to continue to search for the next device and repeatedly perform the search operation once, and even is difficult to avoid searching for multiple devices, which wastes time and labor costs, and finally greatly reduces the operation experience of the user for obtaining the HDMI-CEC function.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for acquiring an HDMI-CEC function of an electronic device, and mainly aims to realize acquiring a main CEC menu of the electronic device by one-key triggering by using a CEC shortcut key set on a remote controller of the electronic device, thereby greatly facilitating subsequent HDMI-CEC function setting in a highly efficient manner, and improving operation experience of a user for acquiring the HDMI-CEC function.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
the application provides, in a first aspect, a method for acquiring an HDMI-CEC function of an electronic device, which is applied to the electronic device, wherein the electronic device is associated with a corresponding remote controller, and a CEC shortcut key is provided on the remote controller, and the method includes:
when a user operates and touches a CEC shortcut key on the remote controller, receiving a signal correspondingly triggered by touching the CEC shortcut key;
and calling and displaying a CEC main menu from a client application of the electronic equipment by processing the signal, wherein the CEC main menu is used for configuring the HDMI-CEC function of the electronic equipment.
In some modified embodiments of the first aspect of the present application, the calling up and displaying a CEC main menu from a client application of the electronic device by processing the signal includes:
capturing message information corresponding to the key event by using a first processor according to the signal;
transmitting the message information corresponding to the key event to the kernel of a second processor;
transmitting the message information to a hardware abstraction layer by using a key event drive in the kernel;
passing the message to a Java native method layer using the hardware abstraction layer;
passing, by the Java native method layer, the message information to a Java application framework layer;
and processing the message in the Java application program framework layer, calling a CEC main menu from the client application and displaying the menu.
In some modified embodiments of the first aspect of the present application, the processing the message at the Java application framework layer, and calling and displaying a CEC main menu from a client application, includes:
analyzing a key value corresponding to the key event from the message information;
determining an application identifier matched with a key value corresponding to the key event by searching a mapping relation between a preset application identifier and the key value;
calling a CEC main menu from the client application according to the application identifier;
and outputting and displaying the CEC main menu.
In some variations of the first aspect of the present application, the capturing, by the first processor, message information corresponding to a key press event according to the signal includes:
capturing message information corresponding to the key event at least comprising key pressing information and key bouncing information according to the signal;
judging whether the key operation corresponding to the key event is abnormal or not according to the key pressing information and the key bouncing information;
if yes, outputting prompt information.
In some variations of the first aspect of the disclosure, the electronic device is in at least one of the following states: a standby state, a sleep state and a normal use state.
The second aspect of the present application provides an apparatus for acquiring HDMI-CEC function of an electronic device, which is applied to an electronic device, wherein the electronic device is associated with a corresponding remote controller, a CEC shortcut key is provided on the remote controller, and the apparatus includes:
the receiving unit is used for receiving a signal correspondingly triggered by touching the CEC shortcut key when a user operates the CEC shortcut key on the remote controller;
and the processing unit is used for calling and displaying a CEC main menu from a client application of the electronic equipment by processing the signal, wherein the CEC main menu is used for configuring the HDMI-CEC function of the electronic equipment.
In some modified embodiments of the second aspect of the present application, the processing unit includes:
the capturing module is used for capturing message information corresponding to the key event by using the first processor according to the signal;
the transmission module is used for transmitting the message information corresponding to the key event to the inner core of the second processor;
the transmission module is further configured to transmit the message information to a hardware abstraction layer by using a key event driver in the kernel;
the transfer module is further configured to transfer the message to a Java native method layer using the hardware abstraction layer;
the transfer module is further used for transferring the message information to a Java application framework layer through the Java native method layer;
and the processing module is used for processing the message in the Java application program framework layer, calling the CEC main menu from the client application and displaying the CEC main menu.
In some variations of the second aspect of the application, the processing module comprises:
the analysis submodule is used for analyzing the key value corresponding to the key event from the message information;
the determining submodule is used for determining the application identifier matched with the key value corresponding to the key event by searching the mapping relation between the preset application identifier and the key value;
the calling-out submodule is used for calling out a CEC main menu from the client application according to the application identifier;
and the output sub-module is used for outputting and displaying the CEC main menu.
In some variations of the second aspect of the application, the capture module comprises:
the acquisition submodule is used for capturing message information corresponding to the key event according to the signal, wherein the message information at least comprises key pressing information and key bouncing information;
the judgment submodule is used for judging whether the key operation corresponding to the key event is abnormal or not according to the key pressing information and the key bounce information;
and the output submodule is used for outputting prompt information when judging that the key operation corresponding to the key event is abnormal.
In some variations of the second aspect of the application, the electronic device is in at least one of the following states: a standby state, a sleep state and a normal use state.
A third aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method for acquiring HDMI-CEC functionality of an electronic device as described above.
A fourth aspect of the present application provides an electronic device, comprising: the device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the acquisition method of the HDMI-CEC function of the electronic device.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a method and a device for acquiring HDMI-CEC functions of electronic equipment. Compared with the prior art, the technical problem that the operation steps of searching the CEC main menu on the electronic equipment are complicated, and the efficiency is low, so that the user experience is reduced is solved. The method and the device realize the acquisition of the CEC main menu of the electronic equipment through one-key triggering, thereby greatly efficiently and conveniently setting the subsequent HDMI-CEC function, and improving the operation experience of acquiring the HDMI-CEC function by a user.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for acquiring HDMI-CEC functions of an electronic device according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating exemplary HDMI-CEC bus communications according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for acquiring HDMI-CEC function of an electronic device according to an embodiment of the present invention;
fig. 4 is a simplified flowchart illustrating signal processing of an Android system electronic device according to an exemplary embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus for acquiring HDMI-CEC function of an electronic device according to an embodiment of the present invention;
fig. 6 is a block diagram of another apparatus for acquiring HDMI-CEC functions of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the present invention provides a method for acquiring an HDMI-CEC function of an electronic device, as shown in fig. 1, the method acquires a CEC main menu of the electronic device by one-key triggering, and for this, the following specific steps are provided in the embodiment of the present invention:
101. when a user operates the CEC shortcut key on the touch remote controller, a signal triggered correspondingly by the touch CEC shortcut key is received.
In the embodiment of the present invention, the electronic device is associated with a remote controller, and in the embodiment of the present invention, a CEC shortcut key needs to be set on the remote controller in advance, and the CEC shortcut key has the following functions: the user can call the CEC main menu on the side of the electronic equipment by operating and touching the shortcut key.
In an actual application scenario, when a user operates a CEC shortcut key on a touch remote controller, a signal is triggered accordingly, and the electronic device side receives the signal triggered by the remote controller.
102. And calling a CEC main menu from a client application of the electronic equipment by processing the signal, and displaying the CEC main menu, wherein the CEC main menu is used for configuring the HDMI-CEC function of the electronic equipment.
In the embodiment of the present invention, for the CEC shortcut key added to the remote controller, the electronic device side may also perform corresponding configuration in advance, for example, have a function of automatically calling out the CEC main menu by recognizing a signal triggered by the remote controller side.
For the embodiment of the present invention, the electronic device is equivalent to a terminal device having a client, for example, an intelligent television having an Android (Android) system, the client is an application program providing an intelligent application service, the provided intelligent application service includes setting an HDMI-CEC function (i.e., controlling other devices connected to an HDMI interface through a remote controller), so that the client provides a CEC main menu to a user for conveniently setting the HDMI-CEC function.
Further, the embodiment of the present invention exemplifies the HDMI-CEC bus communication diagram, as shown in fig. 2, including: the HDMI signal transmitting terminal and the HDMI signal receiving terminal; transition-minimized differential signaling (TMDS), also known as Transition-modulated differential signaling, TMDS channel 0/TMDS channel 1/TMDS channel 2 is used to transmit video and audio information; TMDS Clock Channel (TMDS Clock Channel); a Display Data Channel (DDC) Channel for acquiring extended Display Data enhanced by the HDMI signal receiving end, and acquiring device information or configuring the device information; the CEC bus, a universal control bus, is used for interconnection with HDMI devices.
As shown in fig. 2, the CEC bus is a single shared bus that is directly connected between all HDMI ports on the device and allows all fully powered down devices to flow through, the CEC signal being a separate electrical signal from the other HDMI signals, thus allowing a device to disable its high speed circuitry in sleep mode but to be awakened by CEC. For example, if the electronic device is in a standby state, a sleep state and a normal use state, the CEC main menu can be called from the client application of the electronic device by touching the CEC shortcut key on the remote controller with one key.
Moreover, according to the CEC shortcut key of the remote controller provided by the embodiment of the present invention, it can be determined whether the electronic device associated with the remote controller has the HDMI-CEC function. Furthermore, after the CEC shortcut key on the touch remote controller is operated, whether the HDMI-CEC function of the electronic device is abnormal can be indirectly pre-determined by checking the picture effect displayed by the feedback of the electronic device, that is, whether the CEC main menu can be successfully called.
The embodiment of the invention provides a method for acquiring HDMI-CEC functions of electronic equipment. Compared with the prior art, the technical problem that the operation steps of searching the CEC main menu on the electronic equipment are complicated, and the efficiency is low, so that the user experience is reduced is solved. The embodiment of the invention realizes that the CEC main menu of the electronic equipment is obtained by one-key triggering, thereby greatly efficiently and conveniently setting the subsequent HDMI-CEC function and improving the operation experience of obtaining the HDMI-CEC function by a user.
In order to describe the above embodiment in more detail, another method for acquiring the HDMI-CEC function of the electronic device is further provided in the embodiment of the present invention, as shown in fig. 3, which is a detailed explanation of the above embodiment, and the following specific steps are provided for the embodiment of the present invention:
201. when a user operates the CEC shortcut key on the touch remote controller, a signal triggered correspondingly by the touch CEC shortcut key is received.
In the embodiment of the invention, when a user operates a CEC shortcut key on a touch remote controller, which is equivalent to triggering a key event, an electronic device associated with the remote controller receives a trigger signal. For example, if the remote controller is an infrared remote controller, the electronic equipment receives an infrared modulation pulse signal; in the case of a bluetooth remote control, the electronic device receives a radio signal.
202. And capturing message information corresponding to the key event by using the first processor according to the signal.
In the embodiment of the present invention, the first processor may be a Micro Controller Unit (MCU), and after receiving a signal triggered by a key event, the first processor captures message information corresponding to the key event, where the key event is an event triggered by a user operating a key on the touch remote controller.
In the embodiment of the invention, the message information at least comprises key values, key pressing information and key bouncing information. And judging whether the key operation corresponding to the key event is abnormal or not by identifying the key pressing information and the key bouncing information. For example, if it is recognized that the time of pressing a key is much longer than the time of bouncing the key, it may be predicted that a key is pressed but may not bounce.
Further, as shown in fig. 4, an embodiment of the present invention provides a simple flow chart of signal processing for an Android system electronic device, and the following steps 203 and 207 are explained with reference to fig. 4:
203. and transmitting the message information corresponding to the key event to the kernel of the second processor by using the first processor.
The second processor may be a processor using an ARM architecture, and the ARM architecture is a Reduced Instruction Set (RISC) processor architecture.
For the embodiment of the invention, the electronic device comprises a first processor and a second processor, wherein the first processor is equivalent to a slave processor, and the second processor is equivalent to a master processor in the working process of the electronic device.
For example, when the electronic device is in a normal use state, the second processor is used as a main processor to realize the corresponding control function; but the first processor implements the respective control function (e.g., mainly a low power consumption function) as a slave processor when the electronic device is in a sleep or unused standby state. And when the electronic device further needs to be woken up to enter a normal use state, the first processor receives the trigger signal and transmits the trigger signal to the second processor, for example, the communication between the MCU processor and the ARM core processor is utilized to complete a corresponding wake-up operation.
Further, for example, the first processor captures message information corresponding to the KEY event, and transmits the message information to the second processor, specifically, a KEY code driver module in a Kernel (Kernel) of the second processor reads the message information sent by the first processor, as shown in step (r) in fig. 4. And the step (c), (d) shown in FIG. 4 is a processing flow performed on the second processor side, and the following step 204 and 207 are explained.
204. Message information is passed to the hardware abstraction layer using key event actuation in the second processor core.
Among them, Hardware Abstraction Layer (HAL), interface Layer located between kernel of operating system and hardware circuit, its purpose is to abstract hardware, it hides hardware interface details of specific platform, provides virtual hardware platform for operating system, makes it have hardware independence, can be transplanted on various platforms.
In the embodiment of the present invention, the message information corresponding to the key event received by the second processor core is transmitted to the HAL layer, as shown in step two shown in fig. 4, specifically, the message information may be notified to the HAL layer in a socket cross-process communication manner. As shown in fig. 4, the Key processing module (Key _ code) implements related processing of message information in the HAL layer.
205. The message information is passed to the Java native method layer using the hardware abstraction layer.
For a Java Native method layer (KEYJNI), the layer provides C + + Native function service for implementing an interface for Java to call non-Java code, specifically: the Java native method layer is a communication layer planned in the Android system, and the HAL layer is C + + for code processing, so that the code processing is converted into Java processing by using the Java native method layer, so that the Java native method layer is suitable for the application program of the Android system. This step is shown in fig. 4.
206. The message information is passed to the Java application framework layer through the Java native method layer.
In the embodiment of the invention, a key processing manager (Phone Window manager) module in a framework layer of a Java application program receives message information transmitted by a Java native method layer. This step is shown as step (r) in fig. 4.
207. And processing the message in a Java application program framework layer, calling a CEC main menu from the client application and displaying the menu.
In the embodiment of the present invention, the step is represented as a step (c) shown in fig. 4, and the detailed explanation is as follows:
firstly, a key value corresponding to a key event is analyzed from message information, and an application identifier matched with the key value corresponding to the key event is determined by searching a preset mapping relation between the application identifier and the key value.
Secondly, calling a CEC main menu from the client application according to the matched application identification, and outputting and displaying the CEC main menu.
Wherein, the application identification means: identification of different smart application services provided by an electronic device client application. It is possible to know what the application service is provided according to the application identification, for example, calling up the CEC main menu from the current display screen.
It should be noted that, for different keys arranged on the remote controller, relevant configurations are pre-made on the electronic device associated with the remote controller, and the relevant configurations at least include: and pre-configuring a preset mapping relation between different application identifications and key values on the electronic equipment side. Therefore, according to the situation that different keys are pressed, different pictures are correspondingly shown by the electronic equipment to serve as feedback (namely, certain application service is called out), and then the operation control of the electronic equipment by using the remote controller is realized.
Accordingly, for the CEC shortcut keys added to the remote controller in the embodiment of the present invention, a preset mapping relationship between key values of the CEC shortcut keys and specific application identifiers is preconfigured on the electronic device side, and the specific application identifiers are used for referring to the provided application service for calling out the CEC main menu. Therefore, the method realizes that the CEC main menu is triggered and called out by one key through operating the CEC shortcut key on the remote controller so as to facilitate the subsequent related configuration of the HDMI-CEC functions on the CEC main menu.
Further, as an implementation of the methods shown in fig. 1 and fig. 3, an embodiment of the present invention provides an apparatus for acquiring an HDMI-CEC function of an electronic device. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The apparatus is applied to acquire a main menu of a CEC of an electronic device by one-key triggering to acquire HDMI-CEC functions of the electronic device, and specifically as shown in fig. 5, the apparatus includes:
the receiving unit 31 is configured to receive a signal correspondingly triggered by touching a CEC shortcut key on the remote controller when a user operates the CEC shortcut key;
and the processing unit 32 is configured to call and display a CEC main menu from a client application of the electronic device by processing the signal, where the CEC main menu is used to configure an HDMI-CEC function of the electronic device.
Further, as shown in fig. 6, the processing unit 32 includes:
a capturing module 321, configured to capture, by using a first processor, message information corresponding to a key event according to the signal;
a transfer module 322, configured to transfer the message information corresponding to the key event to a kernel of a second processor;
the transfer module 322 is further configured to transfer the message information to a hardware abstraction layer by using a key event driver in the kernel;
the delivery module 322 is further configured to deliver the message to a Java native method layer using the hardware abstraction layer;
the passing module 322 is further configured to pass the message information to a Java application framework layer through the Java native method layer;
and the processing module 323 is configured to process the message at the Java application framework layer, call out a CEC main menu from the client application, and display the CEC main menu.
Further, as shown in fig. 6, the processing module 323 includes:
the analysis submodule 3231 is configured to analyze a key value corresponding to the key event from the message information;
the determining sub-module 3232 is configured to determine, by searching for a mapping relationship between a preset application identifier and a key value, an application identifier matched with the key value corresponding to the key event;
the calling-out submodule 3233 is configured to call out a CEC main menu from the client application according to the application identifier;
and the output sub-module 3234 is configured to output and display the CEC main menu.
Further, as shown in fig. 6, the capturing module 321 includes:
the obtaining submodule 3211 is configured to capture, according to the signal, message information corresponding to the key event, where the message information at least includes key press information and key pop information;
the determining submodule 3212 is configured to determine whether a key operation corresponding to a key event is abnormal according to the key depression information and the key bounce information;
the output sub-module 3213 is configured to output a prompt message when it is determined that the key operation corresponding to the key event is abnormal.
Further, as shown in fig. 6, the electronic device is in at least one of the following states: a standby state, a sleep state and a normal use state.
In summary, the embodiment of the present invention provides a method and an apparatus for acquiring an HDMI-CEC function of an electronic device, where a CEC shortcut key is preset on a remote controller of the electronic device, and then when a user presses the CEC shortcut key, the electronic device receives a signal corresponding to the key, so as to call a main menu of a CEC. Compared with the prior art, the technical problem that the operation steps of searching the CEC main menu on the electronic equipment are complicated, and the efficiency is low, so that the user experience is reduced is solved. The embodiment of the invention realizes that the CEC main menu of the electronic equipment is obtained by one-key triggering, thereby greatly efficiently and conveniently setting the subsequent HDMI-CEC function and improving the operation experience of obtaining the HDMI-CEC function by a user.
The device for acquiring the HDMI-CEC function of the electronic equipment comprises a processor and a memory, wherein the receiving unit, the processing unit and the like are stored in the memory as program units, and the corresponding functions are realized by executing the program units stored in the memory by the processor.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, the CEC shortcut key arranged on the electronic equipment remote controller is utilized by adjusting the kernel parameters, the CEC main menu of the electronic equipment is obtained by one-key triggering, so that the subsequent HDMI-CEC function setting is greatly and efficiently facilitated, and the operation experience of obtaining the HDMI-CEC function by a user is improved.
An embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for acquiring the HDMI-CEC function of an electronic device as described above is implemented.
An embodiment of the present invention provides an electronic device, including: the device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the acquisition method of the HDMI-CEC function of the electronic device.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent insertion, improvement, etc. made within the spirit and principle of the present application should be included in the scope of claims of the present application.

Claims (10)

1. The method for acquiring the HDMI-CEC function of the electronic equipment is applied to the electronic equipment, the electronic equipment is associated with a corresponding remote controller, and CEC shortcut keys are arranged on the remote controller, and the method comprises the following steps:
when a user operates and touches a CEC shortcut key on the remote controller, receiving a signal correspondingly triggered by touching the CEC shortcut key;
and calling and displaying a CEC main menu from a client application of the electronic equipment by processing the signal, wherein the CEC main menu is used for configuring the HDMI-CEC function of the electronic equipment.
2. The method of claim 1, wherein the calling up and displaying the CEC Main Menu from the client application of the electronic device by processing the signal comprises:
capturing message information corresponding to the key event by using a first processor according to the signal;
transmitting the message information corresponding to the key event to the kernel of a second processor;
transmitting the message information to a hardware abstraction layer by using a key event drive in the kernel;
passing the message to a Java native method layer using the hardware abstraction layer;
passing, by the Java native method layer, the message information to a Java application framework layer;
and processing the message in the Java application program framework layer, calling a CEC main menu from the client application and displaying the menu.
3. The method according to claim 2, wherein the processing the message at the Java application framework layer, calling and displaying a CEC main menu from a client application comprises:
analyzing a key value corresponding to the key event from the message information;
determining an application identifier matched with a key value corresponding to the key event by searching a mapping relation between a preset application identifier and the key value;
calling a CEC main menu from the client application according to the application identifier;
and outputting and displaying the CEC main menu.
4. The method of claim 2, wherein capturing message information corresponding to the key press event with the first processor according to the signal comprises:
capturing message information corresponding to the key event at least comprising key pressing information and key bouncing information according to the signal;
judging whether the key operation corresponding to the key event is abnormal or not according to the key pressing information and the key bouncing information;
if yes, outputting prompt information.
5. The method according to any of claims 1 to 4, characterized in that the electronic device is in at least one of the following states: a standby state, a sleep state and a normal use state.
6. The utility model provides an acquisition device of electronic equipment HDMI-CEC function which characterized in that, is applied to electronic equipment, corresponding remote controller is correlated to electronic equipment, be provided with the CEC shortcut on the remote controller, the device includes:
the receiving unit is used for receiving a signal correspondingly triggered by touching the CEC shortcut key when a user operates the CEC shortcut key on the remote controller;
and the processing unit is used for calling and displaying a CEC main menu from a client application of the electronic equipment by processing the signal, wherein the CEC main menu is used for configuring the HDMI-CEC function of the electronic equipment.
7. The apparatus of claim 6, wherein the processing unit comprises:
the capturing module is used for capturing message information corresponding to the key event by using the first processor according to the signal;
the transmission module is used for transmitting the message information corresponding to the key event to the inner core of the second processor;
the transmission module is further configured to transmit the message information to a hardware abstraction layer by using a key event driver in the kernel;
the transfer module is further configured to transfer the message to a Java native method layer using the hardware abstraction layer;
the transfer module is further used for transferring the message information to a Java application framework layer through the Java native method layer;
and the processing module is used for processing the message in the Java application program framework layer, calling the CEC main menu from the client application and displaying the CEC main menu.
8. The apparatus of claim 7, wherein the processing module comprises:
the analysis submodule is used for analyzing the key value corresponding to the key event from the message information;
the determining submodule is used for determining the application identifier matched with the key value corresponding to the key event by searching the mapping relation between the preset application identifier and the key value;
the calling-out submodule is used for calling out a CEC main menu from the client application according to the application identifier;
and the output sub-module is used for outputting and displaying the CEC main menu.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the method for acquiring HDMI-CEC functionality of an electronic device as claimed in any one of claims 1-5.
10. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of acquiring the HDMI-CEC function of an electronic device as claimed in any one of claims 1-5 when executing the computer program.
CN202111524260.5A 2021-12-14 2021-12-14 Method and device for acquiring HDMI-CEC function of electronic equipment Pending CN114222172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111524260.5A CN114222172A (en) 2021-12-14 2021-12-14 Method and device for acquiring HDMI-CEC function of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111524260.5A CN114222172A (en) 2021-12-14 2021-12-14 Method and device for acquiring HDMI-CEC function of electronic equipment

Publications (1)

Publication Number Publication Date
CN114222172A true CN114222172A (en) 2022-03-22

Family

ID=80702065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111524260.5A Pending CN114222172A (en) 2021-12-14 2021-12-14 Method and device for acquiring HDMI-CEC function of electronic equipment

Country Status (1)

Country Link
CN (1) CN114222172A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094361A (en) * 2007-01-09 2007-12-26 南京Lg新港显示有限公司 Image displaying instrument with HDMI-CEC function and control method thereof
KR100826254B1 (en) * 2006-11-10 2008-04-29 삼성전자주식회사 Image device system and displaying method for hdmi-cec menu thereof
CN102104755A (en) * 2009-12-18 2011-06-22 联咏科技股份有限公司 High-definition multimedia interface (HDMI)-consumer electronics control (CEC) function prompting control method and display device
WO2013090116A1 (en) * 2011-12-14 2013-06-20 Echostar Technologies L.L.C. Apparatus, systems and methods for modifying operating states based on monitored hdmi cec communications
CN103517117A (en) * 2012-12-26 2014-01-15 Tcl集团股份有限公司 Method and system for function expansion based on remote controller key of multimedia electronic equipment
US20140132844A1 (en) * 2012-11-14 2014-05-15 Echostar Technologies L.L.C. Methods and apparatus for dynamic volume punch-through
CN103917927A (en) * 2008-04-18 2014-07-09 Uei开曼有限公司 Using HDMI-CEC to identify a codeset
US20140313420A1 (en) * 2013-04-22 2014-10-23 Samsung Electronics Co., Ltd. Display device, user terminal apparatus and calibration method thereof
WO2016019710A1 (en) * 2014-08-04 2016-02-11 中兴通讯股份有限公司 Method and device for operating set-top box, and set-top box
WO2016045503A1 (en) * 2014-09-25 2016-03-31 阿里巴巴集团控股有限公司 Remote controller key matching and signal processing method and apparatus
CN106485895A (en) * 2015-08-25 2017-03-08 凯锐光电股份有限公司 Meet remote control thereof and the system of HDMI-CEC specification
US20190020543A1 (en) * 2017-07-11 2019-01-17 Roku, Inc. Automatic Determination of Display Device Functionality
CN111200746A (en) * 2019-12-04 2020-05-26 海信视像科技股份有限公司 Method for awakening display equipment in standby state and display equipment
CN113313243A (en) * 2021-06-11 2021-08-27 海宁奕斯伟集成电路设计有限公司 Method, device and equipment for determining neural network accelerator and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100826254B1 (en) * 2006-11-10 2008-04-29 삼성전자주식회사 Image device system and displaying method for hdmi-cec menu thereof
CN101094361A (en) * 2007-01-09 2007-12-26 南京Lg新港显示有限公司 Image displaying instrument with HDMI-CEC function and control method thereof
CN103917927A (en) * 2008-04-18 2014-07-09 Uei开曼有限公司 Using HDMI-CEC to identify a codeset
CN102104755A (en) * 2009-12-18 2011-06-22 联咏科技股份有限公司 High-definition multimedia interface (HDMI)-consumer electronics control (CEC) function prompting control method and display device
WO2013090116A1 (en) * 2011-12-14 2013-06-20 Echostar Technologies L.L.C. Apparatus, systems and methods for modifying operating states based on monitored hdmi cec communications
US20140132844A1 (en) * 2012-11-14 2014-05-15 Echostar Technologies L.L.C. Methods and apparatus for dynamic volume punch-through
CN103517117A (en) * 2012-12-26 2014-01-15 Tcl集团股份有限公司 Method and system for function expansion based on remote controller key of multimedia electronic equipment
US20140313420A1 (en) * 2013-04-22 2014-10-23 Samsung Electronics Co., Ltd. Display device, user terminal apparatus and calibration method thereof
WO2016019710A1 (en) * 2014-08-04 2016-02-11 中兴通讯股份有限公司 Method and device for operating set-top box, and set-top box
WO2016045503A1 (en) * 2014-09-25 2016-03-31 阿里巴巴集团控股有限公司 Remote controller key matching and signal processing method and apparatus
CN106485895A (en) * 2015-08-25 2017-03-08 凯锐光电股份有限公司 Meet remote control thereof and the system of HDMI-CEC specification
US20190020543A1 (en) * 2017-07-11 2019-01-17 Roku, Inc. Automatic Determination of Display Device Functionality
CN111200746A (en) * 2019-12-04 2020-05-26 海信视像科技股份有限公司 Method for awakening display equipment in standby state and display equipment
CN113313243A (en) * 2021-06-11 2021-08-27 海宁奕斯伟集成电路设计有限公司 Method, device and equipment for determining neural network accelerator and storage medium

Similar Documents

Publication Publication Date Title
CN102932695B (en) A kind of remote control thereof, intelligent terminal and intelligent remote control system
EP3329352B1 (en) User terminal apparatus and controlling method thereof
CN111050199B (en) Display device and scheduling method of Bluetooth communication resources of display device
CN111277881A (en) Control method for audio data stream output in display equipment and display equipment
CN110012328B (en) Method and device for interacting with smart television
CN114286165B (en) Display equipment, mobile terminal, and screen-throwing data transmission method and system
CN103079021A (en) Method, system and device for controlling intelligent household electrical appliance through mobile terminal
US20120233552A1 (en) Personalizing the user experience
CN106385621A (en) Intelligent device control method and device
CN109617963B (en) Equipment control method and device and Internet of things system
CN107948567B (en) USB wired screen transmission method and device
CN103281580A (en) Television set remote control method for separating user interface and system thereof
CN107948568B (en) Method and device for realizing wired screen transmission
CN107948566B (en) Method and device for realizing plug-and-play screen transmission
US20110285570A1 (en) Radio communication module, remote controller, and radio system
CN112350981A (en) Method, device and system for switching communication protocol
CN107948565B (en) Method and device for realizing wired screen transmission
CN114339332B (en) Mobile terminal, display device and cross-network screen projection method
US10264312B2 (en) Method for controlling IP-based HDMI device
CN111726661B (en) Program push playing method, display equipment, mobile terminal and system
CN112866771A (en) Display device and method for establishing Bluetooth connection
CN113064645B (en) Startup interface control method and display device
CN107948569B (en) Method and device for realizing wired screen transmission
CN112463088A (en) Method for realizing wireless screen projection and network distribution based on display and touch screen projection display
CN114222172A (en) Method and device for acquiring HDMI-CEC function of electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 263, block B, science and technology innovation center, 128 Shuanglian Road, Haining Economic Development Zone, Haining City, Jiaxing City, Zhejiang Province, 314400

Applicant after: Haining yisiwei IC Design Co.,Ltd.

Applicant after: Beijing yisiwei Computing Technology Co.,Ltd.

Address before: Room 263, block B, science and technology innovation center, 128 Shuanglian Road, Haining Economic Development Zone, Haining City, Jiaxing City, Zhejiang Province, 314400

Applicant before: Haining yisiwei IC Design Co.,Ltd.

Applicant before: Beijing yisiwei Computing Technology Co.,Ltd.