WO2019062999A1 - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
WO2019062999A1
WO2019062999A1 PCT/CN2018/108945 CN2018108945W WO2019062999A1 WO 2019062999 A1 WO2019062999 A1 WO 2019062999A1 CN 2018108945 W CN2018108945 W CN 2018108945W WO 2019062999 A1 WO2019062999 A1 WO 2019062999A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
text information
button
key
operation type
Prior art date
Application number
PCT/CN2018/108945
Other languages
French (fr)
Chinese (zh)
Inventor
修冬阳
Original Assignee
华为技术有限公司
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
Priority claimed from CN201810276176.8A external-priority patent/CN109600645B/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US16/652,120 priority Critical patent/US11375261B2/en
Priority to EP18861735.1A priority patent/EP3678106A4/en
Publication of WO2019062999A1 publication Critical patent/WO2019062999A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a terminal control method and a terminal.
  • the user can control the electronic device through the infrared remote control.
  • an infrared remote controller matched with a digital television broadcast terminal can encode key information through a digital coding technique, emit light waves through an infrared diode, and the infrared signal received by the digital television broadcast terminal through the infrared receiver.
  • Turning into an electrical signal decoding the electrical signal to obtain a corresponding command to control the digital television broadcast terminal to achieve channel jump, volume adjustment and other functions.
  • the number of physical buttons installed in the existing infrared remote controller is limited, and the user needs to operate the infrared remote controller multiple times to control the digital television playing terminal to realize the corresponding function.
  • the current playing volume of the digital television playing terminal is 30, and the user presses the infrared remote control once.
  • the volume decrement button in the device the digital TV player can only reduce the current playback volume by one level. If the user wants to adjust the playback volume to 20 levels, the user needs to press the volume decrement button in the infrared remote control 10 times, digital TV playback.
  • the terminal needs to respond to the user's 10 pressing operations, adjust the current playing volume, the operation convenience is insufficient, and the processing efficiency is low.
  • the embodiment of the present application provides a terminal control method and a terminal, which can improve processing efficiency and improve operation convenience.
  • the embodiment of the present application provides a terminal control method, where a first terminal may acquire text information input in a preset area of a first terminal, determine an operation type of the text information, and then perform text information according to the operation type. Identifying, obtaining at least one button that matches the text information, the first terminal may further generate a button key value of each button, and send the generated button key value to the second terminal to control the second terminal by using the button key value.
  • the first terminal may identify the text information according to the operation type of the input text information, obtain at least one button that matches the text information, and then send the key value of each button to the second terminal.
  • the first terminal detects that the user presses the first terminal by the first terminal in the traditional terminal control method, and can only generate For a button key, the user needs to perform multiple pressing operations on the first terminal to control the second terminal to implement the corresponding function.
  • the embodiment of the present application can control the second terminal to implement the corresponding function according to the input text information, and the first terminal does not need to detect the user. Multiple press operations increase processing efficiency and increase ease of operation.
  • the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: the first terminal parses the text information. Processing, acquiring at least one character constituting the text information, the character comprising a letter or a number; the first terminal determining a position of the cursor in the display screen of the second terminal; determining a button required to move the cursor from the position to the search area; A terminal determines a button required to move the cursor from the search area to the first character constituting the text information, and a button required for the cursor to move from the first character to the second character constituting the text information, and the cursor sequentially goes down A character moves the desired key until the cursor is moved from the penultimate character that makes up the text message to the key that is needed to form the last character of the text message.
  • the text information may include account information, program identification or user identification, etc.
  • the account information may include a user name or a login password
  • the program identifier may include a TV drama name, a movie name, or a song name
  • the user identifier may include an actor. Name or singer name, etc.
  • the text input type may include a type of account information input or a program search. For example, when the user needs to input the account information in the process of logging in the account, the user can directly input the text information including the account information in the preset area of the first terminal. For another example, when the user needs to input the program identifier during the process of searching for the program, the user can directly input the text information including the program identifier in the preset area of the first terminal.
  • the first terminal After the first terminal obtains the text information input by the user in the preset area, and determines that the operation type of the text information is the text input type, the text information may be parsed, and at least one character constituting the text information is obtained, and the cursor is determined to be at the second terminal.
  • the position in the display screen determine the key required to move the cursor from that position to the search area, determine the key required to move the cursor from the search area to the first character that makes up the text message, and the cursor by the first
  • the character moves to the key required to form the second character of the text message, and the cursor moves the desired key to the next character in turn until the cursor is moved from the penultimate character constituting the text information to the last one constituting the text information
  • the keys required for the characters are sent to the second terminal by the key values of the above respective keys.
  • the user needs to press the direction key on the first terminal to control the second terminal to move the cursor from the position to the second terminal.
  • the key value of the confirmation key can be sent to the second terminal, so that the second terminal displays the virtual keyboard in the display screen; Pressing the direction key on the first terminal to control the second terminal to move the cursor from the search area to the first character in the virtual keyboard; after the first terminal detects the pressing operation of the user pressing the confirmation key, the confirmation key may be The key value is sent to the second terminal, so that the second terminal acquires the first character; and the user needs to press the direction key on the first terminal multiple times to control the second terminal to move the cursor from the position of the first character to To the position where the second character is located; after the first terminal detects that the user presses the confirm button, the button of the confirmation button can be The value is sent to the second terminal,
  • a terminal can directly parse and process the text information input by the user to obtain at least one character constituting the text information, thereby determining a button required for inputting each character, and transmitting the key value of each button to the second terminal, thereby improving processing efficiency And improve the convenience of operation.
  • the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: when the text information includes a number, A terminal can determine a button of each digit; when the text information is a Chinese character, the first terminal can obtain a channel identifier of the channel indicated by the text information, and determine a button of the number corresponding to the channel identifier.
  • the specific manner in which the first terminal generates the key value of each button may be: generating a button key value of each determined button, and a time interval between generation times of each button key value is less than a preset time threshold.
  • the number when the text information includes a number, the number may be the identifier of the television station, for example, the identifier of the CCTV is 1, and the identifier of the Hunan TV station is 32.
  • the text information when the text information includes a Chinese character, the Chinese character may be a channel identifier of the channel, such as "CCTV" or "Hunan Satellite TV".
  • the text information including the number may be directly input in the preset area of the first terminal, and the first terminal may determine the keys of the respective numbers included in the text information, and each The key value of the button is sent to the second terminal, wherein the time interval between the generation time of each button key value is less than the preset time threshold.
  • the text information including the Chinese character may be directly input in the preset area of the first terminal, and the first terminal may determine the channel identifier of the channel indicated by the Chinese character, and then determine The button corresponding to the number corresponding to the channel identifier sends the key value of each button to the second terminal, wherein the time interval between the generation time of each button key value is less than the preset time threshold.
  • the user needs to memorize the identifier of the television station, so as to control the second terminal to perform channel switching by pressing a button of the number indicated by the identifier of the designated television station in the first terminal, and if the user forgets to specify the identifier of the television station, the first The terminal acquires the identifier of the designated television station selected by the user by sliding the program menu up and down, and then controls the second terminal to perform channel switching. Since the program menu includes the identifiers of the plurality of television stations, the upper and lower sliding selects the identifier of the designated television station, and the channel switching delay is increased, resulting in the channel. The switching efficiency is low.
  • the user does not need to memorize the identifier of the television station, and the first terminal can directly obtain the channel identifier of the channel indicated by the text information input by the user, determine the button corresponding to the number corresponding to the channel identifier, and further The key value is sent to the second terminal to control the second terminal to perform channel switching, thereby improving channel switching efficiency.
  • the identifier of the television station is specified as a digit of at least two digits
  • the user needs to press each digit indicated by the identifier of the designated television station in a short time, and if the time interval for the user to press each digital button is long, The channel switching error is caused, and the accuracy of the channel switching is reduced.
  • the embodiment of the present application does not limit the time interval of each digit input by the user in the preset area of the first terminal, and the first terminal may directly obtain the text information input by the user, and determine The key of the text information includes a key, and the key value of each key is sent to the second terminal to control the second terminal to perform channel switching, wherein the time interval between the generation time of each key value is less than the preset time threshold, Improve the accuracy of channel switching.
  • the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: when the playback volume of the second terminal is greater than When the volume is indicated by the text information, the first terminal may determine that the button matching the text information is a volume decrement button; and obtain a first difference between the playing volume of the second terminal and the playing volume indicated by the text information; The difference is divided by the decreasing amount corresponding to the volume decrement button to obtain the first quotient value; the first quotient value is used as the number of volume decrement buttons matching the text information.
  • the playback volume to be adjusted may be input in the preset area of the first terminal, and the first terminal may acquire the current playback volume of the second terminal.
  • the first terminal may determine that the button matching the text information is a volume decrement button, thereby obtaining a playing volume between the second terminal and a playing volume indicated by the text information.
  • the first difference is obtained by dividing the first difference by the decreasing amount corresponding to the volume decrement button to obtain the first quotient value, and using the first quotient value as the number of volume decrement buttons matching the text information, the first terminal may Sending the key value of the volume decrement button that meets the number to the second terminal to control the second terminal to perform volume adjustment.
  • the user needs to press the volume decrement button of the first terminal to control the volume adjustment of the second terminal.
  • the embodiment of the present application can improve the processing efficiency and improve the convenience of operation.
  • the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: when the playback volume of the second terminal is less than When the volume is indicated by the text information, the first terminal may determine that the button matching the text information is a volume increment button; and obtain a second difference between the playback volume indicated by the text information and the playback volume of the second terminal; The second difference is divided by the incremental change amount corresponding to the volume increment button to obtain the second quotient value; the second quotient value is used as the number of volume increment buttons matching the text information.
  • the playback volume to be adjusted may be input in the preset area of the first terminal, and the first terminal may acquire the current playback volume of the second terminal.
  • the first terminal may determine that the button matching the text information is a volume increasing button, thereby obtaining between the playing volume indicated by the text information and the playing volume of the second terminal.
  • the second difference is obtained by dividing the second difference by the incremental change corresponding to the volume increment button to obtain a second quotient value, and using the second quotient value as the number of volume increment buttons matching the text information, the first terminal may Sending the key value of the volume up button that meets the number to the second terminal to control the second terminal to perform volume adjustment.
  • the user needs to press the volume increment button of the first terminal to control the volume adjustment of the second terminal.
  • the embodiment of the present application can improve the processing efficiency and improve the convenience of operation.
  • the first terminal identifies the text information according to the operation type, and the specific manner of obtaining the at least one button that matches the text information may be: determining the channel identifier of the last playback; When the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, obtain the number of channel identifiers between the channel identifier of the last playback and the channel identifier indicated by the text information; and determine that the button matching the text information is at least A playback function key, the number of at least one playback function key is obtained by the number of spaced channel identifications.
  • the channel identifier to be played back may be input in the preset area of the first terminal, and the first terminal may determine the channel identifier of the last playback, when the most recent When the channel identifier of one playback is smaller than the channel identifier indicated by the text information, obtain the number of channel identifiers between the channel identifier of the last playback and the channel identifier indicated by the text information, and determine that the button matching the text information is at least one playback.
  • the function key, the number of the at least one playback function key is obtained by the number of the interval channel identification
  • the first terminal may send the key value of the playback function key that meets the quantity to the second terminal, to control the second terminal to perform program playback.
  • the user needs to press the playback function button to control the second terminal to perform program playback.
  • the embodiment of the present application can improve processing efficiency and improve the convenience of operation.
  • the first terminal identifies the text information according to the operation type, and the specific manner of obtaining the at least one button that matches the text information may be: determining the channel identifier of the last playback; When the channel identifier of the last playback is greater than the channel identifier indicated by the text information, the first terminal acquires the sum of the number of replayable channel identifiers minus the channel between the last played back channel identifier and the channel identifier indicated by the text information. The difference between the number of the identifiers is determined, and the button matching the text information is determined to be at least one playback function key, and the number of at least one playback function key is obtained from the difference.
  • the following operation may also be performed: acquiring the character input manner of the second terminal.
  • the first terminal may identify the text information according to the operation type, and the specific manner of obtaining the at least one button that matches the text information may be: identifying the text information according to the operation type and the character input manner, and obtaining at least the text information.
  • a button may be identified.
  • one first terminal may control at least one second terminal, and the character input manners of different second terminals may be the same or different.
  • the keys that match the text information are different.
  • the button required to move the cursor from the first character to the second character Including: up arrow, right arrow, confirm button, left arrow, and confirm button.
  • the character input mode of the second terminal is a virtual keyboard, and the first character is “h” and the second character is “a”, the cursor is moved from the first character to the second character.
  • the buttons include: 5 left arrow keys, and a confirmation button.
  • the character input mode of the second terminal is obtained, and the text information is identified according to the operation type and the character input manner, and at least one button matching the text information is obtained, thereby improving the text information.
  • the accuracy of the recognition is improved.
  • the first terminal identifies the text information according to the operation type
  • the specific manner of obtaining at least one button that matches the text information may be: the first terminal identifies the text information according to the operation type, and obtains the recognized text. Information and obtaining at least one button that matches the identified text information.
  • the first terminal recognizes the text information according to the operation type, and the obtained recognized text information may be "searching for the TV drama “Fanghua”", “ Searching for the movie “Fanghua” or “searching for actor Fanghua”, etc., and the first terminal can acquire at least one button that matches the recognized text information.
  • the embodiment of the present application provides a computer storage medium, where the computer storage medium stores a program, and when the program is executed, the terminal executes any one of the terminal control methods described in the above first aspect.
  • an embodiment of the present application provides a terminal, where the terminal has a function of implementing a behavior of a first terminal in an example of a terminal control method according to the first aspect.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units or modules corresponding to the functions described above.
  • the embodiment of the present application provides a terminal, where the terminal may include a receiver, a processor, and a transmitter, where the processor is configured to support the terminal to perform the first terminal in the terminal control method in the first aspect.
  • the receiver and the transmitter are configured to support communication between the first terminal and the second terminal.
  • the terminal can also include a memory for coupling with the processor that retains program instructions and data necessary for the terminal.
  • the receiver and transmitter can be integrated into a transceiver.
  • an embodiment of the present application provides a computer program product comprising instructions that, when run on a computer, cause the computer to perform the method of the first aspect.
  • an embodiment of the present application provides a terminal control system, where the system includes the first terminal and the second terminal in the foregoing aspect.
  • the embodiment of the present application provides a chip system, where the chip system includes a processor, where the first terminal implements functions involved in the foregoing aspects, for example, generating or processing data involved in the foregoing method and/or Or information.
  • the chip system further includes a memory for storing program instructions and data necessary for the first terminal.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • FIG. 1 is a schematic structural diagram of a terminal control system disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a terminal control method according to an embodiment of the present application.
  • FIG. 3A is a schematic diagram of an interface for text information input according to an embodiment of the present application.
  • FIG. 3B is a schematic diagram of an interface of a virtual keyboard with a 26-key layout disclosed in the embodiment of the present application;
  • 3C is a schematic diagram of an interface of a virtual keyboard of a nine-square grid layout disclosed in the embodiment of the present application;
  • FIG. 3D is a schematic diagram of an interface for floating characters displayed above a virtual keyboard according to an embodiment of the present application.
  • FIG. 3E is a schematic diagram of an interface for floating characters displayed above a virtual keyboard according to another embodiment of the present application.
  • FIG. 3F is a schematic diagram of an interface of a numeric keypad disclosed in an embodiment of the present application.
  • 3G is a schematic diagram of an interface of a lookback list disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a terminal control system according to an embodiment of the present application.
  • the terminal control system may include at least one first terminal 101 and at least one second terminal 102.
  • the first terminal 101 can establish data communication with the at least one second terminal 102 to control the at least one second terminal 102 to implement the corresponding function.
  • at least one first terminal 101 can establish data communication with a second terminal 102, and at least one first terminal 101 controls a second terminal 102 to implement a corresponding function.
  • the first terminal 101 may acquire text information input in a preset area of the first terminal 101, determine an operation type of the text information, identify the text information according to the operation type, obtain at least one button that matches the text information, and generate each button.
  • the key value of the button is sent to the second terminal 102.
  • the first terminal 101 may be a terminal for communicating with the second terminal 102, and may specifically be any one of a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a vehicle terminal, or a wearable terminal.
  • a smart phone such as an Android mobile phone, an iOS mobile phone, etc.
  • the second terminal 102 may be a digital television broadcast terminal, a smart home appliance (such as a refrigerator or an air conditioner, etc.), or a projector.
  • a smart home appliance such as a refrigerator or an air conditioner, etc.
  • the operation type may include a text input type, a channel switching type, a volume adjustment type, a program playback type, a playback progress adjustment type, an episode adjustment type, or a status control type.
  • the text input type refers to an operation type in which the user needs to submit text information to the second terminal through the first terminal, such as account information input, program search, or actor search.
  • the channel switching type refers to the type of operation in which the user needs to control the second terminal to perform channel switching through the first terminal.
  • the volume adjustment type refers to an operation type in which the user needs to control the second terminal to adjust the volume through the first terminal.
  • the program playback type refers to an operation type in which the user needs to control the second terminal to perform program playback through the first terminal.
  • the play progress adjustment type refers to an operation type in which the user needs to control the second terminal to adjust the play progress through the first terminal.
  • the episode adjustment type refers to the type of operation in which the user needs to control the second terminal through the first terminal to adjust the episode.
  • the state control type may refer to an operation type in which the user needs to control the second terminal to perform an operation such as exiting, returning, or deleting through the first terminal.
  • the button may include one or more of a virtual button, a touch button, or a physical button.
  • the virtual keys may include a 26-key layout as shown in FIG. 3B and a nine-square layout as shown in FIG. 3C.
  • the touch button can penetrate the insulating material shell of the first terminal to accurately detect the effective touch of the finger.
  • Physical buttons can also be referred to as physical buttons.
  • the key value refers to the value used to identify the key. One key uniquely corresponds to one key.
  • the key values of different keys are different. For example, the key value of the right direction key is 39, and the key of the character A is The key value is 65 or the like.
  • the terminal control method disclosed in the embodiment of the present application may be combined with a conventional method for controlling a second terminal by using a first terminal or a remote controller to transmit an infrared signal
  • the first terminal may provide at least one control interface.
  • the second terminal may be controlled by transmitting an infrared signal through the first terminal or the remote controller before or after controlling the second terminal based on the control interface.
  • the first terminal may acquire text information input in a preset area of the first terminal, determine an operation type of the text information, identify the text information according to the operation type, obtain at least one button that matches the text information, and generate each
  • the key value of the button is sent, and the generated key value is sent to the second terminal to control the second terminal by the key value.
  • the first terminal may also acquire a voice message input through the microphone, convert the voice message into text information, determine an operation type of the text information, identify the text information according to the operation type, obtain at least one button that matches the text information, and generate each button.
  • the key value of the button is sent to the second terminal to control the second terminal by the key value.
  • the first terminal may also send an infrared signal to the second terminal to send the key value of each button to the second terminal, and control the second terminal by the key value.
  • FIG. 2 is a schematic diagram of a terminal control method according to an embodiment of the present disclosure. The method includes, but is not limited to, the following steps:
  • Step S201 The first terminal acquires text information input by the user in the preset area.
  • the first terminal may establish a communication connection with the second terminal by logging in the preset application.
  • the preset application may store a menu of the second terminal, such as a character input mode of the second terminal, or a button or the like required for the cursor to be moved from any position in the second terminal to another position.
  • the default application can be an application that can be used for remote control such as WeChat or TV.
  • the text information may be input in the preset area of the first terminal, and the first terminal may obtain the text information input by the user in the preset area.
  • the text information may include Chinese characters, numbers or letters.
  • the preset area may be a partial area or all areas in the display screen of the first terminal, and the like. Taking the interface diagram of the text information input shown in FIG. 3A as an example, the preset area may be a text input area, and the first terminal may acquire text information input by the user in the text input area.
  • the first terminal may receive a confirmation instruction that the user inputs the text information.
  • the first terminal can receive the confirmation instruction submitted by the user for the text information, and then obtain the user input in the preset area. Text information.
  • the first terminal does not detect the input operation of the user after detecting that the user inputs the text information in the preset area after the preset time period, and may output prompt information, where the prompt information is used to prompt the user whether to send the preset.
  • the text information input in the area the user can respond to the prompt information to click the "send" button, the first terminal can receive the confirmation instruction submitted by the user for the text information, and then obtain the text information input by the user in the preset area.
  • Step S202 The first terminal determines an operation type of the text information.
  • the first terminal can determine the type of operation of the textual information.
  • the method for determining the operation type of the text information by the first terminal may include the following three types:
  • the first terminal may receive operation type information input by the user, where the operation type information may include an operation type of the text information.
  • the text information and the operation type information may be input in the preset area of the first terminal, and the operation type information may include the volume adjustment type, and the first terminal
  • the text information input by the user in the preset area can be obtained, and the volume adjustment type is used as the operation type of the text information.
  • the text information may be input in the preset area of the first terminal, and the “volume adjustment type” option is clicked in the operation type menu displayed by the first terminal.
  • the first terminal may acquire text information input by the user in the preset area, and use the volume adjustment type as the operation type of the text information, wherein the operation type menu may include at least one operation type.
  • the first terminal may send an operation type acquisition request to the second terminal, and the second terminal may send the operation type information to the first terminal in response to the operation type acquisition request, where the first terminal
  • the type of operation included in the operation type information can be used as the operation type of the text information.
  • the second terminal may determine that the operation type is a volume adjustment type or a play progress adjustment type, and the second terminal may include the volume adjustment type and play.
  • the operation type information of the progress adjustment type is sent to the first terminal, and the first terminal may output the prompt information to prompt the user to select the operation type.
  • the first terminal may determine that the adjustment type of the text information is the volume adjustment type. .
  • the second terminal may determine that the operation type is a text input type, and the second terminal may include operation type information including the text input type. Sending to the first terminal, the first terminal may determine that the adjustment type of the text information is a text input type.
  • the character included in the text information may be compared with the keyword in the preset database, and at least one character included in the text information matches the target keyword.
  • the first terminal may use the operation type corresponding to the target keyword as the operation type of the text information.
  • the preset database may include at least one keyword, and one keyword corresponds to one operation type.
  • the operation types corresponding to the numbers 0-9 are channel switching types; the characters “fast forward”, “rewind”, and “slow forward”.
  • the operation type corresponding to "slow back" is the playback progress adjustment type; when the keyword is the channel name, the operation type corresponding to the keyword is the channel switching type; when the keyword is the program name, the actor name or the singer name, the key
  • the type of operation corresponding to the word is the text input type.
  • the correspondence between the keyword and the operation type may be: multiple keywords corresponding to one operation type, for example, the character “volume”, and the operation type corresponding to the combination of one or more of the numbers 0-9 is volume adjustment. Type; the character "user name”, and a combination of one or more of the English letters, and/or the combination of one or more of the numbers 0-9 corresponds to the text input type.
  • the first terminal may determine that the operation type of the text information is the play progress adjustment type; the text information input by the user in the preset area is “Hunan”. Satellite TV, the first terminal can determine that the operation type of the text information is a channel switching type.
  • Step S203 The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information.
  • the text information may be semantically recognized according to the operation type, and the recognized text information is obtained, and at least one button matching the recognized text information is obtained according to the correspondence between the character and the button.
  • the text information input by the user in the preset area is “playing 16 stations”, and the first terminal determines that the operation type of the text information is a channel switching type, and the first terminal can perform semantic recognition on the text information according to the operation type, and after being recognized,
  • the text information is the number "16", and the first terminal can obtain the button matching the text information as the button "1" and the button "6".
  • the first terminal can obtain a key that matches the text information as a digital input button "123", a button "1", and a button "6";
  • the layout of the virtual buttons of the two terminals is a nine-square grid layout, and the first terminal can obtain the keys matching the text information as the button "1" and the button "6".
  • the text information input by the user in the preset area is “goodbye”
  • the first terminal determines that the operation type of the text information is a text input type
  • the first terminal may determine that the text information is composed of the character “zaijian”, and obtain the text.
  • the keys to which the information matches are the button “z”, the button “a”, the button “i”, the button “j”, the button “i”, the button “a”, and the button “n”.
  • the text information input by the user in the preset area is “DARLING”
  • the first terminal determines that the operation type of the text information is a text input type, and the first terminal may determine that the text information is composed of the character “DARLING”, and obtains
  • the keys that match the text information are the button “D”, the button “A”, the button “R”, the button “L”, the button “I”, the button “N”, and the button “G”.
  • Step S204 The first terminal generates a button key value of each button.
  • the button key value of each button may be generated according to the correspondence between the button and the button key value.
  • the first terminal may obtain a correspondence table between the button and the button key value, and search for a button key value corresponding to each button in the correspondence table between the button and the button key value, thereby generating a button key value of the button.
  • the button key value corresponding to the button "1" is 97
  • the button key value corresponding to the button "6" is 102
  • the first terminal can generate the button "1".
  • the key value of the button and the key value of the button "6" that is, 97 and 102.
  • Step S205 The first terminal sends the generated key value to the second terminal.
  • the generated key value can be sent to the second terminal.
  • the first terminal can transmit the key values 97 and 102 to the second terminal.
  • the method for the first terminal to send the key value to the second terminal may include the following two types:
  • the first terminal sends the key value to the second terminal through a wireless connection with the second terminal.
  • the wireless connection may include an infrared connection, an ultrasonic connection, a Bluetooth connection, Near Field Communication (NFC) or WIFI.
  • NFC Near Field Communication
  • the first terminal sends the key value to the second terminal by using an application interface of the preset application.
  • Step S206 The second terminal implements the corresponding function in response to the button key value.
  • the second terminal After receiving the key value, the second terminal can respond to the key value to implement the corresponding function. For example, if the key values received by the second terminal are 97 and 102, the second terminal can switch to the channel 16 for program playback.
  • the first terminal identifies the text information according to the operation type of the text information input by the user, and obtains at least one button that matches the text information, and then sends the key value of each button to the first
  • the second terminal enables the second terminal to implement the corresponding function in response to the key value, thereby improving processing efficiency and improving the convenience of operation.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a text input type, parse the text information, and obtain at least one character that constitutes the text information, and the characters include letters or numbers, and determine Position of the cursor in the display screen of the second terminal, determining a button required to move the cursor from the position to the search area, determining a button required to move the cursor from the search area to the first character constituting the text information, and The cursor moves from the first character to the key required to form the second character of the text message, and the cursor moves the desired key to the next character in turn, until the cursor is moved from the penultimate character constituting the text information to the composition
  • the keys required for the last character of the text message generate key key values of the respective keys and send the generated key key values to the second terminal.
  • the text information input by the user in the preset area is “goodbye”
  • the first terminal may determine that the operation type of the text information is a text input type, and then acquire at least one character constituting the text information as “zaijian”. Then, the first terminal may send a location acquisition request to the second terminal, and the second terminal sends the location information of the cursor to the first terminal in response to the location acquisition request, and the first terminal may determine, according to the location information, the display of the cursor on the second terminal. The location in the screen.
  • the first terminal may pre-store a menu of the second terminal, such as a button required for the cursor to be moved from any position of the second terminal to another position, and the first terminal may determine a direction key required to move the cursor to the search area ( For example, a left direction key, a right direction key, an up direction key, or a down direction key), for example, when the cursor is located directly below the search area, and the position of the cursor is spaced from the position of the search area by 3 mobile units
  • the second terminal can move a mobile unit in response to a direction key
  • the first terminal can determine that the button required to move the cursor to the search area is 3 up direction keys.
  • the virtual keyboard When the second terminal responds to the confirmation button, the virtual keyboard will be displayed on the display screen of the second terminal, and the first terminal can determine that the button after the three up direction keys is the confirmation button.
  • the layout of the virtual keyboard is the 26-key layout shown in FIG. 3B
  • the first terminal can determine the button required for the cursor to move from the position where the search area is located to the position where the character "z" is located, for example, when the character "z" "When located directly below the search area, and the position where the character "z" is located is 4 mobile units apart from the position where the search area is located, the first terminal can determine to move the cursor from the position where the search area is located to where the character "z" is located.
  • the buttons required for the position are 4 down arrow keys.
  • the first terminal can determine that the key required to move the cursor from the character "z" to the character “a” is to one up direction key and one left direction key, and the cursor is required to move from the character "a" to the character “i”
  • the buttons are 6 rightward direction keys, 1 up direction key, and 1 rightward direction key.
  • the keys required for the cursor to move from the character “i” to the character “j” are 1 down direction key and 1 direction.
  • Left arrow key the cursor required to move the character “j” to the character “i” is the one up arrow key and one right direction key.
  • the cursor is moved from the character "i” to the character "a”.
  • the button is a downward direction key and 7 left direction keys.
  • the keys required for the cursor to move from the character "a” to the character “n” are 1 down direction key and 6 rightward direction keys.
  • the first terminal identifies the text information according to the operation type, and obtains a character input manner of the second terminal before obtaining at least one button that matches the text information, and then identifies the text information according to the operation type and the character input manner. Get at least one button that matches the text message.
  • the layout of the virtual keyboard is different, and the position where the cursor moves is also different.
  • the first terminal can determine the button required for the cursor to move from the position where the search area is located to the position where the character "WXYZ9" is located, for example, when the character "WXYZ9" Located directly below the search area, and when the position of the character "WXYZ9" is separated from the position of the search area by 3 mobile units, the first terminal can determine to move the cursor from the position where the search area is located to the position where the character "WXYZ9" is located.
  • the required buttons are 3 down arrow keys.
  • the second terminal can respond to the confirmation button, and float five characters “W”, “X”, “Y”, “Z”, and “over” above the virtual keyboard. 9" the cursor is located at the position where the character "9” is located, and the second terminal can be controlled to move the cursor from the position where the character "9” is located to the position where the character "Z” is located by the downward direction key, then the second terminal determines 3 After the down arrow key, it also includes a confirmation button and a down arrow button.
  • the first terminal can determine that the keys required for the cursor to move from the character "WXYZ9" to the character "ABC2" are one leftward direction key and two up direction keys. Taking FIG. 3E as an example, when the cursor is located at the button “ABC2”, the second terminal can respond to the confirmation button, and float four characters “A”, “B”, “C”, and “2” above the virtual keyboard, and the cursor When the position of the character "2" is located, the second terminal can be controlled to move the cursor from the position where the character "2” is located to the position where the character "A” is located by the left direction key, and the second terminal determines a leftward direction.
  • one confirmation button and one left arrow key can also be included.
  • the first terminal can obtain the button required for the cursor to move from the second character to the third character constituting the text information by the above manner until the cursor is moved from the penultimate character constituting the text information to the composition text information. The last character required for the button.
  • the layout of the virtual keyboard in the embodiment of the present application includes, but is not limited to, a 26-key layout and a nine-square grid layout, such as a fan layout or a strip layout.
  • the display manner of each character of the same button includes, but is not limited to, the ring shape shown in FIG. 3D or 3E. For example, each character may be displayed in a fan shape or arranged in a line.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a channel switching type. When the text information includes a number, the first terminal may determine a button of each number to generate each determined button. The key value, the time interval between the generation time of each key key value is less than the preset time threshold, and the generated key key value is sent to the second terminal.
  • the preset time threshold may be configured when the second terminal is shipped from the factory.
  • the second terminal may implement a function in response to each key key value;
  • the second terminal can implement at least two functions in response to each key key value. For example, when the time interval between the generation time of the button key value of the button “3” and the generation time of the button key value of the button “2” is less than the preset time threshold, the second terminal can switch to the channel in response to each button key value.
  • the text information input by the user in the preset area is “32”
  • the first terminal may determine that the operation type of the text information is a channel switching type, thereby determining a button of each number, that is, a button “3” and a button “2”,
  • the key value of the button “3” and the button key value of the button “2” are generated, wherein the time interval between the generation time of the button key value of the button “3” and the generation time of the button key value of the button "2" is less than the pre-pre- The time threshold is set, and the generated key key values are sent to the second terminal.
  • the first terminal identifies the text information according to the operation type, and obtains a character input manner of the second terminal before obtaining at least one button that matches the text information, and then identifies the text information according to the operation type and the character input manner. Get at least one button that matches the text message.
  • the layout of the virtual keyboard is different, and the position where the cursor moves is also different.
  • the layout of the virtual keyboard is the 26-key layout shown in FIG. 3B
  • the second terminal can display the numeric keypad in the display screen of the second terminal in response to the button “123”
  • the first terminal can determine that the cursor is at the second terminal. Displays the position in the screen and determines the key required to move the cursor from that position to the character "123". If the interface diagram of the numeric keypad is as shown in FIG.
  • the second terminal can acquire the position of the cursor in the display screen of the second terminal, determine the button required to move the cursor from the position to the character “3”, and determine that The cursor is moved by the position where the character "3" is located to the position required for the position of the character "2", and each of the above-mentioned keys is used as a button matching the text information.
  • the layout of the virtual keyboard is the nine-square grid layout shown in FIG. 3C
  • the first terminal can determine the position of the cursor in the display screen of the second terminal, and determine the button required to move the cursor from the position to the character "DEF3". .
  • the second terminal can display four characters "D”, "E”, “F”, and "3" floating above the virtual keyboard in response to the confirmation button, the cursor is located at the position where the character "3" is located, and the second terminal can respond to the confirmation.
  • the button acquires the character "3”
  • the first terminal determines that the cursor is moved from the position to the key required for the character "DEF3”, and can also determine two confirmation buttons.
  • the first terminal can also acquire a button required to move the cursor from the position where the character "DEF3" is located to the position where the character "ABC2" is located.
  • the second terminal can display four characters “A”, “B”, “C” and “2” in the upper part of the virtual keyboard in response to the confirmation button, the cursor is located at the position of the character “2”, and the second terminal can respond to the confirmation.
  • the button acquires the character "2”
  • the first terminal determines that after moving the cursor from the position where the character "DEF3" is located to the position where the character "ABC2" is located, it is also possible to determine two confirmation buttons.
  • the layout of the virtual keyboard in the embodiment of the present application includes, but is not limited to, a 26-key layout and a nine-square grid layout, such as a fan layout or a strip layout.
  • the display manner of each character of the same button includes but is not limited to the ring shape shown in FIG. 3D or 3E. For example, each character may be displayed in a fan shape or arranged in a line.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a channel switching type.
  • the text information is a Chinese character
  • the first terminal may obtain the text information. Indicating a channel identifier of the channel, determining a button of the number corresponding to the channel identifier, generating a button key value of each determined button, a time interval between generation times of each button key value is less than a preset time threshold, and generating a generated button key value Send to the second terminal.
  • the text information input by the user in the preset area is “play Hunan Satellite TV”
  • the first terminal can obtain the channel identifier of Hunan Satellite TV, wherein different channels are identified by different numbers, for example, the “1” logo of the central satellite and the “Huawei TV” of Hunan Satellite TV.
  • the 32" identifier the first terminal may determine that the number corresponding to the channel identifier of Hunan Satellite TV is "32" according to the correspondence between the channel identifier and the number, and the first terminal may determine the keys of each digit by the above manner, and generate each determination.
  • the key value of the button, the time interval between the generation time of each button key value is less than the preset time threshold, and the generated key value is sent to the second terminal.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a volume adjustment type.
  • the first terminal may determine and
  • the button for matching the text information is a volume decrement button, and the difference between the playing volume of the second terminal and the playing volume indicated by the text information is obtained, and the difference is divided by the decreasing amount corresponding to the volume decrement button to obtain a quotient value,
  • the quotient value is the number of volume decrement buttons matching the text information, and the first terminal may further generate a button key value that satisfies the number of volume decrement buttons, and send the generated button key value to the second terminal.
  • the text information input by the user in the preset area is “adjusted volume is 6”
  • the first terminal may determine that the operation type of the text information is a volume adjustment type, and then the first terminal may send a volume acquisition request to the second terminal, and second The terminal may obtain the current playback volume of the second terminal in response to the volume acquisition request.
  • the current playback volume of the second terminal may be 12, and the second terminal sends the playback volume to the first terminal.
  • the first terminal may compare the playing volume of the second terminal with the playing volume indicated by the text information, and determine that the playing volume of the second terminal is greater than the playing volume indicated by the text information, and the first terminal may determine a button that matches the text information. Decrease the volume for the button.
  • the first terminal can obtain the difference between the playing volume of the second terminal and the playing volume indicated by the text information is 6, for example, the second terminal responds to the button key value of the volume decrement button, and the current terminal plays the second terminal.
  • the first terminal can determine that the decreasing amount of the volume decrement button corresponds to 1, and divide the difference by the decreasing amount corresponding to the volume decrement button to obtain a quotient of 6.
  • the first terminal uses the quotient value as the number of volume decrement buttons that match the text information, and the first terminal can also generate the button key values of the six volume decrement buttons, and send the generated button key values to the second terminal.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a volume adjustment type, and the playing volume of the second terminal is smaller than the playing volume indicated by the text information.
  • the first terminal may determine that the button matching the text information is a volume increment button, and obtain a difference between a play volume of the second terminal and a play volume indicated by the text information, and divide the difference by the increment corresponding to the volume increment button.
  • the amount of change, the quotient value is obtained, and the quotient value is used as the number of volume increment buttons matching the text information, and the first terminal may also generate a button key value that satisfies the number of volume increment buttons, and send the generated button key value to the second terminal.
  • the first terminal when the operation type of the text information is the play progress adjustment type or the episode adjustment type, when the first terminal processes the text information, and the operation type of the text information is the volume adjustment type, the first terminal pairs the text.
  • the processing of information is similar.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a play progress adjustment type.
  • the play progress of the second terminal is greater than the play progress indicated by the text information
  • the first terminal The button matching the text information may be determined as a progress reverse button, and the difference between the playing progress of the second terminal and the playing progress indicated by the text information is obtained, and the difference is divided by the decreasing variation corresponding to the progress reverse button to obtain the quotient.
  • the value is used as the number of progress reverse buttons matching the text information, and the first terminal may further generate a button key value that satisfies the number of progress reverse buttons, and send the generated button key value to the second terminal.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a play progress adjustment type, and when the play progress of the second terminal is less than the play progress indicated by the text information, the first The terminal may determine that the button matching the text information is a progress advance button, and obtain a difference between a play progress of the second terminal and a play progress indicated by the text information, and divide the difference by the incremental change amount corresponding to the progress advance button to obtain The quotient value is used as the number of progress advance buttons matching the text information, and the first terminal may further generate a button key value that satisfies the number of progress advance buttons, and send the generated button key value to the second terminal.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is an episode adjustment type, and the episode identifier currently played by the second terminal is greater than the episode identifier indicated by the text information.
  • the first terminal may determine that the button matching the text information is the previous episode button, and obtain a difference between the episode identifier currently displayed by the second terminal and the episode identifier indicated by the text information, and divide the difference by one
  • the decreasing amount corresponding to the button is used to obtain the quotient value, and the quotient is used as the number of the previous set of buttons matching the text information, and the first terminal can also generate the button key value of the previous set of keys satisfying the quantity, which will be generated.
  • the key value is sent to the second terminal.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is an episode adjustment type, and the episode identifier currently played by the second terminal is smaller than the episode identifier indicated by the text information.
  • the first terminal may determine that the button matching the text information is the next set button, and obtain a difference between the episode identifier currently displayed by the second terminal and the episode identifier indicated by the text information, and divide the difference by one
  • the incremental change corresponding to the button is used to obtain the quotient value, and the quotient is used as the number of the next set of buttons matching the text information, and the first terminal may also generate a button key value that satisfies the quantity of the next set of keys, which will be generated.
  • the key value is sent to the second terminal.
  • the terminal control method implemented in the case where the operation type is the program playback type is described in the following.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a program playback type, and the first terminal may determine the channel identifier of the last playback, when the channel identifier of the last playback is smaller than the text information.
  • the first terminal may obtain the number of channel identifiers between the channel identifier that is last played back and the channel identifier indicated by the text information, and determine that the button matching the text information is at least one playback function key, wherein at least one of the playback function keys, at least The number of playback function keys is derived from the number of spaced channel identifiers.
  • the second terminal may implement a lookback function in response to the playback function button.
  • the user may control the second terminal to generate a lookback list by using the first terminal, and the lookback list may include at least two channel identifiers, and the user may use the first terminal to
  • the second terminal sends a button key value of the playback function button, and the second terminal can play back the program corresponding to the channel corresponding to the channel identifier in response to the button key value of the playback function button.
  • the channel identifiers included in the lookup list are 1, 12, 20, and 32 respectively. If the text information input by the user in the preset area is “reviewing 32 units,” the first terminal is used.
  • the operation type of the text information may be determined as a program playback type, the first terminal may further send a playback information acquisition request to the second terminal, and the second terminal may send the channel identifier of the last playback to the first terminal in response to the playback information acquisition request. If the channel identifier of the last playback is 1, the first terminal may determine that the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, and the first terminal acquires the channel identifier indicated by the last playback and the channel identifier indicated by the text information.
  • the number of channel identifiers between the intervals is 2, the first terminal may add 1 to the number of channel identifiers between the channel identifier that was last played back and the channel identifier indicated by the text information, to obtain a playback function matching the text information.
  • the number of keys that is, the first terminal can determine that the number of playback function keys matching the text information is 3, Three keys playback key of the key, and sends the generated key to the second terminal keys.
  • the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a program playback type, and the first terminal may determine the channel identifier of the last playback, when When the channel identifier of the last playback is greater than the channel identifier indicated by the text information, the first terminal may obtain the first number of channel identifiers between the first channel identifier and the last channel identifier in the lookup list, and obtain the last time.
  • the channel identifiers included in the lookup list are 1, 12, 20, and 32, respectively. If the text information input by the user in the preset area is “reviewing 12 units,” the first terminal is used.
  • the operation type of the text information may be determined as a program playback type, the first terminal may further send a playback information acquisition request to the second terminal, and the second terminal may send the channel identifier of the last playback to the first terminal in response to the playback information acquisition request. If the channel identifier of the last playback is 32, the first terminal may determine that the channel identifier of the last playback is greater than the channel identifier indicated by the text information, and the first terminal acquires the first channel identifier and the last channel identifier in the lookback list. The first number of channel identifiers between the intervals is 2, and the second number of channel identifiers between the last played back channel identifier and the channel identifier indicated by the text information is 1, and the first terminal may reduce the first number.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application, for implementing the function of the first terminal in the embodiment of FIG. 2.
  • the functional block of the terminal may be a combination of hardware, software, or a combination of hardware and software.
  • the solution of the present application is implemented.
  • the functional blocks described in FIG. 4 can be combined or separated into several sub-blocks to implement the present application. Accordingly, the above description in this application may support any possible combination or separation or further definition of the functional modules described below.
  • the terminal may include: a receiving module 401, a processing module 402, and a sending module 403, wherein detailed descriptions of the respective modules are as follows.
  • the receiving module 401 is configured to obtain text information input by the household in a preset area of the terminal;
  • the processing module 402 is configured to determine an operation type of the text information.
  • the processing module 402 is further configured to: identify the text information according to the operation type, and obtain at least one button that matches the text information;
  • the processing module 402 is further configured to generate a button key value of each of the buttons;
  • the sending module 403 is configured to send the generated key key value to the second terminal to control the second terminal by using the key value.
  • the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
  • the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
  • the text information is a Chinese character
  • acquiring a channel identifier of the channel indicated by the text information and determining a button of the number corresponding to the channel identifier
  • the processing module 402 generates a button key value of each of the buttons, specifically for:
  • the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
  • the second quotient value is taken as the number of volume increment buttons that match the text information.
  • the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
  • Determining that the key that matches the text information is at least one playback function key, the number of the at least one playback function key being obtained by the number of the spaced channel identifiers;
  • the channel identifier of the last playback is greater than the channel identifier indicated by the text information, obtain the sum of the number of playable channel identifiers minus the channel identifier of the most recent playback and the channel identifier indicated by the text information. The difference between the number of channel identifiers that are separated;
  • Determining that the key that matches the textual information is at least one playback function key, the number of the at least one playback function key being derived from the difference.
  • the receiving module 401 is further configured to: after the processing module 402 identifies the text information according to the operation type, obtain the at least one button that matches the text information, and acquire the second terminal. Character input method;
  • the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
  • the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
  • each module may also correspond to the corresponding description of the embodiment shown in FIG. 2 .
  • the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • the functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • FIG. 5 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
  • the terminal 100 can include a baseband chip 110, a memory 115 (one or more computer readable storage media), a radio frequency (RF) module 116, and a peripheral system 117. These components can communicate over one or more communication buses 114.
  • a baseband chip 110 one or more computer readable storage media
  • RF radio frequency
  • the peripheral system 117 is mainly used to implement the interaction function between the terminal 110 and the user/external environment, and mainly includes the input and output devices of the terminal 100.
  • the peripheral system 117 can include at least one of the touch screen controller 118, the camera controller 119, the audio controller 120, and the sensor management module 121.
  • Each controller may be coupled to a respective peripheral device (such as touch screen 123, camera 124, audio circuit 125, and sensor 126).
  • the touch screen 123 may be configured with a touch screen of a self-capacitive floating touch panel or a touch screen configured with an infrared floating touch panel.
  • camera 124 can be a 3D camera. It should be noted that the peripheral system 117 may also include other I/O peripherals.
  • the baseband chip 110 can be integrated to include one or more processors 111, a clock module 112, and a power management module 113.
  • the clock module 112 integrated in the baseband chip 110 is primarily used to generate the clocks required for data transfer and timing control for the processor 111.
  • the power management module 113 integrated in the baseband chip 110 is primarily used to provide a stable, high accuracy voltage to the processor 111, the RF module 116, and peripheral systems.
  • a radio frequency (RF) module 116 is used to receive and transmit radio frequency signals, primarily integrating the receiver and transmitter of the terminal 100.
  • a radio frequency (RF) module 116 communicates with the communication network and other communication devices via radio frequency signals.
  • the radio frequency (RF) module 116 may include, but is not limited to: an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, and Storage media, etc.
  • a radio frequency (RF) module 116 can be implemented on a separate chip.
  • Memory 115 is coupled to processor 111 for storing various software programs and/or sets of instructions.
  • memory 115 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices.
  • the memory 115 can store an operating system (hereinafter referred to as a system) such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX.
  • the memory 115 can also store a network communication program that can be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices.
  • the memory 115 can also store a user interface program, which can realistically display the content of the application through a graphical operation interface, and receive user control operations on the application through input controls such as menus, dialog boxes, and keys. .
  • the memory 115 can also store one or more applications. As shown in FIG. 5, these applications may include: social applications (such as Facebook), image management applications (such as photo albums), map applications (such as Google Maps), browsers (such as Safari, Google Chrome), etc. .
  • social applications such as Facebook
  • image management applications such as photo albums
  • map applications such as Google Maps
  • browsers such as Safari, Google Chrome
  • terminal 100 is only an example provided by the embodiments of the present application, and the terminal 100 may have more or less components than the illustrated components, may combine two or more components, or may have components. Different configurations are implemented.
  • the terminal introduced in the embodiment of the present application may be used to implement some or all of the processes in the method embodiment introduced in conjunction with FIG. 2 in this application.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a terminal control method and a terminal. The method comprises: a first terminal acquiring text information input in a pre-set area of the first terminal, and determining an operation type of the text information; the first terminal identifying the text information according to the operation type, to obtain at least one key matching the text information; and the first terminal generating a key value corresponding to each key, and sending the generated key value to a second terminal, so as to control the second terminal through the key value. By means of the embodiments of the present application, the processing efficiency can be improved, and the convenience of operation is improved.

Description

终端控制方法及终端Terminal control method and terminal
本申请要求于2017年9月30日提交中国专利局、申请号为201710918858.X、名称为“一种基于手机操作电视的方法和设备”的中国专利申请,以及于2018年3月29日提交中国专利局、申请号为201810276176.8、名称为“一种基于手机操作电视的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the China Patent Office on September 30, 2017, application number 201710918858.X, the Chinese patent application entitled "A Method and Equipment for Operating TV Based on Mobile Phones", and submitted on March 29, 2018. The Chinese Patent Office, Application No. 201100276176.8, entitled "A Method and Apparatus for Operating a Television Based on a Mobile Phone", the priority of which is incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及终端控制方法及终端。The present application relates to the field of communications technologies, and in particular, to a terminal control method and a terminal.
背景技术Background technique
用户可通过红外遥控器控制电子设备。以数字电视播放终端为例,与数字电视播放终端匹配的红外遥控器可通过数字编码技术,将按键信息进行编码,通过红外线二极管发射光波,数字电视播放终端将通过红外线接收器接收到的红外信号转变成电信号,对该电信号进行解码得到相应的指令,以控制数字电视播放终端实现频道跳转、音量调整等功能。然而现有的红外遥控器安装的物理按键数量有限,用户需要多次操作红外遥控器才能控制数字电视播放终端实现相应功能,例如数字电视播放终端的当前播放音量为30级,用户按压一次红外遥控器中的音量递减按键,数字电视播放终端仅能将当前播放音量减小1级,若用户希望将播放音量调整为20级,用户需要按压10次红外遥控器中的音量递减按键,数字电视播放终端需要响应用户的10次按压操作,对当前播放音量进行调整,操作的便利性不足,且处理效率较低。The user can control the electronic device through the infrared remote control. Taking a digital television broadcast terminal as an example, an infrared remote controller matched with a digital television broadcast terminal can encode key information through a digital coding technique, emit light waves through an infrared diode, and the infrared signal received by the digital television broadcast terminal through the infrared receiver. Turning into an electrical signal, decoding the electrical signal to obtain a corresponding command to control the digital television broadcast terminal to achieve channel jump, volume adjustment and other functions. However, the number of physical buttons installed in the existing infrared remote controller is limited, and the user needs to operate the infrared remote controller multiple times to control the digital television playing terminal to realize the corresponding function. For example, the current playing volume of the digital television playing terminal is 30, and the user presses the infrared remote control once. The volume decrement button in the device, the digital TV player can only reduce the current playback volume by one level. If the user wants to adjust the playback volume to 20 levels, the user needs to press the volume decrement button in the infrared remote control 10 times, digital TV playback. The terminal needs to respond to the user's 10 pressing operations, adjust the current playing volume, the operation convenience is insufficient, and the processing efficiency is low.
发明内容Summary of the invention
本申请实施例提供一种终端控制方法及终端,可提升处理效率,并提高操作的便利性。The embodiment of the present application provides a terminal control method and a terminal, which can improve processing efficiency and improve operation convenience.
第一方面,本申请实施例提供了一种终端控制方法,第一终端可以获取在第一终端的预设区域输入的文本信息,并确定文本信息的操作类型,然后根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键,第一终端还可以生成各个按键的按键键值,并将生成的按键键值发送给第二终端,以通过按键键值控制第二终端。In a first aspect, the embodiment of the present application provides a terminal control method, where a first terminal may acquire text information input in a preset area of a first terminal, determine an operation type of the text information, and then perform text information according to the operation type. Identifying, obtaining at least one button that matches the text information, the first terminal may further generate a button key value of each button, and send the generated button key value to the second terminal to control the second terminal by using the button key value.
在该技术方案中,第一终端可以根据输入的文本信息的操作类型,对该文本信息进行识别,得到与文本信息匹配的至少一个按键,进而将各个按键的按键键值发送给第二终端,以便第二终端响应该按键键值实现相应功能(例如账 号登录、频道切换或者音量调整等),相对传统的终端控制方法中第一终端检测到用户对第一终端的一次按压操作,只能生成一个按键键值,用户需要对第一终端进行多次按压操作才能控制第二终端实现相应功能,本申请实施例根据输入的文本信息可控制第二终端实现相应功能,第一终端无需检测用户的多次按压操作,可提升处理效率,并提高操作的便利性。In the technical solution, the first terminal may identify the text information according to the operation type of the input text information, obtain at least one button that matches the text information, and then send the key value of each button to the second terminal. In order to implement the corresponding function (such as account login, channel switching, volume adjustment, etc.) in response to the key value of the second terminal, the first terminal detects that the user presses the first terminal by the first terminal in the traditional terminal control method, and can only generate For a button key, the user needs to perform multiple pressing operations on the first terminal to control the second terminal to implement the corresponding function. The embodiment of the present application can control the second terminal to implement the corresponding function according to the input text information, and the first terminal does not need to detect the user. Multiple press operations increase processing efficiency and increase ease of operation.
在一个设计方案中,当操作类型为文本输入类型时,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:第一终端对文本信息进行解析处理,获取组成文本信息的至少一个字符,字符包括字母或数字;第一终端确定光标在第二终端的显示屏幕中的位置;确定将光标由该位置移到至搜索区域所需的按键;第一终端确定将光标由搜索区域移动至组成文本信息的第一个字符所需的按键,以及光标由第一个字符移动至组成文本信息的第二个字符所需的按键,以及光标依次向下一个字符移动所需的按键,直至将光标由组成文本信息的倒数第二个字符移动至组成文本信息的最后一个字符所需的按键。In a design, when the operation type is a text input type, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: the first terminal parses the text information. Processing, acquiring at least one character constituting the text information, the character comprising a letter or a number; the first terminal determining a position of the cursor in the display screen of the second terminal; determining a button required to move the cursor from the position to the search area; A terminal determines a button required to move the cursor from the search area to the first character constituting the text information, and a button required for the cursor to move from the first character to the second character constituting the text information, and the cursor sequentially goes down A character moves the desired key until the cursor is moved from the penultimate character that makes up the text message to the key that is needed to form the last character of the text message.
在该设计方案中,文本信息可以包括账号信息、节目标识或者用户标识等,账号信息可以包括用户名或者登录密码等,节目标识可以包括电视剧名、电影名或者歌名等,用户标识可以包括演员名或者歌手名等。文本输入类型可以包括账号信息输入或者节目搜索等类型。例如,当用户在登录账号过程中需要输入账号信息时,用户可以直接在第一终端的预设区域输入包含账号信息的文本信息。又如,当用户在搜索节目过程中需要输入节目标识时,用户可以直接在第一终端的预设区域输入包含节目标识的文本信息。第一终端获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为文本输入类型之后,可以对文本信息进行解析处理,获取组成文本信息的至少一个字符,确定光标在第二终端的显示屏幕中的位置,确定将光标由该位置移到至搜索区域所需的按键,确定将光标由搜索区域移动至组成文本信息的第一个字符所需的按键,以及光标由第一个字符移动至组成文本信息的第二个字符所需的按键,以及光标依次向下一个字符移动所需的按键,直至将光标由组成文本信息的倒数第二个字符移动至组成文本信息的最后一个字符所需的按键,将上述各个按键的按键键值发送给第二终端。In this design, the text information may include account information, program identification or user identification, etc., the account information may include a user name or a login password, and the program identifier may include a TV drama name, a movie name, or a song name, and the user identifier may include an actor. Name or singer name, etc. The text input type may include a type of account information input or a program search. For example, when the user needs to input the account information in the process of logging in the account, the user can directly input the text information including the account information in the preset area of the first terminal. For another example, when the user needs to input the program identifier during the process of searching for the program, the user can directly input the text information including the program identifier in the preset area of the first terminal. After the first terminal obtains the text information input by the user in the preset area, and determines that the operation type of the text information is the text input type, the text information may be parsed, and at least one character constituting the text information is obtained, and the cursor is determined to be at the second terminal. The position in the display screen, determine the key required to move the cursor from that position to the search area, determine the key required to move the cursor from the search area to the first character that makes up the text message, and the cursor by the first The character moves to the key required to form the second character of the text message, and the cursor moves the desired key to the next character in turn until the cursor is moved from the penultimate character constituting the text information to the last one constituting the text information The keys required for the characters are sent to the second terminal by the key values of the above respective keys.
相对传统的终端控制方法中第一终端确定光标在第二终端的显示屏幕中的位置之后,用户需要通过多次按压第一终端上的方向键,以控制第二终端将光标由该位置移到至搜索区域;第一终端检测到用户按压确认键的按压操作之后,可以将确认键的按键键值发送给第二终端,以便第二终端在显示屏幕中显示虚拟键盘;进而用户需要通过多次按压第一终端上的方向键,以控制第二终端将光标由搜索区域移到至虚拟键盘中的第一个字符;第一终端检测到用户按压确认键的按压操作之后,可以将确认键的按键键值发送给第二终端,以便第二终端获取第一个字符;进而用户需要通过多次按压第一终端上的方向键,以控制第二终端将光标由第一个字符所在位置移到至第二个字符所在位置;第一 终端检测到用户按压确认键的按压操作之后,可以将确认键的按键键值发送给第二终端,以便第二终端获取第二个字符,直至第二终端获取到最后一个字符,操作繁琐,且处理效率较低,而本申请实施例无需用户频繁操作第一终端,第一终端可直接对用户输入的文本信息进行解析处理,得到组成文本信息的至少一个字符,进而确定输入各个字符所需的按键,将各个按键的按键键值发送给第二终端,可提升处理效率,并提高操作的便利性。After the first terminal determines the position of the cursor in the display screen of the second terminal in the conventional terminal control method, the user needs to press the direction key on the first terminal to control the second terminal to move the cursor from the position to the second terminal. After the first terminal detects that the user presses the pressing operation of the confirmation key, the key value of the confirmation key can be sent to the second terminal, so that the second terminal displays the virtual keyboard in the display screen; Pressing the direction key on the first terminal to control the second terminal to move the cursor from the search area to the first character in the virtual keyboard; after the first terminal detects the pressing operation of the user pressing the confirmation key, the confirmation key may be The key value is sent to the second terminal, so that the second terminal acquires the first character; and the user needs to press the direction key on the first terminal multiple times to control the second terminal to move the cursor from the position of the first character to To the position where the second character is located; after the first terminal detects that the user presses the confirm button, the button of the confirmation button can be The value is sent to the second terminal, so that the second terminal acquires the second character until the second terminal obtains the last character, the operation is cumbersome, and the processing efficiency is low, and the embodiment of the present application does not require the user to frequently operate the first terminal. A terminal can directly parse and process the text information input by the user to obtain at least one character constituting the text information, thereby determining a button required for inputting each character, and transmitting the key value of each button to the second terminal, thereby improving processing efficiency And improve the convenience of operation.
在一个设计方案中,当操作类型为频道切换类型时,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:当文本信息包括数字时,第一终端可以确定各个数字的按键;当文本信息为汉字时,第一终端可以获取文本信息所指示频道的频道标识,确定频道标识所对应数字的按键。In a design, when the operation type is a channel switching type, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: when the text information includes a number, A terminal can determine a button of each digit; when the text information is a Chinese character, the first terminal can obtain a channel identifier of the channel indicated by the text information, and determine a button of the number corresponding to the channel identifier.
进一步的,第一终端生成各个按键的按键键值的具体方式可以为:生成各个确定的按键的按键键值,各个按键键值的生成时间之间的时间间隔小于预设时间阈值。Further, the specific manner in which the first terminal generates the key value of each button may be: generating a button key value of each determined button, and a time interval between generation times of each button key value is less than a preset time threshold.
在该设计方案中,文本信息包括数字时,该数字可以为电视台的标识,例如中央电视台的标识为1,湖南卫视电视台的标识为32等。文本信息包括汉字时,该汉字可以为频道的频道标识,例如“中央电视台”或者“湖南卫视”等。例如,用户在观看电视节目过程中需要进行频道切换时,可以直接在第一终端的预设区域输入包含数字的文本信息,则第一终端可以确定文本信息所包含的各个数字的按键,将各个按键的按键键值发送给第二终端,其中各个按键键值的生成时间之间的时间间隔小于预设时间阈值。又如,用户在观看电视节目过程中需要进行频道切换时,可以直接在第一终端的预设区域输入包含汉字的文本信息,则第一终端可以确定该汉字所指示频道的频道标识,进而确定频道标识所对应数字的按键,将各个按键的按键键值发送给第二终端,其中各个按键键值的生成时间之间的时间间隔小于预设时间阈值。In this design, when the text information includes a number, the number may be the identifier of the television station, for example, the identifier of the CCTV is 1, and the identifier of the Hunan TV station is 32. When the text information includes a Chinese character, the Chinese character may be a channel identifier of the channel, such as "CCTV" or "Hunan Satellite TV". For example, when the user needs to perform channel switching during the watching of the television program, the text information including the number may be directly input in the preset area of the first terminal, and the first terminal may determine the keys of the respective numbers included in the text information, and each The key value of the button is sent to the second terminal, wherein the time interval between the generation time of each button key value is less than the preset time threshold. For example, when the user needs to perform channel switching during the process of watching the television program, the text information including the Chinese character may be directly input in the preset area of the first terminal, and the first terminal may determine the channel identifier of the channel indicated by the Chinese character, and then determine The button corresponding to the number corresponding to the channel identifier sends the key value of each button to the second terminal, wherein the time interval between the generation time of each button key value is less than the preset time threshold.
相对传统的终端控制方法中用户需要记忆电视台的标识,以便通过按压第一终端中指定电视台的标识所指示数字的按键,控制第二终端进行频道切换,若用户忘记指定电视台的标识,则第一终端获取用户通过上下滑动节目菜单选取的指定电视台的标识,进而控制第二终端进行频道切换,由于节目菜单包含多个电视台的标识,上下滑动选取指定电视台的标识,增加频道切换时延,导致频道切换效率较低,而本申请实施例中用户无需记忆电视台的标识,第一终端可以直接获取用户输入的文本信息所指示频道的频道标识,确定频道标识所对应数字的按键,进而将各个按键的按键键值发送给第二终端,以控制第二终端进行频道切换,可提高频道切换效率。另外,传统的终端控制方法中指定电视台的标识为至少两位数的数字时,用户需要在短时间内按压指定电视台的标识所指示的各个数字,若用户按压各个数字按键的时间间隔较长,将导致频道切换错误,降低频道切换的精准度,而本申请实施例不限制用户在第一终端的预设区域输入的各个数字的时间间隔,第一终端可以直接获取用户输入的文本 信息,确定文本信息所包含数字的按键,将各个按键的按键键值发送给第二终端,以控制第二终端进行频道切换,其中各个按键键值的生成时间之间的时间间隔小于预设时间阈值,可提高频道切换的精准度。In the conventional terminal control method, the user needs to memorize the identifier of the television station, so as to control the second terminal to perform channel switching by pressing a button of the number indicated by the identifier of the designated television station in the first terminal, and if the user forgets to specify the identifier of the television station, the first The terminal acquires the identifier of the designated television station selected by the user by sliding the program menu up and down, and then controls the second terminal to perform channel switching. Since the program menu includes the identifiers of the plurality of television stations, the upper and lower sliding selects the identifier of the designated television station, and the channel switching delay is increased, resulting in the channel. The switching efficiency is low. In the embodiment of the present application, the user does not need to memorize the identifier of the television station, and the first terminal can directly obtain the channel identifier of the channel indicated by the text information input by the user, determine the button corresponding to the number corresponding to the channel identifier, and further The key value is sent to the second terminal to control the second terminal to perform channel switching, thereby improving channel switching efficiency. In addition, in the conventional terminal control method, when the identifier of the television station is specified as a digit of at least two digits, the user needs to press each digit indicated by the identifier of the designated television station in a short time, and if the time interval for the user to press each digital button is long, The channel switching error is caused, and the accuracy of the channel switching is reduced. The embodiment of the present application does not limit the time interval of each digit input by the user in the preset area of the first terminal, and the first terminal may directly obtain the text information input by the user, and determine The key of the text information includes a key, and the key value of each key is sent to the second terminal to control the second terminal to perform channel switching, wherein the time interval between the generation time of each key value is less than the preset time threshold, Improve the accuracy of channel switching.
在一个设计方案中,当操作类型为音量调整类型时,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:当第二终端的播放音量大于文本信息所指示的播放音量时,第一终端可以确定与文本信息匹配的按键为音量递减按键;获取第二终端的播放音量与文本信息所指示的播放音量之间的第一差值;将第一差值除以音量递减按键对应的递减变化量,得到第一商值;将第一商值作为与文本信息匹配的音量递减按键的数量。In a design, when the operation type is the volume adjustment type, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: when the playback volume of the second terminal is greater than When the volume is indicated by the text information, the first terminal may determine that the button matching the text information is a volume decrement button; and obtain a first difference between the playing volume of the second terminal and the playing volume indicated by the text information; The difference is divided by the decreasing amount corresponding to the volume decrement button to obtain the first quotient value; the first quotient value is used as the number of volume decrement buttons matching the text information.
在该设计方案中,当用户在观看视频的过程中需要进行音量调整时,可以在第一终端的预设区域输入待调整的播放音量,第一终端可以获取第二终端当前的播放音量,当第二终端的播放音量大于文本信息所指示的播放音量时,第一终端可以确定与文本信息匹配的按键为音量递减按键,进而获取第二终端的播放音量与文本信息所指示的播放音量之间的第一差值,将第一差值除以音量递减按键对应的递减变化量,得到第一商值,将第一商值作为与文本信息匹配的音量递减按键的数量,则第一终端可以将满足该数量的音量递减按键的按键键值发送给第二终端,以控制第二终端进行音量调整。相对传统的终端控制方法中用户需要通过多次按压第一终端的音量递减按键,以控制第二终端进行音量调整,本申请实施例可提升处理效率,并提高操作的便利性。In this design, when the user needs to perform volume adjustment during the process of watching the video, the playback volume to be adjusted may be input in the preset area of the first terminal, and the first terminal may acquire the current playback volume of the second terminal. When the playing volume of the second terminal is greater than the playing volume indicated by the text information, the first terminal may determine that the button matching the text information is a volume decrement button, thereby obtaining a playing volume between the second terminal and a playing volume indicated by the text information. The first difference is obtained by dividing the first difference by the decreasing amount corresponding to the volume decrement button to obtain the first quotient value, and using the first quotient value as the number of volume decrement buttons matching the text information, the first terminal may Sending the key value of the volume decrement button that meets the number to the second terminal to control the second terminal to perform volume adjustment. In the conventional terminal control method, the user needs to press the volume decrement button of the first terminal to control the volume adjustment of the second terminal. The embodiment of the present application can improve the processing efficiency and improve the convenience of operation.
在一个设计方案中,当操作类型为音量调整类型时,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:当第二终端的播放音量小于文本信息所指示的播放音量时,第一终端可以确定与文本信息匹配的按键为音量递增按键;获取文本信息所指示的播放音量与第二终端的播放音量之间的第二差值;将第二差值除以音量递增按键对应的递增变化量,得到第二商值;将第二商值作为与文本信息匹配的音量递增按键的数量。In a design, when the operation type is the volume adjustment type, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: when the playback volume of the second terminal is less than When the volume is indicated by the text information, the first terminal may determine that the button matching the text information is a volume increment button; and obtain a second difference between the playback volume indicated by the text information and the playback volume of the second terminal; The second difference is divided by the incremental change amount corresponding to the volume increment button to obtain the second quotient value; the second quotient value is used as the number of volume increment buttons matching the text information.
在该设计方案中,当用户在观看视频的过程中需要进行音量调整时,可以在第一终端的预设区域输入待调整的播放音量,第一终端可以获取第二终端当前的播放音量,当第二终端的播放音量小于文本信息所指示的播放音量时,第一终端可以确定与文本信息匹配的按键为音量递增按键,进而获取文本信息所指示的播放音量与第二终端的播放音量之间的第二差值,将第二差值除以音量递增按键对应的递增变化量,得到第二商值,将第二商值作为与文本信息匹配的音量递增按键的数量,则第一终端可以将满足该数量的音量递增按键的按键键值发送给第二终端,以控制第二终端进行音量调整。相对传统的终端控制方法中用户需要通过多次按压第一终端的音量递增按键,以控制第二终端进行音量调整,本申请实施例可提升处理效率,并提高操作的便利性。In this design, when the user needs to perform volume adjustment during the process of watching the video, the playback volume to be adjusted may be input in the preset area of the first terminal, and the first terminal may acquire the current playback volume of the second terminal. When the playing volume of the second terminal is less than the playing volume indicated by the text information, the first terminal may determine that the button matching the text information is a volume increasing button, thereby obtaining between the playing volume indicated by the text information and the playing volume of the second terminal. The second difference is obtained by dividing the second difference by the incremental change corresponding to the volume increment button to obtain a second quotient value, and using the second quotient value as the number of volume increment buttons matching the text information, the first terminal may Sending the key value of the volume up button that meets the number to the second terminal to control the second terminal to perform volume adjustment. In the conventional terminal control method, the user needs to press the volume increment button of the first terminal to control the volume adjustment of the second terminal. The embodiment of the present application can improve the processing efficiency and improve the convenience of operation.
在一个设计方案中,当操作类型为节目回放类型时,第一终端根据操作类 型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:确定最近一次回放的频道标识;当最近一次回放的频道标识小于文本信息所指示的频道标识时,获取最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的数量;确定与文本信息匹配的按键为至少一个回放功能键,至少一个回放功能键的数量由间隔的频道标识的数量得到。In a design, when the operation type is a program playback type, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining the at least one button that matches the text information may be: determining the channel identifier of the last playback; When the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, obtain the number of channel identifiers between the channel identifier of the last playback and the channel identifier indicated by the text information; and determine that the button matching the text information is at least A playback function key, the number of at least one playback function key is obtained by the number of spaced channel identifications.
在该设计方案中,当用户在观看视频的过程中需要进行节目回放时,可以在第一终端的预设区域输入待回放的频道标识,第一终端可以确定最近一次回放的频道标识,当最近一次回放的频道标识小于文本信息所指示的频道标识时,获取最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的数量,确定与文本信息匹配的按键为至少一个回放功能键,至少一个回放功能键的数量由间隔的频道标识的数量得到,则第一终端可以将满足该数量的回放功能键的按键键值发送给第二终端,以控制第二终端进行节目回放。相对传统的终端控制方法中用户需要通过多次按压回放功能按键,以控制第二终端进行节目回放,本申请实施例可提升处理效率,并提高操作的便利性。In this design, when the user needs to perform program playback during the process of watching the video, the channel identifier to be played back may be input in the preset area of the first terminal, and the first terminal may determine the channel identifier of the last playback, when the most recent When the channel identifier of one playback is smaller than the channel identifier indicated by the text information, obtain the number of channel identifiers between the channel identifier of the last playback and the channel identifier indicated by the text information, and determine that the button matching the text information is at least one playback. The function key, the number of the at least one playback function key is obtained by the number of the interval channel identification, the first terminal may send the key value of the playback function key that meets the quantity to the second terminal, to control the second terminal to perform program playback. . In the conventional terminal control method, the user needs to press the playback function button to control the second terminal to perform program playback. The embodiment of the present application can improve processing efficiency and improve the convenience of operation.
在一个设计方案中,当操作类型为节目回放类型时,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:确定最近一次回放的频道标识;当最近一次回放的频道标识大于文本信息所指示的频道标识时,第一终端获取可回放的频道标识的数量总和减去最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的数量得到的差值,确定与文本信息匹配的按键为至少一个回放功能键,至少一个回放功能键的数量由该差值得到。In a design, when the operation type is a program playback type, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining the at least one button that matches the text information may be: determining the channel identifier of the last playback; When the channel identifier of the last playback is greater than the channel identifier indicated by the text information, the first terminal acquires the sum of the number of replayable channel identifiers minus the channel between the last played back channel identifier and the channel identifier indicated by the text information. The difference between the number of the identifiers is determined, and the button matching the text information is determined to be at least one playback function key, and the number of at least one playback function key is obtained from the difference.
在一个设计方案中,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键之前,还可以执行以下操作:获取第二终端的字符输入方式。In one design, before the first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information, the following operation may also be performed: acquiring the character input manner of the second terminal.
进一步的,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:根据操作类型和字符输入方式对文本信息进行识别,得到与文本信息匹配的至少一个按键。Further, the first terminal may identify the text information according to the operation type, and the specific manner of obtaining the at least one button that matches the text information may be: identifying the text information according to the operation type and the character input manner, and obtaining at least the text information. A button.
在该设计方案中,一个第一终端可以控制至少一个第二终端,不同第二终端的字符输入方式可以相同,也可以不相同。针对不同输入方式,得到的与文本信息匹配的按键是不相同的。例如,当第二终端的字符输入方式为九宫格,且第一个字符为“h”,第二个字符为“a”,则将光标由第一个字符移动至第二个字符所需的按键包括:向上方向键,向右方向键,确认按键,向左方向键,以及确认按键。又如,当第二终端的字符输入方式为虚拟键盘,且第一个字符为“h”,第二个字符为“a”,则将光标由第一个字符移动至第二个字符所需的按键包括:5个向左方向键,以及确认按键。基于此,第一终端对文本信息进行识别之前,获取第二终端的字符输入方式,并根据操作类型和字符输入方式对文本信息进行识别,得到与文本信息匹配的至少一个按键,可提高文本信息识别的精准度。In this design, one first terminal may control at least one second terminal, and the character input manners of different second terminals may be the same or different. For different input methods, the keys that match the text information are different. For example, when the character input mode of the second terminal is nine squares, and the first character is "h" and the second character is "a", the button required to move the cursor from the first character to the second character Including: up arrow, right arrow, confirm button, left arrow, and confirm button. For another example, when the character input mode of the second terminal is a virtual keyboard, and the first character is “h” and the second character is “a”, the cursor is moved from the first character to the second character. The buttons include: 5 left arrow keys, and a confirmation button. Based on this, before the first terminal identifies the text information, the character input mode of the second terminal is obtained, and the text information is identified according to the operation type and the character input manner, and at least one button matching the text information is obtained, thereby improving the text information. The accuracy of the recognition.
在一个设计方案中,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键的具体方式可以为:第一终端根据操作类型对文本信息进行识别,得到识别后的文本信息,并获取与识别后的文本信息匹配的至少一个按键。In a design, the first terminal identifies the text information according to the operation type, and the specific manner of obtaining at least one button that matches the text information may be: the first terminal identifies the text information according to the operation type, and obtains the recognized text. Information and obtaining at least one button that matches the identified text information.
在该设计方案中,若文本信息为“我想看芳华”,则第一终端根据操作类型对文本信息进行识别,得到的识别后的文本信息可以为“搜索电视剧《芳华》”、“搜索电影《芳华》”或者“搜索演员芳华”等,进而第一终端可以获取与识别后的文本信息匹配的至少一个按键。In the design scheme, if the text information is "I want to see Fanghua", the first terminal recognizes the text information according to the operation type, and the obtained recognized text information may be "searching for the TV drama "Fanghua"", " Searching for the movie "Fanghua" or "searching for actor Fanghua", etc., and the first terminal can acquire at least one button that matches the recognized text information.
第二方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时使得终端执行上述第一方面所述的任意一种终端控制方法。In a second aspect, the embodiment of the present application provides a computer storage medium, where the computer storage medium stores a program, and when the program is executed, the terminal executes any one of the terminal control methods described in the above first aspect.
第三方面,本申请实施例提供一种终端,该终端具有实现第一方面所述的终端控制方法示例中第一终端行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元或模块。In a third aspect, an embodiment of the present application provides a terminal, where the terminal has a function of implementing a behavior of a first terminal in an example of a terminal control method according to the first aspect. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more units or modules corresponding to the functions described above.
第四方面,本申请实施例提供一种终端,该终端可包括接收器,处理器和发射器,所述处理器被配置为支持终端执行第一方面所述终端控制方法中第一终端相应的功能。所述接收器、发射器用于支持第一终端与第二终端之间的通信。所述终端还可以包括存储器,所述存储器用于与处理器耦合,其保存终端必要的程序指令和数据。作为示例,接收器和发射器可以集成为收发器。In a fourth aspect, the embodiment of the present application provides a terminal, where the terminal may include a receiver, a processor, and a transmitter, where the processor is configured to support the terminal to perform the first terminal in the terminal control method in the first aspect. Features. The receiver and the transmitter are configured to support communication between the first terminal and the second terminal. The terminal can also include a memory for coupling with the processor that retains program instructions and data necessary for the terminal. As an example, the receiver and transmitter can be integrated into a transceiver.
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions that, when run on a computer, cause the computer to perform the method of the first aspect.
第六方面,本申请实施例提供了一种终端控制***,该***包括上述方面所述的第一终端和第二终端。In a sixth aspect, an embodiment of the present application provides a terminal control system, where the system includes the first terminal and the second terminal in the foregoing aspect.
第七方面,本申请实施例提供了一种芯片***,该芯片***包括处理器,用于第一终端实现上述方面中所涉及的功能,例如,生成或处理上述方法中所涉及的数据和/或信息。In a seventh aspect, the embodiment of the present application provides a chip system, where the chip system includes a processor, where the first terminal implements functions involved in the foregoing aspects, for example, generating or processing data involved in the foregoing method and/or Or information.
在一个设计方案中,所述芯片***还包括存储器,所述存储器,用于保存第一终端必要的程序指令和数据。该芯片***,可以由芯片构成,也可以包括芯片和其他分立器件。In one embodiment, the chip system further includes a memory for storing program instructions and data necessary for the first terminal. The chip system can be composed of chips, and can also include chips and other discrete devices.
附图说明DRAWINGS
图1是本申请实施例公开的一种终端控制***的架构示意图;1 is a schematic structural diagram of a terminal control system disclosed in an embodiment of the present application;
图2是本申请实施例公开的一种终端控制方法的流程示意图;2 is a schematic flowchart of a terminal control method according to an embodiment of the present application;
图3A是本申请实施例公开的一种文本信息输入的界面示意图;FIG. 3A is a schematic diagram of an interface for text information input according to an embodiment of the present application; FIG.
图3B是本申请实施例公开的一种26键布局的虚拟键盘的界面示意图;FIG. 3B is a schematic diagram of an interface of a virtual keyboard with a 26-key layout disclosed in the embodiment of the present application; FIG.
图3C是本申请实施例公开的一种九宫格布局的虚拟键盘的界面示意图;3C is a schematic diagram of an interface of a virtual keyboard of a nine-square grid layout disclosed in the embodiment of the present application;
图3D是本申请实施例公开的一种在虚拟键盘的上方悬浮显示字符的界面示意图;FIG. 3D is a schematic diagram of an interface for floating characters displayed above a virtual keyboard according to an embodiment of the present application; FIG.
图3E是本申请另一实施例公开的一种在虚拟键盘的上方悬浮显示字符的界面示意图;FIG. 3E is a schematic diagram of an interface for floating characters displayed above a virtual keyboard according to another embodiment of the present application; FIG.
图3F是本申请实施例公开的一种数字键盘的界面示意图;FIG. 3F is a schematic diagram of an interface of a numeric keypad disclosed in an embodiment of the present application; FIG.
图3G是本申请实施例公开的一种回看列表的界面示意图;3G is a schematic diagram of an interface of a lookback list disclosed in an embodiment of the present application;
图4是本申请实施例公开的一种终端的结构示意图;4 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application;
图5是本申请实施例公开的一种终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图对本申请实施例进行描述。The embodiments of the present application are described below in conjunction with the accompanying drawings in the embodiments of the present application.
为了更好的理解本申请实施例公开的一种终端控制方法及终端,下面首先对本申请实施例适用的网络架构进行描述。请参见图1,图1是本申请实施例公开的一种终端控制***的架构示意图。如图1所示,该终端控制***可以包括至少一个第一终端101以及至少一个第二终端102。其中,一个第一终端101可以和至少一个第二终端102建立数据通信,以控制至少一个第二终端102实现相应功能。可选的,至少一个第一终端101可以和一个第二终端102建立数据通信,通过至少一个第一终端101控制一个第二终端102实现相应功能。第一终端101可以获取在第一终端101的预设区域输入的文本信息,并确定文本信息的操作类型,根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键,生成各个按键的按键键值,并将生成的按键键值发送给第二终端102。For a better understanding of a terminal control method and a terminal disclosed in the embodiments of the present application, the following describes the network architecture applicable to the embodiments of the present application. Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a terminal control system according to an embodiment of the present application. As shown in FIG. 1, the terminal control system may include at least one first terminal 101 and at least one second terminal 102. The first terminal 101 can establish data communication with the at least one second terminal 102 to control the at least one second terminal 102 to implement the corresponding function. Optionally, at least one first terminal 101 can establish data communication with a second terminal 102, and at least one first terminal 101 controls a second terminal 102 to implement a corresponding function. The first terminal 101 may acquire text information input in a preset area of the first terminal 101, determine an operation type of the text information, identify the text information according to the operation type, obtain at least one button that matches the text information, and generate each button. The key value of the button is sent to the second terminal 102.
其中,第一终端101可以是用于与第二终端102通信的终端,具体可以是智能手机(如Android手机、iOS手机等)、平板电脑、车载终端或者可穿戴终端等中的任意一种。The first terminal 101 may be a terminal for communicating with the second terminal 102, and may specifically be any one of a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a vehicle terminal, or a wearable terminal.
其中,第二终端102可以是数字电视播放终端,智能家电(例如冰箱或者空调等),或者投影仪等。The second terminal 102 may be a digital television broadcast terminal, a smart home appliance (such as a refrigerator or an air conditioner, etc.), or a projector.
在介绍本申请的具体实施例之前,首先对本申请中可能涉及到的操作类型、按键或者按键键值等概念进行一些简单说明。操作类型可以包括文本输入类型、频道切换类型、音量调整类型、节目回放类型、播放进度调整类型、剧集调整类型或者状态控制类型等。文本输入类型指的是用户需要通过第一终端向第二终端提交文本信息的操作类型,例如账号信息输入、节目搜索或者演员搜索等。频道切换类型指的是用户需要通过第一终端控制第二终端进行频道切 换的操作类型。音量调整类型指的是用户需要通过第一终端控制第二终端调整音量的操作类型。节目回放类型指的是用户需要通过第一终端控制第二终端进行节目回放的操作类型。播放进度调整类型指的是用户需要通过第一终端控制第二终端调整播放进度的操作类型。剧集调整类型指的是用户需要通过第一终端控制第二终端调整剧集的操作类型。状态控制类型可以指的是用户需要通过第一终端控制第二终端进行退出、返回或者删除等操作的操作类型。按键可以包括虚拟按键、触控按键或者物理按键中的一种或者多种。虚拟按键可以包括如图3B所示的26键布局和如图3C所示的九宫格布局。触摸按键可以穿透第一终端的绝缘材料外壳,准确无误地侦测到手指的有效触摸。物理按键也可以称为实体按键。按键键值指的是用于标识按键的数值,其中一个按键键值唯一对应一个按键,不同按键的按键键值是不相同的,例如向右方向键的按键键值为39,字符A的按键键值为65等。Before introducing a specific embodiment of the present application, a brief description of the types of operations, keys, or key values that may be involved in the present application is first made. The operation type may include a text input type, a channel switching type, a volume adjustment type, a program playback type, a playback progress adjustment type, an episode adjustment type, or a status control type. The text input type refers to an operation type in which the user needs to submit text information to the second terminal through the first terminal, such as account information input, program search, or actor search. The channel switching type refers to the type of operation in which the user needs to control the second terminal to perform channel switching through the first terminal. The volume adjustment type refers to an operation type in which the user needs to control the second terminal to adjust the volume through the first terminal. The program playback type refers to an operation type in which the user needs to control the second terminal to perform program playback through the first terminal. The play progress adjustment type refers to an operation type in which the user needs to control the second terminal to adjust the play progress through the first terminal. The episode adjustment type refers to the type of operation in which the user needs to control the second terminal through the first terminal to adjust the episode. The state control type may refer to an operation type in which the user needs to control the second terminal to perform an operation such as exiting, returning, or deleting through the first terminal. The button may include one or more of a virtual button, a touch button, or a physical button. The virtual keys may include a 26-key layout as shown in FIG. 3B and a nine-square layout as shown in FIG. 3C. The touch button can penetrate the insulating material shell of the first terminal to accurately detect the effective touch of the finger. Physical buttons can also be referred to as physical buttons. The key value refers to the value used to identify the key. One key uniquely corresponds to one key. The key values of different keys are different. For example, the key value of the right direction key is 39, and the key of the character A is The key value is 65 or the like.
需要说明的是,本申请实施例所公开的终端控制方法可以和常规的通过第一终端或者遥控器发射红外信号控制第二终端的方式相结合,例如,第一终端可以提供至少一种控制界面供用户操作,可以在基于控制界面控制第二终端之前或者之后,通过第一终端或者遥控器发射红外信号控制第二终端。示例性的,第一终端可以获取在第一终端的预设区域输入的文本信息,确定文本信息的操作类型,根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键,生成各个按键的按键键值,并将生成的按键键值发送给第二终端,以通过按键键值控制第二终端。第一终端还可以获取通过麦克风输入的语音消息,将语音消息转换为文本信息,确定文本信息的操作类型,根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键,生成各个按键的按键键值,并将生成的按键键值发送给第二终端,以通过按键键值控制第二终端。第一终端还可以向第二终端发射红外信号,以将各个按键的按键键值发送给第二终端,通过按键键值控制第二终端。It should be noted that the terminal control method disclosed in the embodiment of the present application may be combined with a conventional method for controlling a second terminal by using a first terminal or a remote controller to transmit an infrared signal, for example, the first terminal may provide at least one control interface. For the user to operate, the second terminal may be controlled by transmitting an infrared signal through the first terminal or the remote controller before or after controlling the second terminal based on the control interface. Exemplarily, the first terminal may acquire text information input in a preset area of the first terminal, determine an operation type of the text information, identify the text information according to the operation type, obtain at least one button that matches the text information, and generate each The key value of the button is sent, and the generated key value is sent to the second terminal to control the second terminal by the key value. The first terminal may also acquire a voice message input through the microphone, convert the voice message into text information, determine an operation type of the text information, identify the text information according to the operation type, obtain at least one button that matches the text information, and generate each button. The key value of the button is sent to the second terminal to control the second terminal by the key value. The first terminal may also send an infrared signal to the second terminal to send the key value of each button to the second terminal, and control the second terminal by the key value.
基于图1所示的终端控制***的架构示意图,请参见图2,图2是本申请实施例提供的一种终端控制方法,该方法包括但不限于如下步骤:FIG. 2 is a schematic diagram of a terminal control method according to an embodiment of the present disclosure. The method includes, but is not limited to, the following steps:
步骤S201:第一终端获取用户在预设区域输入的文本信息。Step S201: The first terminal acquires text information input by the user in the preset area.
具体地,第一终端可以通过登录预设应用,建立与第二终端之间的通信连接。预设应用可以存储有第二终端的菜单,例如第二终端的字符输入方式,或者光标由第二终端中的任一位置移动至另一位置所需的按键等。预设应用可以为微信或者电视家等可以用于遥控的应用。当用户需要通过第一终端控制第二终端时,可以在第一终端的预设区域输入文本信息,进而第一终端可以获取用户在预设区域输入的文本信息。其中,文本信息可以包括汉字、数字或者字母等。预设区域可以为第一终端的显示屏幕中的部分区域或者全部区域等。以图3A所示的文本信息输入的界面示意图为例,预设区域可以为文本输入区域,第一终端可以获取用户在文本输入区域输入的文本信息。Specifically, the first terminal may establish a communication connection with the second terminal by logging in the preset application. The preset application may store a menu of the second terminal, such as a character input mode of the second terminal, or a button or the like required for the cursor to be moved from any position in the second terminal to another position. The default application can be an application that can be used for remote control such as WeChat or TV. When the user needs to control the second terminal by using the first terminal, the text information may be input in the preset area of the first terminal, and the first terminal may obtain the text information input by the user in the preset area. The text information may include Chinese characters, numbers or letters. The preset area may be a partial area or all areas in the display screen of the first terminal, and the like. Taking the interface diagram of the text information input shown in FIG. 3A as an example, the preset area may be a text input area, and the first terminal may acquire text information input by the user in the text input area.
可选的,第一终端获取用户在预设区域输入的文本信息之前,可以接收用户对上述文本信息输入的确认指令。以图3A为例,用户在第一终端的预设区域输入文本信息之后,点击“发送”按钮,则第一终端可以接收用户对该文本信息提交的确认指令,进而获取用户在预设区域输入的文本信息。Optionally, before the first terminal acquires the text information input by the user in the preset area, the first terminal may receive a confirmation instruction that the user inputs the text information. As shown in FIG. 3A, after the user inputs the text information in the preset area of the first terminal, and clicks the “send” button, the first terminal can receive the confirmation instruction submitted by the user for the text information, and then obtain the user input in the preset area. Text information.
可选的,第一终端从检测到用户在预设区域输入文本信息开始经过预设时间段之后未检测到用户的输入操作,可以输出提示信息,该提示信息用于提示用户是否发送在预设区域输入的文本信息,用户可以响应提示信息以点击“发送”按钮,则第一终端可以接收用户对该文本信息提交的确认指令,进而获取用户在预设区域输入的文本信息。Optionally, the first terminal does not detect the input operation of the user after detecting that the user inputs the text information in the preset area after the preset time period, and may output prompt information, where the prompt information is used to prompt the user whether to send the preset. The text information input in the area, the user can respond to the prompt information to click the "send" button, the first terminal can receive the confirmation instruction submitted by the user for the text information, and then obtain the text information input by the user in the preset area.
步骤S202:第一终端确定文本信息的操作类型。Step S202: The first terminal determines an operation type of the text information.
第一终端可以确定文本信息的操作类型。示例性的,第一终端确定文本信息的操作类型的方法可包括如下三种:The first terminal can determine the type of operation of the textual information. Exemplarily, the method for determining the operation type of the text information by the first terminal may include the following three types:
一、第一终端可以接收用户输入的操作类型信息,其中操作类型信息可以包括该文本信息的操作类型。例如,用户需要通过第一终端控制第二终端调整音量时,可以在第一终端的预设区域输入文本信息以及操作类型信息,操作类型信息包含的操作类型可以为音量调整类型,则第一终端可以获取用户在预设区域输入的文本信息,并将音量调整类型作为该文本信息的操作类型。又如,用户需要通过第一终端控制第二终端调整音量时,可以在第一终端的预设区域输入文本信息,并在第一终端显示的操作类型菜单中点击“音量调整类型”选项,则第一终端可以获取用户在预设区域输入的文本信息,并将音量调整类型作为该文本信息的操作类型,其中操作类型菜单可以包括至少一个操作类型。1. The first terminal may receive operation type information input by the user, where the operation type information may include an operation type of the text information. For example, when the user needs to control the second terminal to adjust the volume through the first terminal, the text information and the operation type information may be input in the preset area of the first terminal, and the operation type information may include the volume adjustment type, and the first terminal The text information input by the user in the preset area can be obtained, and the volume adjustment type is used as the operation type of the text information. For another example, when the user needs to control the second terminal to adjust the volume through the first terminal, the text information may be input in the preset area of the first terminal, and the “volume adjustment type” option is clicked in the operation type menu displayed by the first terminal. The first terminal may acquire text information input by the user in the preset area, and use the volume adjustment type as the operation type of the text information, wherein the operation type menu may include at least one operation type.
二、第一终端获取用户在预设区域输入的文本信息之后,可以向第二终端发送操作类型获取请求,第二终端可以响应该操作类型获取请求向第一终端发送操作类型信息,第一终端可以将操作类型信息所包含的操作类型作为该文本信息的操作类型。例如,第二终端在播放电影时接收到第一终端发送的操作类型获取请求,则第二终端可以确定操作类型为音量调整类型或者播放进度调整类型,第二终端可以将包含音量调整类型和播放进度调整类型的操作类型信息发送给第一终端,第一终端可以输出提示信息,以提示用户选取操作类型,若用户选取音量调整类型,则第一终端可以确定文本信息的调整类型为音量调整类型。又如,第二终端在显示账号登录界面时接收到第一终端发送的操作类型获取请求,则第二终端可以确定操作类型为文本输入类型,第二终端可以将包含文本输入类型的操作类型信息发送给第一终端,第一终端可以确定文本信息的调整类型为文本输入类型。After the first terminal obtains the text information input by the user in the preset area, the first terminal may send an operation type acquisition request to the second terminal, and the second terminal may send the operation type information to the first terminal in response to the operation type acquisition request, where the first terminal The type of operation included in the operation type information can be used as the operation type of the text information. For example, when the second terminal receives the operation type acquisition request sent by the first terminal when playing the movie, the second terminal may determine that the operation type is a volume adjustment type or a play progress adjustment type, and the second terminal may include the volume adjustment type and play. The operation type information of the progress adjustment type is sent to the first terminal, and the first terminal may output the prompt information to prompt the user to select the operation type. If the user selects the volume adjustment type, the first terminal may determine that the adjustment type of the text information is the volume adjustment type. . For another example, when the second terminal receives the operation type acquisition request sent by the first terminal when displaying the account login interface, the second terminal may determine that the operation type is a text input type, and the second terminal may include operation type information including the text input type. Sending to the first terminal, the first terminal may determine that the adjustment type of the text information is a text input type.
三、第一终端获取用户在预设区域输入的文本信息之后,可以将文本信息所包含的字符与预设数据库中的关键字进行比较,当文本信息所包含的至少一个字符与目标关键字匹配时,第一终端可以将目标关键字对应的操作类型作为该文本信息的操作类型。其中,预设数据库可以包括至少一个关键字,一个关键字对应一个操作类型,例如数字0-9对应的操作类型均为频道切换类型;字 符“快进”、“快退”、“慢进”或者“慢退”对应的操作类型均为播放进度调整类型;关键字为频道名称时,该关键字对应的操作类型为频道切换类型;关键字为节目名称、演员名或者歌手名时,该关键字对应的操作类型为文本输入类型。可选的,关键字和操作类型的对应关系可以为:多个关键字对应一个操作类型,例如字符“音量”,以及数字0-9中的一个或多个的组合对应的操作类型为音量调整类型;字符“用户名”,以及英文字母中的一个或多个的组合,和/或数字0-9中的一个或多个的组合对应的操作类型为文本输入类型。举例来说,用户在预设区域输入的文本信息为“快进5min”,则第一终端可以确定该文本信息的操作类型为播放进度调整类型;用户在预设区域输入的文本信息为“湖南卫视”,则第一终端可以确定该文本信息的操作类型为频道切换类型。After the first terminal obtains the text information input by the user in the preset area, the character included in the text information may be compared with the keyword in the preset database, and at least one character included in the text information matches the target keyword. The first terminal may use the operation type corresponding to the target keyword as the operation type of the text information. The preset database may include at least one keyword, and one keyword corresponds to one operation type. For example, the operation types corresponding to the numbers 0-9 are channel switching types; the characters “fast forward”, “rewind”, and “slow forward”. Or the operation type corresponding to "slow back" is the playback progress adjustment type; when the keyword is the channel name, the operation type corresponding to the keyword is the channel switching type; when the keyword is the program name, the actor name or the singer name, the key The type of operation corresponding to the word is the text input type. Optionally, the correspondence between the keyword and the operation type may be: multiple keywords corresponding to one operation type, for example, the character “volume”, and the operation type corresponding to the combination of one or more of the numbers 0-9 is volume adjustment. Type; the character "user name", and a combination of one or more of the English letters, and/or the combination of one or more of the numbers 0-9 corresponds to the text input type. For example, if the text information input by the user in the preset area is “fast forward 5 min”, the first terminal may determine that the operation type of the text information is the play progress adjustment type; the text information input by the user in the preset area is “Hunan”. Satellite TV, the first terminal can determine that the operation type of the text information is a channel switching type.
步骤S203:第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键。Step S203: The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information.
第一终端确定文本信息的操作类型之后,可以根据操作类型对文本信息进行语义识别,得到识别后的文本信息,根据字符与按键的对应关系,得到与识别后的文本信息匹配的至少一个按键。例如,用户在预设区域输入的文本信息为“播放16台”,第一终端确定该文本信息的操作类型为频道切换类型,第一终端可以根据操作类型对文本信息进行语义识别,得到识别后的文本信息为数字“16”,第一终端可以得到与该文本信息匹配的按键为按键“1”以及按键“6”。After the first terminal determines the operation type of the text information, the text information may be semantically recognized according to the operation type, and the recognized text information is obtained, and at least one button matching the recognized text information is obtained according to the correspondence between the character and the button. For example, the text information input by the user in the preset area is “playing 16 stations”, and the first terminal determines that the operation type of the text information is a channel switching type, and the first terminal can perform semantic recognition on the text information according to the operation type, and after being recognized, The text information is the number "16", and the first terminal can obtain the button matching the text information as the button "1" and the button "6".
具体地,若第二终端的虚拟按键的布局为26键布局,则第一终端可以得到与该文本信息匹配的按键为数字输入按键“123”,按键“1”以及按键“6”;若第二终端的虚拟按键的布局为九宫格布局,则第一终端可以得到与该文本信息匹配的按键为按键“1”以及按键“6”。例如,用户在预设区域输入的文本信息为“再见”,第一终端确定该文本信息的操作类型为文本输入类型,第一终端可以确定该文本信息由字符“zaijian”组成,得到与该文本信息匹配的按键为按键“z”、按键“a”、按键“i”、按键“j”、按键“i”、按键“a”以及按键“n”。又如,用户在预设区域输入的文本信息为“DARLING”,第一终端确定该文本信息的操作类型为文本输入类型,第一终端可以确定该文本信息由字符“DARLING”组成,得到与该文本信息匹配的按键为按键“D”、按键“A”、按键“R”、按键“L”、按键“I”、按键“N”以及按键“G”。Specifically, if the layout of the virtual button of the second terminal is a 26-key layout, the first terminal can obtain a key that matches the text information as a digital input button "123", a button "1", and a button "6"; The layout of the virtual buttons of the two terminals is a nine-square grid layout, and the first terminal can obtain the keys matching the text information as the button "1" and the button "6". For example, the text information input by the user in the preset area is “goodbye”, the first terminal determines that the operation type of the text information is a text input type, and the first terminal may determine that the text information is composed of the character “zaijian”, and obtain the text. The keys to which the information matches are the button "z", the button "a", the button "i", the button "j", the button "i", the button "a", and the button "n". For another example, the text information input by the user in the preset area is “DARLING”, and the first terminal determines that the operation type of the text information is a text input type, and the first terminal may determine that the text information is composed of the character “DARLING”, and obtains The keys that match the text information are the button "D", the button "A", the button "R", the button "L", the button "I", the button "N", and the button "G".
步骤S204:第一终端生成各个按键的按键键值。Step S204: The first terminal generates a button key value of each button.
第一终端得到与文本信息匹配的按键之后,可以根据按键和按键键值的对应关系,生成各个按键的按键键值。例如,第一终端可以获取按键和按键键值的对应关系表,在按键和按键键值的对应关系表中查找各个按键对应的按键键值,进而生成该按键的按键键值。举例来说,在按键和按键键值的对应关系表中,按键“1”对应的按键键值为97,按键“6”对应的按键键值为102,则第一终端可以生成按键“1”的按键键值以及按键“6”的按键键值,即97和102。After the first terminal obtains the button matching the text information, the button key value of each button may be generated according to the correspondence between the button and the button key value. For example, the first terminal may obtain a correspondence table between the button and the button key value, and search for a button key value corresponding to each button in the correspondence table between the button and the button key value, thereby generating a button key value of the button. For example, in the correspondence table between the button and the button key value, the button key value corresponding to the button "1" is 97, and the button key value corresponding to the button "6" is 102, the first terminal can generate the button "1". The key value of the button and the key value of the button "6", that is, 97 and 102.
步骤S205:第一终端将生成的按键键值发送给第二终端。Step S205: The first terminal sends the generated key value to the second terminal.
第一终端生成各个按键的按键键值之后,可以将生成的按键键值发送给第 二终端。例如,第一终端可以将按键键值97和102发送给第二终端。After the first terminal generates the key value of each key, the generated key value can be sent to the second terminal. For example, the first terminal can transmit the key values 97 and 102 to the second terminal.
其中,第一终端将按键键值发送给第二终端的方法可以包括如下两种:The method for the first terminal to send the key value to the second terminal may include the following two types:
一、第一终端通过与第二终端之间的无线连接,将按键键值发送给第二终端。无线连接可以包括红外线连接、超声波连接、蓝牙连接、近距离无线通讯技术(NearField Communication,NFC)或者WIFI等。1. The first terminal sends the key value to the second terminal through a wireless connection with the second terminal. The wireless connection may include an infrared connection, an ultrasonic connection, a Bluetooth connection, Near Field Communication (NFC) or WIFI.
二、第一终端通过预设应用的应用接口,将按键键值发送给第二终端。2. The first terminal sends the key value to the second terminal by using an application interface of the preset application.
步骤S206:第二终端响应按键键值实现相应功能。Step S206: The second terminal implements the corresponding function in response to the button key value.
第二终端接收到按键键值之后,可以响应该按键键值以实现相应功能。例如,第二终端接收到的按键键值为97和102,则第二终端可以切换到频道16台进行节目播放。After receiving the key value, the second terminal can respond to the key value to implement the corresponding function. For example, if the key values received by the second terminal are 97 and 102, the second terminal can switch to the channel 16 for program playback.
在图2所描述的方法中,第一终端根据用户输入的文本信息的操作类型,对该文本信息进行识别,得到与文本信息匹配的至少一个按键,进而将各个按键的按键键值发送给第二终端,以便第二终端响应该按键键值实现相应功能,可提升处理效率,并提高操作的便利性。In the method described in FIG. 2, the first terminal identifies the text information according to the operation type of the text information input by the user, and obtains at least one button that matches the text information, and then sends the key value of each button to the first The second terminal enables the second terminal to implement the corresponding function in response to the key value, thereby improving processing efficiency and improving the convenience of operation.
下面介绍本申请实施例涉及的在操作类型为文本输入类型的情况下实现的终端控制方法。第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为文本输入类型,对文本信息进行解析处理,获取组成文本信息的至少一个字符,字符包括字母或数字,确定光标在第二终端的显示屏幕中的位置,确定将光标由该位置移到至搜索区域所需的按键,确定将光标由搜索区域移动至组成文本信息的第一个字符所需的按键,以及光标由第一个字符移动至组成文本信息的第二个字符所需的按键,以及光标依次向下一个字符移动所需的按键,直至将光标由组成文本信息的倒数第二个字符移动至组成文本信息的最后一个字符所需的按键,生成各个按键的按键键值,并将生成的按键键值发送给第二终端。A terminal control method implemented in the case where the operation type is a text input type according to an embodiment of the present application is described below. The first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a text input type, parse the text information, and obtain at least one character that constitutes the text information, and the characters include letters or numbers, and determine Position of the cursor in the display screen of the second terminal, determining a button required to move the cursor from the position to the search area, determining a button required to move the cursor from the search area to the first character constituting the text information, and The cursor moves from the first character to the key required to form the second character of the text message, and the cursor moves the desired key to the next character in turn, until the cursor is moved from the penultimate character constituting the text information to the composition The keys required for the last character of the text message generate key key values of the respective keys and send the generated key key values to the second terminal.
例如,用户在预设区域输入的文本信息为“再见”,第一终端可以确定该文本信息的操作类型为文本输入类型,进而获取组成该文本信息的至少一个字符为“zaijian”。然后,第一终端可以向第二终端发送位置获取请求,第二终端响应该位置获取请求,将光标的位置信息发送给第一终端,第一终端可以根据位置信息确定光标在第二终端的显示屏幕中的位置。第一终端可以预先存储有第二终端的菜单,例如光标由第二终端的任一位置移动至另一位置所需的按键,第一终端可以确定将光标移动至搜索区域所需的方向键(例如向左方向键、向右方向键、向上方向键或者向下方向键),示例性的,当光标位于搜索区域的正下方,且光标所处位置与搜索区域所处位置间隔3个移动单元时,若第二终端响应一个方向键可以移动一个移动单元,则第一终端可以确定将光标移动至搜索区域所需的按键为3个向上方向键。第二终端响应确认按键时将会在第二终端的显示屏幕中显示虚拟键盘,则第一终端可以确定3个向上方向键之后的按键为确认按键。若虚拟键盘的布局为图3B所示的26键布局,则第一终 端可以确定光标由搜索区域所处位置移动至字符“z”所处位置所需的按键,示例性的,当字符“z”位于搜索区域的正下方,且字符“z”所处位置与搜索区域所处位置间隔4个移动单元时,第一终端可以确定将光标由搜索区域所处位置移动至字符“z”所处位置所需的按键为4个向下方向键。第一终端可以确定光标由字符“z”移动至字符“a”所需的按键为向1个上方向键和1个向左方向键,光标由字符“a”移动至字符“i”所需的按键为6个向右方向键、1个向上方向键以及1个向右方向键,光标由字符“i”移动至字符“j”所需的按键为1个向下方向键和1个向左方向键,光标由字符“j”移动至字符“i”所需的按键为向1个上方向键和1个向右方向键,光标由字符“i”移动至字符“a”所需的按键为1个向下方向键和7个向左方向键,光标由字符“a”移动至字符“n”所需的按键为1个向下方向键和6个向右方向键。For example, the text information input by the user in the preset area is “goodbye”, and the first terminal may determine that the operation type of the text information is a text input type, and then acquire at least one character constituting the text information as “zaijian”. Then, the first terminal may send a location acquisition request to the second terminal, and the second terminal sends the location information of the cursor to the first terminal in response to the location acquisition request, and the first terminal may determine, according to the location information, the display of the cursor on the second terminal. The location in the screen. The first terminal may pre-store a menu of the second terminal, such as a button required for the cursor to be moved from any position of the second terminal to another position, and the first terminal may determine a direction key required to move the cursor to the search area ( For example, a left direction key, a right direction key, an up direction key, or a down direction key), for example, when the cursor is located directly below the search area, and the position of the cursor is spaced from the position of the search area by 3 mobile units When the second terminal can move a mobile unit in response to a direction key, the first terminal can determine that the button required to move the cursor to the search area is 3 up direction keys. When the second terminal responds to the confirmation button, the virtual keyboard will be displayed on the display screen of the second terminal, and the first terminal can determine that the button after the three up direction keys is the confirmation button. If the layout of the virtual keyboard is the 26-key layout shown in FIG. 3B, the first terminal can determine the button required for the cursor to move from the position where the search area is located to the position where the character "z" is located, for example, when the character "z" "When located directly below the search area, and the position where the character "z" is located is 4 mobile units apart from the position where the search area is located, the first terminal can determine to move the cursor from the position where the search area is located to where the character "z" is located. The buttons required for the position are 4 down arrow keys. The first terminal can determine that the key required to move the cursor from the character "z" to the character "a" is to one up direction key and one left direction key, and the cursor is required to move from the character "a" to the character "i" The buttons are 6 rightward direction keys, 1 up direction key, and 1 rightward direction key. The keys required for the cursor to move from the character "i" to the character "j" are 1 down direction key and 1 direction. Left arrow key, the cursor required to move the character "j" to the character "i" is the one up arrow key and one right direction key. The cursor is moved from the character "i" to the character "a". The button is a downward direction key and 7 left direction keys. The keys required for the cursor to move from the character "a" to the character "n" are 1 down direction key and 6 rightward direction keys.
可选的,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键之前,可以获取第二终端的字符输入方式,进而根据操作类型和字符输入方式对文本信息进行识别,得到与文本信息匹配的至少一个按键。Optionally, the first terminal identifies the text information according to the operation type, and obtains a character input manner of the second terminal before obtaining at least one button that matches the text information, and then identifies the text information according to the operation type and the character input manner. Get at least one button that matches the text message.
具体的,为了控制第二终端实现相同的功能,虚拟键盘的布局不同,导致光标移动的位置也不相同。若虚拟键盘的布局为图3C所示的九宫格布局,则第一终端可以确定光标由搜索区域所处位置移动至字符“WXYZ9”所处位置所需的按键,示例性的,当字符“WXYZ9”位于搜索区域的正下方,且字符“WXYZ9”所处位置与搜索区域所处位置间隔3个移动单元时,第一终端可以确定将光标由搜索区域所处位置移动至字符“WXYZ9”所处位置所需的按键为3个向下方向键。以图3D为例,当光标位于按键“WXYZ9”时,第二终端可以响应确认按键,在虚拟键盘的上方悬浮显示5个字符“W”、“X”、“Y”、“Z”以及“9”,光标位于字符“9”所处位置,则通过向下方向键可以控制第二终端将光标由字符“9”所处位置移动至字符“Z”所处位置,则第二终端确定3个向下方向键之后,还包括1个确认按键和1个向下方向键。第一终端可以确定光标由字符“WXYZ9”移动至字符“ABC2”所需的按键为1个向左方向键和2个向上方向键。以图3E为例,当光标位于按键“ABC2”时,第二终端可以响应确认按键,在虚拟键盘的上方悬浮显示4个字符“A”、“B”、“C”以及“2”,光标位于字符“2”所处位置,则通过向左方向键可以控制第二终端将光标由字符“2”所处位置移动至字符“A”所处位置,则第二终端确定1个向左方向键和2个向上方向键之后,还可以包括1个确认按键和1个向左方向键。同理,第一终端可以通过上述方式得到光标由第二个字符移动至组成文本信息的第三个字符所需的按键,直至将光标由组成文本信息的倒数第二个字符移动至组成文本信息的最后一个字符所需的按键。Specifically, in order to control the second terminal to implement the same function, the layout of the virtual keyboard is different, and the position where the cursor moves is also different. If the layout of the virtual keyboard is the nine-square grid layout shown in FIG. 3C, the first terminal can determine the button required for the cursor to move from the position where the search area is located to the position where the character "WXYZ9" is located, for example, when the character "WXYZ9" Located directly below the search area, and when the position of the character "WXYZ9" is separated from the position of the search area by 3 mobile units, the first terminal can determine to move the cursor from the position where the search area is located to the position where the character "WXYZ9" is located. The required buttons are 3 down arrow keys. Taking FIG. 3D as an example, when the cursor is located at the button “WXYZ9”, the second terminal can respond to the confirmation button, and float five characters “W”, “X”, “Y”, “Z”, and “over” above the virtual keyboard. 9", the cursor is located at the position where the character "9" is located, and the second terminal can be controlled to move the cursor from the position where the character "9" is located to the position where the character "Z" is located by the downward direction key, then the second terminal determines 3 After the down arrow key, it also includes a confirmation button and a down arrow button. The first terminal can determine that the keys required for the cursor to move from the character "WXYZ9" to the character "ABC2" are one leftward direction key and two up direction keys. Taking FIG. 3E as an example, when the cursor is located at the button “ABC2”, the second terminal can respond to the confirmation button, and float four characters “A”, “B”, “C”, and “2” above the virtual keyboard, and the cursor When the position of the character "2" is located, the second terminal can be controlled to move the cursor from the position where the character "2" is located to the position where the character "A" is located by the left direction key, and the second terminal determines a leftward direction. After the key and the two up arrow keys, one confirmation button and one left arrow key can also be included. Similarly, the first terminal can obtain the button required for the cursor to move from the second character to the third character constituting the text information by the above manner until the cursor is moved from the penultimate character constituting the text information to the composition text information. The last character required for the button.
需要说明的是,上述描述仅为举例说明,并不构成对本申请实施例的限定。本申请实施例中的虚拟键盘的布局包含但不局限于26键布局和九宫格布局,例如扇形布局或者条状布局等。同一按键的各个字符的显示方式包含但不局限 于图3D或者3E所示的环形,例如各个字符可以呈扇形显示或者排列成一行显示等。It should be noted that the foregoing description is only illustrative, and does not constitute a limitation of the embodiments of the present application. The layout of the virtual keyboard in the embodiment of the present application includes, but is not limited to, a 26-key layout and a nine-square grid layout, such as a fan layout or a strip layout. The display manner of each character of the same button includes, but is not limited to, the ring shape shown in FIG. 3D or 3E. For example, each character may be displayed in a fan shape or arranged in a line.
下面介绍本申请实施例涉及的在操作类型为频道切换类型的情况下实现的终端控制方法。第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为频道切换类型,当文本信息包括数字时,第一终端可以确定各个数字的按键,生成各个确定的按键的按键键值,各个按键键值的生成时间之间的时间间隔小于预设时间阈值,并将生成的按键键值发送给第二终端。其中,预设时间阈值可以是第二终端出厂时配置的,当各个按键键值的生成时间之间的时间间隔小于预设时间阈值时,第二终端可以响应各个按键键值实现一个功能;当各个按键键值的生成时间之间的时间间隔大于等于预设时间阈值时,第二终端可以响应各个按键键值实现至少两个功能。例如,当按键“3”的按键键值的生成时间和按键“2”的按键键值的生成时间之间的时间间隔小于预设时间阈值时,第二终端可以响应各个按键键值切换到频道32台进行节目播放;按键“3”的按键键值的生成时间和按键“2”的按键键值的生成时间之间的时间间隔大于等于预设时间阈值时,第二终端可以响应按键“3”的按键键值切换到频道3台进行节目播放,紧接着响应按键“2”的按键键值切换到频道2台进行节目播放。A terminal control method implemented in the case where the operation type is a channel switching type according to an embodiment of the present application is described below. The first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a channel switching type. When the text information includes a number, the first terminal may determine a button of each number to generate each determined button. The key value, the time interval between the generation time of each key key value is less than the preset time threshold, and the generated key key value is sent to the second terminal. The preset time threshold may be configured when the second terminal is shipped from the factory. When the time interval between the generation time of each key key value is less than the preset time threshold, the second terminal may implement a function in response to each key key value; When the time interval between the generation time of each key key value is greater than or equal to the preset time threshold, the second terminal can implement at least two functions in response to each key key value. For example, when the time interval between the generation time of the button key value of the button “3” and the generation time of the button key value of the button “2” is less than the preset time threshold, the second terminal can switch to the channel in response to each button key value. 32 sets of program play; when the time interval between the generation time of the button key value of the button "3" and the generation time of the button key value of the button "2" is greater than or equal to the preset time threshold, the second terminal can respond to the button "3" The key value of the button is switched to channel 3 for program playback, and then the button key value of the response button "2" is switched to channel 2 for program playback.
例如,用户在预设区域输入的文本信息为“32”,第一终端可以确定该文本信息的操作类型为频道切换类型,进而确定各个数字的按键,即按键“3”和按键“2”,生成按键“3”的按键键值和按键“2”的按键键值,其中按键“3”的按键键值的生成时间和按键“2”的按键键值的生成时间之间的时间间隔小于预设时间阈值,将生成的各个按键键值发送给第二终端。For example, the text information input by the user in the preset area is “32”, and the first terminal may determine that the operation type of the text information is a channel switching type, thereby determining a button of each number, that is, a button “3” and a button “2”, The key value of the button "3" and the button key value of the button "2" are generated, wherein the time interval between the generation time of the button key value of the button "3" and the generation time of the button key value of the button "2" is less than the pre-pre- The time threshold is set, and the generated key key values are sent to the second terminal.
可选的,第一终端根据操作类型对文本信息进行识别,得到与文本信息匹配的至少一个按键之前,可以获取第二终端的字符输入方式,进而根据操作类型和字符输入方式对文本信息进行识别,得到与文本信息匹配的至少一个按键。Optionally, the first terminal identifies the text information according to the operation type, and obtains a character input manner of the second terminal before obtaining at least one button that matches the text information, and then identifies the text information according to the operation type and the character input manner. Get at least one button that matches the text message.
具体的,为了控制第二终端实现相同的功能,虚拟键盘的布局不同,导致光标移动的位置也不相同。例如,若虚拟键盘的布局为图3B所示的26键布局,第二终端可以响应按键“123”在第二终端的显示屏幕中显示数字键盘,则第一终端可以确定光标在第二终端的显示屏幕中的位置,确定将光标由该位置移动至字符“123”所需的按键。若数字键盘的界面示意图如图3F所示,则第二终端可以获取光标在第二终端的显示屏幕中的位置,确定将光标由该位置移动至字符“3”所需的按键,并确定将光标由字符“3”所处位置移动至字符“2”所处位置所需的按键,将上述各个按键作为与文本信息匹配的按键。又如,若虚拟键盘的布局为图3C所示的九宫格布局,第一终端可以确定光标在第二终端的显示屏幕中的位置,确定将光标由该位置移动至字符“DEF3”所需的按键。第二终端可以响应确认按键,在虚拟键盘的上方悬浮显示4个字符 “D”、“E”、“F”以及“3”,光标位于字符“3”所处位置,第二终端可以响应确认按键获取字符“3”,则第一终端确定将光标由该位置移动至字符“DEF3”所需的按键之后,还可以确定2个确认按键。第一终端还可以获取将光标由字符“DEF3”所处位置移动至字符“ABC2”所处位置所需的按键。第二终端可以响应确认按键,在虚拟键盘的上方悬浮显示4个字符“A”、“B”、“C”以及“2”,光标位于字符“2”所处位置,第二终端可以响应确认按键获取字符“2”,则第一终端确定将光标由字符“DEF3”所处位置移动至字符“ABC2”所处位置所需的按键之后,还可以确定2个确认按键。Specifically, in order to control the second terminal to implement the same function, the layout of the virtual keyboard is different, and the position where the cursor moves is also different. For example, if the layout of the virtual keyboard is the 26-key layout shown in FIG. 3B, the second terminal can display the numeric keypad in the display screen of the second terminal in response to the button “123”, the first terminal can determine that the cursor is at the second terminal. Displays the position in the screen and determines the key required to move the cursor from that position to the character "123". If the interface diagram of the numeric keypad is as shown in FIG. 3F, the second terminal can acquire the position of the cursor in the display screen of the second terminal, determine the button required to move the cursor from the position to the character “3”, and determine that The cursor is moved by the position where the character "3" is located to the position required for the position of the character "2", and each of the above-mentioned keys is used as a button matching the text information. For another example, if the layout of the virtual keyboard is the nine-square grid layout shown in FIG. 3C, the first terminal can determine the position of the cursor in the display screen of the second terminal, and determine the button required to move the cursor from the position to the character "DEF3". . The second terminal can display four characters "D", "E", "F", and "3" floating above the virtual keyboard in response to the confirmation button, the cursor is located at the position where the character "3" is located, and the second terminal can respond to the confirmation. When the button acquires the character "3", the first terminal determines that the cursor is moved from the position to the key required for the character "DEF3", and can also determine two confirmation buttons. The first terminal can also acquire a button required to move the cursor from the position where the character "DEF3" is located to the position where the character "ABC2" is located. The second terminal can display four characters “A”, “B”, “C” and “2” in the upper part of the virtual keyboard in response to the confirmation button, the cursor is located at the position of the character “2”, and the second terminal can respond to the confirmation. When the button acquires the character "2", the first terminal determines that after moving the cursor from the position where the character "DEF3" is located to the position where the character "ABC2" is located, it is also possible to determine two confirmation buttons.
需要说明的是,上述描述仅为举例说明,并不构成对本申请实施例的限定。本申请实施例中的虚拟键盘的布局包含但不局限于26键布局和九宫格布局,例如扇形布局或者条状布局等。同一按键的各个字符的显示方式包含但不局限于图3D或者3E所示的环形,例如各个字符可以呈扇形显示或者排列成一行显示等。It should be noted that the foregoing description is only illustrative, and does not constitute a limitation of the embodiments of the present application. The layout of the virtual keyboard in the embodiment of the present application includes, but is not limited to, a 26-key layout and a nine-square grid layout, such as a fan layout or a strip layout. The display manner of each character of the same button includes but is not limited to the ring shape shown in FIG. 3D or 3E. For example, each character may be displayed in a fan shape or arranged in a line.
在另一种实现方式中,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为频道切换类型,当文本信息为汉字时,第一终端可以获取文本信息所指示频道的频道标识,确定频道标识所对应数字的按键,生成各个确定的按键的按键键值,各个按键键值的生成时间之间的时间间隔小于预设时间阈值,并将生成的按键键值发送给第二终端。In another implementation manner, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a channel switching type. When the text information is a Chinese character, the first terminal may obtain the text information. Indicating a channel identifier of the channel, determining a button of the number corresponding to the channel identifier, generating a button key value of each determined button, a time interval between generation times of each button key value is less than a preset time threshold, and generating a generated button key value Send to the second terminal.
例如,用户在预设区域输入的文本信息为“播放湖南卫视”,第一终端可以获取湖南卫视的频道标识,其中不同频道通过不同数字标识,例如中央卫视用“1”标识,湖南卫视用“32”标识,则第一终端可以根据频道标识和数字的对应关系,确定湖南卫视的频道标识所对应的数字为“32”,进而第一终端可以通过上述方式确定各个数字的按键,生成各个确定的按键的按键键值,各个按键键值的生成时间之间的时间间隔小于预设时间阈值,并将生成的按键键值发送给第二终端。For example, the text information input by the user in the preset area is “play Hunan Satellite TV”, and the first terminal can obtain the channel identifier of Hunan Satellite TV, wherein different channels are identified by different numbers, for example, the “1” logo of the central satellite and the “Huawei TV” of Hunan Satellite TV. The 32" identifier, the first terminal may determine that the number corresponding to the channel identifier of Hunan Satellite TV is "32" according to the correspondence between the channel identifier and the number, and the first terminal may determine the keys of each digit by the above manner, and generate each determination. The key value of the button, the time interval between the generation time of each button key value is less than the preset time threshold, and the generated key value is sent to the second terminal.
下面介绍本申请实施例涉及的在操作类型为音量调整类型的情况下实现的终端控制方法。第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为音量调整类型,当第二终端的播放音量大于文本信息所指示的播放音量时,第一终端可以确定与文本信息匹配的按键为音量递减按键,获取第二终端的播放音量与文本信息所指示的播放音量之间的差值,将差值除以音量递减按键对应的递减变化量,得到商值,将商值作为与文本信息匹配的音量递减按键的数量,第一终端还可以生成满足该数量的音量递减按键的按键键值,将生成的按键键值发送给第二终端。A terminal control method implemented in the case where the operation type is a volume adjustment type according to an embodiment of the present application is described below. The first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a volume adjustment type. When the playback volume of the second terminal is greater than the playback volume indicated by the text information, the first terminal may determine and The button for matching the text information is a volume decrement button, and the difference between the playing volume of the second terminal and the playing volume indicated by the text information is obtained, and the difference is divided by the decreasing amount corresponding to the volume decrement button to obtain a quotient value, The quotient value is the number of volume decrement buttons matching the text information, and the first terminal may further generate a button key value that satisfies the number of volume decrement buttons, and send the generated button key value to the second terminal.
例如,用户在预设区域输入的文本信息为“调整音量为6”,第一终端可以确定文本信息的操作类型为音量调整类型,进而第一终端可以向第二终端发送音量获取请求,第二终端可以响应音量获取请求获取第二终端当前的播放音量,示例性的,第二终端当前的播放音量可以为12,第二终端将该播放音量 发送给第一终端。第一终端可以将第二终端的播放音量与文本信息所指示的播放音量进行比较,判断第二终端的播放音量大于文本信息所指示的播放音量,则第一终端可以确定与文本信息匹配的按键为音量递减按键。然后第一终端可以获取第二终端的播放音量与文本信息所指示的播放音量之间的差值为6,例如第二终端每响应一次音量递减按键的按键键值,将第二终端当前的播放音量减少1,则第一终端可以确定音量递减按键对应的递减变化量为1,将差值除以音量递减按键对应的递减变化量,得到商值为6。第一终端将商值作为与文本信息匹配的音量递减按键的数量,第一终端还可以生成6个音量递减按键的按键键值,将生成的按键键值发送给第二终端。For example, the text information input by the user in the preset area is “adjusted volume is 6”, and the first terminal may determine that the operation type of the text information is a volume adjustment type, and then the first terminal may send a volume acquisition request to the second terminal, and second The terminal may obtain the current playback volume of the second terminal in response to the volume acquisition request. For example, the current playback volume of the second terminal may be 12, and the second terminal sends the playback volume to the first terminal. The first terminal may compare the playing volume of the second terminal with the playing volume indicated by the text information, and determine that the playing volume of the second terminal is greater than the playing volume indicated by the text information, and the first terminal may determine a button that matches the text information. Decrease the volume for the button. Then, the first terminal can obtain the difference between the playing volume of the second terminal and the playing volume indicated by the text information is 6, for example, the second terminal responds to the button key value of the volume decrement button, and the current terminal plays the second terminal. When the volume is decreased by 1, the first terminal can determine that the decreasing amount of the volume decrement button corresponds to 1, and divide the difference by the decreasing amount corresponding to the volume decrement button to obtain a quotient of 6. The first terminal uses the quotient value as the number of volume decrement buttons that match the text information, and the first terminal can also generate the button key values of the six volume decrement buttons, and send the generated button key values to the second terminal.
在另一种实现方式中,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为音量调整类型,当第二终端的播放音量小于文本信息所指示的播放音量时,第一终端可以确定与文本信息匹配的按键为音量递增按键,获取第二终端的播放音量与文本信息所指示的播放音量之间的差值,将差值除以音量递增按键对应的递增变化量,得到商值,将商值作为与文本信息匹配的音量递增按键的数量,第一终端还可以生成满足该数量的音量递增按键的按键键值,将生成的按键键值发送给第二终端。In another implementation manner, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a volume adjustment type, and the playing volume of the second terminal is smaller than the playing volume indicated by the text information. The first terminal may determine that the button matching the text information is a volume increment button, and obtain a difference between a play volume of the second terminal and a play volume indicated by the text information, and divide the difference by the increment corresponding to the volume increment button. The amount of change, the quotient value is obtained, and the quotient value is used as the number of volume increment buttons matching the text information, and the first terminal may also generate a button key value that satisfies the number of volume increment buttons, and send the generated button key value to the second terminal.
需要说明的是,当文本信息的操作类型为播放进度调整类型或者剧集调整类型时,第一终端对文本信息的处理方法,与文本信息的操作类型为音量调整类型时,第一终端对文本信息的处理方法类似。例如,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为播放进度调整类型,当第二终端的播放进度大于文本信息所指示的播放进度时,第一终端可以确定与文本信息匹配的按键为进度倒退按键,获取第二终端的播放进度与文本信息所指示的播放进度之间的差值,将差值除以进度倒退按键对应的递减变化量,得到商值,将商值作为与文本信息匹配的进度倒退按键的数量,第一终端还可以生成满足该数量的进度倒退按键的按键键值,将生成的按键键值发送给第二终端。又如,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为播放进度调整类型,当第二终端的播放进度小于文本信息所指示的播放进度时,第一终端可以确定与文本信息匹配的按键为进度前进按键,获取第二终端的播放进度与文本信息所指示的播放进度之间的差值,将差值除以进度前进按键对应的递增变化量,得到商值,将商值作为与文本信息匹配的进度前进按键的数量,第一终端还可以生成满足该数量的进度前进按键的按键键值,将生成的按键键值发送给第二终端。又如,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为剧集调整类型,当第二终端当前播放的剧集标识大于文本信息所指示的剧集标识时,第一终端可以确定与文本信息匹配的按键为上一集按键,获取第二终端当前播放的剧集标识与文本信息所指示的剧集标识之间的差值,将差值除以上一集按键对应的递减变化量,得到商值,将商值作为与文本信息匹配的上一集按键的数量,第一终端还可以生成满足该数量的上一集按键的按键键值,将生成的按键键值发 送给第二终端。又如,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为剧集调整类型,当第二终端当前播放的剧集标识小于文本信息所指示的剧集标识时,第一终端可以确定与文本信息匹配的按键为下一集按键,获取第二终端当前播放的剧集标识与文本信息所指示的剧集标识之间的差值,将差值除以下一集按键对应的递增变化量,得到商值,将商值作为与文本信息匹配的下一集按键的数量,第一终端还可以生成满足该数量的下一集按键的按键键值,将生成的按键键值发送给第二终端。It should be noted that when the operation type of the text information is the play progress adjustment type or the episode adjustment type, when the first terminal processes the text information, and the operation type of the text information is the volume adjustment type, the first terminal pairs the text. The processing of information is similar. For example, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a play progress adjustment type. When the play progress of the second terminal is greater than the play progress indicated by the text information, the first terminal The button matching the text information may be determined as a progress reverse button, and the difference between the playing progress of the second terminal and the playing progress indicated by the text information is obtained, and the difference is divided by the decreasing variation corresponding to the progress reverse button to obtain the quotient. The value is used as the number of progress reverse buttons matching the text information, and the first terminal may further generate a button key value that satisfies the number of progress reverse buttons, and send the generated button key value to the second terminal. For another example, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a play progress adjustment type, and when the play progress of the second terminal is less than the play progress indicated by the text information, the first The terminal may determine that the button matching the text information is a progress advance button, and obtain a difference between a play progress of the second terminal and a play progress indicated by the text information, and divide the difference by the incremental change amount corresponding to the progress advance button to obtain The quotient value is used as the number of progress advance buttons matching the text information, and the first terminal may further generate a button key value that satisfies the number of progress advance buttons, and send the generated button key value to the second terminal. For another example, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is an episode adjustment type, and the episode identifier currently played by the second terminal is greater than the episode identifier indicated by the text information. The first terminal may determine that the button matching the text information is the previous episode button, and obtain a difference between the episode identifier currently displayed by the second terminal and the episode identifier indicated by the text information, and divide the difference by one The decreasing amount corresponding to the button is used to obtain the quotient value, and the quotient is used as the number of the previous set of buttons matching the text information, and the first terminal can also generate the button key value of the previous set of keys satisfying the quantity, which will be generated. The key value is sent to the second terminal. For another example, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is an episode adjustment type, and the episode identifier currently played by the second terminal is smaller than the episode identifier indicated by the text information. The first terminal may determine that the button matching the text information is the next set button, and obtain a difference between the episode identifier currently displayed by the second terminal and the episode identifier indicated by the text information, and divide the difference by one The incremental change corresponding to the button is used to obtain the quotient value, and the quotient is used as the number of the next set of buttons matching the text information, and the first terminal may also generate a button key value that satisfies the quantity of the next set of keys, which will be generated. The key value is sent to the second terminal.
下面介绍本申请实施例涉及的在操作类型为节目回放类型的情况下实现的终端控制方法。第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为节目回放类型,第一终端可以确定最近一次回放的频道标识,当最近一次回放的频道标识小于文本信息所指示的频道标识时,第一终端可以获取最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的数量,确定与文本信息匹配的按键为至少一个回放功能键,其中至少一个回放功能键的数量由间隔的频道标识的数量得到。The terminal control method implemented in the case where the operation type is the program playback type is described in the following. The first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a program playback type, and the first terminal may determine the channel identifier of the last playback, when the channel identifier of the last playback is smaller than the text information. When the indicated channel identifier is used, the first terminal may obtain the number of channel identifiers between the channel identifier that is last played back and the channel identifier indicated by the text information, and determine that the button matching the text information is at least one playback function key, wherein at least one of the playback function keys, at least The number of playback function keys is derived from the number of spaced channel identifiers.
具体地,第二终端可以响应回放功能按键实现回看功能,例如用户可以通过第一终端控制第二终端生成回看列表,回看列表可以包括至少两个频道标识,用户可以通过第一终端向第二终端发送回放功能按键的按键键值,第二终端可以响应该回放功能按键的按键键值,回放指定频道标识对应频道的节目。如图3G所示的界面示意图为例,回看列表包括的频道标识分别为1,12,20以及32,若用户在预设区域输入的文本信息为“回看32台”,则第一终端可以确定该文本信息的操作类型为节目回放类型,第一终端还可以向第二终端发送回放信息获取请求,第二终端可以响应回放信息获取请求,将最近一次回放的频道标识发送给第一终端,若最近一次回放的频道标识为1,则第一终端可以确定最近一次回放的频道标识小于文本信息所指示的频道标识,第一终端获取最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的数量为2,则第一终端可以将最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的数量加1,得到与文本信息匹配的回放功能键的数量,即第一终端可以确定与文本信息匹配的回放功能按键的数量为3,生成3个回放功能按键的按键键值,并将生成的按键键值发送给第二终端。Specifically, the second terminal may implement a lookback function in response to the playback function button. For example, the user may control the second terminal to generate a lookback list by using the first terminal, and the lookback list may include at least two channel identifiers, and the user may use the first terminal to The second terminal sends a button key value of the playback function button, and the second terminal can play back the program corresponding to the channel corresponding to the channel identifier in response to the button key value of the playback function button. As shown in the example of the interface shown in FIG. 3G, the channel identifiers included in the lookup list are 1, 12, 20, and 32 respectively. If the text information input by the user in the preset area is “reviewing 32 units,” the first terminal is used. The operation type of the text information may be determined as a program playback type, the first terminal may further send a playback information acquisition request to the second terminal, and the second terminal may send the channel identifier of the last playback to the first terminal in response to the playback information acquisition request. If the channel identifier of the last playback is 1, the first terminal may determine that the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, and the first terminal acquires the channel identifier indicated by the last playback and the channel identifier indicated by the text information. The number of channel identifiers between the intervals is 2, the first terminal may add 1 to the number of channel identifiers between the channel identifier that was last played back and the channel identifier indicated by the text information, to obtain a playback function matching the text information. The number of keys, that is, the first terminal can determine that the number of playback function keys matching the text information is 3, Three keys playback key of the key, and sends the generated key to the second terminal keys.
在另一种可能的实现方式中,第一终端可以获取用户在预设区域输入的文本信息,并确定文本信息的操作类型为节目回放类型,第一终端可以确定最近一次回放的频道标识,当最近一次回放的频道标识大于文本信息所指示的频道标识时,第一终端可以获取回看列表中第一个频道标识与最后一个频道标识之间间隔的频道标识的第一数量,并获取最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的第二数量,确定与文本信息匹配的按键为至少一个回放功能键,其中至少一个回放功能键的数量由第一数量和第二数量得到,例如至少一个回放功能键的数量为第一数量减去第二数量的差值加 1。如图3G所示的界面示意图为例,回看列表包括的频道标识分别为1,12,20以及32,若用户在预设区域输入的文本信息为“回看12台”,则第一终端可以确定该文本信息的操作类型为节目回放类型,第一终端还可以向第二终端发送回放信息获取请求,第二终端可以响应回放信息获取请求,将最近一次回放的频道标识发送给第一终端,若最近一次回放的频道标识为32,则第一终端可以确定最近一次回放的频道标识大于文本信息所指示的频道标识,第一终端获取回看列表中第一个频道标识与最后一个频道标识之间间隔的频道标识的第一数量为2,最近一次回放的频道标识与文本信息所指示的频道标识之间间隔的频道标识的第二数量为1,则第一终端可以将第一数量减去第二数量的差值加1,得到与文本信息匹配的回放功能键的数量,即第一终端可以确定与文本信息匹配的回放功能按键的数量为2,生成2个回放功能按键的按键键值,并将生成的按键键值发送给第二终端。In another possible implementation manner, the first terminal may obtain text information input by the user in the preset area, and determine that the operation type of the text information is a program playback type, and the first terminal may determine the channel identifier of the last playback, when When the channel identifier of the last playback is greater than the channel identifier indicated by the text information, the first terminal may obtain the first number of channel identifiers between the first channel identifier and the last channel identifier in the lookup list, and obtain the last time. a second number of channel identifiers between the played channel identifier and the channel identifier indicated by the text information, determining that the button matching the text information is at least one playback function key, wherein the number of the at least one playback function key is determined by the first quantity sum The second number is obtained, for example, the number of at least one playback function key is the first number minus the second number of differences plus one. As shown in the example of the interface shown in FIG. 3G, the channel identifiers included in the lookup list are 1, 12, 20, and 32, respectively. If the text information input by the user in the preset area is “reviewing 12 units,” the first terminal is used. The operation type of the text information may be determined as a program playback type, the first terminal may further send a playback information acquisition request to the second terminal, and the second terminal may send the channel identifier of the last playback to the first terminal in response to the playback information acquisition request. If the channel identifier of the last playback is 32, the first terminal may determine that the channel identifier of the last playback is greater than the channel identifier indicated by the text information, and the first terminal acquires the first channel identifier and the last channel identifier in the lookback list. The first number of channel identifiers between the intervals is 2, and the second number of channel identifiers between the last played back channel identifier and the channel identifier indicated by the text information is 1, and the first terminal may reduce the first number. Going to the second number of differences plus 1 gives the number of playback function keys that match the text information, ie the first terminal can determine the text message The number of playback matching function buttons is 2, the key value of the two playback function keys is generated, and the generated key value is transmitted to the second terminal.
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的终端。The foregoing describes the method of the embodiment of the present application in detail, and the terminal of the embodiment of the present application is provided below.
请参见图4,图4是本申请实施例提供的一种终端的结构示意图,用于实现图2实施例中第一终端的功能,终端的功能块可由硬件、软件或硬件与软件的组合来实施本申请方案。所属领域的技术人员应理解,图4中所描述的功能块可经组合或分离为若干子块以实施本申请方案。因此,本申请中上面描述的内容可支持对下述功能模块的任何可能的组合或分离或进一步定义。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application, for implementing the function of the first terminal in the embodiment of FIG. 2. The functional block of the terminal may be a combination of hardware, software, or a combination of hardware and software. The solution of the present application is implemented. Those skilled in the art will appreciate that the functional blocks described in FIG. 4 can be combined or separated into several sub-blocks to implement the present application. Accordingly, the above description in this application may support any possible combination or separation or further definition of the functional modules described below.
如图4所示,终端可包括:接收模块401、处理模块402以及发送模块403,其中,各个模块的详细描述如下。As shown in FIG. 4, the terminal may include: a receiving module 401, a processing module 402, and a sending module 403, wherein detailed descriptions of the respective modules are as follows.
接收模块401,用于获取户在终端的预设区域输入的文本信息;The receiving module 401 is configured to obtain text information input by the household in a preset area of the terminal;
处理模块402,用于确定所述文本信息的操作类型;The processing module 402 is configured to determine an operation type of the text information.
所述处理模块402,还用于根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键;The processing module 402 is further configured to: identify the text information according to the operation type, and obtain at least one button that matches the text information;
所述处理模块402,还用于生成各个所述按键的按键键值;The processing module 402 is further configured to generate a button key value of each of the buttons;
发送模块403,用于将所述生成的按键键值发送给第二终端,以通过所述按键键值控制所述第二终端。The sending module 403 is configured to send the generated key key value to the second terminal to control the second terminal by using the key value.
可选的,当操作类型为文本输入类型时,所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:Optionally, when the operation type is a text input type, the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
对所述文本信息进行解析处理,获取组成所述文本信息的至少一个字符,所述字符包括字母或数字;Parsing the text information to obtain at least one character constituting the text information, the characters including letters or numbers;
确定光标在所述第二终端的显示屏幕中的位置;Determining a position of the cursor in a display screen of the second terminal;
确定将所述光标由所述位置移到至搜索区域所需的按键;Determining a button required to move the cursor from the position to the search area;
确定将所述光标由所述搜索区域移动至组成所述文本信息的第一个字符所需的按键,以及所述光标由所述第一个字符移动至组成所述文本信息的第二个字符所需的按键,以及所述光标依次向下一个字符移动所需的按键,直至将 所述光标由组成所述文本信息的倒数第二个字符移动至组成所述文本信息的最后一个字符所需的按键。Determining a button required to move the cursor from the search area to a first character constituting the text information, and moving the cursor from the first character to a second character constituting the text information a desired key, and the cursor sequentially moves the desired key to the next character until the cursor is moved from the penultimate character constituting the text information to the last character constituting the text information Buttons.
可选的,当操作类型为频道切换类型时,所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:Optionally, when the operation type is a channel switching type, the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
当所述文本信息包括数字时,确定各个所述数字的按键;Determining a button of each of the numbers when the text information includes a number;
当所述文本信息为汉字时,获取所述文本信息所指示频道的频道标识,并确定所述频道标识所对应数字的按键;When the text information is a Chinese character, acquiring a channel identifier of the channel indicated by the text information, and determining a button of the number corresponding to the channel identifier;
所述处理模块402生成各个所述按键的按键键值,具体用于:The processing module 402 generates a button key value of each of the buttons, specifically for:
生成各个所述确定的按键的按键键值,各个所述按键键值的生成时间之间的时间间隔小于预设时间阈值。And generating a button key value of each of the determined keys, and a time interval between generation times of each of the button key values is less than a preset time threshold.
可选的,当操作类型为音量调整类型时,所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:Optionally, when the operation type is a volume adjustment type, the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
当所述第二终端的播放音量大于所述文本信息所指示的播放音量时,确定与所述文本信息匹配的按键为音量递减按键;When the playing volume of the second terminal is greater than the playing volume indicated by the text information, determining that the button matching the text information is a volume decrement button;
获取所述第二终端的播放音量与所述文本信息所指示的播放音量之间的第一差值;Obtaining a first difference between a playing volume of the second terminal and a playing volume indicated by the text information;
将所述第一差值除以所述音量递减按键对应的递减变化量,得到第一商值;Dividing the first difference value by a decreasing amount corresponding to the volume decrement button to obtain a first quotient value;
将所述第一商值作为与所述文本信息匹配的音量递减按键的数量;Using the first quotient value as the number of volume decrement buttons that match the text information;
当所述第二终端的播放音量小于所述文本信息所指示的播放音量时,确定与所述文本信息匹配的按键为音量递增按键;When the playing volume of the second terminal is less than the playing volume indicated by the text information, determining that the button matching the text information is a volume increasing button;
获取所述文本信息所指示的播放音量与所述第二终端的播放音量之间的第二差值;Obtaining a second difference between a play volume indicated by the text information and a play volume of the second terminal;
将所述第二差值除以所述音量递增按键对应的递增变化量,得到第二商值;Dividing the second difference value by an incremental change amount corresponding to the volume increment button to obtain a second quotient value;
将所述第二商值作为与所述文本信息匹配的音量递增按键的数量。The second quotient value is taken as the number of volume increment buttons that match the text information.
可选的,当操作类型为节目回放类型时,所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:Optionally, when the operation type is a program playback type, the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
确定最近一次回放的频道标识;Determining the channel identifier of the most recent playback;
当所述最近一次回放的频道标识小于所述文本信息所指示的频道标识时,获取所述最近一次回放的频道标识与所述文本信息所指示的频道标识之间间隔的频道标识的数量;And acquiring, when the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, acquiring the number of channel identifiers between the channel identifier of the last playback and the channel identifier indicated by the text information;
确定与所述文本信息匹配的按键为至少一个回放功能键,所述至少一个回放功能键的数量由所述间隔的频道标识的数量得到;Determining that the key that matches the text information is at least one playback function key, the number of the at least one playback function key being obtained by the number of the spaced channel identifiers;
当所述最近一次回放的频道标识大于所述文本信息所指示的频道标识时, 获取可回放的频道标识的数量总和减去所述最近一次回放的频道标识与所述文本信息所指示的频道标识之间间隔的频道标识的数量得到的差值;When the channel identifier of the last playback is greater than the channel identifier indicated by the text information, obtain the sum of the number of playable channel identifiers minus the channel identifier of the most recent playback and the channel identifier indicated by the text information. The difference between the number of channel identifiers that are separated;
确定与所述文本信息匹配的按键为至少一个回放功能键,所述至少一个回放功能键的数量由所述差值得到。Determining that the key that matches the textual information is at least one playback function key, the number of the at least one playback function key being derived from the difference.
可选的,所述接收模块401,还用于所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键之前,获取所述第二终端的字符输入方式;Optionally, the receiving module 401 is further configured to: after the processing module 402 identifies the text information according to the operation type, obtain the at least one button that matches the text information, and acquire the second terminal. Character input method;
所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
根据所述操作类型和所述字符输入方式对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键。And identifying the text information according to the operation type and the character input manner, and obtaining at least one button that matches the text information.
可选的,所述处理模块402根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:Optionally, the processing module 402 identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
根据所述操作类型对所述文本信息进行识别,得到识别后的文本信息;Identifying the text information according to the operation type, and obtaining the recognized text information;
获取与所述识别后的文本信息匹配的至少一个按键。Obtaining at least one button that matches the identified text information.
需要说明的是,各个模块的实现还可以对应参照图2所示的实施例的相应描述。It should be noted that the implementation of each module may also correspond to the corresponding description of the embodiment shown in FIG. 2 .
需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner. The functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
请参见图5,图5是本申请实施例公开的一种终端的结构示意图。如图5所示,该终端100可以包括:基带芯片110、存储器115(一个或多个计算机可读存储介质)、射频(Radio Frequency,RF)模块116、******117。这些部件可在一个或多个通信总线114上通信。Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application. As shown in FIG. 5, the terminal 100 can include a baseband chip 110, a memory 115 (one or more computer readable storage media), a radio frequency (RF) module 116, and a peripheral system 117. These components can communicate over one or more communication buses 114.
******117主要用于实现终端110和用户/外部环境之间的交互功能,主要包括终端100的输入输出装置。具体实现中,******117可包括:触摸屏控制器118、摄像头控制器119、音频控制器120以及传感器管理模块121中的至少一种。其中,各个控制器可与各自对应的***设备(如触摸屏123、摄像头124、音频电路125以及传感器126)耦合。在一些实施例中,触摸屏123可以配置有自电容式的悬浮触控面板的触摸屏,也可以是配置有红外线式的悬浮触控面板的触摸屏。在一些实施例中,摄像头124可以是3D摄像头。需要说明的,******117还可以包括其他I/O外设。The peripheral system 117 is mainly used to implement the interaction function between the terminal 110 and the user/external environment, and mainly includes the input and output devices of the terminal 100. In a specific implementation, the peripheral system 117 can include at least one of the touch screen controller 118, the camera controller 119, the audio controller 120, and the sensor management module 121. Each controller may be coupled to a respective peripheral device (such as touch screen 123, camera 124, audio circuit 125, and sensor 126). In some embodiments, the touch screen 123 may be configured with a touch screen of a self-capacitive floating touch panel or a touch screen configured with an infrared floating touch panel. In some embodiments, camera 124 can be a 3D camera. It should be noted that the peripheral system 117 may also include other I/O peripherals.
基带芯片110可集成包括:一个或多个处理器111、时钟模块112以及电源管理模块113。集成于基带芯片110中的时钟模块112主要用于为处理器111产生数据传输和时序控制所需要的时钟。集成于基带芯片110中的电源管理模 块113主要用于为处理器111、射频模块116以及******提供稳定的、高精确度的电压。The baseband chip 110 can be integrated to include one or more processors 111, a clock module 112, and a power management module 113. The clock module 112 integrated in the baseband chip 110 is primarily used to generate the clocks required for data transfer and timing control for the processor 111. The power management module 113 integrated in the baseband chip 110 is primarily used to provide a stable, high accuracy voltage to the processor 111, the RF module 116, and peripheral systems.
射频(RF)模块116用于接收和发送射频信号,主要集成了终端100的接收器和发射器。射频(RF)模块116通过射频信号与通信网络和其他通信设备通信。具体实现中,射频(RF)模块116可包括但不限于:天线***、RF收发器、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC芯片、SIM卡和存储介质等。在一些实施例中,可在单独的芯片上实现射频(RF)模块116。A radio frequency (RF) module 116 is used to receive and transmit radio frequency signals, primarily integrating the receiver and transmitter of the terminal 100. A radio frequency (RF) module 116 communicates with the communication network and other communication devices via radio frequency signals. In a specific implementation, the radio frequency (RF) module 116 may include, but is not limited to: an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, and Storage media, etc. In some embodiments, a radio frequency (RF) module 116 can be implemented on a separate chip.
存储器115与处理器111耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器115可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器115可以存储操作***(下述简称***),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作***。存储器115还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个终端设备,一个或多个网络设备进行通信。存储器115还可以存储用户接口程序,该用户接口程序可以通过图形化的操作界面将应用程序的内容形象逼真的显示出来,并通过菜单、对话框以及按键等输入控件接收用户对应用程序的控制操作。 Memory 115 is coupled to processor 111 for storing various software programs and/or sets of instructions. In particular implementations, memory 115 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The memory 115 can store an operating system (hereinafter referred to as a system) such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 115 can also store a network communication program that can be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices. The memory 115 can also store a user interface program, which can realistically display the content of the application through a graphical operation interface, and receive user control operations on the application through input controls such as menus, dialog boxes, and keys. .
存储器115还可以存储一个或多个应用程序。如图5所示,这些应用程序可包括:社交应用程序(例如Facebook),图像管理应用程序(例如相册),地图类应用程序(例如谷歌地图),浏览器(例如Safari,Google Chrome)等等。The memory 115 can also store one or more applications. As shown in FIG. 5, these applications may include: social applications (such as Facebook), image management applications (such as photo albums), map applications (such as Google Maps), browsers (such as Safari, Google Chrome), etc. .
应当理解,终端100仅为本申请实施例提供的一个例子,并且,终端100可具有比示出的部件更多或更少的部件,可以组合两个或更多个部件,或者可具有部件的不同配置实现。It should be understood that the terminal 100 is only an example provided by the embodiments of the present application, and the terminal 100 may have more or less components than the illustrated components, may combine two or more components, or may have components. Different configurations are implemented.
具体的,本申请实施例中介绍的终端可以用以实施本申请结合图2介绍的方法实施例中的部分或全部流程。Specifically, the terminal introduced in the embodiment of the present application may be used to implement some or all of the processes in the method embodiment introduced in conjunction with FIG. 2 in this application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、 计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Claims (16)

  1. 一种终端控制方法,其特征在于,所述方法包括:A terminal control method, characterized in that the method comprises:
    第一终端获取在所述第一终端的预设区域内输入的文本信息,并确定所述文本信息的操作类型;The first terminal acquires text information input in a preset area of the first terminal, and determines an operation type of the text information;
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键;The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information;
    所述第一终端生成各个所述按键的按键键值,并将所述生成的按键键值发送给第二终端,以通过所述按键键值控制所述第二终端。The first terminal generates a button key value of each of the buttons, and sends the generated button key value to the second terminal to control the second terminal by using the button key value.
  2. 如权利要求1所述的方法,其特征在于,所述操作类型为文本输入类型;The method of claim 1 wherein said type of operation is a text input type;
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,包括:The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information, including:
    所述第一终端对所述文本信息进行解析处理,获取组成所述文本信息的至少一个字符,所述字符包括字母或数字;The first terminal parses the text information to obtain at least one character that constitutes the text information, where the characters include letters or numbers;
    所述第一终端确定光标在所述第二终端的显示屏幕中的位置;Determining, by the first terminal, a location of a cursor in a display screen of the second terminal;
    所述第一终端确定将所述光标由所述位置移到至搜索区域所需的按键;The first terminal determines a button required to move the cursor from the location to a search area;
    所述第一终端确定将所述光标由所述搜索区域移动至组成所述文本信息的第一个字符所需的按键,以及所述光标由所述第一个字符移动至组成所述文本信息的第二个字符所需的按键,以及所述光标依次向下一个字符移动所需的按键,直至将所述光标由组成所述文本信息的倒数第二个字符移动至组成所述文本信息的最后一个字符所需的按键。Determining, by the first terminal, a cursor required to move the cursor from the search area to a first character constituting the text information, and moving the cursor from the first character to form the text information a key required for the second character, and the cursor sequentially moves the desired key to the next character until the cursor is moved from the penultimate character constituting the text information to the text information constituting the text The key required for the last character.
  3. 如权利要求1所述的方法,其特征在于,所述操作类型为频道切换类型;The method of claim 1 wherein said type of operation is a channel switching type;
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,包括:The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information, including:
    当所述文本信息包括数字时,所述第一终端确定各个所述数字的按键;When the text information includes a number, the first terminal determines a button of each of the numbers;
    当所述文本信息为汉字时,所述第一终端获取所述文本信息所指示频道的频道标识,并确定所述频道标识所对应数字的按键;When the text information is a Chinese character, the first terminal acquires a channel identifier of the channel indicated by the text information, and determines a button of the number corresponding to the channel identifier;
    所述第一终端生成各个所述按键的按键键值,包括:The first terminal generates a button key value of each of the buttons, including:
    所述第一终端生成各个所述确定的按键的按键键值,各个所述按键键值的生成时间之间的时间间隔小于预设时间阈值。The first terminal generates a button key value of each of the determined keys, and a time interval between generation times of each of the button key values is less than a preset time threshold.
  4. 如权利要求1所述的方法,其特征在于,所述操作类型为音量调整类型;The method of claim 1 wherein said type of operation is a volume adjustment type;
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文 本信息匹配的至少一个按键,包括:The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information, including:
    当所述第二终端的播放音量大于所述文本信息所指示的播放音量时,所述第一终端确定与所述文本信息匹配的按键为音量递减按键;When the playing volume of the second terminal is greater than the playing volume indicated by the text information, the first terminal determines that the button that matches the text information is a volume decrement button;
    所述第一终端获取所述第二终端的播放音量与所述文本信息所指示的播放音量之间的第一差值;The first terminal acquires a first difference between a playing volume of the second terminal and a playing volume indicated by the text information;
    所述第一终端将所述第一差值除以所述音量递减按键对应的递减变化量,得到第一商值;The first terminal divides the first difference value by a decreasing amount corresponding to the volume decrement button to obtain a first quotient value;
    所述第一终端将所述第一商值作为与所述文本信息匹配的音量递减按键的数量;The first terminal uses the first quotient value as the number of volume decrement buttons that match the text information;
    当所述第二终端的播放音量小于所述文本信息所指示的播放音量时,所述第一终端确定与所述文本信息匹配的按键为音量递增按键;When the playing volume of the second terminal is less than the playing volume indicated by the text information, the first terminal determines that the button that matches the text information is a volume increasing button;
    所述第一终端获取所述文本信息所指示的播放音量与所述第二终端的播放音量之间的第二差值;The first terminal acquires a second difference between a play volume indicated by the text information and a play volume of the second terminal;
    所述第一终端将所述第二差值除以所述音量递增按键对应的递增变化量,得到第二商值;The first terminal divides the second difference value by an incremental change amount corresponding to the volume increment button to obtain a second quotient value;
    所述第一终端将所述第二商值作为与所述文本信息匹配的音量递增按键的数量。The first terminal uses the second quotient value as the number of volume increment buttons that match the text information.
  5. 如权利要求1所述的方法,其特征在于,所述操作类型为节目回放类型;The method of claim 1 wherein said type of operation is a program playback type;
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,包括:The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information, including:
    所述第一终端确定最近一次回放的频道标识;Determining, by the first terminal, a channel identifier that was last played back;
    当所述最近一次回放的频道标识小于所述文本信息所指示的频道标识时,所述第一终端获取所述最近一次回放的频道标识与所述文本信息所指示的频道标识之间间隔的频道标识的数量;When the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, the first terminal acquires a channel between the channel identifier of the last playback and the channel identifier indicated by the text information. The number of signs;
    所述第一终端确定与所述文本信息匹配的按键为至少一个回放功能键,所述至少一个回放功能键的数量由所述间隔的频道标识的数量得到;Determining, by the first terminal, a button that matches the text information is at least one playback function key, and the number of the at least one playback function key is obtained by the number of the separated channel identifiers;
    当所述最近一次回放的频道标识大于所述文本信息所指示的频道标识时,所述第一终端获取可回放的频道标识的数量总和减去所述最近一次回放的频道标识与所述文本信息所指示的频道标识之间间隔的频道标识的数量得到的差值;When the channel identifier of the most recent playback is greater than the channel identifier indicated by the text information, the first terminal acquires the sum of the number of playable channel identifiers minus the channel identifier of the most recent playback and the text information. a difference obtained by the number of channel identifiers between the indicated channel identifiers;
    所述第一终端确定与所述文本信息匹配的按键为至少一个回放功能键,所述至少一个回放功能键的数量由所述差值得到。The first terminal determines that the button matching the text information is at least one playback function key, and the number of the at least one playback function key is obtained by the difference.
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键之前,还包括:The method according to any one of claims 1 to 5, wherein the first terminal identifies the text information according to the type of operation, and obtains at least one button that matches the text information, and further include:
    所述第一终端获取所述第二终端的字符输入方式;The first terminal acquires a character input manner of the second terminal;
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,包括:The first terminal identifies the text information according to the operation type, and obtains at least one button that matches the text information, including:
    所述第一终端根据所述操作类型和所述字符输入方式对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键。The first terminal identifies the text information according to the operation type and the character input manner, and obtains at least one button that matches the text information.
  7. 如权利要求1-5任一项所述的方法,其特征在于,所述第一终端根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,包括:The method according to any one of claims 1-5, wherein the first terminal identifies the text information according to the type of operation, and obtains at least one button that matches the text information, including:
    所述第一终端根据所述操作类型对所述文本信息进行识别,得到识别后的文本信息;The first terminal identifies the text information according to the operation type, and obtains the recognized text information;
    所述第一终端获取与所述识别后的文本信息匹配的至少一个按键。The first terminal acquires at least one button that matches the identified text information.
  8. 一种终端,其特征在于,包括:A terminal, comprising:
    接收模块,用于获取在所述终端的预设区域输入的文本信息;a receiving module, configured to acquire text information input in a preset area of the terminal;
    处理模块,用于确定所述文本信息的操作类型;a processing module, configured to determine an operation type of the text information;
    所述处理模块,还用于根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键;The processing module is further configured to: identify the text information according to the operation type, and obtain at least one button that matches the text information;
    所述处理模块,还用于生成各个所述按键的按键键值;The processing module is further configured to generate a button key value of each of the buttons;
    发送模块,用于将所述生成的按键键值发送给第二终端,以通过所述按键键值控制所述第二终端。And a sending module, configured to send the generated key key value to the second terminal, to control the second terminal by using the key value.
  9. 如权利要求8所述的终端,其特征在于,所述操作类型为文本输入类型;The terminal according to claim 8, wherein the operation type is a text input type;
    所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The processing module identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
    对所述文本信息进行解析处理,获取组成所述文本信息的至少一个字符,所述字符包括字母或数字;Parsing the text information to obtain at least one character constituting the text information, the characters including letters or numbers;
    确定光标在所述第二终端的显示屏幕中的位置;Determining a position of the cursor in a display screen of the second terminal;
    确定将所述光标由所述位置移到至搜索区域所需的按键;Determining a button required to move the cursor from the position to the search area;
    确定将所述光标由所述搜索区域移动至组成所述文本信息的第一个字符所需的按键,以及所述光标由所述第一个字符移动至组成所述文本信息的第二个字符所需的按键,以及所述光标依次向下一个字符移动所需的按键,直至将所述光标由组成所述文本信息的倒数第二个字符移动至组成所述文本信息的最后一个字符所需的按键。Determining a button required to move the cursor from the search area to a first character constituting the text information, and moving the cursor from the first character to a second character constituting the text information a desired key, and the cursor sequentially moves the desired key to the next character until the cursor is moved from the penultimate character constituting the text information to the last character constituting the text information Buttons.
  10. 如权利要求8所述的终端,其特征在于,所述操作类型为频道切换类型;The terminal according to claim 8, wherein the operation type is a channel switching type;
    所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The processing module identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
    当所述文本信息包括数字时,确定各个所述数字的按键;Determining a button of each of the numbers when the text information includes a number;
    当所述文本信息为汉字时,获取所述文本信息所指示频道的频道标识,并确定所述频道标识所对应数字的按键;When the text information is a Chinese character, acquiring a channel identifier of the channel indicated by the text information, and determining a button of the number corresponding to the channel identifier;
    所述处理模块生成各个所述按键的按键键值,具体用于:The processing module generates a button key value of each of the buttons, specifically for:
    生成各个所述确定的按键的按键键值,各个所述按键键值的生成时间之间的时间间隔小于预设时间阈值。And generating a button key value of each of the determined keys, and a time interval between generation times of each of the button key values is less than a preset time threshold.
  11. 如权利要求8所述的终端,其特征在于,所述操作类型为音量调整类型;The terminal according to claim 8, wherein the operation type is a volume adjustment type;
    所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The processing module identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
    当所述第二终端的播放音量大于所述文本信息所指示的播放音量时,确定与所述文本信息匹配的按键为音量递减按键;When the playing volume of the second terminal is greater than the playing volume indicated by the text information, determining that the button matching the text information is a volume decrement button;
    获取所述第二终端的播放音量与所述文本信息所指示的播放音量之间的第一差值;Obtaining a first difference between a playing volume of the second terminal and a playing volume indicated by the text information;
    将所述第一差值除以所述音量递减按键对应的递减变化量,得到第一商值;Dividing the first difference value by a decreasing amount corresponding to the volume decrement button to obtain a first quotient value;
    将所述第一商值作为与所述文本信息匹配的音量递减按键的数量;Using the first quotient value as the number of volume decrement buttons that match the text information;
    当所述第二终端的播放音量小于所述文本信息所指示的播放音量时,确定与所述文本信息匹配的按键为音量递增按键;When the playing volume of the second terminal is less than the playing volume indicated by the text information, determining that the button matching the text information is a volume increasing button;
    获取所述文本信息所指示的播放音量与所述第二终端的播放音量之间的第二差值;Obtaining a second difference between a play volume indicated by the text information and a play volume of the second terminal;
    将所述第二差值除以所述音量递增按键对应的递增变化量,得到第二商值;Dividing the second difference value by an incremental change amount corresponding to the volume increment button to obtain a second quotient value;
    将所述第二商值作为与所述文本信息匹配的音量递增按键的数量。The second quotient value is taken as the number of volume increment buttons that match the text information.
  12. 如权利要求8所述的终端,其特征在于,所述操作类型为节目回放类型;The terminal according to claim 8, wherein said operation type is a program playback type;
    所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The processing module identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
    确定最近一次回放的频道标识;Determining the channel identifier of the most recent playback;
    当所述最近一次回放的频道标识小于所述文本信息所指示的频道标识时,获取所述最近一次回放的频道标识与所述文本信息所指示的频道标识之间间隔的频道标识的数量;And acquiring, when the channel identifier of the last playback is smaller than the channel identifier indicated by the text information, acquiring the number of channel identifiers between the channel identifier of the last playback and the channel identifier indicated by the text information;
    确定与所述文本信息匹配的按键为至少一个回放功能键,所述至少一个回放功能键的数量由所述间隔的频道标识的数量得到;Determining that the key that matches the text information is at least one playback function key, the number of the at least one playback function key being obtained by the number of the spaced channel identifiers;
    当所述最近一次回放的频道标识大于所述文本信息所指示的频道标识时,获取可回放的频道标识的数量总和减去所述最近一次回放的频道标识与所述文本信息所指示的频道标识之间间隔的频道标识的数量得到的差值;When the channel identifier of the last playback is greater than the channel identifier indicated by the text information, obtain the sum of the number of playable channel identifiers minus the channel identifier of the most recent playback and the channel identifier indicated by the text information. The difference between the number of channel identifiers that are separated;
    确定与所述文本信息匹配的按键为至少一个回放功能键,所述至少一个回放功能键的数量由所述差值得到。Determining that the key that matches the textual information is at least one playback function key, the number of the at least one playback function key being derived from the difference.
  13. 如权利要求8-12任一项所述的终端,其特征在于,A terminal according to any one of claims 8 to 12, characterized in that
    所述接收模块,还用于所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键之前,获取所述第二终端的字符输入方式;The receiving module is further configured to: after the processing module identifies the text information according to the operation type, and obtain at least one button that matches the text information, acquire a character input manner of the second terminal;
    所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The processing module identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for:
    根据所述操作类型和所述字符输入方式对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键。And identifying the text information according to the operation type and the character input manner, and obtaining at least one button that matches the text information.
  14. 如权利要求8-12任一项所述的终端,其特征在于,所述处理模块根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键,具体用于:The terminal according to any one of claims 8 to 12, wherein the processing module identifies the text information according to the operation type, and obtains at least one button that matches the text information, specifically for :
    根据所述操作类型对所述文本信息进行识别,得到识别后的文本信息;Identifying the text information according to the operation type, and obtaining the recognized text information;
    获取与所述识别后的文本信息匹配的至少一个按键。Obtaining at least one button that matches the identified text information.
  15. 一种终端,其特征在于,所述终端包括接收器、处理器和发射器,其中:A terminal, characterized in that the terminal comprises a receiver, a processor and a transmitter, wherein:
    所述接收器,用于获取在所述终端的预设区域内输入的文本信息;The receiver is configured to acquire text information input in a preset area of the terminal;
    所述处理器,用于确定所述文本信息的操作类型;The processor is configured to determine an operation type of the text information;
    所述处理器,还用于根据所述操作类型对所述文本信息进行识别,得到与所述文本信息匹配的至少一个按键;The processor is further configured to: identify the text information according to the operation type, and obtain at least one button that matches the text information;
    所述处理器,还用于生成各个所述按键的按键键值;The processor is further configured to generate a button key value of each of the buttons;
    所述发射器,用于将所述生成的按键键值发送给第二终端,以通过所述按键键值控制所述第二终端。The transmitter is configured to send the generated key key value to the second terminal to control the second terminal by using the button key value.
  16. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求1-7任一项所述的终端控制方法。A computer storage medium, characterized in that the computer storage medium stores a program, and the program execution comprises the terminal control method according to any one of claims 1-7.
PCT/CN2018/108945 2017-09-30 2018-09-30 Terminal control method and terminal WO2019062999A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/652,120 US11375261B2 (en) 2017-09-30 2018-09-30 Terminal control method and terminal
EP18861735.1A EP3678106A4 (en) 2017-09-30 2018-09-30 Terminal control method and terminal

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201710918858 2017-09-30
CN201710918858.X 2017-09-30
CN201810276176.8 2018-03-29
CN201810276176.8A CN109600645B (en) 2017-09-30 2018-03-29 Terminal control method and terminal

Publications (1)

Publication Number Publication Date
WO2019062999A1 true WO2019062999A1 (en) 2019-04-04

Family

ID=65901050

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108945 WO2019062999A1 (en) 2017-09-30 2018-09-30 Terminal control method and terminal

Country Status (1)

Country Link
WO (1) WO2019062999A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325067A (en) * 2011-09-16 2012-01-18 白军民 Intelligent household remote control monitoring system
CN103037264A (en) * 2012-12-19 2013-04-10 乐视致新电子科技(天津)有限公司 Implement method of multiple desktops of television
US20150161883A1 (en) * 2013-12-05 2015-06-11 Verizon and Redbox Digital Entertainment Service, LLC Remote control of a device via text message
CN106647659A (en) * 2016-12-09 2017-05-10 Tcl集团股份有限公司 Intelligent terminal based method and system for controlling household appliances remotely

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325067A (en) * 2011-09-16 2012-01-18 白军民 Intelligent household remote control monitoring system
CN103037264A (en) * 2012-12-19 2013-04-10 乐视致新电子科技(天津)有限公司 Implement method of multiple desktops of television
US20150161883A1 (en) * 2013-12-05 2015-06-11 Verizon and Redbox Digital Entertainment Service, LLC Remote control of a device via text message
CN106647659A (en) * 2016-12-09 2017-05-10 Tcl集团股份有限公司 Intelligent terminal based method and system for controlling household appliances remotely

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3678106A4 *

Similar Documents

Publication Publication Date Title
US11086596B2 (en) Electronic device, server and control method thereof
CN101882366B (en) Remote control signal learning and processing by a host device and accessory
US11409817B2 (en) Display apparatus and method of controlling the same
US10560654B2 (en) Display device
WO2017008627A1 (en) Multimedia live broadcast method, apparatus and system
KR20100017452A (en) Remote control for devices with connectivity to a service delivery platform
CN104221025A (en) Apparatus and method of controlling permission to applications in portable terminal
US11012754B2 (en) Display apparatus for searching and control method thereof
KR102428934B1 (en) Display apparatus, user terminal apparatus, system and the controlling method
US20220353347A1 (en) Automatic switching device operation determination based on received notifications
CN108476339A (en) A kind of remote control method and terminal
CN104349190A (en) Television box and method for controlling display to display video and audio
KR20080042203A (en) Apparatus and method for key mapping in bluetooth device
CN106792125A (en) A kind of video broadcasting method and its terminal, system
CN106454463B (en) Television-based control method and device
EP3651472A1 (en) Display device
KR102654415B1 (en) Display device and operating method thereof
WO2019062999A1 (en) Terminal control method and terminal
US11375261B2 (en) Terminal control method and terminal
CN114566144A (en) Voice recognition method and device, server and electronic equipment
KR102404364B1 (en) Electronic apparatus paired with external electronic apparatus and control method thereof
US20140067916A1 (en) Method and display apparatus for processing an input signal
KR20220005590A (en) Display device and method of operation thereof
US12015821B2 (en) Display apparatus and signal transmission method for display apparatus
CN103473002A (en) Intelligent terminal, input terminal and input method of intelligent terminal

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: 18861735

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018861735

Country of ref document: EP

Effective date: 20200401