WO2018018684A1 - 面板按键操作的响应方法及装置 - Google Patents

面板按键操作的响应方法及装置 Download PDF

Info

Publication number
WO2018018684A1
WO2018018684A1 PCT/CN2016/096065 CN2016096065W WO2018018684A1 WO 2018018684 A1 WO2018018684 A1 WO 2018018684A1 CN 2016096065 W CN2016096065 W CN 2016096065W WO 2018018684 A1 WO2018018684 A1 WO 2018018684A1
Authority
WO
WIPO (PCT)
Prior art keywords
button
panel
channel
event
key
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.)
Ceased
Application number
PCT/CN2016/096065
Other languages
English (en)
French (fr)
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Publication of WO2018018684A1 publication Critical patent/WO2018018684A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

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/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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration

Definitions

  • the present invention relates to the field of television control, and in particular, to a method and apparatus for responding to operation of a panel button.
  • the operation of the TV mainly depends on the remote control.
  • the panel buttons of the smart TV take up the mission of the remote controller. Since the panel buttons do not have the original functions of andriod, the implementation of the functions often depends on the customization of the TV manufacturer. Therefore, to realize the functions of the remote controller,
  • the support of the new button is added in the button processing flow of the panel button to realize the control of the TV, but the existing panel button processing scheme is: sending a button event to the system layer through a button channel, and then sending a button to the application from the system layer. The event, when the control panel is pressed multiple times in succession, after the previous key event is processed, the key channel can respond to the next key event, resulting in a longer time spent responding to each key event.
  • the main object of the present invention is to provide a method and device for responding to the operation of a panel button, which aims to solve the technical problem that the time taken to respond to each button event is long when the panel button is pressed repeatedly.
  • the present invention provides a method for responding to operation of a panel button, which is applied to a television set, the television set includes two virtual button channels, and the response method of the panel button operation includes:
  • the panel button event When receiving the panel button event, determining whether the first button channel is performing a button operation, wherein, when the panel button event is received, the command corresponding to the panel button event is sent to the first button channel, if the preset is When the time length arrives, the response information of the first button channel is not received, and it is determined that the first button channel is performing a button operation;
  • the button character type is a button identifier character
  • the preset virtual interface is displayed according to the received panel button event
  • the execution results corresponding to the respective button channels are sequentially displayed, wherein when the button operations are performed on the respective button channels, the current execution order is updated.
  • the present invention provides a method for responding to operation of a panel button, which is applied to a television set, the television set includes two virtual button channels, and the response method of the panel button operation includes:
  • the execution results corresponding to the respective button channels are sequentially displayed, wherein when the button operations are performed on the respective button channels, the current execution order is updated.
  • the present invention further provides a response device for a panel key operation, which is applied to a television set, the television set includes two virtual button channels, and the response device of the panel button operation includes:
  • a determining module configured to determine whether the first button channel is performing a button operation when receiving a panel button event
  • the display module is configured to sequentially display execution results corresponding to the respective key channels according to the execution order of the respective key channels, wherein the current execution order is updated when the key operations are performed on the respective key channels.
  • the method and device for responding to the operation of the panel button first determines whether the first button channel is performing a button operation when receiving a panel button event, and if the first button channel is performing a button operation, calling the second button
  • the channel performs the button operation corresponding to the button event of the panel, and finally displays the execution result corresponding to each button channel in turn according to the execution order of each button channel, so that when the first button channel is busy, the second button channel is directly executed.
  • Key operation instead of pressing the panel button multiple times, after only one button event is processed by the first button channel, and then responding to the next button event, the present invention responds to the panel button event in parallel through two channels, thereby shortening the response. The time it takes for the panel buttons to increase the efficiency of the panel button response.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for responding to operation of a panel button according to the present invention
  • FIG. 2 is a schematic flow chart of a preferred embodiment of determining whether a first button channel is performing a button operation according to the present invention
  • FIG. 3 is a schematic flow chart of a first embodiment of a button operation corresponding to the operation of the panel button event by using a second button channel;
  • FIG. 4 is a schematic diagram of a preferred embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a second embodiment of a button operation corresponding to the panel key event being performed by the second button channel;
  • FIG. 6 is a schematic flow chart of a second embodiment of a method for responding to operation of a panel button according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of a response device for a panel button operation according to the present invention.
  • FIG. 8 is a schematic diagram of a refinement function module of the judging module in FIG. 7;
  • FIG. 9 is a schematic diagram of a refinement function module of the calling module in FIG. 7.
  • the main solution of the embodiment of the present invention is: determining whether the first button channel is performing a button operation when receiving a panel button event; and if the first button channel is performing a button operation, calling the second button channel to perform the The key operation corresponding to the panel key event; in accordance with the execution order of each key channel, the execution result corresponding to each key channel is sequentially displayed. It is guaranteed that when the panel button is pressed repeatedly for a plurality of times, the time for responding to the button operation of the panel is short and the response efficiency is high.
  • the original panel button events are basically through a button channel (such as jni, Java Native) during quick test. Interface calls the window) to call, can not handle the quick operation of the panel keys in time, is prone to serious event blocking, increases the time of the panel key event response, and thus affects the user experience.
  • a button channel such as jni, Java Native
  • the present invention provides a method for responding to operation of a panel button, which is applied to a television set, which includes two virtual button channels.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for responding to operation of a panel button according to the present invention.
  • the response method of the panel button operation includes:
  • Step S10 when receiving a panel button event, determining whether the first button channel is performing a button operation
  • the step of setting a dual channel response panel button event is specifically performed, specifically: adding support for the panel button in the android operating system, and modifying the driver of the panel button to make the terminal
  • the panel buttons support dual channel response.
  • the terminal preferably includes a television set with an Android operating system built therein.
  • the step S10 includes:
  • Step S11 when receiving a panel button event, sending a command corresponding to the panel button event to the first button channel;
  • Step S12 If the response information of the first button channel is not received when the preset duration arrives, it is determined that the first button channel is performing a button operation.
  • the first button channel when receiving the panel button event, first acquiring the command corresponding to the panel button event, and then sending the command to the first button channel, starting from the time point when the command is sent, and when the timing reaches the preset duration, if the If the first button channel does not return a response message that the execution is successful, it is determined that the button event is being executed by the first button channel.
  • the preset duration is a value set by the system and can be obtained after multiple tests. It is worth noting that the preset duration is less than the time of the panel button event responded by the first button channel, so as to ensure The first button channel also performs the current panel button event by invoking the second button channel in response to other panel button events, thereby improving the efficiency of the panel button event response.
  • the response information returned by the first button channel is received within a preset time period, it is considered that the first button channel does not currently perform a button operation, that is, the first button channel is idle at this time. status.
  • the current state of the first button channel can be quickly known, thereby quickly determining whether to call the second button channel for the response of the panel button event.
  • Step S20 if the first button channel is performing a button operation, calling the second button channel to perform a button operation corresponding to the panel button event;
  • the first button channel is preferably jni (Java Native Interface)
  • the window is called
  • the second button channel is preferably a serial command parallel channel
  • the calls of the first button channel and the second button channel are called in a preset user space.
  • the voltage value is first obtained in the panel button, and then the obtained voltage value is sent to the user space, and in the user space, the first button channel or the second button can be selected to be called.
  • the channel is responsive to the panel button event. Since the first button channel is performing a button operation, the second button channel is invoked in the user space to perform a button operation corresponding to the panel button event.
  • the panel buttons are different, the final displayed function interface is different.
  • the panel buttons include a volume adjustment button (volume +, volume -), a channel adjustment button (channel +, channel -), and a menu button, etc., therefore, the second button is called.
  • the manner in which the channel performs the key operation corresponding to the panel key event includes a plurality of manners.
  • the implementation manner of the step S20 includes:
  • Step S20 includes:
  • Step S21 determining a button character type corresponding to the panel button event
  • the button character type includes two types: a button identifier character and a button identifier string.
  • Step S22 when the button character type is a button identifier character, displaying a preset virtual interface according to the received panel button event;
  • Step S23 in the virtual interface, converting the button identification character into a key code
  • Step S24 calling the second button channel to activate a function interface corresponding to the button code.
  • the system layer starts up to initialize the system service, and then starts the monitoring service. If there is a panel button event, the panel key event is sent to the application layer for processing.
  • the application layer performs registration broadcast according to the panel key event, and then determines the key character type corresponding to the panel key event, and then initializes the page according to the voltage value.
  • the key character type is the key identification character
  • the corresponding virtual interface is displayed, and In the virtual interface, the button identification character is converted into a key code, and the key code is represented by a keycode.
  • the converted key code is one, and finally Sending the key code to the system for processing, that is, sending to the user space for calling the second button channel to start the function interface corresponding to the button code, for example, the panel button pressed by the user is the volume + button, then,
  • the function interface that calls the second button channel display is the interface with increased volume.
  • the initialization and subsequent processing flow can refer to FIG. 4.
  • calling the second button channel to start the function interface corresponding to the button code is actually: calling the button code to the system in a parallel manner by the serial port command
  • the library (a kind of dynamic link library in programming) is processed by the system layer to start the function interface corresponding to the key code, and it takes a certain time to execute.
  • Step S20 includes:
  • Step S25 when the button character type is a button identifier string, displaying the virtual interface according to the received panel button event;
  • Step S26 in the virtual interface, converting the button identification string into each key code
  • Step S27 when receiving the confirmation command of the key code, calling the second key channel to start the function interface corresponding to the determined key code.
  • the button character type is a button identifier string
  • the button identifier string is converted into each button code.
  • the television calls The second button channel activates a function interface associated with the menu button.
  • various function buttons such as a mode adjustment button, a sleep button, a volume adjustment button, and the like, are displayed, and if a confirmation command of the button code is received, the call is invoked.
  • the second button channel starts a function interface corresponding to the determined button code, that is, if the user selects the volume adjustment button, the volume adjustment interface is finally activated.
  • the jni channel is equivalent to adding a corresponding button interface in the system layer, and the corresponding interface is declared in the application layer, and the system performs the actual operation processing scheme through the application call; and the serial port command: equivalent to running through the runtime (runtime)
  • the interface directly sends a serial port command to write the corresponding virtual node to the hardware.
  • step S30 the execution results corresponding to the respective key channels are sequentially displayed according to the execution order of the respective key channels, wherein the current execution order is updated when the key operations are performed on the respective key channels.
  • the execution result corresponding to each button channel is sequentially displayed according to the execution order of each button channel, and the implementation is performed.
  • the execution result corresponding to each button channel is actually a function interface obtained by displaying each button channel.
  • each button channel Since each button channel performs the button operation, the current execution order of each button channel is updated. Therefore, according to the current latest execution order of each button channel, the function interface obtained by each button channel is sequentially displayed, which is equivalent to the function interface obtained by the panel button. If there is a sequence, the execution will be displayed according to the execution order of the current channel. The result of the last return must be displayed first, and the next result will be displayed to avoid the disorder of the key sequence.
  • each button channel returns the execution result at the same time
  • the execution result corresponding to each button channel can also be displayed at the same time, without first determining the execution order of the channel, and then displaying according to the execution order, thereby reducing the time of the process and improving the time.
  • the efficiency of the panel button operation response is not limited to:
  • the coexistence processing mode of the jni channel and the serial port command line is used to effectively accelerate the execution of the panel key operation.
  • the panel key command is sent to The serial port command is executed.
  • This dual-channel execution scheme effectively solves the problem of panel button blocking, realizing the response of the panel button quick operation in time, improving the panel button execution speed and greatly improving the user experience.
  • the response method of the panel button operation when receiving the panel button event, first determining whether the first button channel is performing a button operation, and if the first button channel is performing a button operation, calling the second button channel Performing the button operation corresponding to the panel button event, and finally displaying the execution result corresponding to each button channel in turn according to the execution order of each button channel, thereby realizing that the button is directly executed by the second button channel when the first button channel is busy
  • the operation instead of pressing the panel button several times in succession, can only respond to the next button event after the first button channel is processed, and the present invention shortens the response panel by responding to the panel button event in parallel through two channels. The time taken by the buttons increases the efficiency of the panel button response.
  • the response method of the panel key operation also includes:
  • Step S40 If the first button channel does not perform a button operation, the first button channel is invoked to perform a button operation corresponding to the panel button event.
  • the response priority of the first button channel is higher than that of the second button channel, and therefore, when the button operation is not performed on the first button channel, that is, the first button channel is idle.
  • the first button channel directly calling the first button channel to perform a button operation corresponding to the panel button event, and calling the first button channel to perform a button operation corresponding to the panel button event, and similarly determining the panel first.
  • Key type corresponding to the key event, and perform corresponding operations, and finally call the first key channel to activate the corresponding function interface corresponding to the key code the specific manner is consistent with the mentioned in the second key channel, here is not Let me repeat.
  • the first button channel when the button operation is not performed on the first button channel, the first button channel is directly invoked to perform a button operation corresponding to the panel button event, and the panel button is implemented by responding to a channel with a high priority.
  • the response of the event which increases the flexibility of the panel button operation response.
  • the present invention further provides a response device for panel key operation, applied to a television set, the television set including two virtual key channels.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of a response device for a panel key operation according to the present invention.
  • the response device of the panel button operation preferably includes a television set with an Android operating system built therein.
  • the functional block diagram shown in FIG. 7 is merely an exemplary diagram of a preferred embodiment, and the function of the response device of the panel button operation shown in FIG. 7 by those skilled in the art.
  • the module can be easily supplemented by a new function module; the name of each function module is a custom name, and is only used to assist in understanding various program function blocks of the response device of the panel key operation, and is not used to limit the technical solution of the present invention.
  • the core of the technical solution of the invention is the function to be achieved by the functional modules of the respective defined names.
  • the response device of the panel button operation includes:
  • the determining module 10 is configured to determine, when the panel button event is received, whether the first button channel is performing a button operation
  • the response device of the panel button further includes a setting module, where the setting module is configured to set a dual channel response panel button event, specifically: adding support for the panel button in the android operating system, by modifying the panel
  • the driver of the button is such that the panel button of the responsive device of the panel button supports dual channel response.
  • the determining module 10 includes:
  • the sending unit 11 is configured to send, when the panel button event is received, a command corresponding to the panel button event to the first button channel;
  • the first determining unit 12 is configured to determine that the first button channel is performing a button operation if the response information of the first button channel is not received when the preset time period arrives.
  • the sending unit 11 sends the command to the first button channel, starting from the time point when the command is sent, when the timing reaches the preset duration, if It is found that the first button channel does not return the response information for successful execution, and the first determining unit 12 determines that the button event is being executed by the first button channel.
  • the preset duration is a value set by the system and can be obtained after multiple tests.
  • the preset duration is less than the time of the panel button event responded by the first button channel, so as to ensure The first button channel also performs the current panel button event by invoking the second button channel in response to other panel button events, thereby improving the efficiency of the panel button event response.
  • the response information returned by the first button channel is received within a preset time period, it is considered that the first button channel does not currently perform a button operation, that is, the first button channel is idle at this time. status.
  • the current state of the first button channel can be quickly known, thereby quickly determining whether to call the second button channel for the response of the panel button event.
  • the calling module 20 is configured to: when the first button channel is performing a button operation, invoke a second button channel to perform a button operation corresponding to the panel button event;
  • the first button channel is preferably jni (Java Native Interface)
  • the window is called
  • the second button channel is preferably a serial command parallel channel
  • the calls of the first button channel and the second button channel are called in a preset user space.
  • the voltage value is first obtained in the panel button, and then the obtained voltage value is sent to the user space, and in the user space, the first button channel or the second button can be selected to be called.
  • the channel is responsive to the panel button event. Since the first button channel is performing a button operation, the calling module 20 calls the second button channel in the user space to execute the panel button event. Key operation.
  • the panel buttons are different, the final displayed function interface is different.
  • the panel buttons include a volume adjustment button (volume +, volume -), a channel adjustment button (channel +, channel -), and a menu button, etc., therefore, the second button is called.
  • the manner in which the channel performs the key operation corresponding to the panel key event includes a plurality of manners. Specifically, the calling module 20 invokes the second key channel to perform the button operation corresponding to the panel key event.
  • Method 1 Referring to FIG. 9, the calling module 20 includes:
  • a second determining unit 21 configured to determine a button character type corresponding to the panel button event
  • the display unit 22 is configured to display a preset virtual interface according to the received panel key event when the button character type is a button identifier character;
  • the converting unit 23 is configured to convert the button identification character into a key code in the virtual interface
  • the calling unit 24 is configured to invoke the second button channel to activate a function interface corresponding to the button code.
  • the second determining unit 21 Before the second determining unit 21 determines the button character type corresponding to the panel button event, it needs to initialize according to the received panel button event, and the system layer first starts to initialize the system service, and then starts the monitoring service, if there is a panel button event Send panel button events to the application layer for processing.
  • the application layer performs registration broadcast according to the panel key event, and then the second determining unit 21 determines the key character type corresponding to the panel key event, and then performs page initialization according to the voltage value.
  • the key character type is the key identification character
  • the display unit 22 The corresponding virtual interface is displayed, and the conversion unit 23 converts the key identification character into a key code in the virtual interface, and the key code is represented by a keycode.
  • the converted key code is one, and finally the key code is sent to the system for processing, that is, sent to the user space, the calling unit 24 performs a call of the second key channel to activate the function interface corresponding to the key code, for example, At this time, the panel button pressed by the user is the volume + button, then the function interface for calling the second button channel display is the interface for increasing the volume.
  • the initialization and subsequent processing flow can refer to FIG. 4.
  • calling the second button channel to start the function interface corresponding to the button code is actually: calling the button code to the system in a parallel manner by the serial port command
  • the library (a kind of dynamic link library in programming) is processed by the system layer to start the function interface corresponding to the key code, and it takes a certain time to execute.
  • the second display unit 22 is further configured to: when the button character type is a button identifier string, display the virtual interface according to the received panel button event;
  • the converting unit 23 is further configured to convert the key identifier string into each key code in the virtual interface
  • the calling unit 24 is further configured to: when receiving the confirmation command of the key code, invoke the second key channel to activate a function interface corresponding to the determined key code.
  • the converting unit 23 converts the button identifier string into each button code. At this time, it is equivalent to a menu for the user to press the panel button.
  • the calling unit 24 invokes a function interface associated with the second button channel activation menu button, in which the display unit 22 displays various function buttons, such as a mode adjustment button, a sleep button, a volume adjustment button, and the like. If the confirmation command of the key code is received, the calling unit 24 calls the second key channel to activate the function interface corresponding to the determined key code, that is, if the user selects the volume adjustment button, the final startup is Volume adjustment interface.
  • the jni channel is equivalent to adding a corresponding button interface in the system layer, and the corresponding interface is declared in the application layer, and the system performs the actual operation processing scheme through the application call; and the serial port command: equivalent to running through the runtime (runtime)
  • the interface directly sends a serial port command to write the corresponding virtual node to the hardware.
  • the display module 30 is configured to sequentially display execution results corresponding to the respective key channels according to the execution order of the respective key channels, wherein the current execution order is updated when the key operations are performed on the respective key channels.
  • the display module 30 After the button operation is performed on the first button channel, and the button operation corresponding to the panel button event is performed on the second button channel, the display module 30 sequentially displays the execution result corresponding to each button channel according to the execution order of each button channel. In this embodiment, since the function interface is finally activated, the execution result corresponding to each button channel is actually a function interface obtained by displaying each button channel.
  • each button channel Since each button channel performs the button operation, the current execution order of each button channel is updated. Therefore, according to the current latest execution order of each button channel, the function interface obtained by each button channel is sequentially displayed, which is equivalent to the function interface obtained by the panel button. If there is a sequence, the execution will be displayed according to the execution order of the current channel. The result of the last return must be displayed first, and the next result will be displayed to avoid the disorder of the key sequence.
  • the display module 30 can simultaneously display the execution results corresponding to the respective button channels without first determining the execution order of the channels, and then displaying according to the execution order, thereby reducing the time of the process. , improve the efficiency of the panel button operation response.
  • the coexistence processing mode of the jni channel and the serial port command line is used to effectively accelerate the execution of the panel key operation.
  • the panel key command is sent to the serial port.
  • the command is executed in a manner that uses the dual-channel execution scheme to effectively solve the problem of panel button blocking, realizing the prompt response of the panel keys in a timely manner, improving the execution speed of the panel keys, and greatly improving the user experience.
  • the response device of the panel button operation proposed in this embodiment first determines whether the first button channel is performing a button operation when receiving the panel button event, and if the first button channel is performing a button operation, calling the second button channel Performing the button operation corresponding to the panel button event, and finally displaying the execution result corresponding to each button channel in turn according to the execution order of each button channel, thereby realizing that the button is directly executed by the second button channel when the first button channel is busy
  • the operation instead of pressing the panel button several times in succession, can only respond to the next button event after the first button channel is processed, and the present invention shortens the response panel by responding to the panel button event in parallel through two channels. The time taken by the buttons increases the efficiency of the panel button response.
  • a second embodiment of the response device for the panel button operation of the present invention is proposed based on the first embodiment.
  • this embodiment
  • the calling module 20 is further configured to: if the first button channel does not perform a button operation, invoke the first button channel to perform a button operation corresponding to the panel button event.
  • the response priority of the first button channel is higher than that of the second button channel, and therefore, when the button operation is not performed on the first button channel, that is, the first button channel is idle.
  • the calling module 20 directly invokes the first button channel to perform a button operation corresponding to the panel button event, and invokes the first button channel to execute a button operation corresponding to the panel button event, and the same is also the same.
  • the first button channel when the button operation is not performed on the first button channel, the first button channel is directly invoked to perform a button operation corresponding to the panel button event, and the panel button is implemented by responding to a channel with a high priority.
  • the response of the event which increases the flexibility of the panel button operation response.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

一种面板按键操作的响应方法和装置,所述方法包括以下步骤:在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作(S10);若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作(S20);按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果(S30),其中,在各个按键通道执行按键操作时,更新当前的执行次序。通过两个按键通道并行响应面板按键事件,缩短了面板按键事件的响应时间,提高了响应效率。

Description

面板按键操作的响应方法及装置
技术领域
本发明涉及电视机控制领域,尤其涉及一种面板按键操作的响应方法及装置。
背景技术
目前市场上很多智能电视都是使用Android操作系统,而电视的操作主要依赖于遥控器。当遥控器不可用时,智能电视的面板按键担负起了遥控器的使命,由于面板按键并没有andriod原生的功能,其功能的实现往往依赖电视厂商的定制,因此,要实现遥控器的功能,可以在面板按键的按键处理流程中加入新按键的支持,以实现电视的控制,但是现有的面板按键处理方案是:通过一个按键通道向系统层发送按键事件,然后再由系统层向应用发送按键事件,在连续多次按压控制面板时,前一个按键事件处理完之后,按键通道才能响应下一个按键事件,导致响应各个按键事件所花费的时间较长。
发明内容
本发明的主要目的在于提出一种面板按键操作的响应方法及装置,旨在解决连续多次按压面板按键时,响应各个按键事件所花费的时间较长的技术问题。
为实现上述目的,本发明提供的一种面板按键操作的响应方法,应用于电视机,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:
在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作,其中,在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中,若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作;
若所述第一按键通道正在执行按键操作,则确定所述面板按键事件对应的按键字符类型;
在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;
在所述虚拟界面中,将所述按键标识字符转换为按键码;
调用所述第二按键通道以启动所述按键码对应的功能界面;
按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
此外,为实现上述目的,本发明提供的一种面板按键操作的响应方法,应用于电视机,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:
在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;
若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;
按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
此外,为实现上述目的,本发明还提出一种面板按键操作的响应装置,应用于电视机,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应装置包括:
判断模块,用于在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;
调用模块,用于若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;
显示模块,用于按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
本发明提出的面板按键操作的响应方法及装置,在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作,最终按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,实现了在第一按键通道繁忙的情况下,直接由第二按键通道执行按键操作,而不是在连续多次按压面板按键时,只能由第一按键通道处理完一个按键事件之后,再响应下一个按键事件,本发明通过两个通道并行响应面板按键事件,缩短了响应面板按键所花费的时间,提高了面板按键响应的效率。
附图说明
图1为本发明面板按键操作的响应方法第一实施例的流程示意图;
图2为本发明判断第一按键通道是否正在执行按键操作较佳实施例的流程示意图;
图3为本发明调用第二按键通道执行所述面板按键事件对应的按键操作第一实施例的流程示意图;
图4为本发明较佳实施场景示意图;
图5为本发明调用第二按键通道执行所述面板按键事件对应的按键操作第二实施例的流程示意图;
图6为本发明面板按键操作的响应方法第二实施例的流程示意图;
图7为本发明面板按键操作的响应装置第一实施例的功能模块示意图;
图8为图7中判断模块的细化功能模块示意图;
图9为图7中调用模块的细化功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例的主要解决方案是:在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果。保证了连续多次按压面板按键时,响应面板按键操作的时间花费较短,响应效率高。
原来的面板按键事件在快速测试时,基本上都是通过一种按键通道(如jni,Java Native Interface 调用窗口)进行调用,不能及时处理面板按键的快速操作,容易出现事件阻塞严重,增加了面板按键事件响应的时间,从而影响用户体验。
基于上述问题,本发明提供一种面板按键操作的响应方法,应用于电视机,所述电视机包括两个虚拟的按键通道。
参照图1,图1为本发明面板按键操作的响应方法第一实施例的流程示意图。
在本实施例中,所述面板按键操作的响应方法包括:
步骤S10,在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;
在本实施例中,所述步骤S10之前,包括设置双通道响应面板按键事件的步骤,具体地:在android操作系统中添加对面板按键的支持,通过修改面板按键的驱动程序,以使得终端的面板按键支持双通道响应。而所述终端优选包括内置有android操作系统的电视机。
在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,具体地,参照图2,所述步骤S10包括:
步骤S11,在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;
步骤S12,若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。
即在接收到面板按键事件时,先获取面板按键事件对应的命令,然后将命令发送到第一按键通道中,从发送命令的时间点开始计时,在计时达到预设时长时,如果发现所述第一按键通道并未返回执行成功的响应信息,则判定为第一按键通道正在执行按键事件。其中,所述预设时长是系统设定的,可以经过多次测试之后得出的值,值得注意的是,所述预设时长小于第一按键通道响应的面板按键事件的时间,这样才能保证第一按键通道还在响应其它面板按键事件时,通过调用第二按键通道以执行当前的面板按键事件,从而提高面板按键事件响应的效率。
当然,若在预设时长内接收到所述第一按键通道返回的响应信息,则认为所述第一按键通道当前并没有执行按键操作,也就说,此时所述第一按键通道处于空闲状态。通过这个比较过程,可以快速得知第一按键通道当前的状态,从而快速决定是否要调用第二按键通道以进行面板按键事件的响应。
步骤S20,若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;
本实施例中,所述第一按键通道优选为jni(Java Native Interface 调用窗口)通道,所述第二按键通道优选为串口命令并行通道,而所述第一按键通道和第二按键通道的调用在预设的用户空间中进行调用。
也就是说,在接收到面板按键事件时,先在面板按键中获取电压值,然后将获取到的电压值发送到用户空间中,在用户空间中,可以选择调用第一按键通道或第二按键通道以响应所述面板按键事件,由于此时所述第一按键通道正在执行按键操作,因此,在所述用户空间中调用第二按键通道,即可执行所述面板按键事件对应的按键操作。
由于面板按键不同,最终显示的功能界面不同,其中,面板按键包括音量调节键(音量+、音量-),频道调节键(频道+、频道-)以及菜单键等等,因此,调用第二按键通道执行所述面板按键事件对应的按键操作的方式包括多种,具体地,所述步骤S20的实施方式包括:
1)方式一、参照图3,所述步骤S20包括:
步骤S21,确定所述面板按键事件对应的按键字符类型;
其中,所述按键字符类型包括按键标识字符以及按键标识字符串两种类型。
步骤S22,在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;
步骤S23,在所述虚拟界面中,将所述按键标识字符转换为按键码;
步骤S24,调用所述第二按键通道以启动所述按键码对应的功能界面。
在所述步骤S21之前,需要先根据接收到的面板按键事件进行初始化,系统层先开机进行初始化系统服务,然后启动监听服务,若有面板按键事件,发送面板按键事件到应用层进行处理。
应用层根据面板按键事件,进行注册广播,然后确定所述面板按键事件对应的按键字符类型,再根据电压值进行页面初始化,在按键字符类型为按键标识字符时,显示相应的虚拟界面,并在所述虚拟界面中,将所述按键标识字符转换为按键码,所述按键码用keycode表示,本实施方式中,由于按键字符类型为按键标识字符,因此,转化后的按键码为一个,最终将按键码发送到系统进行处理,即发送到用户空间中进行第二按键通道的调用,以启动所述按键码对应的功能界面,例如,此时用户按压的面板按键是音量+键,那么,调用第二按键通道显示的功能界面就是音量增大的界面。本实施例中,初始化以及后续的整个处理流程可参照图4。本实施例中,调用所述第二按键通道以启动所述按键码对应的功能界面实际上是,以串口命令并行的方式将述按键码调用到系统的so 库(编程中的一种动态链接库)交由系统层处理,以启动所述按键码对应的功能界面,此时需要一定的时间才能执行完成。
2)方式二、参照图5,所述步骤S21之后,所述步骤S20包括:
步骤S25,在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;
步骤S26,在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;
步骤S27,在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。
在本实施方式中,按键字符类型为按键标识字符串时,在虚拟界面中,将所述按键标识字符串转换为各个按键码,此时,相当于用户按压面板按键的菜单键,电视机调用第二按键通道启动菜单键关联的功能界面,在该功能界面中,会显示各个功能按钮,如模式调节按钮、休眠按钮和音量调节按钮等等,若接收到按键码的确认指令时,则调用所述第二按键通道以启动确定的按键码对应的功能界面,也就是说,若用户选择音量调节按钮,最终启动的是音量调节界面。
本实施例中,jni通道:相当于在系统层加入对应的按键接口,在应用层申明对应的接口,通过应用调用,系统执行实际操作的处理方案;而串口命令:相当于通过Runtime(运行时间)接口直接发送串口命令向硬件写入对应的虚拟节点。
步骤S30,按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
在所述第一按键通道执行按键操作,以及所述第二按键通道执行所述面板按键事件对应的按键操作之后,按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,本实施例中,由于最终是启动的是功能界面,因此,显示各个按键通道对应的执行结果实际上也是显示各个按键通道得到的功能界面。
由于各个按键通道在执行按键操作时,都会更新各个按键通道当前的执行次序,因此,按照各个按键通道当前最新的执行次序,依次显示各个按键通道得到的功能界面,相当于面板按键得到的功能界面有先后次序的,执行的时候根据当前通道的执行次序相应显示,必须上一次返回的结果先显示,才会显示下一次的结果,以避免按键次序错乱。
进一步地,若是各个按键通道同时返回执行结果,也可以同时显示各个按键通道对应的执行结果,而不用先去确定通道的执行次序,再根据执行次序进行显示,减少了这个过程的时间,提高了面板按键操作响应的效率。
应当理解的是,在本实施例中,通过jni通道与串口命令行调用共存的处理方式有效的加速了面板按键操作的执行,当jni通道当前正在执行按键操作时,则将面板按键命令发送到串口命令的方式进行执行,采用这种双通道执行方案,有效的解决面板按键阻塞的情况,实现面板按键快速操作的响应及时,提高了面板按键执行速度,大大提升用户体验。
本实施例提出的面板按键操作的响应方法,在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作,最终按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,实现了在第一按键通道繁忙的情况下,直接由第二按键通道执行按键操作,而不是在连续多次按压面板按键时,只能由第一按键通道处理完一个按键事件之后,再响应下一个按键事件,本发明通过两个通道并行响应面板按键事件,缩短了响应面板按键所花费的时间,提高了面板按键响应的效率。
进一步地,为了提高面板按键响应的灵活性,基于第一实施例提出本发明面板按键操作的响应方法的第二实施例,在本实施例中,参照图6,所述步骤S10之后,所述面板按键操作的响应方法还包括:
步骤S40,若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
应当理解,在本实施例中,所述第一按键通道的响应优先级高于第二按键通道,因此,在所述第一按键通道未执行按键操作时,即所述第一按键通道处于空闲状态时,直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,调用所述第一按键通道执行所述面板按键事件对应的按键操作的过程,同理也是先确定所述面板按键事件对应的按键字符类型,并执行相应的操作,最终调用所述第一按键通道以启动相应的按键码对应的功能界面,具体的方式与第二按键通道中提到的一致,此处不再赘述。
在本实施例中,在所述第一按键通道未执行按键操作时,直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,实现了通过响应优先级高的通道进行面板按键事件的响应,从而提高了面板按键操作响应的灵活性。
本发明进一步提供一种面板按键操作的响应装置,应用于电视机,所述电视机包括两个虚拟的按键通道。
参照图7,图7为本发明面板按键操作的响应装置第一实施例的功能模块示意图。
所述面板按键操作的响应装置优选包括内置有android操作系统的电视机。
需要强调的是,对本领域的技术人员来说,图7所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图7所示的面板按键操作的响应装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该面板按键操作的响应装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
在本实施例中,所述面板按键操作的响应装置包括:
判断模块10,用于在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作
在本实施例中,所述面板按键的响应装置还包括设置模块,所述设置模块用于设置双通道响应面板按键事件,具体地:在android操作系统中添加对面板按键的支持,通过修改面板按键的驱动程序,以使得面板按键的响应装置的面板按键支持双通道响应。
在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,具体地,参照图8,所述判断模块10包括:
发送单元11,用于在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;
第一确定单元12,用于若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。
即在接收到面板按键事件时,先获取面板按键事件对应的命令,然后发送单元11将命令发送到第一按键通道中,从发送命令的时间点开始计时,在计时达到预设时长时,如果发现所述第一按键通道并未返回执行成功的响应信息,则第一确定单元12判定为第一按键通道正在执行按键事件。其中,所述预设时长是系统设定的,可以经过多次测试之后得出的值,值得注意的是,所述预设时长小于第一按键通道响应的面板按键事件的时间,这样才能保证第一按键通道还在响应其它面板按键事件时,通过调用第二按键通道以执行当前的面板按键事件,从而提高面板按键事件响应的效率。
当然,若在预设时长内接收到所述第一按键通道返回的响应信息,则认为所述第一按键通道当前并没有执行按键操作,也就说,此时所述第一按键通道处于空闲状态。通过这个比较过程,可以快速得知第一按键通道当前的状态,从而快速决定是否要调用第二按键通道以进行面板按键事件的响应。
调用模块20,用于若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;
本实施例中,所述第一按键通道优选为jni(Java Native Interface 调用窗口)通道,所述第二按键通道优选为串口命令并行通道,而所述第一按键通道和第二按键通道的调用具有在预设的用户空间中进行调用。
也就是说,在接收到面板按键事件时,先在面板按键中获取电压值,然后将获取到的电压值发送到用户空间中,在用户空间中,可以选择调用第一按键通道或第二按键通道以响应所述面板按键事件,由于此时所述第一按键通道正在执行按键操作,因此,调用模块20在所述用户空间中调用第二按键通道,即可执行所述面板按键事件对应的按键操作。
由于面板按键不同,最终显示的功能界面不同,其中,面板按键包括音量调节键(音量+、音量-),频道调节键(频道+、频道-)以及菜单键等等,因此,调用第二按键通道执行所述面板按键事件对应的按键操作的方式包括多种,具体地,所述调用模块20调用第二按键通道执行所述面板按键事件对应的按键操作的实施方式包括:
1)方式一、参照图9,所述调用模块20包括:
第二确定单元21,用于确定所述面板按键事件对应的按键字符类型;
显示单元22,用于在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;
转换单元23,用于在所述虚拟界面中,将所述按键标识字符转换为按键码;
调用单元24,用于调用所述第二按键通道以启动所述按键码对应的功能界面。
在第二确定单元21确定所述面板按键事件对应的按键字符类型之前,需要先根据接收到的面板按键事件进行初始化,系统层先开机进行初始化系统服务,然后启动监听服务,若有面板按键事件,发送面板按键事件到应用层进行处理。
应用层根据面板按键事件,进行注册广播,然后第二确定单元21确定所述面板按键事件对应的按键字符类型,再根据电压值进行页面初始化,在按键字符类型为按键标识字符时,显示单元22显示相应的虚拟界面,并且转换单元23在所述虚拟界面中,将所述按键标识字符转换为按键码,所述按键码用keycode表示,本实施方式中,由于按键字符类型为按键标识字符,因此,转化后的按键码为一个,最终将按键码发送到系统进行处理,即发送到用户空间中由调用单元24进行第二按键通道的调用,以启动所述按键码对应的功能界面,例如,此时用户按压的面板按键是音量+键,那么,调用第二按键通道显示的功能界面就是音量增大的界面。本实施例中,初始化以及后续的整个处理流程可参照图4。本实施例中,调用所述第二按键通道以启动所述按键码对应的功能界面实际上是,以串口命令并行的方式将述按键码调用到系统的so 库(编程中的一种动态链接库)交由系统层处理,以启动所述按键码对应的功能界面,此时需要一定的时间才能执行完成。
2)方式二、所述显示单元22,还用于在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;
所述转换单元23,还用于在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;
所述调用单元24,还用于在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。
在本实施方式中,按键字符类型为按键标识字符串时,在虚拟界面中,所述转换单元23将所述按键标识字符串转换为各个按键码,此时,相当于用户按压面板按键的菜单键,所述调用单元24调用第二按键通道启动菜单键关联的功能界面,在该功能界面中,所述显示单元22会显示各个功能按钮,如模式调节按钮、休眠按钮和音量调节按钮等等,若接收到按键码的确认指令时,则所述调用单元24调用所述第二按键通道以启动确定的按键码对应的功能界面,也就是说,若用户选择音量调节按钮,最终启动的是音量调节界面。
本实施例中,jni通道:相当于在系统层加入对应的按键接口,在应用层申明对应的接口,通过应用调用,系统执行实际操作的处理方案;而串口命令:相当于通过Runtime(运行时间)接口直接发送串口命令向硬件写入对应的虚拟节点。
显示模块30,用于按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
在所述第一按键通道执行按键操作,以及所述第二按键通道执行所述面板按键事件对应的按键操作之后,显示模块30按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,本实施例中,由于最终是启动的是功能界面,因此,显示各个按键通道对应的执行结果实际上也是显示各个按键通道得到的功能界面。
由于各个按键通道在执行按键操作时,都会更新各个按键通道当前的执行次序,因此,按照各个按键通道当前最新的执行次序,依次显示各个按键通道得到的功能界面,相当于面板按键得到的功能界面有先后次序的,执行的时候根据当前通道的执行次序相应显示,必须上一次返回的结果先显示,才会显示下一次的结果,以避免按键次序错乱。
进一步地,若是各个按键通道同时返回执行结果,显示模块30也可以同时显示各个按键通道对应的执行结果,而不用先去确定通道的执行次序,再根据执行次序进行显示,减少了这个过程的时间,提高了面板按键操作响应的效率。
应当理解的是,在本实施例中,通过jni通道与串口命令行调用共存的处理方式有效的加速面板按键操作的执行,当jni通道当前正在执行按键操作时,则将面板按键命令发送到串口命令的方式进行执行,采用这种双通道执行方案,有效的解决面板按键阻塞的情况,实现面板按键快速操作的响应及时,提高了面板按键执行速度,大大提升用户体验。
本实施例提出的面板按键操作的响应装置,在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作,最终按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,实现了在第一按键通道繁忙的情况下,直接由第二按键通道执行按键操作,而不是在连续多次按压面板按键时,只能由第一按键通道处理完一个按键事件之后,再响应下一个按键事件,本发明通过两个通道并行响应面板按键事件,缩短了响应面板按键所花费的时间,提高了面板按键响应的效率。
进一步地,为了提高面板按键响应的准确性,基于第一实施例提出本发明面板按键操作的响应装置的第二实施例,在本实施例中,
所述调用模块20,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
应当理解,在本实施例中,所述第一按键通道的响应优先级高于第二按键通道,因此,在所述第一按键通道未执行按键操作时,即所述第一按键通道处于空闲状态时,所述调用模块20直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,调用所述第一按键通道执行所述面板按键事件对应的按键操作的过程,同理也是先确定所述面板按键事件对应的按键字符类型,并执行相应的操作,最终所述调用模块20调用所述第一按键通道以启动相应的按键码对应的功能界面,具体的方式与第二按键通道中提到的一致,此处不再赘述。
在本实施例中,在所述第一按键通道未执行按键操作时,直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,实现了通过响应优先级高的通道进行面板按键事件的响应,从而提高了面板按键操作响应的灵活性。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种面板按键操作的响应方法,应用于电视机,其特征在于,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:
    在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作,其中,在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中,若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作;
    若所述第一按键通道正在执行按键操作,则确定所述面板按键事件对应的按键字符类型;
    在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;
    在所述虚拟界面中,将所述按键标识字符转换为按键码;
    调用所述第二按键通道以启动所述按键码对应的功能界面;
    按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
  2. 如权利要求1所述的面板按键操作的响应方法,其特征在于,所述确定所述面板按键事件对应的按键字符类型的步骤之后,所述面板按键操作的响应方法还包括:
    在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;
    在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;
    在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面;
    按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
  3. 如权利要求1所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  4. 如权利要求2所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  5. 一种面板按键操作的响应方法,应用于电视机,其特征在于,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:
    在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;
    若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;
    按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
  6. 如权利要求5所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤包括:
    在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;
    若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。
  7. 如权利要求5所述的面板按键操作的响应方法,其特征在于,所述若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作的步骤包括:
    确定所述面板按键事件对应的按键字符类型;
    在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;
    在所述虚拟界面中,将所述按键标识字符转换为按键码;
    调用所述第二按键通道以启动所述按键码对应的功能界面。
  8. 如权利要求7所述的面板按键操作的响应方法,其特征在于,所述确定所述面板按键事件对应的按键字符类型的步骤之后,所述面板按键操作的响应方法还包括:
    在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;
    在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;
    在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。
  9. 如权利要求5所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  10. 如权利要求6所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  11. 如权利要求7所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  12. 如权利要求8所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  13. 一种面板按键操作的响应装置,应用于电视机,其特征在于,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应装置包括:
    判断模块,用于在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;
    调用模块,用于若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;
    显示模块,用于按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。
  14. 如权利要求13所述的面板按键操作的响应装置,其特征在于,所述判断模块包括:
    发送单元,用于在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;
    第一确定单元,用于若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。
  15. 如权利要求13所述的面板按键操作的响应装置,其特征在于,所述调用模块包括:
    第二确定单元,用于确定所述面板按键事件对应的按键字符类型;
    显示单元,用于在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;
    转换单元,用于在所述虚拟界面中,将所述按键标识字符转换为按键码;
    调用单元,用于调用所述第二按键通道以启动所述按键码对应的功能界面。
  16. 如权利要求15所述的面板按键操作的响应装置,其特征在于,所述显示单元,还用于在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;
    所述转换单元,还用于在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;
    所述调用单元,还用于在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。
  17. 如权利要求13所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  18. 如权利要求14所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  19. 如权利要求15所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
  20. 如权利要求16所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。
PCT/CN2016/096065 2016-07-26 2016-08-19 面板按键操作的响应方法及装置 Ceased WO2018018684A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610599069.XA CN106303742B (zh) 2016-07-26 2016-07-26 面板按键操作的响应方法及装置
CN201610599069.X 2016-07-26

Publications (1)

Publication Number Publication Date
WO2018018684A1 true WO2018018684A1 (zh) 2018-02-01

Family

ID=57652537

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096065 Ceased WO2018018684A1 (zh) 2016-07-26 2016-08-19 面板按键操作的响应方法及装置

Country Status (2)

Country Link
CN (1) CN106303742B (zh)
WO (1) WO2018018684A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094238B (zh) * 2017-04-13 2020-02-28 青岛海信电器股份有限公司 智能电视的按键分配处理方法及智能电视
CN108153600B (zh) * 2017-12-26 2021-09-28 深圳Tcl数字技术有限公司 一种面板按键响应方法、电视设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645023A (zh) * 2009-09-14 2010-02-10 青岛海信宽带多媒体技术有限公司 嵌入式系统延迟响应解决方法及装置
CN101867377A (zh) * 2010-06-17 2010-10-20 青岛海信宽带多媒体技术有限公司 面板按键信号处理方法及处理电路
US20110234429A1 (en) * 2010-03-24 2011-09-29 Whirlpool Corporation Capacitive touch multi-function keys
CN102981875A (zh) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 一种基于android的x86端按键适配方法及系统
CN103870004A (zh) * 2012-12-18 2014-06-18 上海黄浦船用仪器有限公司 一种双通道键盘数据录取系统及其应用

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150017973A (ko) * 2013-08-08 2015-02-23 삼성전자주식회사 디스플레이 장치 및 디스플레이 장치의 채널 설정방법
CN103581725A (zh) * 2013-09-27 2014-02-12 深圳市同洲电子股份有限公司 一种移动终端对智能电视终端的操控方法及相关终端
CN103716689B (zh) * 2013-12-26 2017-10-27 Tcl集团股份有限公司 电视换台的检测方法和智能电视
CN104811813B (zh) * 2015-04-14 2018-07-03 聚好看科技股份有限公司 一种智能电视与用户交互的方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645023A (zh) * 2009-09-14 2010-02-10 青岛海信宽带多媒体技术有限公司 嵌入式系统延迟响应解决方法及装置
US20110234429A1 (en) * 2010-03-24 2011-09-29 Whirlpool Corporation Capacitive touch multi-function keys
CN101867377A (zh) * 2010-06-17 2010-10-20 青岛海信宽带多媒体技术有限公司 面板按键信号处理方法及处理电路
CN102981875A (zh) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 一种基于android的x86端按键适配方法及系统
CN103870004A (zh) * 2012-12-18 2014-06-18 上海黄浦船用仪器有限公司 一种双通道键盘数据录取系统及其应用

Also Published As

Publication number Publication date
CN106303742A (zh) 2017-01-04
CN106303742B (zh) 2019-11-05

Similar Documents

Publication Publication Date Title
WO2019119771A1 (zh) 语音交互方法、装置及计算机可读存储介质
WO2019051902A1 (zh) 终端控制方法、空调器及计算机可读存储介质
WO2017063366A1 (zh) 应用启动方法和系统
WO2017041538A1 (zh) 终端用户界面的受控显示方法及装置
WO2017190450A1 (zh) 进程关闭方法及装置
WO2016058258A1 (zh) 终端远程控制方法和系统
WO2017028613A1 (zh) 基于遥控器app控制终端的方法及装置
WO2018018681A1 (zh) 视频节目预览方法及装置
WO2018053963A1 (zh) 智能电视的系统升级方法及装置
WO2018126888A1 (zh) 电视功能的快捷启动设置方法及装置
WO2017084303A1 (zh) 电视桌面系统的切换方法及切换控制系统
WO2017211009A1 (zh) 智能电视的启动方法及系统
WO2018161603A1 (zh) 移动终端图像绘制的控制方法、装置、介质及电子设备
WO2019051897A1 (zh) 终端运行参数调整方法、装置及计算机可读存储介质
WO2016206223A1 (zh) 截图的方法及系统
WO2017201943A1 (zh) 显示屏驱动方法及装置
WO2017000729A1 (zh) 音视频播放控制方法和装置
WO2017036208A1 (zh) 显示界面中的信息提取方法及系统
WO2018006581A1 (zh) 智能电视的播放方法及装置
WO2019061042A1 (zh) 曝光补偿的方法、装置及计算机可读存储介质
WO2017084305A1 (zh) 终端控制方法及系统
WO2016101252A1 (zh) 智能电视的频道信息显示方法及装置
WO2019019249A1 (zh) 执行网络请求的方法、装置、设备及计算机可读存储介质
WO2019085301A1 (zh) 座机未接来电的反馈方法、装置、设备及可读存储介质
WO2019051901A1 (zh) 终端控制方法、装置及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16910263

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.06.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16910263

Country of ref document: EP

Kind code of ref document: A1