WO2017045444A1 - Remote controller key allocation method and device - Google Patents

Remote controller key allocation method and device Download PDF

Info

Publication number
WO2017045444A1
WO2017045444A1 PCT/CN2016/084723 CN2016084723W WO2017045444A1 WO 2017045444 A1 WO2017045444 A1 WO 2017045444A1 CN 2016084723 W CN2016084723 W CN 2016084723W WO 2017045444 A1 WO2017045444 A1 WO 2017045444A1
Authority
WO
WIPO (PCT)
Prior art keywords
button
card
command
instruction
key value
Prior art date
Application number
PCT/CN2016/084723
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 WO2017045444A1 publication Critical patent/WO2017045444A1/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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]

Definitions

  • the present invention relates to the field of television, and in particular, to a remote controller button distribution method and apparatus.
  • Module TV is the frontier concept of the TV industry, and many manufacturers are developing and developing. Module TV refers to a smart TV that can be developed and upgraded. Users can customize differentiated product function modules according to their own needs.
  • the module TV there are two boards. In order to distinguish the two boards, the board that is closely related to the display screen and will not be replaced is called the screen end, and the other board that can be plugged and replaced and replaced is called the card end. .
  • the screen and the card are completely independent, both have their own GUI (Graphical User Interface, graphical user interface, also known as graphical user interface) system. Both the card end and the screen end process the remote control information received by them. Therefore, when dealing with the remote control buttons, it is easy to cause the logic of the card end and the screen end software where the TV card is located.
  • the module TV cannot assign the remote button command very well, and an abnormal situation occurs when the user uses the screen.
  • the main object of the present invention is to provide a remote control button distribution method and device, which solves the problem that when the card end and the screen end of the module TV receive the key command of the remote controller at the same time, the logic of the card end and the screen end software is easily disordered. problem.
  • the present invention provides a remote controller button assignment method, the method comprising the steps of:
  • the step of performing the operation corresponding to the button instruction includes:
  • the present invention further provides a remote controller button assigning method, the method comprising the steps of:
  • the method further includes:
  • the button command is a blocking command
  • the operating state of the screen is changed according to the button command to prompt the user that the next button command is executed after the button command is executed.
  • the button instruction is a blocking instruction
  • the operating state of the screen is changed according to the button instruction to prompt the user that the next button instruction is executed after the button instruction is executed, and further includes :
  • the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
  • the method before the step of parsing the key value corresponding to the button instruction when receiving the button command sent by the remote controller, the method further includes:
  • the step of setting the key value corresponding to the TV card key instruction according to the attribute type of the television card comprises:
  • TV card is a non-known card, converting a key value corresponding to the TV card key instruction into a standard Android button key value;
  • the key value corresponding to the TV card key command is set to an active state.
  • the present invention further provides a remote controller button distribution device, the device comprising:
  • the parsing module is configured to parse the key value corresponding to the button instruction when receiving the button command sent by the remote controller;
  • a first determining module configured to determine whether there is a preset key value corresponding to the key value
  • An execution module configured to execute an operation corresponding to the button instruction if a preset key value corresponding to the key value exists
  • the remote controller button distribution device further includes:
  • a second determining module configured to determine whether the button instruction is a blocking instruction
  • a change module configured to: if the button command is a blocking command, change an operating state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
  • the remote controller button distribution device further includes:
  • a third determining module configured to determine, according to whether the function corresponding to the button instruction needs to forward the button command to the card end;
  • a sending module configured to send a preset signal to the card end if the button command is to be forwarded to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal .
  • the remote controller button distribution device further includes:
  • An acquiring module configured to acquire an attribute type of the television card when detecting that the card end has been inserted into the television card
  • a setting module configured to set a key value corresponding to the button command of the television card according to an attribute type of the television card.
  • the setting module comprises:
  • a determining unit configured to determine, according to an attribute type of the television card, whether the television card is a known card
  • a conversion unit configured to convert a key value corresponding to the TV card key instruction into a standard Android key value if the television card is a non-known card
  • a setting unit configured to set a key value corresponding to the TV card key instruction to an activated state if the television card is a known card.
  • the invention parses the key value corresponding to the key instruction when the screen end receives the key instruction sent by the remote controller, and if the preset key value corresponding to the key value exists on the screen end, the operation corresponding to the key instruction is performed, If there is no preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be received by the card end of the key instruction at the same time. carried out.
  • the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
  • FIG. 1 is a schematic flow chart of a first embodiment of a remote controller button distribution method according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a remote controller button distribution method according to the present invention.
  • FIG. 3 is a schematic flow chart of a third embodiment of a remote controller button distribution method according to the present invention.
  • FIG. 4 is a schematic flowchart of setting a key value corresponding to a button instruction of the television card according to an attribute type of the television card according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a remote controller button distribution device according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a second embodiment of a remote controller button distribution device according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a third embodiment of a remote controller button distribution device according to the present invention.
  • FIG. 8 is a schematic diagram of a functional module of a module according to an embodiment of the present invention.
  • the main solution of the embodiment of the present invention is: when receiving the button command sent by the remote controller, parsing the key value corresponding to the button command; determining whether there is a preset key value corresponding to the key value; Determining, by the preset key value corresponding to the key value, performing an operation corresponding to the key instruction; if there is no preset key value corresponding to the key value, discarding the key instruction for receiving the key instruction The card end performs the operation corresponding to the button instruction.
  • the screen terminal When the screen terminal receives the button command sent by the remote controller, parsing the key value corresponding to the button command, if there is a preset key value corresponding to the button value on the screen end, performing the operation corresponding to the button command, if not When there is a preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be executed by the card end that receives the key instruction at the same time.
  • the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
  • the logic of the card end and the screen end software is easily disordered, and the module TV cannot distribute the key command sent by the remote controller well.
  • the present invention provides a remote controller button assignment method.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for allocating a button of a remote controller according to the present invention.
  • the remote controller button distribution method includes:
  • Step S10 when receiving a button command sent by the remote controller, parsing a key value corresponding to the button command;
  • the key value corresponding to the button command is parsed.
  • the card terminal of the module TV also receives the button command sent by the remote controller, and parses the key value corresponding to the button command.
  • Each button command sent by the remote controller has a corresponding key value, so that the device receiving the button command distinguishes the function corresponding to the button command.
  • Step S20 determining whether there is a preset key value corresponding to the key value
  • the screen end parses the key value corresponding to the button instruction, it is determined whether there is a preset key value corresponding to the key value, that is, whether there is permission to process the button instruction.
  • the screen end and the card end of the module TV receive the button command of the remote controller, the screen end and the card end have reached an agreement on the processing authority of the remote controller button command.
  • the screen end stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is Set the key value to correspond.
  • the card end also stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is The preset key value corresponds.
  • Step S30 if there is a preset key value corresponding to the key value, performing an operation corresponding to the button instruction;
  • the operation corresponding to the button instruction is performed, and the execution process is as follows: determining whether the operation corresponding to the button instruction is performed immediately. Specifically, if the screen end detects that the operation corresponding to the previous key command has not been executed yet, and the other key commands cannot be simultaneously executed in the current working state, the corresponding button command is not immediately executed.
  • the operation that is, the system that processes the button commands is in a busy state.
  • the screen end prompts the user that the system is in a busy state, and the operation corresponding to the button instruction waits for a certain time before continuing to execute, so as to prevent the user from thinking that the button command is Invalid, frequently operate the remote control.
  • the prompting method includes, but is not limited to, emitting a prompt sound through a speaker, or prompting the user through an indicator light.
  • the operation corresponding to the button command is immediately executed.
  • the button command received by the screen terminal is a power button
  • the key value corresponding to the power button is 0 ⁇ 81
  • the operation corresponding to the power button is immediately executed.
  • the execution process of the card terminal receiving the button instruction is similar to the execution process of the screen terminal receiving the button command, and details are not described herein again.
  • Step S40 If there is no preset key value corresponding to the key value, discarding the button instruction, so that the card end receiving the button instruction performs an operation corresponding to the button instruction.
  • the screen end discards the button command while receiving the The card end of the button command will perform the operation corresponding to the button command.
  • the key value corresponding to the button command is parsed, and if the preset button key value corresponding to the key value exists on the screen end, the operation corresponding to the button command is executed. If there is no preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be the card that receives the key instruction at the same time. Execution.
  • the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
  • FIG. 2 is a schematic flowchart diagram of a method for allocating a button of a remote controller according to a second embodiment of the present invention.
  • the method further includes:
  • Step S50 determining whether the button instruction is a blocking instruction
  • determining whether the button instruction is a blocking instruction that is, determining whether the button instruction is a synchronous instruction or an asynchronous instruction
  • the synchronization refers to the sending side sending data.
  • the communication mode of the next data packet is sent. It can also be understood that the operation of the two threads is related, and one thread is blocked to wait for another thread to run, that is, the blocking mode; the asynchronous After the sender sends out the data, it does not wait for the receiver to send back a response, and then sends the communication method of the next packet. It can also be understood that the two threads have nothing to do, and run their own, that is, non-blocking mode. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
  • Step S60 if the button command is a blocking command, changing the running state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
  • the screen end determines that the button instruction is a blocking instruction
  • the screen end changes the running state of the program that runs the button instruction according to the button instruction by the daemon, to prompt the user that the next button instruction is in the After the button command is executed, it will be executed.
  • the screen end determines that the button instruction is a non-blocking instruction and performs an operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented.
  • the running state is an operating state of a program that executes the button instruction on the screen end.
  • the operating state of the program that executes the button command includes busy, stop, idle, and the like.
  • the screen end When the running state of the program that executes the button instruction is busy, the screen end is performing an operation corresponding to the button instruction; when the screen end executes the button instruction, the running state of the program is When idle, it indicates that the screen end has performed the operation corresponding to the button instruction. When the running state of the program that executes the button instruction on the screen end is stopped, it indicates that the screen end has paused the operation corresponding to the button instruction.
  • the button command of the remote controller is a power button
  • the screen end changes the running state of the program that executes the key command to busy, and the state corresponding to the power key is not executed.
  • the card end Until the card end notifies that the screen end can perform the operation corresponding to the power key, that is, the power of the card end is turned off, the screen end is awakened, and the operation corresponding to the power key is continued, otherwise The screen end will remain in the waiting state until the timeout expires, the operation corresponding to the power key is abandoned, and the operation corresponding to the next key command is continued. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
  • Step S70 Determine, according to a function corresponding to the button instruction, whether the button command needs to be forwarded to the card end to execute;
  • the screen end determines whether it is necessary to forward the button command to the card end according to a function corresponding to the button instruction, that is, whether it is necessary to communicate with the card end, whether the button instruction requires the screen end and
  • the card ends are cooperatively processed.
  • the manner of communication is serial communication.
  • the card terminal determines whether it is necessary to forward the button command to the screen end, that is, whether it is necessary to communicate with the screen end. For example, when the user needs to adjust the backlight, but the backlight is controlled at the screen end, the card end needs to notify the screen end to adjust the backlight by communicating with the screen end.
  • Step S80 If the button command needs to be forwarded to the card end, the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
  • the screen determines that the button command needs to be forwarded to the card end, that is, when the button command requires the screen end and the card end to cooperate, sending a preset signal to the card end, And the card end performs an operation corresponding to the button instruction according to the preset signal.
  • the preset signal is used to notify the card end that the screen end has completed the operation of the button instruction, and the card end is required to continue processing the button instruction to implement the function corresponding to the button instruction.
  • the screen determines that the button command does not need to be forwarded to the card end, it indicates that the function corresponding to the button command is implemented by the screen end. After the screen end performs the operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
  • buttons instruction when the button instruction is a blocking instruction, a prompt message is sent to prompt the user to avoid occurrence of a situation in which the user thinks that the button is invalid; and when the button instruction needs to perform communication between the screen end and the card end, Sending a preset signal, so that one end of receiving the preset signal receives the preset signal, performing an operation corresponding to the button instruction, implementing a function corresponding to the button instruction, so that the module television can better process the remote controller
  • the button commands sent improve the user experience.
  • FIG. 3 is a schematic flowchart diagram of a method for allocating a button of a remote controller according to a third embodiment of the present invention.
  • the method before the step S10, the method further includes:
  • Step S90 When detecting that the card end has been inserted into the TV card, acquiring an attribute type of the TV card;
  • the screen determines whether the card end has been inserted into the TV card. If the screen end detects that the card end has been inserted into the TV card, communicates with the TV card. Preferably, the communication mode is serial port communication, and the screen end acquires the TV card through a serial port command. Attribute type.
  • the attribute types of the TV card include the manufacturer, model, and size of the memory, and eMMC (Embedded) Multi Media Card) size and so on. If the card end is not inserted into the TV card, a prompt message is output to prompt the user to insert the TV card.
  • the TV card has the functions of processing analog/digital signals of the television, and also includes functions of network communication, high-definition decoding and output.
  • Step S110 setting a key value corresponding to the button command of the television card according to an attribute type of the television card.
  • the screen end sets a key value corresponding to the button instruction of the television card according to an attribute type of the television card.
  • FIG. 4 is a schematic flowchart of setting a key value corresponding to the button instruction of the television card according to an attribute type of the television card according to an embodiment of the present invention.
  • the step S110 includes:
  • Step S111 determining, according to the attribute type of the television card, whether the television card is a known card
  • Step S112 if the television card is a non-known card, converting the key value corresponding to the button command of the television card into a standard Android button key value;
  • Step S113 if the TV card is a known card, the key value corresponding to the TV card key command is set to an active state.
  • the TV card is a non-known card.
  • the screen end converts the key value corresponding to the TV card key instruction into a standard Android button key value.
  • the screen end is compatible with the television card, that is, when the television card is a known card, setting a button key value corresponding to the TV card button instruction to an activated state, when the remote controller sends a button command The screen end and the card end simultaneously receive the button command.
  • the screen end can be compatible with various TV cards. It provides the necessary conditions for the module TV to better distribute the key commands sent by the remote controller, and improves the user experience.
  • the invention further provides a remote control button dispensing device.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a remote controller button distribution device according to the present invention.
  • the remote controller button distribution device includes:
  • the parsing module 10 is configured to parse a key value corresponding to the button instruction when receiving a button command sent by the remote controller;
  • the parsing module 10 parses the key value corresponding to the button command.
  • the card terminal of the module TV also receives the button command sent by the remote controller, and parses the key value corresponding to the button command.
  • Each button command sent by the remote controller has a corresponding key value, so that the device receiving the button command distinguishes the function corresponding to the button command.
  • the first determining module 20 is configured to determine whether there is a preset key value corresponding to the key value
  • the first determining module 20 determines whether there is a preset key value corresponding to the key value, that is, whether there is permission to process the button instruction.
  • the screen end and the card end of the module TV receive the button command of the remote controller, the screen end and the card end have reached an agreement on the processing authority of the remote controller button command.
  • the screen end stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is Set the key value to correspond.
  • the card end also stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is The preset key value corresponds.
  • the executing module 30 is configured to execute an operation corresponding to the button instruction if there is a preset key value corresponding to the key value;
  • the execution module 30 When the screen determines that there is a preset key value corresponding to the key value, the execution module 30 performs an operation corresponding to the key instruction, and the execution process is as follows: determining whether the operation corresponding to the key instruction is performed immediately. Specifically, if the screen end detects that the operation corresponding to the previous key command has not been executed yet, and the other key commands cannot be simultaneously executed in the current working state, the corresponding button command is not immediately executed. The operation, that is, the system that processes the button commands is in a busy state.
  • the screen end prompts the user that the system is in a busy state, and the operation corresponding to the button instruction waits for a certain time before continuing to execute, so as to prevent the user from thinking that the button command is Invalid, frequently operate the remote control.
  • the prompting method includes, but is not limited to, emitting a prompt sound through a speaker, or prompting the user through an indicator light.
  • the operation corresponding to the button command is immediately executed.
  • the button command received by the screen terminal is a power button
  • the key value corresponding to the power button is 0 ⁇ 81
  • the operation corresponding to the power button is immediately executed.
  • the execution process of the card terminal receiving the button instruction is similar to the execution process of the screen terminal receiving the button command, and details are not described herein again.
  • the discarding module 40 is configured to discard the button command if the preset key value corresponding to the key value does not exist, so that the card end that receives the button command performs an operation corresponding to the button command.
  • the discarding module 40 discards the button command and receives the The card end of the button command will perform the operation corresponding to the button command.
  • the key value corresponding to the button command is parsed, and if the preset button key value corresponding to the key value exists on the screen end, the operation corresponding to the button command is executed. If there is no preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be received by the card end of the key instruction at the same time. carried out.
  • the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
  • FIG. 6 is a schematic diagram of a functional module of a remote control button distribution device according to a second embodiment of the present invention.
  • the second embodiment of the remote controller button distribution device of the present invention is proposed based on the first embodiment.
  • the remote controller button distribution device further includes:
  • the second determining module 50 is configured to determine whether the button instruction is a blocking instruction
  • the second determining module 50 determines whether the button instruction is a blocking instruction, that is, determining whether the button instruction is a synchronous instruction or an asynchronous instruction, and the synchronization refers to After the sender sends out the data, the receiver will send the next packet communication mode after sending back the response. It can also be understood that the operation of the two threads is related, and one thread is blocked to wait for another thread to run, that is, blocked. Mode; the asynchronous is the communication method after the sender sends the data, does not wait for the receiver to send back the response, and then sends the next data packet.
  • the two threads have nothing to do, and run their own, that is, the non-blocking mode. . If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
  • the change module 60 is configured to: if the button command is a blocking command, change an operating state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
  • the changing module 60 changes the running state of the program that runs the button instruction according to the button instruction by the daemon to prompt the user that the next button instruction is in the The button command will be executed after it has been executed.
  • the screen end determines that the button instruction is a non-blocking instruction and performs an operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented.
  • the running state is an operating state of a program that executes the button instruction on the screen end.
  • the operating state of the program that executes the button command includes busy, stop, idle, and the like.
  • the screen end When the running state of the program that executes the button instruction is busy, the screen end is performing an operation corresponding to the button instruction; when the screen end executes the button instruction, the running state of the program is When idle, it indicates that the screen end has performed the operation corresponding to the button instruction. When the running state of the program that executes the button instruction on the screen end is stopped, it indicates that the screen end has paused the operation corresponding to the button instruction.
  • the button command of the remote controller is the power button
  • the power button is a blocking command
  • the screen end changes the running state of the program that executes the key command to busy, and the state corresponding to the power key is not executed.
  • the card end Until the card end notifies that the screen end can perform the operation corresponding to the power key, that is, the power of the card end is turned off, the screen end is awakened, and the operation corresponding to the power key is continued, otherwise The screen end will remain in the waiting state until the timeout expires, the operation corresponding to the power key is abandoned, and the operation corresponding to the next key command is continued. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
  • the third determining module 70 is configured to determine, according to a function corresponding to the button instruction, whether the button command needs to be forwarded to the card end to execute;
  • the third determining module 70 determines, according to the function corresponding to the button command, whether to forward the button command to the card end, that is, whether it is required to communicate with the card end, whether the button command requires the screen end Cooperating with the card end.
  • the manner of communication is serial communication.
  • the card terminal determines whether it is necessary to forward the button command to the screen end, that is, whether it is necessary to communicate with the screen end. For example, when the user needs to adjust the backlight, but the backlight is controlled at the screen end, the card end needs to notify the screen end to adjust the backlight by communicating with the screen end.
  • the sending module 80 is configured to send a preset signal to the card end if the button command is to be forwarded to the card end, so that the card end performs the button instruction according to the preset signal. operating.
  • the sending module 80 sends a preset signal to the card. End, wherein the card end performs an operation corresponding to the button instruction according to the preset signal.
  • the preset signal is used to notify the card end that the screen end has completed the operation of the button instruction, and the card end is required to continue processing the button instruction to implement the function corresponding to the button instruction.
  • the screen determines that the button command does not need to be forwarded to the card end, it indicates that the function corresponding to the button command is implemented by the screen end. After the screen end performs the operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
  • buttons instruction when the button instruction is a blocking instruction, a prompt message is sent to prompt the user to avoid occurrence of a situation in which the user thinks that the button is invalid; and when the button instruction needs to perform communication between the screen end and the card end, Sending a preset signal, so that one end of receiving the preset signal receives the preset signal, performing an operation corresponding to the button instruction, implementing a function corresponding to the button instruction, so that the module television can better process the remote controller
  • the button commands sent improve the user experience.
  • FIG. 7 is a schematic diagram of a functional module of a third embodiment of a remote controller button distribution device according to the present invention. Based on the first embodiment, a third embodiment of the remote controller button distribution device of the present invention is proposed.
  • the remote controller button distribution device further includes:
  • the obtaining module 90 is configured to acquire an attribute type of the television card when the card end has been inserted into the television card;
  • the screen determines whether the card end has been inserted into the TV card. If the screen detects that the card end has been inserted into the TV card, communicates with the TV card. Preferably, the communication mode is serial communication, and the obtaining module 90 acquires the attribute of the TV card by using a serial port command. Types of.
  • the attribute types of the TV card include the manufacturer, model, and size of the memory, and eMMC (Embedded) Multi Media Card) size and so on. If the card end is not inserted into the TV card, a prompt message is output to prompt the user to insert the TV card.
  • the TV card has the functions of processing analog/digital signals of the television, and also includes functions of network communication, high-definition decoding and output.
  • the setting module 110 is configured to set a key value corresponding to the key instruction that the television card can receive according to the attribute type of the television card.
  • the setting module 110 sets the key value corresponding to the TV card key instruction according to the attribute type of the TV card.
  • FIG. 8 is a schematic diagram of a functional module of a module according to an embodiment of the present invention.
  • the setting module 110 includes:
  • the determining unit 111 is configured to determine, according to the attribute type of the television card, whether the television card is a known card;
  • the converting unit 112 is configured to convert the key value corresponding to the button command of the television card into a standard Android button key value if the television card is a non-known card;
  • the setting unit 113 is configured to set a key value corresponding to the TV card key instruction to an activated state if the television card is a known card.
  • the determining unit 111 determines whether the television card is a known card according to the attribute type of the television card, that is, whether the screen end is compatible with the television card, and if the screen end is not compatible with the television card, the television is The card is a non-known card.
  • the converting unit 112 converts the key value corresponding to the TV card key instruction into a standard Android button key value.
  • the setting unit 113 sets the button key value corresponding to the TV card button instruction to an activated state, when the remote controller sends When the button is commanded, the screen end and the card end simultaneously receive the button command.
  • the screen end can be compatible with various TV cards. It provides the necessary conditions for the module TV to better distribute the key commands sent by the remote controller, and improves the user experience.
  • 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.

Abstract

A remote controller key allocation method and device. The method comprises: when receiving a key instruction sent by a remote controller, parsing a key value corresponding to the key instruction; judging whether a pre-set key value corresponding to the key value exists; if a pre-set key value corresponding to the key value exists, performing an operation corresponding to the key instruction; and if a pre-set key value corresponding to the key value does not exist, discarding the key instruction, so that a card end which receives the key instruction performs the operation corresponding to the key instruction. When a card end and a shield end of a modular television simultaneously receive a key instruction of a remote controller, the key instruction of the remote controller can be well allocated, thereby improving the user experience effect.

Description

遥控器按键分配方法和装置  Remote control button distribution method and device
技术领域Technical field
本发明涉及电视领域,尤其涉及一种遥控器按键分配方法和装置。The present invention relates to the field of television, and in particular, to a remote controller button distribution method and apparatus.
背景技术Background technique
模块电视是目前电视行业的前沿理念,很多厂家都在开发和研制中。模块电视是指可制定、可升级的智能电视,用户可以根据自己的需求定制差异化的产品功能模块。在模块电视中,存在两个板卡,为了区分这两个板卡,把跟显示屏密切相关的、不会更换的板卡叫屏端,另一个可以插拔、更换的板卡叫卡端。Module TV is the frontier concept of the TV industry, and many manufacturers are developing and developing. Module TV refers to a smart TV that can be developed and upgraded. Users can customize differentiated product function modules according to their own needs. In the module TV, there are two boards. In order to distinguish the two boards, the board that is closely related to the display screen and will not be replaced is called the screen end, and the other board that can be plugged and replaced and replaced is called the card end. .
当模块电视的卡端更换一张电视卡之后,很大可能就需要根据更换的电视卡来修改屏端的软件。特别对于遥控器而言,屏端和卡端是完全独立的,双方都有自己的GUI(Graphical User Interface,图形用户界面,又称图形用户接口)系统。卡端和屏端都要处理各自所接收到的遥控信息。所以在处理遥控器按键的时候,很容易导致电视卡所在的卡端和屏端软件的逻辑错乱。当用户发出遥控按键命令时,模块电视不能很好分配遥控按键命令,在用户使用屏的时候出现异常情况。After the card end of the module TV is replaced with a TV card, it is very likely that the software of the screen end needs to be modified according to the replaced TV card. Especially for the remote control, the screen and the card are completely independent, both have their own GUI (Graphical User Interface, graphical user interface, also known as graphical user interface) system. Both the card end and the screen end process the remote control information received by them. Therefore, when dealing with the remote control buttons, it is easy to cause the logic of the card end and the screen end software where the TV card is located. When the user issues a remote button command, the module TV cannot assign the remote button command very well, and an abnormal situation occurs when the user uses the screen.
发明内容Summary of the invention
本发明的主要目的在于提供一种遥控器按键分配方法和装置,解决当模块电视的卡端和屏端同时接收到遥控器的按键指令时,容易导致卡端和屏端软件的逻辑错乱的技术问题。The main object of the present invention is to provide a remote control button distribution method and device, which solves the problem that when the card end and the screen end of the module TV receive the key command of the remote controller at the same time, the logic of the card end and the screen end software is easily disordered. problem.
为实现上述目的,本发明提供的一种遥控器按键分配方法,所述方法包括步骤:To achieve the above objective, the present invention provides a remote controller button assignment method, the method comprising the steps of:
当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;When receiving a key command sent by the remote controller, parsing a key value corresponding to the button command;
判断是否存在与所述键值对应的预设键值;Determining whether there is a preset key value corresponding to the key value;
若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;If there is a preset key value corresponding to the key value, performing an operation corresponding to the button instruction;
以及as well as
若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作;If there is no preset key value corresponding to the key value, discarding the key instruction, so that the card end receiving the key instruction performs an operation corresponding to the key instruction;
其中,所述执行所述按键指令对应的操作的步骤包括:The step of performing the operation corresponding to the button instruction includes:
判断处理所述按键指令的系统是否处于繁忙状态;Determining whether the system that processes the button command is in a busy state;
若所述系统处于繁忙状态,则提示用户所述系统处于繁忙状态,所述按键指令对应的操作要等待一定时间之后才继续执行;If the system is in a busy state, prompting the user that the system is in a busy state, and the operation corresponding to the button instruction waits for a certain time before continuing to execute;
若所述按键指令的系统处于空闲状态,则立即执行所述按键指令对应的操作。If the system of the button command is in an idle state, the operation corresponding to the button command is immediately executed.
此外,为实现上述目的,本发明还提供一种遥控器按键分配方法,所述方法包括步骤:In addition, in order to achieve the above object, the present invention further provides a remote controller button assigning method, the method comprising the steps of:
当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;When receiving a key command sent by the remote controller, parsing a key value corresponding to the button command;
判断是否存在与所述键值对应的预设键值;Determining whether there is a preset key value corresponding to the key value;
若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;以及Performing an operation corresponding to the button instruction if there is a preset key value corresponding to the key value;
若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作。And if there is no preset key value corresponding to the key value, discarding the key instruction, so that the card end receiving the key instruction performs an operation corresponding to the key instruction.
优选地,所述若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作的步骤之后,还包括:Preferably, after the step of performing the operation corresponding to the button instruction, if there is a preset key value corresponding to the key value, the method further includes:
判断所述按键指令是否是阻塞指令;Determining whether the button instruction is a blocking instruction;
若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。If the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is executed after the button command is executed.
优选地,所述若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行的步骤之后,还包括:Preferably, if the button instruction is a blocking instruction, the operating state of the screen is changed according to the button instruction to prompt the user that the next button instruction is executed after the button instruction is executed, and further includes :
根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;Determining whether the button instruction needs to be forwarded to the card end according to a function corresponding to the button instruction;
若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。If the button command needs to be forwarded to the card end, the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
优选地,所述当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值的步骤之前,还包括:Preferably, before the step of parsing the key value corresponding to the button instruction when receiving the button command sent by the remote controller, the method further includes:
当侦测到所述卡端已插入电视卡时,获取所述电视卡的属性类型;Obtaining an attribute type of the television card when detecting that the card end has been inserted into the television card;
根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。Setting a key value corresponding to the TV card key instruction according to an attribute type of the television card.
优选地,所述根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值的步骤包括:Preferably, the step of setting the key value corresponding to the TV card key instruction according to the attribute type of the television card comprises:
根据所述电视卡的属性类型判断所述电视卡是否为已知卡;Determining whether the television card is a known card according to an attribute type of the television card;
若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;If the TV card is a non-known card, converting a key value corresponding to the TV card key instruction into a standard Android button key value;
若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。If the TV card is a known card, the key value corresponding to the TV card key command is set to an active state.
此外,为实现上述目的,本发明还提供一种遥控器按键分配装置,所述装置包括:In addition, in order to achieve the above object, the present invention further provides a remote controller button distribution device, the device comprising:
解析模块,用于当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;The parsing module is configured to parse the key value corresponding to the button instruction when receiving the button command sent by the remote controller;
第一判断模块,用于判断是否存在与所述键值对应的预设键值;a first determining module, configured to determine whether there is a preset key value corresponding to the key value;
执行模块,用于若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;An execution module, configured to execute an operation corresponding to the button instruction if a preset key value corresponding to the key value exists;
丢弃模块,用于若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作。And discarding the module, if the preset key value corresponding to the key value does not exist, discarding the button instruction, so that the card end receiving the button instruction performs an operation corresponding to the button instruction.
优选地,所述遥控器按键分配装置还包括:Preferably, the remote controller button distribution device further includes:
第二判断模块,用于判断所述按键指令是否是阻塞指令;a second determining module, configured to determine whether the button instruction is a blocking instruction;
更改模块,用于若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。And a change module, configured to: if the button command is a blocking command, change an operating state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
优选地,所述遥控器按键分配装置还包括:Preferably, the remote controller button distribution device further includes:
第三判断模块,用于判断根据所述按键指令对应的功能是否需要转发所述按键指令至所述卡端执行;a third determining module, configured to determine, according to whether the function corresponding to the button instruction needs to forward the button command to the card end;
发送模块,用于若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。a sending module, configured to send a preset signal to the card end if the button command is to be forwarded to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal .
优选地,所述遥控器按键分配装置还包括:Preferably, the remote controller button distribution device further includes:
获取模块,用于当侦测到所述卡端已插入电视卡时,获取所述电视卡的属性类型;An acquiring module, configured to acquire an attribute type of the television card when detecting that the card end has been inserted into the television card;
设置模块,用于根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。And a setting module, configured to set a key value corresponding to the button command of the television card according to an attribute type of the television card.
优选地,所述设置模块包括: Preferably, the setting module comprises:
判断单元,用于根据所述电视卡的属性类型判断所述电视卡是否为已知卡;a determining unit, configured to determine, according to an attribute type of the television card, whether the television card is a known card;
转换单元,用于若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;a conversion unit, configured to convert a key value corresponding to the TV card key instruction into a standard Android key value if the television card is a non-known card;
设置单元,用于若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。And a setting unit, configured to set a key value corresponding to the TV card key instruction to an activated state if the television card is a known card.
本发明通过当屏端接收到遥控器发送的按键指令时,解析所述按键指令对应的键值,若屏端存在与键值对应的预设键值,则执行所述按键指令对应的操作,若不存在与键值对应的预设键值时,则表明卡端中存在与所述按键指令的键值对应的预设键值,该按键指令应该由同时接收到所述按键指令的卡端执行。即在接收遥控器的按键指令之前,卡端和屏端就协商好遥控器按键指令的分配,实现了当模块电视的卡端和屏端同时接收到遥控器的按键指令时,能较好地分配遥控器的按键指令,提高用户的体验效果。The invention parses the key value corresponding to the key instruction when the screen end receives the key instruction sent by the remote controller, and if the preset key value corresponding to the key value exists on the screen end, the operation corresponding to the key instruction is performed, If there is no preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be received by the card end of the key instruction at the same time. carried out. That is, before receiving the button command of the remote controller, the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
附图说明DRAWINGS
图1为本发明遥控器按键分配方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a remote controller button distribution method according to the present invention;
图2为本发明遥控器按键分配方法第二实施例的流程示意图;2 is a schematic flow chart of a second embodiment of a remote controller button distribution method according to the present invention;
图3为本发明遥控器按键分配方法第三实施例的流程示意图;3 is a schematic flow chart of a third embodiment of a remote controller button distribution method according to the present invention;
图4为本发明实施例中根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值的一种流程示意图;4 is a schematic flowchart of setting a key value corresponding to a button instruction of the television card according to an attribute type of the television card according to an embodiment of the present invention;
图5为本发明遥控器按键分配装置第一实施例的功能模块示意图;5 is a schematic diagram of functional modules of a first embodiment of a remote controller button distribution device according to the present invention;
图6为本发明遥控器按键分配装置第二实施例的功能模块示意图;6 is a schematic diagram of functional modules of a second embodiment of a remote controller button distribution device according to the present invention;
图7为本发明遥控器按键分配装置第三实施例的功能模块示意图;7 is a schematic diagram of functional modules of a third embodiment of a remote controller button distribution device according to the present invention;
图8为本发明实施例中设置模块的一种功能模块示意图。FIG. 8 is a schematic diagram of a functional module of a module according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。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: when receiving the button command sent by the remote controller, parsing the key value corresponding to the button command; determining whether there is a preset key value corresponding to the key value; Determining, by the preset key value corresponding to the key value, performing an operation corresponding to the key instruction; if there is no preset key value corresponding to the key value, discarding the key instruction for receiving the key instruction The card end performs the operation corresponding to the button instruction. When the screen terminal receives the button command sent by the remote controller, parsing the key value corresponding to the button command, if there is a preset key value corresponding to the button value on the screen end, performing the operation corresponding to the button command, if not When there is a preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be executed by the card end that receives the key instruction at the same time. That is, before receiving the button command of the remote controller, the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
在模块电视中,当卡端和屏端同时接收到遥控器的按键指令时,容易导致卡端和屏端软件的逻辑错乱,模块电视不能很好地分配遥控器发送的按键命令。In the module TV, when the card end and the screen end receive the key command of the remote controller at the same time, the logic of the card end and the screen end software is easily disordered, and the module TV cannot distribute the key command sent by the remote controller well.
基于上述问题,本发明提供一种遥控器按键分配方法。Based on the above problems, the present invention provides a remote controller button assignment method.
参照图1,图1为本发明遥控器按键分配方法第一实施例的流程示意图。1 is a schematic flow chart of a first embodiment of a method for allocating a button of a remote controller according to the present invention.
在本实施例中,所述遥控器按键分配方法包括:In this embodiment, the remote controller button distribution method includes:
步骤S10,当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;Step S10, when receiving a button command sent by the remote controller, parsing a key value corresponding to the button command;
当模块电视的屏端接收到遥控器发送的按键指令时,解析所述按键指令对应的键值。当模块电视的屏端在接收到遥控器发送的按键指令的同时,所述模块电视的卡端也在接收所述遥控器发送的按键指令,并解析所述按键指令对应的键值。所述遥控器发送的每一个按键指令都有对应的键值,以供接收到所述按键指令的设备区分所述按键指令对应的功能。When the screen end of the module TV receives the button command sent by the remote controller, the key value corresponding to the button command is parsed. When the screen end of the module TV receives the button command sent by the remote controller, the card terminal of the module TV also receives the button command sent by the remote controller, and parses the key value corresponding to the button command. Each button command sent by the remote controller has a corresponding key value, so that the device receiving the button command distinguishes the function corresponding to the button command.
步骤S20,判断是否存在与所述键值对应的预设键值;Step S20, determining whether there is a preset key value corresponding to the key value;
当所述屏端解析出所述按键指令对应的键值之后,判断是否存在与所述键值对应的预设键值,即判断是否有权限处理所述按键指令。在所述模块电视的屏端和卡端接收所述遥控器的按键指令之前,所述屏端和所述卡端已经对所述遥控器按键指令的处理权限达成协议。所述屏端将自己有权限处理的按键指令对应的键值存储起来,作为预设键值,当接收到所述遥控器发送的按键指令时,判断所述按键指令对应的键值是否与预设键值对应。所述卡端也将自己有权限处理的按键指令对应的键值存储起来,作为预设键值,当接收到所述遥控器发送的按键指令时,判断所述按键指令对应的键值是否与预设键值对应。After the screen end parses the key value corresponding to the button instruction, it is determined whether there is a preset key value corresponding to the key value, that is, whether there is permission to process the button instruction. Before the screen end and the card end of the module TV receive the button command of the remote controller, the screen end and the card end have reached an agreement on the processing authority of the remote controller button command. The screen end stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is Set the key value to correspond. The card end also stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is The preset key value corresponds.
步骤S30,若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;Step S30, if there is a preset key value corresponding to the key value, performing an operation corresponding to the button instruction;
当所述屏端判定存在与所述键值对应的预设键值时,执行所述按键指令对应的操作,执行过程如下:判断是否立即执行所述按键指令对应的操作。具体的,如果当所述屏端侦测到上一次的按键指令对应的操作还没有执行完毕,且在当前工作状态下,不能同时执行其它按键指令时,不会立即执行所述按键指令对应的操作,即处理所述按键指令的系统处于繁忙状态。优选地,当所述系统处于繁忙状态时,所述屏端会提示用户所述系统处于繁忙状态,所述按键指令对应的操作要等待一定时间之后才继续执行,以防止用户以为所述按键指令失效,频繁操作遥控器。所述提示方法包括但不限于通过扬声器发出提示声,或者通过指示灯提示用户。反之,如果所述按键指令的系统处于空闲状态,则立即执行所述按键指令对应的操作。假设所述屏端所接收的按键指令是power键,而所述power键对应的键值为0×81,当所述屏端在其所存储的预设键值中存在0×81时,且当所述屏端处理按键指令的系统处于空闲状态时,立即执行power键对应的操作。所述卡端接收到所述按键指令的执行过程和所述屏端的接收到所述按键指令的执行过程相似,在此不再赘述。When the screen end determines that there is a preset key value corresponding to the key value, the operation corresponding to the button instruction is performed, and the execution process is as follows: determining whether the operation corresponding to the button instruction is performed immediately. Specifically, if the screen end detects that the operation corresponding to the previous key command has not been executed yet, and the other key commands cannot be simultaneously executed in the current working state, the corresponding button command is not immediately executed. The operation, that is, the system that processes the button commands is in a busy state. Preferably, when the system is in a busy state, the screen end prompts the user that the system is in a busy state, and the operation corresponding to the button instruction waits for a certain time before continuing to execute, so as to prevent the user from thinking that the button command is Invalid, frequently operate the remote control. The prompting method includes, but is not limited to, emitting a prompt sound through a speaker, or prompting the user through an indicator light. On the other hand, if the system of the button command is in an idle state, the operation corresponding to the button command is immediately executed. It is assumed that the button command received by the screen terminal is a power button, and the key value corresponding to the power button is 0×81, when the screen end has 0×81 in the preset key value stored therein, and When the system that processes the button command on the screen is in an idle state, the operation corresponding to the power button is immediately executed. The execution process of the card terminal receiving the button instruction is similar to the execution process of the screen terminal receiving the button command, and details are not described herein again.
步骤S40,若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作。Step S40: If there is no preset key value corresponding to the key value, discarding the button instruction, so that the card end receiving the button instruction performs an operation corresponding to the button instruction.
若所述屏端判定不存在与所述键值对应的预设键值,表明所述按键指令的处理权限是属于卡端的,则所述屏端将丢弃所述按键指令,同时接收到所述按键指令的卡端将执行所述按键指令对应的操作。If the screen determines that there is no preset key value corresponding to the key value, indicating that the processing authority of the button instruction belongs to the card end, the screen end discards the button command while receiving the The card end of the button command will perform the operation corresponding to the button command.
本实施例通过当屏端接收到遥控器发送的按键指令时,解析所述按键指令对应的键值,若屏端存在与键值对应的预设键值,则执行所述按键指令对应的操作,若不存在与键值对应的预设键值时,则表明卡端中存在与所述按键指令的键值对应的预设键值,该按键指令应该由同时接收到所述按键指令的卡端执行。即在接收遥控器的按键指令之前,卡端和屏端就协商好遥控器按键指令的分配,实现了当模块电视的卡端和屏端同时接收到遥控器的按键指令时,能较好地分配遥控器的按键指令,提高用户的体验效果。In this embodiment, when the screen end receives the button command sent by the remote controller, the key value corresponding to the button command is parsed, and if the preset button key value corresponding to the key value exists on the screen end, the operation corresponding to the button command is executed. If there is no preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be the card that receives the key instruction at the same time. Execution. That is, before receiving the button command of the remote controller, the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
参照图2,图2为本发明遥控器按键分配方法第二实施例的流程示意图,基于第一实施例提出本发明遥控器按键分配方法第二实施例。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a method for allocating a button of a remote controller according to a second embodiment of the present invention.
在本实施例中,所述步骤S30之后,还包括:In this embodiment, after the step S30, the method further includes:
步骤S50,判断所述按键指令是否是阻塞指令;Step S50, determining whether the button instruction is a blocking instruction;
在所述屏端执行所述按键指令对应的操作的过程中,判断所述按键指令是否是阻塞指令,即判断所述按键指令是同步指令还是异步指令,所述同步是指发送方发出数据后,等接收方发回响应以后才发下一个数据包的通讯方式,也可以理解为两个线程的运行是相关的,其中一个线程要阻塞等待另外一个线程的运行,即阻塞模式;所述异步是发送方发出数据后,不等待接收方发回响应,接着发送下个数据包的通讯方式,也可以理解为两个线程毫无关系,自己运行自己的,即非阻塞模式。若所述按键指令是由所述卡端执行的,则所述卡端的执行过程和所述屏端相似,在此不再赘述。In the process of performing the operation corresponding to the button instruction on the screen end, determining whether the button instruction is a blocking instruction, that is, determining whether the button instruction is a synchronous instruction or an asynchronous instruction, and the synchronization refers to the sending side sending data. After the receiver sends back the response, the communication mode of the next data packet is sent. It can also be understood that the operation of the two threads is related, and one thread is blocked to wait for another thread to run, that is, the blocking mode; the asynchronous After the sender sends out the data, it does not wait for the receiver to send back a response, and then sends the communication method of the next packet. It can also be understood that the two threads have nothing to do, and run their own, that is, non-blocking mode. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
步骤S60,若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。Step S60, if the button command is a blocking command, changing the running state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
当所述屏端判定所述按键指令是阻塞指令时,所述屏端通过守护进程根据所述按键指令更改运行所述按键指令的程序的运行状态,以提示所述用户下一个按键指令在所述按键指令执行完毕之后会被执行。当所述屏端判定所述按键指令是非阻塞指令,并执行完所述按键指令对应的操作之后,表明所述按键指令的功能已经实现。所述运行状态为所述屏端执行所述按键指令的程序的运行状态。所述执行所述按键指令的程序的运行状态包括忙、停止、空闲等。当所述屏端执行所述按键指令的程序的运行状态为忙时,表示所述屏端正在执行所述按键指令对应的操作;当所述屏端执行所述按键指令的程序的运行状态为空闲时,表示所述屏端已执行完毕所述按键指令对应的操作。当所述屏端执行所述按键指令的程序的运行状态为停止时,表示所述屏端已暂停执行所述按键指令对应的操作。例如当所述遥控器的按键指令为power键时,在所述屏端接收到所述power键之后,需要等待所述卡端的反馈消息,因为所述power键位为阻塞指令,这时就需要通知所述屏端停止接收其它按键指令,所述屏端将执行所述按键指令的程序的运行状态更改为忙,所述power键对应的状态为未执行完毕。直到所述卡端通知所述屏端可以执行所述power键对应的操作,即关闭所述卡端的电源,所述屏端才会被唤醒,继续执行所述power键对应的操作,否则所述屏端会一直处于等待状态,直到等到超时的时候,放弃执行所述power键对应的操作,继续执行下一个按键指令对应的操作。若所述按键指令是由所述卡端执行的,则所述卡端的执行过程和所述屏端相似,在此不再赘述。When the screen end determines that the button instruction is a blocking instruction, the screen end changes the running state of the program that runs the button instruction according to the button instruction by the daemon, to prompt the user that the next button instruction is in the After the button command is executed, it will be executed. When the screen end determines that the button instruction is a non-blocking instruction and performs an operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented. The running state is an operating state of a program that executes the button instruction on the screen end. The operating state of the program that executes the button command includes busy, stop, idle, and the like. When the running state of the program that executes the button instruction is busy, the screen end is performing an operation corresponding to the button instruction; when the screen end executes the button instruction, the running state of the program is When idle, it indicates that the screen end has performed the operation corresponding to the button instruction. When the running state of the program that executes the button instruction on the screen end is stopped, it indicates that the screen end has paused the operation corresponding to the button instruction. For example, when the button command of the remote controller is a power button, after receiving the power button on the screen end, it is necessary to wait for a feedback message of the card end, because the power key bit is a blocking instruction, and then it is required Notifying the screen end to stop receiving other key commands, the screen end changes the running state of the program that executes the key command to busy, and the state corresponding to the power key is not executed. Until the card end notifies that the screen end can perform the operation corresponding to the power key, that is, the power of the card end is turned off, the screen end is awakened, and the operation corresponding to the power key is continued, otherwise The screen end will remain in the waiting state until the timeout expires, the operation corresponding to the power key is abandoned, and the operation corresponding to the next key command is continued. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
步骤S70,根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;Step S70: Determine, according to a function corresponding to the button instruction, whether the button command needs to be forwarded to the card end to execute;
所述屏端根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行,即判断是否需要与所述卡端进行通信,所述按键指令是否需要所述屏端和所述卡端协同处理。优选地,进行通信的方式为串口通信。当所述按键指令是由所述卡端执行的,则所述卡端判断是否需要转发所述按键指令至所述屏端执行,即判断是否需要与所述屏端进行通信。如当所述用户需要调节背光,然而背光的控制在屏端,所以所述卡端就需要通过与所述屏端进行通信,通知所述屏端调节背光。The screen end determines whether it is necessary to forward the button command to the card end according to a function corresponding to the button instruction, that is, whether it is necessary to communicate with the card end, whether the button instruction requires the screen end and The card ends are cooperatively processed. Preferably, the manner of communication is serial communication. When the button command is executed by the card end, the card terminal determines whether it is necessary to forward the button command to the screen end, that is, whether it is necessary to communicate with the screen end. For example, when the user needs to adjust the backlight, but the backlight is controlled at the screen end, the card end needs to notify the screen end to adjust the backlight by communicating with the screen end.
步骤S80,若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。Step S80: If the button command needs to be forwarded to the card end, the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
若所述屏端判定需要转发所述按键指令至所述卡端执行,即当所述按键指令需要所述屏端和所述卡端协同处理时,发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。所述预设信号是用来通知卡端所述屏端已经完成了对所述按键指令的操作,需要所述卡端继续对所述按键指令进行处理,以实现所述按键指令对应的功能。若所述屏端判定不需要转发所述按键指令至所述卡端执行,则表明所述按键指令所对应的功能由所述屏端就可以实现。当所述屏端执行完所述按键指令对应的操作之后,表明所述按键指令的功能已经实现。若所述按键指令是由所述卡端执行的,则所述卡端的执行过程和所述屏端相似,在此不再赘述。If the screen determines that the button command needs to be forwarded to the card end, that is, when the button command requires the screen end and the card end to cooperate, sending a preset signal to the card end, And the card end performs an operation corresponding to the button instruction according to the preset signal. The preset signal is used to notify the card end that the screen end has completed the operation of the button instruction, and the card end is required to continue processing the button instruction to implement the function corresponding to the button instruction. If the screen determines that the button command does not need to be forwarded to the card end, it indicates that the function corresponding to the button command is implemented by the screen end. After the screen end performs the operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
本实施例通过当所述按键指令是阻塞指令时,发出提示消息提示用户,避免出现用户以为按键无效的情况出现;并通过当所述按键指令需要进行屏端和卡端之间的通信时,发送预设信号,以使接收预设信号的一端接收到所述预设信号之后,执行所述按键指令对应的操作,实现所述按键指令对应的功能,使模块电视能较好的处理遥控器发送的按键指令,提高了用户的体验效果。In this embodiment, when the button instruction is a blocking instruction, a prompt message is sent to prompt the user to avoid occurrence of a situation in which the user thinks that the button is invalid; and when the button instruction needs to perform communication between the screen end and the card end, Sending a preset signal, so that one end of receiving the preset signal receives the preset signal, performing an operation corresponding to the button instruction, implementing a function corresponding to the button instruction, so that the module television can better process the remote controller The button commands sent improve the user experience.
参照图3,图3为本发明遥控器按键分配方法第三实施例的流程示意图,基于第一实施例提出本发明遥控器按键分配方法第三实施例。Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of a method for allocating a button of a remote controller according to a third embodiment of the present invention.
在本实施例中,所述步骤S10之前,还包括:In this embodiment, before the step S10, the method further includes:
步骤S90,当侦测到所述卡端已插入电视卡时,获取所述电视卡的属性类型;Step S90: When detecting that the card end has been inserted into the TV card, acquiring an attribute type of the TV card;
当所述屏端在上电之后,所述屏端判断是否侦测到所述卡端已插入电视卡。若所述屏端侦测到所述卡端已经插入电视卡,则与所述电视卡进行通信,优选地,所述通信方式为串口通信,所述屏端通过串口命令获取所述电视卡的属性类型。所述电视卡的属性类型包括生产厂商、型号、内存的大小,eMMC(Embedded Multi Media Card)大小等等。若所述卡端未插入电视卡,则输出提示信息,提示所述用户插入电视卡。所述电视卡既具备对电视模拟/数字信号的处理功能,同时也包括了网络通信、高清解码和输出等功能。After the screen is powered on, the screen determines whether the card end has been inserted into the TV card. If the screen end detects that the card end has been inserted into the TV card, communicates with the TV card. Preferably, the communication mode is serial port communication, and the screen end acquires the TV card through a serial port command. Attribute type. The attribute types of the TV card include the manufacturer, model, and size of the memory, and eMMC (Embedded) Multi Media Card) size and so on. If the card end is not inserted into the TV card, a prompt message is output to prompt the user to insert the TV card. The TV card has the functions of processing analog/digital signals of the television, and also includes functions of network communication, high-definition decoding and output.
步骤S110,根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。Step S110, setting a key value corresponding to the button command of the television card according to an attribute type of the television card.
所述屏端根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。The screen end sets a key value corresponding to the button instruction of the television card according to an attribute type of the television card.
具体地,参照图4,图4为本发明实施例中根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值的一种流程示意图。所述步骤S110包括:Specifically, referring to FIG. 4, FIG. 4 is a schematic flowchart of setting a key value corresponding to the button instruction of the television card according to an attribute type of the television card according to an embodiment of the present invention. The step S110 includes:
步骤S111,根据所述电视卡的属性类型判断所述电视卡是否为已知卡;Step S111, determining, according to the attribute type of the television card, whether the television card is a known card;
步骤S112,若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;Step S112, if the television card is a non-known card, converting the key value corresponding to the button command of the television card into a standard Android button key value;
步骤S113,若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。Step S113, if the TV card is a known card, the key value corresponding to the TV card key command is set to an active state.
所述屏端根据所述电视卡的属性类型判断所述电视卡是否为已知卡,即所述屏端是否兼容所述电视卡,若所述屏端不兼容所述电视卡,则所述电视卡为非已知卡。当所述电视卡为非已知卡时,所述屏端将所述电视卡按键指令对应的键值转换为标准安卓按键键值。当所述屏端兼容所述电视卡时,即所述电视卡为已知卡时,将所述电视卡按键指令对应的按键键值设置为激活状态,则当所述遥控器发送按键指令时,所述屏端和所述卡端同时接收到所述按键指令。Determining, by the screen end, whether the television card is a known card according to an attribute type of the television card, that is, whether the screen end is compatible with the television card, and if the screen end is not compatible with the television card, The TV card is a non-known card. When the television card is a non-known card, the screen end converts the key value corresponding to the TV card key instruction into a standard Android button key value. When the screen end is compatible with the television card, that is, when the television card is a known card, setting a button key value corresponding to the TV card button instruction to an activated state, when the remote controller sends a button command The screen end and the card end simultaneously receive the button command.
本实施例通过将电视卡通用化,使屏端可以兼容各种不同的电视卡。为模块电视能够较好地分配遥控器发送的按键指令提供了必要的条件,提高了用户体验效果。In this embodiment, by using a TV cartoon, the screen end can be compatible with various TV cards. It provides the necessary conditions for the module TV to better distribute the key commands sent by the remote controller, and improves the user experience.
本发明进一步提供一种遥控器按键分配装置。The invention further provides a remote control button dispensing device.
参照图5,图5为本发明遥控器按键分配装置第一实施例的功能模块示意图。Referring to FIG. 5, FIG. 5 is a schematic diagram of functional modules of a first embodiment of a remote controller button distribution device according to the present invention.
在本实施例中,所述遥控器按键分配装置包括:In this embodiment, the remote controller button distribution device includes:
解析模块10,用于当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;The parsing module 10 is configured to parse a key value corresponding to the button instruction when receiving a button command sent by the remote controller;
当模块电视的屏端接收到遥控器发送的按键指令时,解析模块10解析所述按键指令对应的键值。当模块电视的屏端在接收到遥控器发送的按键指令的同时,所述模块电视的卡端也在接收所述遥控器发送的按键指令,并解析所述按键指令对应的键值。所述遥控器发送的每一个按键指令都有对应的键值,以供接收到所述按键指令的设备区分所述按键指令对应的功能。When the screen end of the module TV receives the button command sent by the remote controller, the parsing module 10 parses the key value corresponding to the button command. When the screen end of the module TV receives the button command sent by the remote controller, the card terminal of the module TV also receives the button command sent by the remote controller, and parses the key value corresponding to the button command. Each button command sent by the remote controller has a corresponding key value, so that the device receiving the button command distinguishes the function corresponding to the button command.
第一判断模块20,用于判断是否存在与所述键值对应的预设键值;The first determining module 20 is configured to determine whether there is a preset key value corresponding to the key value;
当所述屏端解析出所述按键指令对应的键值之后,第一判断模块20判断是否存在与所述键值对应的预设键值,即判断是否有权限处理所述按键指令。在所述模块电视的屏端和卡端接收所述遥控器的按键指令之前,所述屏端和所述卡端已经对所述遥控器按键指令的处理权限达成协议。所述屏端将自己有权限处理的按键指令对应的键值存储起来,作为预设键值,当接收到所述遥控器发送的按键指令时,判断所述按键指令对应的键值是否与预设键值对应。所述卡端也将自己有权限处理的按键指令对应的键值存储起来,作为预设键值,当接收到所述遥控器发送的按键指令时,判断所述按键指令对应的键值是否与预设键值对应。After the screen end parses the key value corresponding to the button instruction, the first determining module 20 determines whether there is a preset key value corresponding to the key value, that is, whether there is permission to process the button instruction. Before the screen end and the card end of the module TV receive the button command of the remote controller, the screen end and the card end have reached an agreement on the processing authority of the remote controller button command. The screen end stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is Set the key value to correspond. The card end also stores the key value corresponding to the key command that the user has the authority to process, as the preset key value, when receiving the key command sent by the remote controller, determining whether the key value corresponding to the button command is The preset key value corresponds.
执行模块30,用于若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;The executing module 30 is configured to execute an operation corresponding to the button instruction if there is a preset key value corresponding to the key value;
当所述屏端判定存在与所述键值对应的预设键值时,执行模块30执行所述按键指令对应的操作,执行过程如下:判断是否立即执行所述按键指令对应的操作。具体的,如果当所述屏端侦测到上一次的按键指令对应的操作还没有执行完毕,且在当前工作状态下,不能同时执行其它按键指令时,不会立即执行所述按键指令对应的操作,即处理所述按键指令的系统处于繁忙状态。优选地,当所述系统处于繁忙状态时,所述屏端会提示用户所述系统处于繁忙状态,所述按键指令对应的操作要等待一定时间之后才继续执行,以防止用户以为所述按键指令失效,频繁操作遥控器。所述提示方法包括但不限于通过扬声器发出提示声,或者通过指示灯提示用户。反之,如果所述按键指令的系统处于空闲状态,则立即执行所述按键指令对应的操作。假设所述屏端所接收的按键指令是power键,而所述power键对应的键值为0×81,当所述屏端在其所存储的预设键值中存在0×81时,且当所述屏端处理按键指令的系统处于空闲状态时,立即执行power键对应的操作。所述卡端接收到所述按键指令的执行过程和所述屏端的接收到所述按键指令的执行过程相似,在此不再赘述。When the screen determines that there is a preset key value corresponding to the key value, the execution module 30 performs an operation corresponding to the key instruction, and the execution process is as follows: determining whether the operation corresponding to the key instruction is performed immediately. Specifically, if the screen end detects that the operation corresponding to the previous key command has not been executed yet, and the other key commands cannot be simultaneously executed in the current working state, the corresponding button command is not immediately executed. The operation, that is, the system that processes the button commands is in a busy state. Preferably, when the system is in a busy state, the screen end prompts the user that the system is in a busy state, and the operation corresponding to the button instruction waits for a certain time before continuing to execute, so as to prevent the user from thinking that the button command is Invalid, frequently operate the remote control. The prompting method includes, but is not limited to, emitting a prompt sound through a speaker, or prompting the user through an indicator light. On the other hand, if the system of the button command is in an idle state, the operation corresponding to the button command is immediately executed. It is assumed that the button command received by the screen terminal is a power button, and the key value corresponding to the power button is 0×81, when the screen end has 0×81 in the preset key value stored therein, and When the system that processes the button command on the screen is in an idle state, the operation corresponding to the power button is immediately executed. The execution process of the card terminal receiving the button instruction is similar to the execution process of the screen terminal receiving the button command, and details are not described herein again.
丢弃模块40,用于若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作。The discarding module 40 is configured to discard the button command if the preset key value corresponding to the key value does not exist, so that the card end that receives the button command performs an operation corresponding to the button command.
若所述屏端判定不存在与所述键值对应的预设键值,表明所述按键指令的处理权限是属于卡端的,则所述丢弃模块40将丢弃所述按键指令,同时接收到所述按键指令的卡端将执行所述按键指令对应的操作。If the screen determines that there is no preset key value corresponding to the key value, indicating that the processing authority of the button instruction belongs to the card end, the discarding module 40 discards the button command and receives the The card end of the button command will perform the operation corresponding to the button command.
本实施例通过当屏端接收到遥控器发送的按键指令时,解析所述按键指令对应的键值,若屏端存在与键值对应的预设键值,则执行所述按键指令对应的操作,若不存在与键值对应的预设键值时,表明卡端中存在与所述按键指令的键值对应的预设键值,该按键指令应该由同时接收到所述按键指令的卡端执行。即在接收遥控器的按键指令之前,卡端和屏端就协商好遥控器按键指令的分配,实现了当模块电视的卡端和屏端同时接收到遥控器的按键指令时,能较好地分配遥控器的按键指令,提高用户的体验效果。In this embodiment, when the screen end receives the button command sent by the remote controller, the key value corresponding to the button command is parsed, and if the preset button key value corresponding to the key value exists on the screen end, the operation corresponding to the button command is executed. If there is no preset key value corresponding to the key value, it indicates that there is a preset key value corresponding to the key value of the key instruction in the card end, and the key instruction should be received by the card end of the key instruction at the same time. carried out. That is, before receiving the button command of the remote controller, the card end and the screen end negotiate the allocation of the button command of the remote controller, thereby realizing that when the card end and the screen end of the module TV receive the button command of the remote controller at the same time, Assign key commands to the remote control to improve the user experience.
参照图6,图6为本发明遥控器按键分配装置第二实施例的功能模块示意图,基于第一实施例提出本发明遥控器按键分配装置第二实施例。Referring to FIG. 6, FIG. 6 is a schematic diagram of a functional module of a remote control button distribution device according to a second embodiment of the present invention. The second embodiment of the remote controller button distribution device of the present invention is proposed based on the first embodiment.
在本实施例中,所述遥控器按键分配装置还包括:In this embodiment, the remote controller button distribution device further includes:
第二判断模块50,用于判断所述按键指令是否是阻塞指令;The second determining module 50 is configured to determine whether the button instruction is a blocking instruction;
在所述屏端执行所述按键指令对应的操作的过程中,第二判断模块50判断所述按键指令是否是阻塞指令,即判断所述按键指令是同步指令还是异步指令,所述同步是指发送方发出数据后,等接收方发回响应以后才发下一个数据包的通讯方式,也可以理解为两个线程的运行是相关的,其中一个线程要阻塞等待另外一个线程的运行,即阻塞模式;所述异步是发送方发出数据后,不等待接收方发回响应,接着发送下个数据包的通讯方式,也可以理解为两个线程毫无关系,自己运行自己的,即非阻塞模式。若所述按键指令是由所述卡端执行的,则所述卡端的执行过程和所述屏端相似,在此不再赘述。In the process of performing the operation corresponding to the button instruction on the screen end, the second determining module 50 determines whether the button instruction is a blocking instruction, that is, determining whether the button instruction is a synchronous instruction or an asynchronous instruction, and the synchronization refers to After the sender sends out the data, the receiver will send the next packet communication mode after sending back the response. It can also be understood that the operation of the two threads is related, and one thread is blocked to wait for another thread to run, that is, blocked. Mode; the asynchronous is the communication method after the sender sends the data, does not wait for the receiver to send back the response, and then sends the next data packet. It can also be understood that the two threads have nothing to do, and run their own, that is, the non-blocking mode. . If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
更改模块60,用于若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。The change module 60 is configured to: if the button command is a blocking command, change an operating state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
当所述屏端判定所述按键指令是阻塞指令时,更改模块60通过守护进程根据所述按键指令更改运行所述按键指令的程序的运行状态,以提示所述用户下一个按键指令在所述按键指令执行完毕之后会被执行。当所述屏端判定所述按键指令是非阻塞指令,并执行完所述按键指令对应的操作之后,表明所述按键指令的功能已经实现。所述运行状态为所述屏端执行所述按键指令的程序的运行状态。所述执行所述按键指令的程序的运行状态包括忙、停止、空闲等。当所述屏端执行所述按键指令的程序的运行状态为忙时,表示所述屏端正在执行所述按键指令对应的操作;当所述屏端执行所述按键指令的程序的运行状态为空闲时,表示所述屏端已执行完毕所述按键指令对应的操作。当所述屏端执行所述按键指令的程序的运行状态为停止时,表示所述屏端已暂停执行所述按键指令对应的操作。例如当所述遥控器的按键指令为power键时,因为所述power键位为阻塞指令,在所述屏端接收到所述power键之后,需要等待所述卡端的反馈消息,这时就需要通知所述屏端停止接收其它按键指令,所述屏端将执行所述按键指令的程序的运行状态更改为忙,所述power键对应的状态为未执行完毕。直到所述卡端通知所述屏端可以执行所述power键对应的操作,即关闭所述卡端的电源,所述屏端才会被唤醒,继续执行所述power键对应的操作,否则所述屏端会一直处于等待状态,直到等到超时的时候,放弃执行所述power键对应的操作,继续执行下一个按键指令对应的操作。若所述按键指令是由所述卡端执行的,则所述卡端的执行过程和所述屏端相似,在此不再赘述。When the screen end determines that the button instruction is a blocking instruction, the changing module 60 changes the running state of the program that runs the button instruction according to the button instruction by the daemon to prompt the user that the next button instruction is in the The button command will be executed after it has been executed. When the screen end determines that the button instruction is a non-blocking instruction and performs an operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented. The running state is an operating state of a program that executes the button instruction on the screen end. The operating state of the program that executes the button command includes busy, stop, idle, and the like. When the running state of the program that executes the button instruction is busy, the screen end is performing an operation corresponding to the button instruction; when the screen end executes the button instruction, the running state of the program is When idle, it indicates that the screen end has performed the operation corresponding to the button instruction. When the running state of the program that executes the button instruction on the screen end is stopped, it indicates that the screen end has paused the operation corresponding to the button instruction. For example, when the button command of the remote controller is the power button, because the power button is a blocking command, after receiving the power button on the screen, it is necessary to wait for the feedback message of the card, and then it is required Notifying the screen end to stop receiving other key commands, the screen end changes the running state of the program that executes the key command to busy, and the state corresponding to the power key is not executed. Until the card end notifies that the screen end can perform the operation corresponding to the power key, that is, the power of the card end is turned off, the screen end is awakened, and the operation corresponding to the power key is continued, otherwise The screen end will remain in the waiting state until the timeout expires, the operation corresponding to the power key is abandoned, and the operation corresponding to the next key command is continued. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
第三判断模块70,用于根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;The third determining module 70 is configured to determine, according to a function corresponding to the button instruction, whether the button command needs to be forwarded to the card end to execute;
第三判断模块70根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行,即判断是否需要与所述卡端进行通信,所述按键指令是否需要所述屏端和所述卡端协同处理。优选地,进行通信的方式为串口通信。当所述按键指令是由所述卡端执行的,则所述卡端判断是否需要转发所述按键指令至所述屏端执行,即判断是否需要与所述屏端进行通信。如当所述用户需要调节背光,然而背光的控制在屏端,所以所述卡端就需要通过与所述屏端进行通信,通知所述屏端调节背光。The third determining module 70 determines, according to the function corresponding to the button command, whether to forward the button command to the card end, that is, whether it is required to communicate with the card end, whether the button command requires the screen end Cooperating with the card end. Preferably, the manner of communication is serial communication. When the button command is executed by the card end, the card terminal determines whether it is necessary to forward the button command to the screen end, that is, whether it is necessary to communicate with the screen end. For example, when the user needs to adjust the backlight, but the backlight is controlled at the screen end, the card end needs to notify the screen end to adjust the backlight by communicating with the screen end.
发送模块80,用于若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。The sending module 80 is configured to send a preset signal to the card end if the button command is to be forwarded to the card end, so that the card end performs the button instruction according to the preset signal. operating.
若所述屏端判定需要转发所述按键指令至所述卡端执行,即当所述按键指令需要所述屏端和所述卡端协同处理时,发送模块80发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。所述预设信号是用来通知卡端所述屏端已经完成了对所述按键指令的操作,需要所述卡端继续对所述按键指令进行处理,以实现所述按键指令对应的功能。若所述屏端判定不需要转发所述按键指令至所述卡端执行,则表明所述按键指令所对应的功能由所述屏端就可以实现。当所述屏端执行完所述按键指令对应的操作之后,表明所述按键指令的功能已经实现。若所述按键指令是由所述卡端执行的,则所述卡端的执行过程和所述屏端相似,在此不再赘述。If the screen determines that the button command needs to be forwarded to the card end, that is, when the button command requires the screen end and the card end to cooperate, the sending module 80 sends a preset signal to the card. End, wherein the card end performs an operation corresponding to the button instruction according to the preset signal. The preset signal is used to notify the card end that the screen end has completed the operation of the button instruction, and the card end is required to continue processing the button instruction to implement the function corresponding to the button instruction. If the screen determines that the button command does not need to be forwarded to the card end, it indicates that the function corresponding to the button command is implemented by the screen end. After the screen end performs the operation corresponding to the button instruction, it indicates that the function of the button instruction has been implemented. If the key command is executed by the card end, the execution process of the card end is similar to the screen end, and details are not described herein again.
本实施例通过当所述按键指令是阻塞指令时,发出提示消息提示用户,避免出现用户以为按键无效的情况出现;并通过当所述按键指令需要进行屏端和卡端之间的通信时,发送预设信号,以使接收预设信号的一端接收到所述预设信号之后,执行所述按键指令对应的操作,实现所述按键指令对应的功能,使模块电视能较好的处理遥控器发送的按键指令,提高了用户的体验效果。In this embodiment, when the button instruction is a blocking instruction, a prompt message is sent to prompt the user to avoid occurrence of a situation in which the user thinks that the button is invalid; and when the button instruction needs to perform communication between the screen end and the card end, Sending a preset signal, so that one end of receiving the preset signal receives the preset signal, performing an operation corresponding to the button instruction, implementing a function corresponding to the button instruction, so that the module television can better process the remote controller The button commands sent improve the user experience.
参照图7,图7为本发明遥控器按键分配装置第三实施例的功能模块示意图,基于第一实施例提出本发明遥控器按键分配装置第三实施例。Referring to FIG. 7, FIG. 7 is a schematic diagram of a functional module of a third embodiment of a remote controller button distribution device according to the present invention. Based on the first embodiment, a third embodiment of the remote controller button distribution device of the present invention is proposed.
在本实施例中,所述遥控器按键分配装置还包括:In this embodiment, the remote controller button distribution device further includes:
获取模块90,用于当卡端已插入电视卡时,获取所述电视卡的属性类型;The obtaining module 90 is configured to acquire an attribute type of the television card when the card end has been inserted into the television card;
当所述屏端在上电之后,所述屏端判断是否侦测到所述卡端已插入电视卡。若所述屏端侦测到所述卡端已经插入电视卡,则与所述电视卡进行通信,优选地,所述通信方式为串口通信,获取模块90通过串口命令获取所述电视卡的属性类型。所述电视卡的属性类型包括生产厂商、型号、内存的大小,eMMC(Embedded Multi Media Card)大小等等。若所述卡端未插入电视卡,则输出提示信息,提示所述用户插入电视卡。所述电视卡既具备对电视模拟/数字信号的处理功能,同时也包括了网络通信、高清解码和输出等功能。After the screen is powered on, the screen determines whether the card end has been inserted into the TV card. If the screen detects that the card end has been inserted into the TV card, communicates with the TV card. Preferably, the communication mode is serial communication, and the obtaining module 90 acquires the attribute of the TV card by using a serial port command. Types of. The attribute types of the TV card include the manufacturer, model, and size of the memory, and eMMC (Embedded) Multi Media Card) size and so on. If the card end is not inserted into the TV card, a prompt message is output to prompt the user to insert the TV card. The TV card has the functions of processing analog/digital signals of the television, and also includes functions of network communication, high-definition decoding and output.
设置模块110,用于根据所述电视卡的属性类型设置电视卡所能接收的按键指令对应的键值。The setting module 110 is configured to set a key value corresponding to the key instruction that the television card can receive according to the attribute type of the television card.
设置模块110根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。The setting module 110 sets the key value corresponding to the TV card key instruction according to the attribute type of the TV card.
具体地,参照图8,图8为本发明实施例中设置模块的一种功能模块示意图。Specifically, referring to FIG. 8, FIG. 8 is a schematic diagram of a functional module of a module according to an embodiment of the present invention.
在本实施例中,所述设置模块110包括:In this embodiment, the setting module 110 includes:
判断单元111,用于根据所述电视卡的属性类型判断所述电视卡是否为已知卡;The determining unit 111 is configured to determine, according to the attribute type of the television card, whether the television card is a known card;
转换单元112,用于若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;The converting unit 112 is configured to convert the key value corresponding to the button command of the television card into a standard Android button key value if the television card is a non-known card;
设置单元113,用于若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。The setting unit 113 is configured to set a key value corresponding to the TV card key instruction to an activated state if the television card is a known card.
判断单元111根据所述电视卡的属性类型判断所述电视卡是否为已知卡,即所述屏端是否兼容所述电视卡,若所述屏端不兼容所述电视卡,则所述电视卡为非已知卡。当所述电视卡为非已知卡时,转换单元112将所述电视卡按键指令对应的键值转换为标准安卓按键键值。当所述屏端兼容所述电视卡时,即所述电视卡为已知卡时,设置单元113将所述电视卡按键指令对应的按键键值设置为激活状态,则当所述遥控器发送按键指令时,所述屏端和所述卡端同时接收到所述按键指令。The determining unit 111 determines whether the television card is a known card according to the attribute type of the television card, that is, whether the screen end is compatible with the television card, and if the screen end is not compatible with the television card, the television is The card is a non-known card. When the television card is a non-known card, the converting unit 112 converts the key value corresponding to the TV card key instruction into a standard Android button key value. When the screen end is compatible with the television card, that is, when the television card is a known card, the setting unit 113 sets the button key value corresponding to the TV card button instruction to an activated state, when the remote controller sends When the button is commanded, the screen end and the card end simultaneously receive the button command.
本实施例通过将电视卡通用化,使屏端可以兼容各种不同的电视卡。为模块电视能够较好地分配遥控器发送的按键指令提供了必要的条件,提高了用户体验效果。In this embodiment, by using a TV cartoon, the screen end can be compatible with various TV cards. It provides the necessary conditions for the module TV to better distribute the key commands sent by the remote controller, and improves the user experience.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如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 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 (19)

  1. 一种遥控器按键分配方法,其特征在于,所述遥控器按键分配方法包括以下步骤: A remote controller button assigning method, wherein the remote controller button assigning method comprises the following steps:
    当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;When receiving a key command sent by the remote controller, parsing a key value corresponding to the button command;
    判断是否存在与所述键值对应的预设键值;Determining whether there is a preset key value corresponding to the key value;
    若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;If there is a preset key value corresponding to the key value, performing an operation corresponding to the button instruction;
    以及as well as
    若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作;If there is no preset key value corresponding to the key value, discarding the key instruction, so that the card end receiving the key instruction performs an operation corresponding to the key instruction;
    其中,所述执行所述按键指令对应的操作的步骤包括:The step of performing the operation corresponding to the button instruction includes:
    判断处理所述按键指令的系统是否处于繁忙状态;Determining whether the system that processes the button command is in a busy state;
    若所述系统处于繁忙状态,则提示用户所述系统处于繁忙状态,所述按键指令对应的操作要等待一定时间之后才继续执行;If the system is in a busy state, prompting the user that the system is in a busy state, and the operation corresponding to the button instruction waits for a certain time before continuing to execute;
    若所述按键指令的系统处于空闲状态,则立即执行所述按键指令对应的操作。If the system of the button command is in an idle state, the operation corresponding to the button command is immediately executed.
  2. 如权利要求1所述的遥控器按键分配方法,其特征在于,所述若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作的步骤之后,还包括:The remote controller button assigning method according to claim 1, wherein the step of performing the operation corresponding to the button command if the preset key value corresponding to the key value is present, further comprising:
    判断所述按键指令是否是阻塞指令;Determining whether the button instruction is a blocking instruction;
    若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。If the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is executed after the button command is executed.
  3. 如权利要求2所述的遥控器按键分配方法,其特征在于,所述若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行的步骤之后,还包括:The remote controller button assigning method according to claim 2, wherein if the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is in the After the steps that will be executed after the key command is executed, it also includes:
    根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;Determining whether the button instruction needs to be forwarded to the card end according to a function corresponding to the button instruction;
    若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。If the button command needs to be forwarded to the card end, the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
  4. 如权利要求1所述的遥控器按键分配方法,其特征在于,所述当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值的步骤之前,还包括:The remote controller button assigning method according to claim 1, wherein the step of analyzing the key value corresponding to the button command when receiving the button command sent by the remote controller further comprises:
    当侦测到所述卡端已插入电视卡时,获取所述电视卡的属性类型;Obtaining an attribute type of the television card when detecting that the card end has been inserted into the television card;
    根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。Setting a key value corresponding to the TV card key instruction according to an attribute type of the television card.
  5. 如权利要求4所述的遥控器按键分配方法,其特征在于,所述根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值的步骤包括:The remote controller button assigning method according to claim 4, wherein the step of setting a key value corresponding to the television card key command according to an attribute type of the television card comprises:
    根据所述电视卡的属性类型判断所述电视卡是否为已知卡;Determining whether the television card is a known card according to an attribute type of the television card;
    若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;If the TV card is a non-known card, converting a key value corresponding to the TV card key instruction into a standard Android button key value;
    若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。If the TV card is a known card, the key value corresponding to the TV card key command is set to an active state.
  6. 一种遥控器按键分配方法,其特征在于,所述遥控器按键分配方法包括以下步骤:A remote controller button assigning method, wherein the remote controller button assigning method comprises the following steps:
    当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;When receiving a key command sent by the remote controller, parsing a key value corresponding to the button command;
    判断是否存在与所述键值对应的预设键值;Determining whether there is a preset key value corresponding to the key value;
    若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;以及Performing an operation corresponding to the button instruction if there is a preset key value corresponding to the key value;
    若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作。And if there is no preset key value corresponding to the key value, discarding the key instruction, so that the card end receiving the key instruction performs an operation corresponding to the key instruction.
  7. 如权利要求6所述的遥控器按键分配方法,其特征在于,所述若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作的步骤之后,还包括:The remote controller button assigning method according to claim 6, wherein the step of performing the operation corresponding to the button command if the preset key value corresponding to the key value is present, further comprising:
    判断所述按键指令是否是阻塞指令;Determining whether the button instruction is a blocking instruction;
    若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。If the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is executed after the button command is executed.
  8. 如权利要求7所述的遥控器按键分配方法,其特征在于,所述若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行的步骤之后,还包括:The remote controller button assigning method according to claim 7, wherein if the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is in the After the steps that will be executed after the key command is executed, it also includes:
    根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;Determining whether the button instruction needs to be forwarded to the card end according to a function corresponding to the button instruction;
    若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。If the button command needs to be forwarded to the card end, the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
  9. 如权利要求6所述的遥控器按键分配方法,其特征在于,所述当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值的步骤之前,还包括:The remote controller button assigning method according to claim 6, wherein the step of analyzing the key value corresponding to the button command when receiving the button command sent by the remote controller further comprises:
    当侦测到所述卡端已插入电视卡时,获取所述电视卡的属性类型;Obtaining an attribute type of the television card when detecting that the card end has been inserted into the television card;
    根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。Setting a key value corresponding to the TV card key instruction according to an attribute type of the television card.
  10. 如权利要9所述的遥控器按键分配方法,其特征在于,所述若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作的步骤之后,还包括:The method of assigning a remote control button according to claim 9, wherein the step of performing the operation corresponding to the button instruction if the preset key value corresponding to the key value is present, further comprising:
    判断所述按键指令是否是阻塞指令;Determining whether the button instruction is a blocking instruction;
    若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。If the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is executed after the button command is executed.
  11. 如权利要求10所述的遥控器按键分配方法,其特征在于,所述若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行的步骤之后,还包括:The remote controller button assigning method according to claim 10, wherein if the button command is a blocking command, the operating state of the screen is changed according to the button command to prompt the user that the next button command is in the After the steps that will be executed after the key command is executed, it also includes:
    根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;Determining whether the button instruction needs to be forwarded to the card end according to a function corresponding to the button instruction;
    若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。If the button command needs to be forwarded to the card end, the preset signal is sent to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal.
  12. 如权利要求9所述的遥控器按键分配方法,其特征在于,所述根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值的步骤包括:The remote controller button assigning method according to claim 9, wherein the step of setting a key value corresponding to the television card key command according to an attribute type of the television card comprises:
    根据所述电视卡的属性类型判断所述电视卡是否为已知卡;Determining whether the television card is a known card according to an attribute type of the television card;
    若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;If the TV card is a non-known card, converting a key value corresponding to the TV card key instruction into a standard Android button key value;
    若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。If the TV card is a known card, the key value corresponding to the TV card key command is set to an active state.
  13. 一种遥控器按键分配装置,其特征在于,所述遥控器按键分配装置包括:A remote controller button distribution device, wherein the remote controller button distribution device comprises:
    解析模块,用于当接收到遥控器发送的按键指令时,解析所述按键指令对应的键值;The parsing module is configured to parse the key value corresponding to the button instruction when receiving the button command sent by the remote controller;
    第一判断模块,用于判断是否存在与所述键值对应的预设键值;a first determining module, configured to determine whether there is a preset key value corresponding to the key value;
    执行模块,用于若存在与所述键值对应的预设键值,则执行所述按键指令对应的操作;An execution module, configured to execute an operation corresponding to the button instruction if a preset key value corresponding to the key value exists;
    丢弃模块,用于若不存在与所述键值对应的预设键值,则丢弃所述按键指令,以供接收到所述按键指令的卡端执行所述按键指令对应的操作。And discarding the module, if the preset key value corresponding to the key value does not exist, discarding the button instruction, so that the card end receiving the button instruction performs an operation corresponding to the button instruction.
  14. 如权利要求13所述的遥控器按键分配装置,其特征在于,所述遥控器按键分配装置还包括:The remote controller button distribution device according to claim 13, wherein the remote controller button distribution device further comprises:
    第二判断模块,用于判断所述按键指令是否是阻塞指令;a second determining module, configured to determine whether the button instruction is a blocking instruction;
    更改模块,用于若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。And a change module, configured to: if the button command is a blocking command, change an operating state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
  15. 如权利要求14所述的遥控器按键分配装置,其特征在于,所述遥控器按键分配装置还包括:The remote controller button dispensing device of claim 14, wherein the remote controller button assigning device further comprises:
    第三判断模块,用于根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;a third determining module, configured to determine, according to a function corresponding to the button instruction, whether the button command needs to be forwarded to the card end;
    发送模块,用于若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。a sending module, configured to send a preset signal to the card end if the button command is to be forwarded to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal .
  16. 如权利要求13所述的遥控器按键分配装置,其特征在于,所述遥控器按键分配装置还包括:The remote controller button distribution device according to claim 13, wherein the remote controller button distribution device further comprises:
    获取模块,用于当侦测到所述卡端已插入电视卡时,获取所述电视卡的属性类型;An acquiring module, configured to acquire an attribute type of the television card when detecting that the card end has been inserted into the television card;
    设置模块,用于根据所述电视卡的属性类型设置所述电视卡按键指令对应的键值。And a setting module, configured to set a key value corresponding to the button command of the television card according to an attribute type of the television card.
  17. 如权利要求16所述的遥控器按键分配装置,其特征在于,所述遥控器按键分配装置还包括:The remote controller button dispensing device of claim 16, wherein the remote controller button assigning device further comprises:
    第二判断模块,用于判断所述按键指令是否是阻塞指令;a second determining module, configured to determine whether the button instruction is a blocking instruction;
    更改模块,用于若所述按键指令是阻塞指令,则根据所述按键指令更改屏端的运行状态,以提示用户下一个按键指令在所述按键指令执行完毕之后会被执行。And a change module, configured to: if the button command is a blocking command, change an operating state of the screen according to the button command to prompt the user that the next button command is executed after the button command is executed.
  18. 如权利要求17所述的遥控器按键分配装置,其特征在于,所述遥控器按键分配装置还包括:The remote controller button dispensing device of claim 17, wherein the remote controller button assigning device further comprises:
    第三判断模块,用于根据所述按键指令对应的功能判断是否需要转发所述按键指令至所述卡端执行;a third determining module, configured to determine, according to a function corresponding to the button instruction, whether the button command needs to be forwarded to the card end;
    发送模块,用于若需要转发所述按键指令至所述卡端执行,则发送预设信号给所述卡端,以供所述卡端根据所述预设信号执行所述按键指令对应的操作。a sending module, configured to send a preset signal to the card end if the button command is to be forwarded to the card end, so that the card end performs the operation corresponding to the button instruction according to the preset signal .
  19. 如权利要求16所述的遥控器按键分配装置,其特征在于,所述设置模块包括:The remote controller button distribution device according to claim 16, wherein the setting module comprises:
    判断单元,用于根据所述电视卡的属性类型判断所述电视卡是否为已知卡;a determining unit, configured to determine, according to an attribute type of the television card, whether the television card is a known card;
    转换单元,用于若所述电视卡为非已知卡,则将所述电视卡按键指令对应的键值转换为标准安卓按键键值;a conversion unit, configured to convert a key value corresponding to the TV card key instruction into a standard Android key value if the television card is a non-known card;
    设置单元,用于若所述电视卡为已知卡,则将所述电视卡按键指令对应的键值设置为激活状态。 And a setting unit, configured to set a key value corresponding to the TV card key instruction to an activated state if the television card is a known card.
PCT/CN2016/084723 2015-09-18 2016-06-03 Remote controller key allocation method and device WO2017045444A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510599345.8A CN105227984B (en) 2015-09-18 2015-09-18 Remote controller key distribution method and device
CN201510599345.8 2015-09-18

Publications (1)

Publication Number Publication Date
WO2017045444A1 true WO2017045444A1 (en) 2017-03-23

Family

ID=54996619

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084723 WO2017045444A1 (en) 2015-09-18 2016-06-03 Remote controller key allocation method and device

Country Status (2)

Country Link
CN (1) CN105227984B (en)
WO (1) WO2017045444A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113533953A (en) * 2021-07-09 2021-10-22 深圳创维-Rgb电子有限公司 Key control board automatic detection method, device, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227984B (en) * 2015-09-18 2018-10-02 深圳Tcl数字技术有限公司 Remote controller key distribution method and device
CN106162279B (en) 2016-07-01 2020-11-17 海信视像科技股份有限公司 Television remote control key response method based on android operating system and television
CN112951228A (en) * 2021-02-02 2021-06-11 上海市胸科医院 Method and equipment for processing control instruction

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175390B1 (en) * 1996-12-23 2001-01-16 Lg Electronics Inc. Module TV and control method thereof
KR20020024457A (en) * 2000-09-25 2002-03-30 윤종용 Method for selecting icon in modular television appartus and remocon thereof
CN102340703A (en) * 2010-07-16 2012-02-01 深圳Tcl新技术有限公司 IPTV and remote controller key reusing method
CN202759554U (en) * 2012-06-21 2013-02-27 青岛海尔电子有限公司 Television set and television program receiving system
CN104079967A (en) * 2014-06-30 2014-10-01 Tcl集团股份有限公司 Communication method and device for module televisions
CN104113774A (en) * 2014-07-25 2014-10-22 海信集团有限公司 Television device control method and system and television device
CN105227984A (en) * 2015-09-18 2016-01-06 深圳Tcl数字技术有限公司 Remote controller key distribution method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905863A (en) * 2012-12-30 2014-07-02 青岛海尔软件有限公司 Webview-adopting remote controller control method based on Android television
CN104869449B (en) * 2014-02-25 2019-03-08 青岛海尔电子有限公司 Change the method for function of remote controller keys when TV switch mode

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175390B1 (en) * 1996-12-23 2001-01-16 Lg Electronics Inc. Module TV and control method thereof
KR20020024457A (en) * 2000-09-25 2002-03-30 윤종용 Method for selecting icon in modular television appartus and remocon thereof
CN102340703A (en) * 2010-07-16 2012-02-01 深圳Tcl新技术有限公司 IPTV and remote controller key reusing method
CN202759554U (en) * 2012-06-21 2013-02-27 青岛海尔电子有限公司 Television set and television program receiving system
CN104079967A (en) * 2014-06-30 2014-10-01 Tcl集团股份有限公司 Communication method and device for module televisions
CN104113774A (en) * 2014-07-25 2014-10-22 海信集团有限公司 Television device control method and system and television device
CN105227984A (en) * 2015-09-18 2016-01-06 深圳Tcl数字技术有限公司 Remote controller key distribution method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113533953A (en) * 2021-07-09 2021-10-22 深圳创维-Rgb电子有限公司 Key control board automatic detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105227984A (en) 2016-01-06
CN105227984B (en) 2018-10-02

Similar Documents

Publication Publication Date Title
WO2015158219A1 (en) Remote debugging method and apparatus for mobile terminal
WO2017045444A1 (en) Remote controller key allocation method and device
WO2017107388A1 (en) Hdmi version switching method and display device
WO2019128174A1 (en) Method for playing audio, smart television and computer-readable storage medium
WO2013058423A1 (en) Electronic device and method for operating the electronic device
WO2018120457A1 (en) Data processing method, apparatus, device, and computer readable storage medium
WO2018028124A1 (en) Television set and signal source switching method thereof
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2014187158A1 (en) Method, server, and terminal for controlling cloud sharing of terminal data
WO2017088427A1 (en) Audio output control method and device
WO2017121066A1 (en) Application program display method and system
WO2018113187A1 (en) Display control method and display device
WO2017201943A1 (en) Method and device for driving display screen
WO2019062112A1 (en) Method and device for controlling air conditioner, air conditioner, and computer readable storage medium
WO2017032122A1 (en) Method and apparatus for detecting digital television set
WO2017045441A1 (en) Smart television-based audio playback method and apparatus
WO2018032679A1 (en) Setting method and device for timed startup and shutoff of television
WO2017088428A1 (en) Sound wave-based remote control method and system
WO2017113596A1 (en) Method and system for listen-only control, mobile terminal, and smart television
WO2019051901A1 (en) Terminal control method and device, and computer readable storage medium
WO2018006581A1 (en) Smart-television playback method and apparatus
WO2019091128A1 (en) Signal preview method for new access source and television set
WO2016095256A1 (en) Method for processing global key of smart television and system thereof
WO2016101240A1 (en) Media data playing method and terminal
WO2017152526A1 (en) External device automatic mounting and notification control 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: 16845558

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 1205 DATED 02/08/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16845558

Country of ref document: EP

Kind code of ref document: A1