CN105992066B - A kind of characters input method and character entry apparatus applied to smart machine - Google Patents
A kind of characters input method and character entry apparatus applied to smart machine Download PDFInfo
- Publication number
- CN105992066B CN105992066B CN201510083668.1A CN201510083668A CN105992066B CN 105992066 B CN105992066 B CN 105992066B CN 201510083668 A CN201510083668 A CN 201510083668A CN 105992066 B CN105992066 B CN 105992066B
- Authority
- CN
- China
- Prior art keywords
- input
- smart machine
- character
- input frame
- input equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of characters input methods and character entry apparatus applied to smart machine, wherein a kind of characters input method includes: the communication connection established between smart machine and input equipment;Detect the focal variation on the display interface of the smart machine;If detecting, the input frame on the display interface of the smart machine obtains focus, it triggers the input equipment and shows input frame on the display interface of the input equipment;When receiving the input information from the input equipment, according to the content in the input frame on the display interface of smart machine described in the input information update.Technical solution provided by the invention can effectively improve the convenience of smart machine character input.
Description
Technical field
The present invention relates to smart machine fields, and in particular to a kind of characters input method and character applied to smart machine
Input unit.
Background technique
With the rapid development of information technology, the technological innovation of field of television also experiencings earth-shaking variation, electricity
Have become a kind of trend depending on intelligence.
Smart television is to be equipped with operating system with full open model platform, can voluntarily be installed and uninstalled by user each
Class application software is persistently expanded and is upgraded to function, and can realize this surfed the web by cable, wireless network
The general name of a kind of new tv product of sample.
Currently, user can input character in the input frame of smart television display interface by remote controler.However, due to
The limitation of remote controler itself will bring many inconvenience using the input that remote controler carries out character, therefore, at present to user's operation
The input of smart television all joined through mobile phone the function of controlling smart television, include using mobile phone replacement remote,
The input frame of smart television display interface is directly injected into using mobile phone input character string.
However, there is following lack by the scheme that mobile phone injects character into the input frame of smart television display interface at present
Point: user needs whether moment observation smart television allows to input character, when smart television allows to input character, user
Mobile phone could be passed through and inject character into the input frame of smart television display interface, convenience is poor.
Summary of the invention
The present invention provides a kind of characters input method and character entry apparatus applied to smart machine, for improving intelligence
The convenience of equipment character input.
One aspect of the present invention provides a kind of characters input method applied to smart machine, comprising:
Establish the communication connection between smart machine and input equipment;
Detect the focal variation on the display interface of above-mentioned smart machine;
If detecting, the input frame on the display interface of above-mentioned smart machine obtains focus, trigger above-mentioned input equipment
Input frame is shown on the display interface of above-mentioned input equipment;
When receiving the input information from above-mentioned input equipment, according to the above-mentioned above-mentioned smart machine of input information update
Display interface on input frame in content.
Another aspect of the present invention provides a kind of character entry apparatus, comprising:
Connection setup unit, for establishing the communication connection between smart machine and input equipment;
Detection unit, the focal variation on display interface for detecting above-mentioned smart machine;
First trigger unit, for detecting the input frame on the display interface of above-mentioned smart machine when above-mentioned detection unit
When obtaining focus, triggers above-mentioned input equipment and show input frame on the display interface of above-mentioned input equipment;
Receiving unit, for receiving the character from above-mentioned input equipment;
Updating unit, when for receiving the input information from above-mentioned input equipment when above-mentioned receiving unit, according to upper
State the content in the input frame on the display interface of the input above-mentioned smart machine of information update.
Therefore the communication connection between smart machine and input equipment is initially set up in the present invention, and detect intelligence
Focal variation on the display interface of equipment, when the input frame on the display interface for detecting smart machine obtains focus, touching
Hair input equipment shows input frame on the display interface of input equipment, prompts user to pass through the input equipment display interface with this
The input frame of upper display inputs character, and the character that user inputs is sent to smart machine by input equipment, by smart machine in intelligence
The character that the input equipment is sent is shown in input frame on energy equipment display interface.Since in the present invention, smart machine is being examined
When measuring the input frame acquisition focus on smart machine display interface, input equipment can be triggered on the display interface of input equipment
Show input frame, therefore, whether user allows to input character without moment observation smart machine, and it is defeated to improve smart machine character
The convenience entered.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1-a is characters input method one embodiment flow diagram provided by the invention;
Fig. 1-b is smart machine provided by the invention and a kind of connection mode schematic diagram of input equipment;
Fig. 1-c is smart machine provided by the invention and input equipment another kind connection mode schematic diagram;
Fig. 1-d is smart machine provided by the invention and another connection mode schematic diagram of input equipment;
Fig. 2 is another embodiment flow diagram of characters input method provided by the invention;
Fig. 3 is characters input method further embodiment flow diagram provided by the invention;
Fig. 4-a is a schematic diagram of a scenario of smart television and mobile phone interaction under a kind of application scenarios provided by the invention;
Fig. 4-b is that another of smart television and mobile phone interaction scene are illustrated under a kind of application scenarios provided by the invention
Figure;
Fig. 5 is character entry apparatus one embodiment structural schematic diagram provided by the invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects
It encloses.
It is described, is asked with the characters input method that an embodiment is applied to smart machine to one of present invention below
- a refering to fig. 1, the characters input method in the embodiment of the present invention include:
101, the communication connection between smart machine and input equipment is established;
In the embodiment of the present invention, smart machine be with display function and character input function equipment (such as intelligence electricity
Depending on), input equipment is equipment (such as the mobile phone, plate with display function, and configured with physical keyboard and/or dummy keyboard
Computer etc.).
If user needs to input character in smart machine by input equipment, firstly the need of establish smart machine with it is defeated
Enter the communication connection between equipment.
Under a kind of application scenarios, as shown in Fig. 1-b, smart machine, input equipment and cloud server pass through network (such as
Internet network) interconnection.Character entry apparatus triggers smart machine and establishes communication link by cloud server and input equipment
It connects, so that smart machine can realize data interaction by cloud server and input equipment.
Under another application scenarios, as shown in fig 1-c, smart machine and input equipment are connected to same wireless routing
Device, character entry apparatus triggers smart machine and establishes communication connection by the wireless router and input equipment, so that intelligence
Equipment can realize data interaction by the wireless router and input equipment.
Alternatively, smart machine and input equipment can also establish communication link by way of being directly connected to as shown in Fig. 1-d
Connect, for example, character entry apparatus can by point-to-point (P2P, Pointer-to-Pointer) or debugging bridge (ADB,
Android Debug Bridge) etc. direct-connected mode establish the communication connection between smart machine and input equipment.
The embodiment of the present invention does not limit the concrete mode for the communication connection established between smart machine and input equipment
It is fixed.
102, the focal variation on the display interface of above-mentioned smart machine is detected;
In the embodiment of the present invention, focus refers to the position that current cursor is activated, when some control on smart machine obtains
When obtaining focus, which can be operated.For example, passing through when the input frame on the display interface of smart machine obtains focus
Input character, which can be realized, obtains the character injection of input in the input frame of focus.
Optionally, character entry apparatus obtains focus hair by gotfocus () function and lostfocus () function respectively
The event that raw event and focus loses.It should be noted that detecting display circle of above-mentioned smart machine in the embodiment of the present invention
Focal variation on face is also referred to the focal variation testing mechanism in existing smart machine, and details are not described herein again.
It is worth noting that user can be defeated by the focus on remote control control smart machine in the embodiment of the present invention
The function of control focus can also be possessed by entering equipment, specifically be referred to prior art realization.
Character entry apparatus detects the smart machine in the focal variation on the display interface for detecting above-mentioned smart machine
Display interface on input frame whether obtain focus, that is, detect the object of the above-mentioned acquisition focus of display interface of the smart machine
It whether is input frame.Optionally, the operating system of above-mentioned smart machine is Android system, then is detecting that above-mentioned intelligence sets
When focal variation on standby display interface, character entry apparatus calls java program or Webview control to detect above-mentioned intelligence
Obtain whether the object of focus is input frame on the display interface of equipment.Java program is called to character entry apparatus separately below
Or Webview control detect obtained on the display interface of above-mentioned smart machine focus object whether be input frame two ways
It is illustrated:
1, Android Java is applied
Since the shape library system of android system can provide complete focal point control and input frame control, usually
Application program will use the shape library of android system offer to realize interface.
A, focal variation identifies
The control of focus is completed by android.view.View java class in android system, whenever focus becomes
On FocusChanged () function can be all called to obtain focus position when change.
B. judge to obtain whether the object of focus is input frame
Input frame is realized that parent is in android system by android.widget.EditText
Android.widget.TextView, ancestors' class are android.view.View.Character entry apparatus judgement obtains focus
Whether object is the local in android.widget.TextView of input frame, the reason is that
Android.widget.EditText is the simple extension of TextView, most of to realize all in TextView.Specifically
Ground, the keyword instanceof that character entry apparatus is provided according to java grammer may determine that obtain focus object whether be
TextView further judges to obtain by TextView attribute burnt when the object for judging to obtain focus is TextView
Whether the object of point is EditText, if EditText, then determines that obtaining the object of focus is EditText.
2, Android WebView is applied
Character entry apparatus can be called in the focal variation on the display interface for detecting above-mentioned smart machine
Whether the current object for obtaining focus of RenderWidget::OnHandleInputEvent () function judgement is input frame.Into
One step, character entry apparatus may call upon TextInputType RenderWidget::GetTextInputType () letter
Number obtains the character types of input frame.
If 103, detecting, the input frame on the display interface of above-mentioned smart machine obtains focus, trigger above-mentioned input
Equipment shows input frame on the display interface of above-mentioned input equipment;
Optionally, when on the display interface that character entry apparatus detects above-mentioned smart machine input frame obtain focus,
Input frame information is then obtained, and sends the input frame information to above-mentioned input equipment, so that the input equipment is according to the input
Display interface above-mentioned display input frame of the frame information in the input equipment.Wherein, above-mentioned input frame information includes: inputting character
Type limitation and/or requirement, so that input equipment also has corresponding input according to the input frame that the input frame information is shown
The type of character is limited and/or is required.For example, the type limitation of input character can be the input of limitation text or number, again
For example, the types entail of input character can be the content of text or electricity that can only input text, number, email address format
Talk about the content of text etc. of number format.In android system, input box properties define in InputType.java, include:
TYPE_CLASS_TEXT is for defining text;
TYPE_TEXT_VARIATION_EMAIL_ADDRESS definition e-mail address;
TYPE_CLASS_NUMBER is for defining number;
TYPE_CLASS_PHONE is for defining telephone number.
Certainly, the input character of input frame is not limited to above-mentioned several, is not listed one by one in the embodiment of the present invention.
Optionally, above-mentioned input frame information can also include: prompt information.The prompt information is for further describing input
Frame, so that input equipment shows the prompt information while showing input frame.Specifically, smart machine can be with intelligent grabbing
The left side for obtaining the input frame of focus or character string shown above are as prompt information.
Optionally, if smart machine currently obtain had existed in the input frame of focus character string (such as default character string,
Or input frame secondary focusing when retain preceding primary focusing when the character that inputs), then above-mentioned input frame information can also include
The character string, so that comprising the character string in the input frame that input equipment is shown according to the input frame information.
Certainly, in the embodiment of the present invention, it is aobvious that character entry apparatus can also state input equipment transmission input frame directly up
Show instruction (not carrying input frame information), by the input frame idsplay order trigger the input equipment show in the display interface it is defeated
Enter frame.
Optionally, character entry apparatus can also trigger above-mentioned input equipment output audio, will pass through the audio of input
Achieve the purpose that further to remind user.
104, when receiving the input information from above-mentioned input equipment, according to the above-mentioned above-mentioned intelligence of input information update
The content in input frame on the display interface of equipment.
In the embodiment of the present invention, when input equipment shows input frame, user can be by input equipment in input equipment
Character is inputted in the input frame of display or is input operation instruction (such as character deletion instruction).In a kind of application scenarios
In, above-mentioned input information is specially character.Input equipment provides character and exports control, when user is in the input frame of input equipment
Complete character input after, user trigger the character output control, input equipment detect the character output control be triggered
Afterwards, all characters inputted in the input frame of the input equipment are sent to above-mentioned character entry apparatus, character entry apparatus
When receiving the character from the input equipment, the word received is shown in the input frame on the display interface of smart machine
Symbol.
In another application scenarios, above-mentioned input information is specially character or inputs operation instruction.Input equipment will be used
Input operation (such as character output operation or character deletion operation) of the family in the input frame of the input equipment passes through input letter
Breath real-time synchronization is to above-mentioned character entry apparatus, i.e., when occurring input update in the input frame of the input equipment, input equipment
The character newly inputted is sent to the character entry apparatus in real time, character entry apparatus receives the character from the input equipment
When perhaps inputting operation instruction according to the character received or input operation instruction update smart machine display interface on
Content in input frame, to realize the content synchronization of the input frame of smart machine and the input frame of input equipment.
Optionally, the operating system of above-mentioned smart machine be android system, when character entry apparatus receive it is above-mentioned
When input information is character, TextView.setText () function showing the character input smart machine received is called
Show in the input frame on interface;Alternatively, being called when the above-mentioned input information that character entry apparatus receives is character
CommitText () function by receive from the character input smart machine display interface on input frame in;Or
Person, when the above-mentioned input information that character entry apparatus receives is character, the input method of calling the smart machine currently used
It will be in the input frame on the display interface for the character input smart machine that received.
Certainly, in the embodiment of the present invention, when the above-mentioned input information that character entry apparatus receives is character, character is defeated
Entering device can also be otherwise by the input frame on the display interface of the character input smart machine received, this
Place is not construed as limiting.
Optionally, if character entry apparatus detects that the input frame on the display interface of the smart machine loses focus,
It triggers above-mentioned input equipment cancellation and shows input frame on the display interface of above-mentioned input equipment.Specifically, when character input fills
When setting the input frame on the display interface for detecting the smart machine and losing focus, character entry apparatus can be set to above-mentioned input
Preparation send input frame log-out instruction, when receiving the input frame log-out instruction so as to above-mentioned input equipment, destroys or hide input
The input frame shown on the display interface of equipment.
It should be noted that the character entry apparatus in the embodiment of the present invention can integrate in above-mentioned smart machine, or
Person, the character entry apparatus in the embodiment of the present invention are also possible to the device independently of smart machine.In the embodiment of the present invention
Smart machine is specifically as follows smart television or other display equipment for needing to input character, and the input in the embodiment of the present invention is set
It is standby to be specifically as follows mobile phone, tablet computer etc., it is not construed as limiting herein.
Therefore the communication connection between smart machine and input equipment is initially set up in the present invention, and detect intelligence
Focal variation on the display interface of equipment, when the input frame on the display interface for detecting smart machine obtains focus, touching
Hair input equipment shows input frame on the display interface of input equipment, prompts user to pass through the input equipment display interface with this
The input frame of upper display inputs character, and the character that user inputs is sent to smart machine by input equipment, by smart machine in intelligence
The character that the input equipment is sent is shown in input frame on energy equipment display interface.Since in the present invention, smart machine is being examined
When measuring the input frame acquisition focus on smart machine display interface, input equipment can be triggered on the display interface of input equipment
Show input frame, therefore, whether user allows to input character without moment observation smart machine, and it is defeated to improve smart machine character
The convenience entered.
Below by taking the interaction of smart machine and input equipment as an example, one of present invention characters input method is retouched
It states.In the embodiment of the present invention, communication connection, character are established by direct-connected or wireless router between smart machine and input equipment
Input unit is specially smart machine, referring to Fig. 2, the characters input method in the embodiment of the present invention includes:
201, smart machine and input equipment, which are established, communicates to connect;
In the embodiment of the present invention, smart machine broadcasts universal plug and play (UPnP, Universal Plug and
Play) message or multicast domain name system (MDNS, Multicast Domain Name System) message or other types of disappear
Breath, to know input equipment, the smart machine is ready, and input equipment is allowed to access.Further, smart machine
The application method of service can also be carried in the message of broadcast.
202, smart machine detects the focal variation on the display interface of above-mentioned smart machine;
The specific implementation of step 202 is referred to the description in step 102, and details are not described herein again.
If 203, detecting, the input frame on the display interface of above-mentioned smart machine obtains focus, and smart machine obtains defeated
Enter frame information;
Wherein, above-mentioned input frame information includes: inputting the type limitation of character and/or requires, so that input equipment root
Also have the type limitation of corresponding input character according to the input frame that the input frame information is shown and/or requires.For example, input
The type limitation of character can be the input of limitation text or number, in another example, the types entail for inputting character can be for can only
Input text, number, the content of text of email address format or content of text of phone number format etc..In Android
In system, input box properties define in InputType.java, include:
TYPE_CLASS_TEXT is for defining text;
TYPE_TEXT_VARIATION_EMAIL_ADDRESS definition e-mail address;
TYPE_CLASS_NUMBER is for defining number;
TYPE_CLASS_PHONE is for defining telephone number.
Certainly, the input character of input frame is not limited to above-mentioned several, is not listed one by one in the embodiment of the present invention.
Optionally, above-mentioned input frame information can also include: prompt information.The prompt information is for further describing input
Frame, so that input equipment shows the prompt information while showing input frame.Specifically, smart machine can be with intelligent grabbing
The left side for obtaining the input frame of focus or character string shown above are as prompt information.
Optionally, if smart machine currently obtain had existed in the input frame of focus character string (such as default character string,
Or input frame secondary focusing when retain preceding primary focusing when the character that inputs), then above-mentioned input frame information can also include
The character string, so that comprising the character string in the input frame that input equipment is shown according to the input frame information.
204, smart machine sends input frame information to input equipment.
205, input equipment shows input frame according to the input frame information received in the display interface.
206, input equipment will send input information to smart machine;
In the embodiment of the present invention, when input equipment shows input frame, user can be by input equipment in input equipment
Character is inputted in the input frame of display or is input operation instruction (such as character deletion instruction)
In a kind of application scenarios, above-mentioned input information is specially character.Input equipment provide character export control, when with
After the input of character is completed at family in the input frame of input equipment, user triggers character output control, and input equipment is detecting
After being triggered to character output control, all characters inputted in the input frame of the input equipment are sent to above-mentioned intelligence
Equipment.
In another application scenarios, above-mentioned input information is specially character or inputs operation instruction.Input equipment will be used
Input operation (such as character output operation or character deletion operation) of the family in the input frame of the input equipment passes through input letter
Real-time synchronization is ceased to above-mentioned smart machine, i.e., when occurring input update in the input frame of the input equipment, input equipment is real-time
The character newly inputted is sent to the smart machine.
207, smart machine is according in the input frame on the display interface of the input information update smart machine received
Content;
Optionally, the operating system of above-mentioned smart machine is android system, when the above-mentioned input that smart machine receives
When information is character, call TextView.setText () function by display circle of the character input smart machine received
In input frame on face;Alternatively, being called CommitText () when the above-mentioned input information that smart machine receives is character
Function by receive from the character input smart machine display interface on input frame in;Alternatively, working as smart machine
When the above-mentioned input information received is character, character input that the input method for calling the smart machine currently used will receive
In input frame on the display interface of the smart machine.
Certainly, in the embodiment of the present invention, when the above-mentioned input information that smart machine receives is character, smart machine
It can not be limited herein otherwise by the input frame on the display interface of the character input smart machine received
It is fixed.
Optionally, if smart machine detects that the input frame on the display interface of the smart machine loses focus, triggering
Above-mentioned input equipment cancellation shows input frame on the display interface of above-mentioned input equipment.Specifically, when smart machine detects
When input frame on the display interface of the smart machine loses focus, character entry apparatus can send defeated to above-mentioned input equipment
Enter frame log-out instruction, when receiving the input frame log-out instruction so as to above-mentioned input equipment, destroy or hiding input equipment it is aobvious
Show the input frame shown on interface.
It should be noted that being carried out so that character entry apparatus is integrated in above-mentioned smart machine as an example in the embodiment of the present invention
Illustrate, in practical applications, character entry apparatus is also possible to the device independently of smart machine, then in the embodiment of the present invention by
Character entry apparatus substitutes above-mentioned smart machine execution and correspondingly acts.Smart machine in the embodiment of the present invention is specifically as follows
Smart television or other display equipment for needing to input character, the input equipment in the embodiment of the present invention be specifically as follows mobile phone,
Tablet computer etc., is not construed as limiting herein.
Therefore the communication connection between smart machine and input equipment is initially set up in the present invention, and detect intelligence
Focal variation on the display interface of equipment, when the input frame on the display interface for detecting smart machine obtains focus, touching
Hair input equipment shows input frame on the display interface of input equipment, prompts user to pass through the input equipment display interface with this
The input frame of upper display inputs character, and the character that user inputs is sent to smart machine by input equipment, by smart machine in intelligence
The character that the input equipment is sent is shown in input frame on energy equipment display interface.Since in the present invention, smart machine is being examined
When measuring the input frame acquisition focus on smart machine display interface, input equipment can be triggered on the display interface of input equipment
Show input frame, therefore, whether user allows to input character without moment observation smart machine, and it is defeated to improve smart machine character
The convenience entered.
Below by taking the interaction of smart machine and input equipment as an example, one of present invention characters input method is retouched
It states.In the embodiment of the present invention, is established and communicated to connect by cloud server between smart machine and input equipment, character input dress
Specially smart machine is set, referring to Fig. 3, the characters input method in the embodiment of the present invention includes:
301, smart machine registration service establishes connection with cloud server.
302, input equipment and cloud server establish connection;
Optionally, input equipment connect cloud server using same account with smart machine.
303, smart machine establishes virtual connecting path by cloud server and input equipment, to complete smart machine
The foundation of communication connection between input equipment.
304, smart machine detects the focal variation on the display interface of above-mentioned smart machine;
The specific implementation of step 304 is referred to the description in step 102, and details are not described herein again.
If 305, detecting, the input frame on the display interface of above-mentioned smart machine obtains focus, and smart machine obtains defeated
Enter frame information;
Wherein, above-mentioned input frame information includes: inputting the type limitation of character and/or requires, so that input equipment root
Also have the type limitation of corresponding input character according to the input frame that the input frame information is shown and/or requires.For example, input
The type limitation of character can be the input of limitation text or number, in another example, the types entail for inputting character can be for can only
Input text, number, the content of text of email address format or content of text of phone number format etc..In Android
In system, input box properties define in InputType.java, include:
TYPE_CLASS_TEXT is for defining text;
TYPE_TEXT_VARIATION_EMAIL_ADDRESS definition e-mail address;
TYPE_CLASS_NUMBER is for defining number;
TYPE_CLASS_PHONE is for defining telephone number.
Certainly, the input character of input frame is not limited to above-mentioned several, is not listed one by one in the embodiment of the present invention.
Optionally, above-mentioned input frame information can also include: prompt information.The prompt information is for further describing input
Frame, so that input equipment shows the prompt information while showing input frame.Specifically, smart machine can be with intelligent grabbing
The left side for obtaining the input frame of focus or character string shown above are as prompt information.
Optionally, if smart machine currently obtain had existed in the input frame of focus character string (such as default character string,
Or input frame secondary focusing when retain preceding primary focusing when the character that inputs), then above-mentioned input frame information can also include
The character string, so that comprising the character string in the input frame that input equipment is shown according to the input frame information.
306, smart machine sends input frame information to input equipment by cloud server.
307, input equipment shows input frame according to the input information received in the display interface.
308, input equipment will send input information to smart machine by cloud server;
In the embodiment of the present invention, when input equipment shows input frame, user can be by input equipment in input equipment
Character is inputted in the input frame of display or is input operation instruction (such as character deletion instruction)
In a kind of application scenarios, above-mentioned input information is specially character.Input equipment provide character export control, when with
After the input of character is completed at family in the input frame of input equipment, user triggers character output control, and input equipment is detecting
After being triggered to character output control, all characters inputted in the input frame of the input equipment are sent to above-mentioned intelligence
Equipment.
In another application scenarios, above-mentioned input information is specially character or inputs operation instruction.Input equipment will be used
Input operation (such as character output operation or character deletion operation) of the family in the input frame of the input equipment passes through input letter
Real-time synchronization is ceased to above-mentioned smart machine, i.e., when occurring input update in the input frame of the input equipment, input equipment is real-time
The character newly inputted is sent to the smart machine.
309, smart machine is according in the input frame on the display interface of the input information update smart machine received
Content;
Optionally, the operating system of above-mentioned smart machine is android system, when the above-mentioned input that smart machine receives
When information is character, call TextView.setText () function by display circle of the character input smart machine received
In input frame on face;Alternatively, being called CommitText () when the above-mentioned input information that smart machine receives is character
Function by receive from the character input smart machine display interface on input frame in;Alternatively, working as smart machine
When the above-mentioned input information received is character, character input that the input method for calling the smart machine currently used will receive
In input frame on the display interface of the smart machine.
Certainly, in the embodiment of the present invention, when the above-mentioned input information that smart machine receives is character, smart machine
It can not be limited herein otherwise by the input frame on the display interface of the character input smart machine received
It is fixed.
Optionally, if smart machine detects that the input frame on the display interface of the smart machine loses focus, triggering
Above-mentioned input equipment cancellation shows input frame on the display interface of above-mentioned input equipment.Specifically, when smart machine detects
When input frame on the display interface of the smart machine loses focus, character entry apparatus can be by cloud server to above-mentioned
Input equipment sends input frame log-out instruction, when receiving the input frame log-out instruction so as to above-mentioned input equipment, destroys or hidden
Hide the input frame shown on the display interface of input equipment.
It should be noted that being carried out so that character entry apparatus is integrated in above-mentioned smart machine as an example in the embodiment of the present invention
Illustrate, in practical applications, character entry apparatus is also possible to the device independently of smart machine, then in the embodiment of the present invention by
Character entry apparatus substitutes above-mentioned smart machine execution and correspondingly acts.Smart machine in the embodiment of the present invention is specifically as follows
Smart television or other display equipment for needing to input character, the input equipment in the embodiment of the present invention be specifically as follows mobile phone,
Tablet computer etc., is not construed as limiting herein.
Therefore the communication connection between smart machine and input equipment is initially set up in the present invention, and detect intelligence
Focal variation on the display interface of equipment, when the input frame on the display interface for detecting smart machine obtains focus, touching
Hair input equipment shows input frame on the display interface of input equipment, prompts user to pass through the input equipment display interface with this
The input frame of upper display inputs character, and the character that user inputs is sent to smart machine by input equipment, by smart machine in intelligence
The character that the input equipment is sent is shown in input frame on energy equipment display interface.Since in the present invention, smart machine is being examined
When measuring the input frame acquisition focus on smart machine display interface, input equipment can be triggered on the display interface of input equipment
Show input frame, therefore, whether user allows to input character without moment observation smart machine, and it is defeated to improve smart machine character
The convenience entered.
The characters input method in the embodiment of the present invention is described with a concrete application scene below.The present invention is implemented
Smart machine in example is smart television, and input equipment is mobile phone, smart television 41 and input equipment 42 as depicted in fig. 4-a,
Communication connection is established between smart television 41 and mobile phone 42, when the input frame 411 on smart television 41 obtains focus, intelligence
TV 41 obtains input frame information and is simultaneously sent to mobile phone 42, mobile phone 42 according to the input frame information received mobile phone 42 display
Input frame is shown on interface, input frame 421 as depicted in fig. 4-a.As shown in Fig. 4-b, when user is in the input frame of mobile phone 42
When inputting character (" A Fanda " as shown in Fig. 4-b) and clicking " completion " control 422, mobile phone 42 will include character " A Fan
Up to " input information be sent to smart television 41, smart television 41 is according in the input information update input frame 411 received
Content, to realize that input frame 411 is consistent with the content of input frame 421, as Fig. 4-b show smart television 41 according to receiving
Input information update input frame 411 in content after result.Certainly, in another embodiment, when in input frame 421 go out
When now input updates, the character newly inputted is sent to smart television 41 in real time by mobile phone 42, to realize input frame 421 and input frame
411 content synchronization.
The embodiment of the present invention also protects a kind of character entry apparatus applied to smart machine, as shown in figure 5, the present invention is real
Apply the character entry apparatus 500 in example, comprising:
Connection setup unit 501, for establishing the communication connection between smart machine and input equipment;
Detection unit 502, the focal variation on display interface for detecting above-mentioned smart machine;
First trigger unit 503, for detecting the input on the display interface of above-mentioned smart machine when detection unit 502
When frame obtains focus, triggers above-mentioned input equipment and show input frame on the display interface of above-mentioned input equipment;
Receiving unit 504, for receiving the character from above-mentioned input equipment;
Updating unit 505, when for receiving the input information from above-mentioned input equipment when receiving unit 504, according to
The content in input frame on the display interface of the above-mentioned above-mentioned smart machine of input information update
Optionally, the character entry apparatus in the embodiment of the present invention further include: the second trigger unit, for working as detection unit
When 502 input frames for detecting on the display interface of above-mentioned smart machine lose focus, triggers above-mentioned input equipment and cancel upper
It states and shows input frame on the display interface of input equipment.
Optionally, above-mentioned first trigger unit includes: acquiring unit, for obtaining input frame information, wherein above-mentioned input
Frame information includes: inputting the type limitation of character and/or requires;Transmission unit, it is above-mentioned defeated for being sent to above-mentioned input equipment
Enter frame information so that above-mentioned input equipment shown on the display interface of above-mentioned input equipment according to above-mentioned input frame information it is defeated
Enter frame.
Optionally, the operating system of above-mentioned smart machine is android system.Detection unit 502 is specifically used for: detecting
When focal variation on to the display interface of above-mentioned smart machine, java program or Webview control is called to detect above-mentioned intelligence
Obtain whether the object of focus is input frame on the display interface of equipment.
Optionally, above-mentioned input information is specially character.Updating unit 505 is specifically used for: when receiving unit 504 receives
When to character from above-mentioned input equipment, call that TextView.setText () function will receive from above-mentioned input
In input frame on the display interface of the above-mentioned smart machine of the character input of equipment;Alternatively, being come from when receiving unit 504 receives
When the character of above-mentioned input equipment, call CommitText () function that the character from above-mentioned input equipment received is defeated
Enter in the input frame on the display interface of above-mentioned smart machine;Alternatively, when receiving unit 504 is received from above-mentioned input equipment
Character when, the character input from above-mentioned input equipment that the input method for calling above-mentioned smart machine currently used will receive
In input frame on the display interface of above-mentioned smart machine.
It should be noted that the character entry apparatus in the embodiment of the present invention can integrate in above-mentioned smart machine, or
Person, the character entry apparatus in the embodiment of the present invention are also possible to the device independently of smart machine.In the embodiment of the present invention
Smart machine is specifically as follows smart television or other display equipment for needing to input character, and the input in the embodiment of the present invention is set
It is standby to be specifically as follows mobile phone, tablet computer etc., it is not construed as limiting herein.
It should be understood that character entry apparatus in the embodiment of the present invention can character as referred in above method embodiment it is defeated
Enter device, can be used to implement all the technical solutions in the foregoing method embodiment, the function of each functional module can root
According to the method specific implementation in above method embodiment, specific implementation process can refer to the associated description in above-described embodiment,
Details are not described herein again.
Therefore character entry apparatus initially sets up the communication link between smart machine and input equipment in the present invention
It connects, and detects the focal variation on the display interface of smart machine, the input frame on the display interface for detecting smart machine
When obtaining focus, triggering input equipment shows input frame on the display interface of input equipment, prompts user defeated by this with this
Entering the input frame input character shown on equipment display interface, the character that user inputs is sent to smart machine by input equipment,
The character that the input equipment is sent is shown in the input frame on smart machine display interface by smart machine.Due to the present invention
In, smart machine can trigger input equipment and input when detecting that the input frame on smart machine display interface obtains focus
Input frame is shown on the display interface of equipment, therefore, whether user allows to input character without moment observation smart machine, improves
The convenience of smart machine character input.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of said units, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The above are to a kind of characters input method and character entry apparatus applied to smart machine provided by the present invention
Description, for those of ordinary skill in the art, thought according to an embodiment of the present invention in specific embodiment and applies model
Place that there will be changes, to sum up, the contents of this specification are not to be construed as limiting the invention.
Claims (6)
1. a kind of characters input method applied to smart machine characterized by comprising
Establish the communication connection between smart machine and input equipment;The input equipment is mobile phone or tablet computer;
Detect the focal variation on the display interface of the smart machine;
If detecting, the input frame on the display interface of the smart machine obtains focus, the input equipment is triggered in institute
It states and shows input frame on the display interface of input equipment;
When receiving the input information from the input equipment, according to the aobvious of smart machine described in the input information update
Show the content in the input frame on interface;
Wherein, by the network interconnection, it is logical that character entry apparatus triggers smart machine for smart machine, input equipment and cloud server
It crosses cloud server and input equipment is established and communicated to connect, so that smart machine can pass through cloud server and input equipment
Realize data interaction;
The triggering input equipment shows that input frame to prompt user inputs character, wraps later on the input equipment
It includes:
If detecting, the input frame on the display interface of the smart machine loses focus, it triggers the input equipment and cancels
Input frame is shown on the display interface of the input equipment;
The triggering input equipment shows input frame on the display interface of the input equipment, comprising:
It obtains input frame information, wherein the input frame information includes: inputting the type limitation of character and/or require;
The input frame information is sent to the input equipment, so that the input equipment is according to the input frame information in institute
It states and shows input frame on the display interface of input equipment;
The input frame information further includes prompt information, obtain the input frame of focus the left side or character string conduct shown above
Prompt information, so that input equipment shows the prompt information while showing input frame;
The input frame information further includes having existed character string in the current input frame for obtaining focus, obtains current acquisition focus
Input frame in have existed character string so that comprising the word in the input frame that input equipment is shown according to the input frame information
Symbol string.
2. characters input method according to claim 1, which is characterized in that the operating system of the smart machine is
Android system;
Focal variation on the display interface of the detection smart machine, comprising:
In the focal variation on the display interface for detecting the smart machine, java program or the inspection of Webview control are called
It surveys on the display interface of the smart machine and obtains whether the object of focus is input frame.
3. characters input method according to claim 2, which is characterized in that
The input information is specially character;
It is described when receiving the input information from the input equipment, according to smart machine described in the input information update
Display interface on input frame in content, comprising:
When receiving from the character of the input equipment, TextView.setText () function is called to come from what is received
In input frame on the display interface of smart machine described in the character input of the input equipment;
Alternatively,
When receiving from the character of the input equipment, call CommitText () function that will receive from described defeated
Enter in the input frame on the display interface of smart machine described in the character input of equipment;
Alternatively,
When receiving from the character of the input equipment, the input method for calling the smart machine currently used will be received
The character input from the input equipment described in smart machine display interface on input frame in.
4. a kind of character entry apparatus applied to smart machine characterized by comprising
Connection setup unit, for establishing the communication connection between smart machine and input equipment;The input equipment is mobile phone
Or tablet computer;
Detection unit, the focal variation on display interface for detecting the smart machine;
First trigger unit, for detecting that the input frame on the display interface of the smart machine obtains when the detection unit
When focus, triggers the input equipment and show input frame on the display interface of the input equipment;
Receiving unit, for receiving the character from the input equipment;
Updating unit, when for receiving the input information from the input equipment when the receiving unit, according to described defeated
Enter the content in the input frame on the display interface of smart machine described in information update;
Wherein, by the network interconnection, it is logical that character entry apparatus triggers smart machine for smart machine, input equipment and cloud server
It crosses cloud server and input equipment is established and communicated to connect, so that smart machine can pass through cloud server and input equipment
Realize data interaction;
The character entry apparatus further include:
Second trigger unit, for detecting that the input frame on the display interface of the smart machine loses when the detection unit
When focus, triggers the input equipment cancellation and show input frame on the display interface of the input equipment;
First trigger unit includes:
Acquiring unit, for obtaining input frame information, wherein the input frame information includes: input character type limitation and/
Or it requires;
Transmission unit, for sending the input frame information to the input equipment, so that the input equipment is according to
Input frame information shows input frame on the display interface of the input equipment;
The input frame information further include: prompt information, the left side or character string shown above for obtaining the input frame of focus are made
For prompt information, so that input equipment shows the prompt information while showing input frame;
The input frame information further include: have existed character string in the current input frame for obtaining focus, it is burnt to obtain current acquisition
Character string is had existed in the input frame of point, so that comprising being somebody's turn to do in the input frame that input equipment is shown according to the input frame information
Character string.
5. character entry apparatus according to claim 4, which is characterized in that the operating system of the smart machine is
Android system;
The detection unit is specifically used for: in the focal variation on the display interface for detecting the smart machine, calling
Java program or Webview control detect and obtain whether the object of focus is input frame on the display interface of the smart machine.
6. character entry apparatus according to claim 5, which is characterized in that
The input information is specially character;
The updating unit is specifically used for: when the receiving unit is received from the character of the input equipment, calling
TextView.setText () function is by the display of smart machine described in the character input from the input equipment received
In input frame on interface;Alternatively, being called when the receiving unit is received from the character of the input equipment
CommitText () function will be on the display interface of smart machine described in the character input from the input equipment that received
Input frame in;Alternatively, calling the smart machine when the receiving unit is received from the character of the input equipment
Currently used input method will be on the display interface of smart machine described in the character input from the input equipment that received
Input frame in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510083668.1A CN105992066B (en) | 2015-02-13 | 2015-02-13 | A kind of characters input method and character entry apparatus applied to smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510083668.1A CN105992066B (en) | 2015-02-13 | 2015-02-13 | A kind of characters input method and character entry apparatus applied to smart machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105992066A CN105992066A (en) | 2016-10-05 |
CN105992066B true CN105992066B (en) | 2019-07-02 |
Family
ID=57042579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510083668.1A Active CN105992066B (en) | 2015-02-13 | 2015-02-13 | A kind of characters input method and character entry apparatus applied to smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105992066B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106604094B (en) * | 2016-12-26 | 2020-11-03 | 深圳Tcl数字技术有限公司 | Input method and system |
CN109729216A (en) * | 2017-10-30 | 2019-05-07 | 卓望数码技术(深圳)有限公司 | A kind of computer acts on behalf of cell phone input method and system |
CN108133137B (en) * | 2017-12-13 | 2021-11-23 | 北京奇虎科技有限公司 | Interface security detection method and device in intelligent terminal |
CN113286203A (en) * | 2020-02-20 | 2021-08-20 | 深圳市万普拉斯科技有限公司 | Input method and device for smart television, computer equipment and storage medium |
CN111565328A (en) * | 2020-04-30 | 2020-08-21 | 北京盛世辉科技有限公司 | Method and device for inputting intelligent equipment and remote controller |
CN111866571B (en) * | 2020-06-30 | 2023-03-24 | 北京小米移动软件有限公司 | Method and device for editing content on smart television and storage medium |
WO2023092437A1 (en) * | 2021-11-26 | 2023-06-01 | 京东方科技集团股份有限公司 | Intelligent calculation method and intelligent interactive tablet |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306052A (en) * | 2011-08-10 | 2012-01-04 | 山东泰信电子有限公司 | Intelligent input method for automatically identifying input equipment |
CN102843596A (en) * | 2012-08-17 | 2012-12-26 | 深圳市同洲电子股份有限公司 | Input method used in intelligent television |
CN103188452A (en) * | 2011-12-30 | 2013-07-03 | 胡继强 | Remote control with interactive input and output functions and television |
CN103607658A (en) * | 2013-11-14 | 2014-02-26 | 四川长虹电器股份有限公司 | Method for inputting character into application software of intelligent television by utilizing mobile terminal |
CN103686289A (en) * | 2013-12-26 | 2014-03-26 | 深圳Tcl新技术有限公司 | Intelligent television keyboard input control method and intelligent television |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ES2558759T3 (en) * | 2013-04-29 | 2016-02-08 | Swisscom Ag | Method; electronic device and system for entering text remotely |
-
2015
- 2015-02-13 CN CN201510083668.1A patent/CN105992066B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306052A (en) * | 2011-08-10 | 2012-01-04 | 山东泰信电子有限公司 | Intelligent input method for automatically identifying input equipment |
CN103188452A (en) * | 2011-12-30 | 2013-07-03 | 胡继强 | Remote control with interactive input and output functions and television |
CN102843596A (en) * | 2012-08-17 | 2012-12-26 | 深圳市同洲电子股份有限公司 | Input method used in intelligent television |
CN103607658A (en) * | 2013-11-14 | 2014-02-26 | 四川长虹电器股份有限公司 | Method for inputting character into application software of intelligent television by utilizing mobile terminal |
CN103686289A (en) * | 2013-12-26 | 2014-03-26 | 深圳Tcl新技术有限公司 | Intelligent television keyboard input control method and intelligent television |
Also Published As
Publication number | Publication date |
---|---|
CN105992066A (en) | 2016-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105992066B (en) | A kind of characters input method and character entry apparatus applied to smart machine | |
JP6671483B2 (en) | Method and apparatus for controlling smart devices and computer storage media | |
CN102550003B (en) | For the method and apparatus managing the richest Rich Internet application | |
CN102347941B (en) | A kind of safety applications control method based on open platform | |
CN109740222A (en) | A kind of test device and system for grid motor connectionization scene | |
CN110244944A (en) | Network security scanning function implementation method based on graphical programming | |
CN103513858A (en) | Remote assistance method and device | |
CN110377283A (en) | The realization of front end valid data and synchronous method when the separation exploitation of the front and back end Web | |
CN106209825A (en) | A kind of customizable Botnet pilot system | |
KR20090065144A (en) | System and method for testing graphic user interface of mobile application software | |
CN109426705A (en) | A kind of interface display method, device, equipment and storage medium | |
CN106815150B (en) | Server-side interface test system and method | |
CN115455329A (en) | B/S architecture cross-platform cross-multi-terminal RPA designer system and implementation method | |
CN106250315A (en) | A kind of automatic imitation request-reply system and method for configurableization | |
CN104063227B (en) | A kind of instruction learning method based on Internet of Things | |
US10044591B2 (en) | Two-way remote communication system for testing a client device program | |
CN106557411A (en) | The method of testing and system of Hybrid applications in android system | |
de Cleva Farto et al. | Reuse of model-based tests in mobile apps | |
CN109739665A (en) | Interface managerial method, device, server and storage medium | |
CN106161409A (en) | A kind of agent framework service system including local component and method | |
CN109753281A (en) | A kind of microgrid energy management strategy visualization toolkit based on graphic programming | |
CN107509215A (en) | A kind of wireless authentication automated testing method and system | |
CN106528413A (en) | Method and device for testing application program | |
CN103780637B (en) | Information sharing apparatus and method | |
CN105812936B (en) | Modular electrical regards upgrade method and modularization television-set upgrading apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |