WO2018018684A1 - Method and apparatus for responding to key press on panel - Google Patents

Method and apparatus for responding to key press on panel 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
Application number
PCT/CN2016/096065
Other languages
French (fr)
Chinese (zh)
Inventor
刘远凤
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2018018684A1 publication Critical patent/WO2018018684A1/en

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

A method and apparatus for responding to key press on panel, the method comprising the following steps: judging whether a first key channel is executing a key press when receiving a key press event on a panel (S10); if the first key channel is executing a key press, calling a second key channel to execute a key press corresponding to the key press event on the panel (S20); sequentially displaying an execution result corresponding to each key channel according to the execution order of each key channel (S30), and updating the current execution order while each key channel is performing key press. By means of using two key channels to respond in parallel to a key press event on a panel, response time of the key press event on the panel is shortened and response efficiency is improved.

Description

面板按键操作的响应方法及装置  Method and device for responding panel button operation
技术领域Technical field
本发明涉及电视机控制领域,尤其涉及一种面板按键操作的响应方法及装置。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.
背景技术Background technique
目前市场上很多智能电视都是使用Android操作系统,而电视的操作主要依赖于遥控器。当遥控器不可用时,智能电视的面板按键担负起了遥控器的使命,由于面板按键并没有andriod原生的功能,其功能的实现往往依赖电视厂商的定制,因此,要实现遥控器的功能,可以在面板按键的按键处理流程中加入新按键的支持,以实现电视的控制,但是现有的面板按键处理方案是:通过一个按键通道向系统层发送按键事件,然后再由系统层向应用发送按键事件,在连续多次按压控制面板时,前一个按键事件处理完之后,按键通道才能响应下一个按键事件,导致响应各个按键事件所花费的时间较长。Many smart TVs on the market today use the Android operating system, and the operation of the TV mainly depends on the remote control. When the remote control is not available, 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.
发明内容Summary of the invention
本发明的主要目的在于提出一种面板按键操作的响应方法及装置,旨在解决连续多次按压面板按键时,响应各个按键事件所花费的时间较长的技术问题。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.
为实现上述目的,本发明提供的一种面板按键操作的响应方法,应用于电视机,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:To achieve the above objective, 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:
在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作,其中,在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中,若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作;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;
若所述第一按键通道正在执行按键操作,则确定所述面板按键事件对应的按键字符类型;Determining, by the first button channel, a button character type corresponding to the panel button event;
在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;When the button character type is a button identifier character, the preset virtual interface is displayed according to the received panel button event;
在所述虚拟界面中,将所述按键标识字符转换为按键码;Converting the button identification character into a key code in the virtual interface;
调用所述第二按键通道以启动所述按键码对应的功能界面;Calling the second button channel to activate a function interface corresponding to the button code;
按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。According to the execution order of each button channel, 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.
此外,为实现上述目的,本发明提供的一种面板按键操作的响应方法,应用于电视机,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:In addition, in order to achieve the above object, 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:
在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;When receiving a panel button event, determining whether the first button channel is performing a button operation;
若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;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;
按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。According to the execution order of each button channel, 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.
此外,为实现上述目的,本发明还提出一种面板按键操作的响应装置,应用于电视机,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应装置包括:In addition, in order to achieve the above object, 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;
调用模块,用于若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;Calling a module, 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 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 according to the present invention 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.
附图说明DRAWINGS
图1为本发明面板按键操作的响应方法第一实施例的流程示意图;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;
图2为本发明判断第一按键通道是否正在执行按键操作较佳实施例的流程示意图;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;
图3为本发明调用第二按键通道执行所述面板按键事件对应的按键操作第一实施例的流程示意图;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;
图4为本发明较佳实施场景示意图;4 is a schematic diagram of a preferred embodiment of the present invention;
图5为本发明调用第二按键通道执行所述面板按键事件对应的按键操作第二实施例的流程示意图;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;
图6为本发明面板按键操作的响应方法第二实施例的流程示意图;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;
图7为本发明面板按键操作的响应装置第一实施例的功能模块示意图;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;
图8为图7中判断模块的细化功能模块示意图;8 is a schematic diagram of a refinement function module of the judging module in FIG. 7;
图9为图7中调用模块的细化功能模块示意图。FIG. 9 is a schematic diagram of a refinement function module of the calling module in FIG. 7.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果。保证了连续多次按压面板按键时,响应面板按键操作的时间花费较短,响应效率高。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.
原来的面板按键事件在快速测试时,基本上都是通过一种按键通道(如jni,Java Native Interface 调用窗口)进行调用,不能及时处理面板按键的快速操作,容易出现事件阻塞严重,增加了面板按键事件响应的时间,从而影响用户体验。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.
基于上述问题,本发明提供一种面板按键操作的响应方法,应用于电视机,所述电视机包括两个虚拟的按键通道。Based on the above problems, 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.
参照图1,图1为本发明面板按键操作的响应方法第一实施例的流程示意图。Referring to FIG. 1, 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.
在本实施例中,所述面板按键操作的响应方法包括:In this embodiment, the response method of the panel button operation includes:
步骤S10,在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;Step S10, when receiving a panel button event, determining whether the first button channel is performing a button operation;
在本实施例中,所述步骤S10之前,包括设置双通道响应面板按键事件的步骤,具体地:在android操作系统中添加对面板按键的支持,通过修改面板按键的驱动程序,以使得终端的面板按键支持双通道响应。而所述终端优选包括内置有android操作系统的电视机。In this embodiment, before the step S10, 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.
在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,具体地,参照图2,所述步骤S10包括:When the panel button event is received, it is determined whether the first button channel is performing a button operation. Specifically, referring to FIG. 2, the step S10 includes:
步骤S11,在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;Step S11, when receiving a panel button event, sending a command corresponding to the panel button event to the first button channel;
步骤S12,若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。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.
即在接收到面板按键事件时,先获取面板按键事件对应的命令,然后将命令发送到第一按键通道中,从发送命令的时间点开始计时,在计时达到预设时长时,如果发现所述第一按键通道并未返回执行成功的响应信息,则判定为第一按键通道正在执行按键事件。其中,所述预设时长是系统设定的,可以经过多次测试之后得出的值,值得注意的是,所述预设时长小于第一按键通道响应的面板按键事件的时间,这样才能保证第一按键通道还在响应其它面板按键事件时,通过调用第二按键通道以执行当前的面板按键事件,从而提高面板按键事件响应的效率。That is, 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.
当然,若在预设时长内接收到所述第一按键通道返回的响应信息,则认为所述第一按键通道当前并没有执行按键操作,也就说,此时所述第一按键通道处于空闲状态。通过这个比较过程,可以快速得知第一按键通道当前的状态,从而快速决定是否要调用第二按键通道以进行面板按键事件的响应。Of course, if 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. Through this comparison process, 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.
步骤S20,若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;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;
本实施例中,所述第一按键通道优选为jni(Java Native Interface 调用窗口)通道,所述第二按键通道优选为串口命令并行通道,而所述第一按键通道和第二按键通道的调用在预设的用户空间中进行调用。In this embodiment, 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, and the calls of the first button channel and the second button channel are called in a preset user space.
也就是说,在接收到面板按键事件时,先在面板按键中获取电压值,然后将获取到的电压值发送到用户空间中,在用户空间中,可以选择调用第一按键通道或第二按键通道以响应所述面板按键事件,由于此时所述第一按键通道正在执行按键操作,因此,在所述用户空间中调用第二按键通道,即可执行所述面板按键事件对应的按键操作。That is to say, when receiving the panel button event, 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.
由于面板按键不同,最终显示的功能界面不同,其中,面板按键包括音量调节键(音量+、音量-),频道调节键(频道+、频道-)以及菜单键等等,因此,调用第二按键通道执行所述面板按键事件对应的按键操作的方式包括多种,具体地,所述步骤S20的实施方式包括:Since the panel buttons are different, the final displayed function interface is different. Among them, 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 implementation manner of the step S20 includes:
1)方式一、参照图3,所述步骤S20包括:1) Method 1, referring to FIG. 3, the step S20 includes:
步骤S21,确定所述面板按键事件对应的按键字符类型;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.
步骤S22,在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;Step S22, when the button character type is a button identifier character, displaying a preset virtual interface according to the received panel button event;
步骤S23,在所述虚拟界面中,将所述按键标识字符转换为按键码;Step S23, in the virtual interface, converting the button identification character into a key code;
步骤S24,调用所述第二按键通道以启动所述按键码对应的功能界面。Step S24, calling the second button channel to activate a function interface corresponding to the button code.
在所述步骤S21之前,需要先根据接收到的面板按键事件进行初始化,系统层先开机进行初始化系统服务,然后启动监听服务,若有面板按键事件,发送面板按键事件到应用层进行处理。Before the step S21, it is necessary to initialize according to the received panel key event, 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.
应用层根据面板按键事件,进行注册广播,然后确定所述面板按键事件对应的按键字符类型,再根据电压值进行页面初始化,在按键字符类型为按键标识字符时,显示相应的虚拟界面,并在所述虚拟界面中,将所述按键标识字符转换为按键码,所述按键码用keycode表示,本实施方式中,由于按键字符类型为按键标识字符,因此,转化后的按键码为一个,最终将按键码发送到系统进行处理,即发送到用户空间中进行第二按键通道的调用,以启动所述按键码对应的功能界面,例如,此时用户按压的面板按键是音量+键,那么,调用第二按键通道显示的功能界面就是音量增大的界面。本实施例中,初始化以及后续的整个处理流程可参照图4。本实施例中,调用所述第二按键通道以启动所述按键码对应的功能界面实际上是,以串口命令并行的方式将述按键码调用到系统的so 库(编程中的一种动态链接库)交由系统层处理,以启动所述按键码对应的功能界面,此时需要一定的时间才能执行完成。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. When 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. In the embodiment, since the key character type is a key identification character, 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. In this embodiment, the initialization and subsequent processing flow can refer to FIG. 4. In this embodiment, 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.
2)方式二、参照图5,所述步骤S21之后,所述步骤S20包括:2) Method 2, referring to FIG. 5, after the step S21, the step S20 includes:
步骤S25,在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;Step S25, when the button character type is a button identifier string, displaying the virtual interface according to the received panel button event;
步骤S26,在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;Step S26, in the virtual interface, converting the button identification string into each key code;
步骤S27,在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。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.
在本实施方式中,按键字符类型为按键标识字符串时,在虚拟界面中,将所述按键标识字符串转换为各个按键码,此时,相当于用户按压面板按键的菜单键,电视机调用第二按键通道启动菜单键关联的功能界面,在该功能界面中,会显示各个功能按钮,如模式调节按钮、休眠按钮和音量调节按钮等等,若接收到按键码的确认指令时,则调用所述第二按键通道以启动确定的按键码对应的功能界面,也就是说,若用户选择音量调节按钮,最终启动的是音量调节界面。In this embodiment, when the button character type is a button identifier string, in the virtual interface, the button identifier string is converted into each button code. At this time, it is equivalent to the user pressing the menu button of the panel button, and the television calls The second button channel activates a function interface associated with the menu button. In the function interface, 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.
本实施例中,jni通道:相当于在系统层加入对应的按键接口,在应用层申明对应的接口,通过应用调用,系统执行实际操作的处理方案;而串口命令:相当于通过Runtime(运行时间)接口直接发送串口命令向硬件写入对应的虚拟节点。In this embodiment, 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.
步骤S30,按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。In 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.
在所述第一按键通道执行按键操作,以及所述第二按键通道执行所述面板按键事件对应的按键操作之后,按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,本实施例中,由于最终是启动的是功能界面,因此,显示各个按键通道对应的执行结果实际上也是显示各个按键通道得到的功能界面。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 execution result corresponding to each button channel is sequentially displayed according to the execution order of each button channel, and the implementation is performed. In the example, 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.
由于各个按键通道在执行按键操作时,都会更新各个按键通道当前的执行次序,因此,按照各个按键通道当前最新的执行次序,依次显示各个按键通道得到的功能界面,相当于面板按键得到的功能界面有先后次序的,执行的时候根据当前通道的执行次序相应显示,必须上一次返回的结果先显示,才会显示下一次的结果,以避免按键次序错乱。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.
进一步地,若是各个按键通道同时返回执行结果,也可以同时显示各个按键通道对应的执行结果,而不用先去确定通道的执行次序,再根据执行次序进行显示,减少了这个过程的时间,提高了面板按键操作响应的效率。Further, if 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.
应当理解的是,在本实施例中,通过jni通道与串口命令行调用共存的处理方式有效的加速了面板按键操作的执行,当jni通道当前正在执行按键操作时,则将面板按键命令发送到串口命令的方式进行执行,采用这种双通道执行方案,有效的解决面板按键阻塞的情况,实现面板按键快速操作的响应及时,提高了面板按键执行速度,大大提升用户体验。It should be understood that, in this embodiment, 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. When the jni channel is currently performing the 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.
本实施例提出的面板按键操作的响应方法,在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作,最终按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,实现了在第一按键通道繁忙的情况下,直接由第二按键通道执行按键操作,而不是在连续多次按压面板按键时,只能由第一按键通道处理完一个按键事件之后,再响应下一个按键事件,本发明通过两个通道并行响应面板按键事件,缩短了响应面板按键所花费的时间,提高了面板按键响应的效率。In the response method of the panel button operation proposed by the embodiment, 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.
进一步地,为了提高面板按键响应的灵活性,基于第一实施例提出本发明面板按键操作的响应方法的第二实施例,在本实施例中,参照图6,所述步骤S10之后,所述面板按键操作的响应方法还包括:Further, in order to improve the flexibility of the response of the panel keys, a second embodiment of the method for responding to the operation of the panel keys of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 6, after the step S10, the The response method of the panel key operation also includes:
步骤S40,若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
应当理解,在本实施例中,所述第一按键通道的响应优先级高于第二按键通道,因此,在所述第一按键通道未执行按键操作时,即所述第一按键通道处于空闲状态时,直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,调用所述第一按键通道执行所述面板按键事件对应的按键操作的过程,同理也是先确定所述面板按键事件对应的按键字符类型,并执行相应的操作,最终调用所述第一按键通道以启动相应的按键码对应的功能界面,具体的方式与第二按键通道中提到的一致,此处不再赘述。It should be understood that, in this embodiment, 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. In the state, 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.
在本实施例中,在所述第一按键通道未执行按键操作时,直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,实现了通过响应优先级高的通道进行面板按键事件的响应,从而提高了面板按键操作响应的灵活性。In this embodiment, 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.
参照图7,图7为本发明面板按键操作的响应装置第一实施例的功能模块示意图。Referring to FIG. 7, 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.
所述面板按键操作的响应装置优选包括内置有android操作系统的电视机。The response device of the panel button operation preferably includes a television set with an Android operating system built therein.
需要强调的是,对本领域的技术人员来说,图7所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图7所示的面板按键操作的响应装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该面板按键操作的响应装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。It should be emphasized that, for those skilled in the art, 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.
在本实施例中,所述面板按键操作的响应装置包括:In this embodiment, the response device of the panel button operation includes:
判断模块10,用于在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作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
在本实施例中,所述面板按键的响应装置还包括设置模块,所述设置模块用于设置双通道响应面板按键事件,具体地:在android操作系统中添加对面板按键的支持,通过修改面板按键的驱动程序,以使得面板按键的响应装置的面板按键支持双通道响应。In this embodiment, 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.
在接收到面板按键事件时,先判断第一按键通道是否正在执行按键操作,具体地,参照图8,所述判断模块10包括:When the panel button event is received, it is determined whether the first button channel is performing a button operation. Specifically, referring to FIG. 8, the determining module 10 includes:
发送单元11,用于在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;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;
第一确定单元12,用于若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。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.
即在接收到面板按键事件时,先获取面板按键事件对应的命令,然后发送单元11将命令发送到第一按键通道中,从发送命令的时间点开始计时,在计时达到预设时长时,如果发现所述第一按键通道并未返回执行成功的响应信息,则第一确定单元12判定为第一按键通道正在执行按键事件。其中,所述预设时长是系统设定的,可以经过多次测试之后得出的值,值得注意的是,所述预设时长小于第一按键通道响应的面板按键事件的时间,这样才能保证第一按键通道还在响应其它面板按键事件时,通过调用第二按键通道以执行当前的面板按键事件,从而提高面板按键事件响应的效率。That is, when receiving the panel button event, the command corresponding to the panel button event is first acquired, and then 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. 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.
当然,若在预设时长内接收到所述第一按键通道返回的响应信息,则认为所述第一按键通道当前并没有执行按键操作,也就说,此时所述第一按键通道处于空闲状态。通过这个比较过程,可以快速得知第一按键通道当前的状态,从而快速决定是否要调用第二按键通道以进行面板按键事件的响应。Of course, if 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. Through this comparison process, 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.
调用模块20,用于若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;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;
本实施例中,所述第一按键通道优选为jni(Java Native Interface 调用窗口)通道,所述第二按键通道优选为串口命令并行通道,而所述第一按键通道和第二按键通道的调用具有在预设的用户空间中进行调用。In this embodiment, 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, and the calls of the first button channel and the second button channel are called in a preset user space.
也就是说,在接收到面板按键事件时,先在面板按键中获取电压值,然后将获取到的电压值发送到用户空间中,在用户空间中,可以选择调用第一按键通道或第二按键通道以响应所述面板按键事件,由于此时所述第一按键通道正在执行按键操作,因此,调用模块20在所述用户空间中调用第二按键通道,即可执行所述面板按键事件对应的按键操作。That is to say, when receiving the panel button event, 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.
由于面板按键不同,最终显示的功能界面不同,其中,面板按键包括音量调节键(音量+、音量-),频道调节键(频道+、频道-)以及菜单键等等,因此,调用第二按键通道执行所述面板按键事件对应的按键操作的方式包括多种,具体地,所述调用模块20调用第二按键通道执行所述面板按键事件对应的按键操作的实施方式包括:Since the panel buttons are different, the final displayed function interface is different. Among them, 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.
1)方式一、参照图9,所述调用模块20包括:1) Method 1. Referring to FIG. 9, the calling module 20 includes:
第二确定单元21,用于确定所述面板按键事件对应的按键字符类型;a second determining unit 21, configured to determine a button character type corresponding to the panel button event;
显示单元22,用于在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;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;
转换单元23,用于在所述虚拟界面中,将所述按键标识字符转换为按键码;The converting unit 23 is configured to convert the button identification character into a key code in the virtual interface;
调用单元24,用于调用所述第二按键通道以启动所述按键码对应的功能界面。The calling unit 24 is configured to invoke the second button channel to activate a function interface corresponding to the button code.
在第二确定单元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.
应用层根据面板按键事件,进行注册广播,然后第二确定单元21确定所述面板按键事件对应的按键字符类型,再根据电压值进行页面初始化,在按键字符类型为按键标识字符时,显示单元22显示相应的虚拟界面,并且转换单元23在所述虚拟界面中,将所述按键标识字符转换为按键码,所述按键码用keycode表示,本实施方式中,由于按键字符类型为按键标识字符,因此,转化后的按键码为一个,最终将按键码发送到系统进行处理,即发送到用户空间中由调用单元24进行第二按键通道的调用,以启动所述按键码对应的功能界面,例如,此时用户按压的面板按键是音量+键,那么,调用第二按键通道显示的功能界面就是音量增大的界面。本实施例中,初始化以及后续的整个处理流程可参照图4。本实施例中,调用所述第二按键通道以启动所述按键码对应的功能界面实际上是,以串口命令并行的方式将述按键码调用到系统的so 库(编程中的一种动态链接库)交由系统层处理,以启动所述按键码对应的功能界面,此时需要一定的时间才能执行完成。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. When 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. In this embodiment, since the key character type is a key identification character, Therefore, 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. In this embodiment, the initialization and subsequent processing flow can refer to FIG. 4. In this embodiment, 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.
2)方式二、所述显示单元22,还用于在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;2) 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;
所述转换单元23,还用于在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;The converting unit 23 is further configured to convert the key identifier string into each key code in the virtual interface;
所述调用单元24,还用于在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。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.
在本实施方式中,按键字符类型为按键标识字符串时,在虚拟界面中,所述转换单元23将所述按键标识字符串转换为各个按键码,此时,相当于用户按压面板按键的菜单键,所述调用单元24调用第二按键通道启动菜单键关联的功能界面,在该功能界面中,所述显示单元22会显示各个功能按钮,如模式调节按钮、休眠按钮和音量调节按钮等等,若接收到按键码的确认指令时,则所述调用单元24调用所述第二按键通道以启动确定的按键码对应的功能界面,也就是说,若用户选择音量调节按钮,最终启动的是音量调节界面。In the embodiment, when the button character type is a button identifier string, in the virtual interface, 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.
本实施例中,jni通道:相当于在系统层加入对应的按键接口,在应用层申明对应的接口,通过应用调用,系统执行实际操作的处理方案;而串口命令:相当于通过Runtime(运行时间)接口直接发送串口命令向硬件写入对应的虚拟节点。In this embodiment, 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.
显示模块30,用于按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。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.
在所述第一按键通道执行按键操作,以及所述第二按键通道执行所述面板按键事件对应的按键操作之后,显示模块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.
由于各个按键通道在执行按键操作时,都会更新各个按键通道当前的执行次序,因此,按照各个按键通道当前最新的执行次序,依次显示各个按键通道得到的功能界面,相当于面板按键得到的功能界面有先后次序的,执行的时候根据当前通道的执行次序相应显示,必须上一次返回的结果先显示,才会显示下一次的结果,以避免按键次序错乱。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.
进一步地,若是各个按键通道同时返回执行结果,显示模块30也可以同时显示各个按键通道对应的执行结果,而不用先去确定通道的执行次序,再根据执行次序进行显示,减少了这个过程的时间,提高了面板按键操作响应的效率。Further, if each button channel returns the execution result at the same time, 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.
应当理解的是,在本实施例中,通过jni通道与串口命令行调用共存的处理方式有效的加速面板按键操作的执行,当jni通道当前正在执行按键操作时,则将面板按键命令发送到串口命令的方式进行执行,采用这种双通道执行方案,有效的解决面板按键阻塞的情况,实现面板按键快速操作的响应及时,提高了面板按键执行速度,大大提升用户体验。It should be understood that, in this embodiment, 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. When the jni channel is currently performing the 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.
进一步地,为了提高面板按键响应的准确性,基于第一实施例提出本发明面板按键操作的响应装置的第二实施例,在本实施例中,Further, in order to improve the accuracy 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. In this embodiment,
所述调用模块20,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
应当理解,在本实施例中,所述第一按键通道的响应优先级高于第二按键通道,因此,在所述第一按键通道未执行按键操作时,即所述第一按键通道处于空闲状态时,所述调用模块20直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,调用所述第一按键通道执行所述面板按键事件对应的按键操作的过程,同理也是先确定所述面板按键事件对应的按键字符类型,并执行相应的操作,最终所述调用模块20调用所述第一按键通道以启动相应的按键码对应的功能界面,具体的方式与第二按键通道中提到的一致,此处不再赘述。It should be understood that, in this embodiment, 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. In the state, 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. First determining the type of the button character corresponding to the panel button event, and performing a corresponding operation, and finally the calling module 20 calls the first button channel to activate a function interface corresponding to the corresponding button code, and the specific manner and the second button The consistency mentioned in the channel is not repeated here.
在本实施例中,在所述第一按键通道未执行按键操作时,直接调用所述第一按键通道执行所述面板按键事件对应的按键操作,实现了通过响应优先级高的通道进行面板按键事件的响应,从而提高了面板按键操作响应的灵活性。In this embodiment, 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.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or system that comprises a plurality of elements includes not only those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that 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.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种面板按键操作的响应方法,应用于电视机,其特征在于,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括: A method for responding to operation of a panel button is applied to a television set, wherein the television set includes two virtual button channels, and the response method of the panel button operation includes:
    在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作,其中,在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中,若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作;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;
    若所述第一按键通道正在执行按键操作,则确定所述面板按键事件对应的按键字符类型;Determining, by the first button channel, a button character type corresponding to the panel button event;
    在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;When the button character type is a button identifier character, the preset virtual interface is displayed according to the received panel button event;
    在所述虚拟界面中,将所述按键标识字符转换为按键码;Converting the button identification character into a key code in the virtual interface;
    调用所述第二按键通道以启动所述按键码对应的功能界面;Calling the second button channel to activate a function interface corresponding to the button code;
    按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。According to the execution order of each button channel, 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.
  2. 如权利要求1所述的面板按键操作的响应方法,其特征在于,所述确定所述面板按键事件对应的按键字符类型的步骤之后,所述面板按键操作的响应方法还包括:The method of responding to the operation of the panel keys according to claim 1, wherein after the step of determining the type of the button character corresponding to the button event of the panel, the method for responding to the operation of the panel button further comprises:
    在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;When the button character type is a button identifier string, displaying the virtual interface according to the received panel button event;
    在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;Converting, in the virtual interface, the button identification string into each key code;
    在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面;When receiving the confirmation command of the key code, calling the second button channel to start a function interface corresponding to the determined key code;
    按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。According to the execution order of each button channel, 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.
  3. 如权利要求1所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:The method for responding to operation of a panel button according to claim 1, wherein the method for responding to operation of the panel button after the step of determining whether the first button channel is performing a button operation when receiving a panel button event Also includes:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
  4. 如权利要求2所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:The method for responding to operation of a panel button according to claim 2, wherein said step of responding to operation of said panel button after said step of determining whether said first button channel is performing a button operation upon receiving a panel button event Also includes:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
  5. 一种面板按键操作的响应方法,应用于电视机,其特征在于,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应方法包括:A method for responding to operation of a panel button is applied to a television set, wherein the television set includes two virtual button channels, and the response method of the panel button operation includes:
    在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;When receiving a panel button event, determining whether the first button channel is performing a button operation;
    若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;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;
    按照各个按键通道的执行次序,依次显示各个按键通道对应的执行结果,其中,在各个按键通道执行按键操作时,更新当前的执行次序。According to the execution order of each button channel, 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.
  6. 如权利要求5所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤包括:The method of responding to operation of a panel button according to claim 5, wherein the step of determining whether the first button channel is performing a button operation when the panel button event is received comprises:
    在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;Sending a command corresponding to the panel key event to the first button channel when receiving the panel button event;
    若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。If the response information of the first button channel is not received when the preset time period arrives, it is determined that the first button channel is performing a button operation.
  7. 如权利要求5所述的面板按键操作的响应方法,其特征在于,所述若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作的步骤包括:The method for responding to operation of a panel button according to claim 5, wherein if the first button channel is performing a button operation, the step of calling the second button channel to perform a button operation corresponding to the panel button event is performed. include:
    确定所述面板按键事件对应的按键字符类型;Determining a key character type corresponding to the panel key event;
    在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;When the button character type is a button identifier character, the preset virtual interface is displayed according to the received panel button event;
    在所述虚拟界面中,将所述按键标识字符转换为按键码;Converting the button identification character into a key code in the virtual interface;
    调用所述第二按键通道以启动所述按键码对应的功能界面。The second button channel is invoked to activate a function interface corresponding to the button code.
  8. 如权利要求7所述的面板按键操作的响应方法,其特征在于,所述确定所述面板按键事件对应的按键字符类型的步骤之后,所述面板按键操作的响应方法还包括:The method of responding to the operation of the panel keys according to claim 7, wherein after the step of determining the type of the button character corresponding to the button event of the panel, the method for responding to the operation of the panel button further comprises:
    在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;When the button character type is a button identifier string, displaying the virtual interface according to the received panel button event;
    在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;Converting, in the virtual interface, the button identification string into each key code;
    在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。Upon receiving the confirmation command of the key code, the second key channel is invoked to activate a function interface corresponding to the determined key code.
  9. 如权利要求5所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:The method for responding to operation of a panel button according to claim 5, wherein said step of responding to operation of said panel button after said step of determining whether said first button channel is performing a button operation upon receiving a panel button event Also includes:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
  10. 如权利要求6所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:The method for responding to operation of a panel button according to claim 6, wherein the response method of the panel button operation after the step of determining whether the first button channel is performing a button operation when receiving a panel button event Also includes:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
  11. 如权利要求7所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:The method for responding to operation of a panel button according to claim 7, wherein the response method of the panel button operation after the step of determining whether the first button channel is performing a button operation when receiving a panel button event Also includes:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
  12. 如权利要求8所述的面板按键操作的响应方法,其特征在于,所述在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作的步骤之后,所述面板按键操作的响应方法还包括:The method for responding to operation of a panel button according to claim 8, wherein the response method of the panel button operation after the step of determining whether the first button channel is performing a button operation when receiving a panel button event Also includes:
    若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。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.
  13. 一种面板按键操作的响应装置,应用于电视机,其特征在于,所述电视机包括两个虚拟的按键通道,所述面板按键操作的响应装置包括:A response device for operating a panel button is applied to a television set, wherein the television set includes two virtual button channels, and the response device of the panel button operation comprises:
    判断模块,用于在接收到面板按键事件时,判断第一按键通道是否正在执行按键操作;a determining module, configured to determine whether the first button channel is performing a button operation when receiving a panel button event;
    调用模块,用于若所述第一按键通道正在执行按键操作,则调用第二按键通道执行所述面板按键事件对应的按键操作;Calling a module, 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 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.
  14. 如权利要求13所述的面板按键操作的响应装置,其特征在于,所述判断模块包括:The responsive device of the panel key operation of claim 13, wherein the determining module comprises:
    发送单元,用于在接收到面板按键事件时,将所述面板按键事件对应的命令发送至第一按键通道中;a sending unit, configured to send a command corresponding to the panel key event to the first button channel when receiving the panel button event;
    第一确定单元,用于若在预设时长到达时,未接收到所述第一按键通道的响应信息,则确定所述第一按键通道正在执行按键操作。The first determining unit is configured to: if the response information of the first button channel is not received when the preset time period arrives, determine that the first button channel is performing a button operation.
  15. 如权利要求13所述的面板按键操作的响应装置,其特征在于,所述调用模块包括:The apparatus for responding to operation of a panel button according to claim 13, wherein the calling module comprises:
    第二确定单元,用于确定所述面板按键事件对应的按键字符类型;a second determining unit, configured to determine a key character type corresponding to the panel key event;
    显示单元,用于在按键字符类型为按键标识字符时,根据接收到的面板按键事件显示预设的虚拟界面;a display unit, configured to display a preset virtual interface according to the received panel key event when the button character type is a button identifier character;
    转换单元,用于在所述虚拟界面中,将所述按键标识字符转换为按键码;a conversion unit, configured to convert the button identification character into a key code in the virtual interface;
    调用单元,用于调用所述第二按键通道以启动所述按键码对应的功能界面。The calling unit is configured to invoke the second button channel to activate a function interface corresponding to the button code.
  16. 如权利要求15所述的面板按键操作的响应装置,其特征在于,所述显示单元,还用于在按键字符类型为按键标识字符串时,根据接收到的面板按键事件显示所述虚拟界面;The responsive device of the panel key operation according to claim 15, wherein the display unit is further configured to display the virtual interface according to the received panel key event when the button character type is a button identifier string;
    所述转换单元,还用于在所述虚拟界面中,将所述按键标识字符串转换为各个按键码;The conversion unit is further configured to convert the key identification string into each key code in the virtual interface;
    所述调用单元,还用于在接收到按键码的确认指令时,调用所述第二按键通道以启动确定的按键码对应的功能界面。The calling unit 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.
  17. 如权利要求13所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。The responsive device of the panel button operation according to claim 13, wherein the calling module is further configured to: if the first button channel does not perform a button operation, invoke the first button channel to execute the panel The key operation corresponding to the key event.
  18. 如权利要求14所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。The responsive device of the panel button operation according to claim 14, wherein the calling module is further configured to: if the first button channel does not perform a button operation, invoke the first button channel to execute the panel The key operation corresponding to the key event.
  19. 如权利要求15所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。The responsive device of the panel key operation according to claim 15, wherein the calling module is further configured to: if the first button channel does not perform a button operation, invoke the first button channel to execute the panel The key operation corresponding to the key event.
  20. 如权利要求16所述的面板按键操作的响应装置,其特征在于,所述调用模块,还用于若所述第一按键通道未执行按键操作,则调用所述第一按键通道执行所述面板按键事件对应的按键操作。The responsive device of the panel button operation according to claim 16, wherein the calling module is further configured to: if the first button channel does not perform a button operation, invoke the first button channel to execute the panel The key operation corresponding to the key event.
PCT/CN2016/096065 2016-07-26 2016-08-19 Method and apparatus for responding to key press on panel WO2018018684A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610599069.XA CN106303742B (en) 2016-07-26 2016-07-26 The response method and device of panel button operation
CN201610599069.X 2016-07-26

Publications (1)

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

Family

ID=57652537

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096065 WO2018018684A1 (en) 2016-07-26 2016-08-19 Method and apparatus for responding to key press on panel

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094238B (en) * 2017-04-13 2020-02-28 青岛海信电器股份有限公司 Key distribution processing method of smart television and smart television
CN108153600B (en) * 2017-12-26 2021-09-28 深圳Tcl数字技术有限公司 Panel key response method, television equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645023A (en) * 2009-09-14 2010-02-10 青岛海信宽带多媒体技术有限公司 Method and device for solving the delayed response of embedded system
CN101867377A (en) * 2010-06-17 2010-10-20 青岛海信宽带多媒体技术有限公司 Processing method of panel key signal and processing circuit thereof
US20110234429A1 (en) * 2010-03-24 2011-09-29 Whirlpool Corporation Capacitive touch multi-function keys
CN102981875A (en) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 X86 end press key adapting method and system based on android
CN103870004A (en) * 2012-12-18 2014-06-18 上海黄浦船用仪器有限公司 Dual-channel keyboard data recording system and application thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150017973A (en) * 2013-08-08 2015-02-23 삼성전자주식회사 Display apparatus and method for setting a channel
CN103581725A (en) * 2013-09-27 2014-02-12 深圳市同洲电子股份有限公司 Method for controlling smart TV terminal through mobile terminal and relevant terminals
CN103716689B (en) * 2013-12-26 2017-10-27 Tcl集团股份有限公司 The detection method and intelligent television of television channel change
CN104811813B (en) * 2015-04-14 2018-07-03 聚好看科技股份有限公司 The method and system that a kind of smart television is interacted with user

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645023A (en) * 2009-09-14 2010-02-10 青岛海信宽带多媒体技术有限公司 Method and device for solving the delayed response of embedded system
US20110234429A1 (en) * 2010-03-24 2011-09-29 Whirlpool Corporation Capacitive touch multi-function keys
CN101867377A (en) * 2010-06-17 2010-10-20 青岛海信宽带多媒体技术有限公司 Processing method of panel key signal and processing circuit thereof
CN102981875A (en) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 X86 end press key adapting method and system based on android
CN103870004A (en) * 2012-12-18 2014-06-18 上海黄浦船用仪器有限公司 Dual-channel keyboard data recording system and application thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2019119771A1 (en) Voice interaction method, device and computer readable storage medium
WO2017063366A1 (en) Method and system for starting application
WO2017041538A1 (en) Terminal user interface controlled display method and device
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2017190450A1 (en) Process closing method and apparatus
WO2016058258A1 (en) Terminal remote control method and system
WO2018018681A1 (en) Video programme previewing method and device
WO2017084303A1 (en) Switching method for launcher and switching control system
WO2018126888A1 (en) Method and apparatus for configuring a shortcut for a television function
WO2018053963A1 (en) Method and apparatus for upgrading system of smart television
WO2019051897A1 (en) Terminal operating parameter adjustment method and device, and computer readable storage medium
WO2017201943A1 (en) Method and device for driving display screen
WO2018161603A1 (en) Method and apparatus for controlling image drawing of mobile terminal, medium, electronic device
WO2017084305A1 (en) Terminal control method and system
WO2017211009A1 (en) Method and system for smart television restart
WO2017084301A1 (en) Audio data playing method and apparatus, and smart television
WO2017000729A1 (en) Audio/video playing control method and device
WO2017036208A1 (en) Method and system for extracting information in display interface
WO2018006581A1 (en) Smart-television playback method and apparatus
WO2019051901A1 (en) Terminal control method and device, and computer readable storage medium
WO2019085301A1 (en) Missed call feedback method, apparatus and device for fixed phone, and readable storage medium
WO2017088429A1 (en) Method and system for controlling touchscreen application program in display terminal by mobile terminal
WO2017071223A1 (en) Control method and device for television application
WO2017059686A1 (en) Desktop displaying method and device
WO2016206223A1 (en) Screenshooting method and system

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