CN109189239A - A kind of characters input method and device - Google Patents
A kind of characters input method and device Download PDFInfo
- Publication number
- CN109189239A CN109189239A CN201810850288.XA CN201810850288A CN109189239A CN 109189239 A CN109189239 A CN 109189239A CN 201810850288 A CN201810850288 A CN 201810850288A CN 109189239 A CN109189239 A CN 109189239A
- Authority
- CN
- China
- Prior art keywords
- network
- input
- character
- host computer
- input method
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 136
- 238000004891 communication Methods 0.000 claims description 6
- 238000013507 mapping Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000011161 development Methods 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of characters input methods, applied to the mobile phone in the network inputs system containing the mobile phone and host computer for being equipped with input method in network, which comprises establish the service class of simultaneously Configuration network input method;The network input port of the input method in network is mapped to the network output mouth of host computer, and establishes network monitoring program;Receive the network inputs instruction that host computer is sent;The network inputs instruction is parsed, and is instructed according to the network inputs and carries out character input.The embodiment of the invention also provides a kind of character entry apparatus.Using the embodiment of the present invention, the delay of network inputs can be reduced.
Description
Technical field
The present invention relates to a kind of input method and device, it is more particularly to a kind of characters input method and device.
Background technique
With network technical development, long-range control input is realized using the network connection relation between host computer and mobile phone
Technology has obtained great development.
Currently, being usually the input by user in the enterprising line character of host computer, the character life that host computer is inputted according to user
At broadcast corresponding with the character, then this is broadcast to each mobile phone in network;After mobile phone receives the broadcast
It needs to judge whether the broadcast is destined to the broadcast of itself, if it is determined that becoming is, the broadcast is parsed, then according to the broadcast
In include character information carry out character input.
But in the prior art, if host computer needs one by one to mobile phone in a fairly large number of situation of mobile phone in network
The transmission broadcasted results in the need for expending the more time, and therefore, there are network inputs to postpone higher technology for the prior art
Problem.
Summary of the invention
It is defeated to reduce network technical problem to be solved by the present invention lies in providing a kind of characters input method and device
The delay entered.
The present invention is to solve above-mentioned technical problem by the following technical programs:
The embodiment of the invention provides a kind of characters input method, applied to containing the mobile phone for being equipped with input method in network and
Mobile phone in the network inputs system of host computer, which comprises
Establish the service class of simultaneously Configuration network input method;
The network input port of the input method in network is mapped to the network output mouth of host computer, and establishes network prison
Listen program;
Receive the network inputs instruction that host computer is sent;
The network inputs instruction is parsed, and is instructed according to the network inputs and carries out character input.
It is optionally, described to establish network monitoring program, comprising:
The creation input interface method function in input method service class is rewritten, network communication listening thread is added, character is defeated
Entering method includes: at least one of to submit text method and send key assignments method.
Optionally, described instructed according to the network inputs carries out character input, comprising:
It is instructed according to the network inputs, carries out character input using the characters input method in input connection class.
Optionally, described instructed according to the network inputs carries out character input, comprising:
Judge that the character is text or command character;
If the character is file, the input of text is carried out by the submission text method in input connection class;
If the character is command character, pass through the input for sending key assignments method and carrying out command character in input connection class.
The embodiment of the invention also provides one kind to be based on a kind of characters input method described in any of the above embodiments, applied to answering
For the host computer in the network inputs system containing the mobile phone and host computer for being equipped with input method in network, which comprises
The network output mouth of itself is mapped to the network input port of the input method in network;
According to the character to be entered that user inputs, the network packet for being directed to the character to be entered is generated, and by the network
Packet is sent to the mobile phone by the network output mouth.
The embodiment of the invention also provides a kind of character entry apparatus, applied to containing the mobile phone for being equipped with input method in network
With the mobile phone in the network inputs system of host computer, described device includes:
Module is established, for establishing the service class of simultaneously Configuration network input method;
First mapping block, the network for the network input port of the input method in network to be mapped to host computer export
Port, and establish network monitoring program;
Receiving module, for receiving the network inputs instruction of host computer transmission;
Parsing module for parsing the network inputs instruction, and instructs according to the network inputs and carries out character input.
Optionally, described to establish module, it is also used to:
The creation input interface method function in input method service class is rewritten, network communication listening thread is added, character is defeated
Entering method includes: at least one of to submit text method and send key assignments method.
Optionally, the parsing module, is also used to:
It is instructed according to the network inputs, carries out character input using the characters input method in input connection class.
Optionally, parsing module is also used to:
Judge that the character is text or command character;
If the character is file, the input of text is carried out by the submission text method in input connection class;
If the character is command character, pass through the input for sending key assignments method and carrying out command character in input connection class.
The embodiment of the invention also provides a kind of character entry apparatus described in any of the above embodiments is based on, applied to being applied to
Host computer in network inputs system containing the mobile phone and host computer that are equipped with input method in network, described device include:
Second mapping block, for the network output mouth of itself to be mapped to the network input of the input method in network
Mouthful;
Sending module, the character to be entered for being inputted according to user generate the network packet for being directed to the character to be entered,
And the network packet is sent to the mobile phone by the network output mouth.
The present invention has the advantage that compared with prior art
Using the embodiment of the present invention, the network input port of the input method in network of input method in network is mapped to host computer
Network output mouth, compared with the existing technology, host computer only carry out the input of network inputs instruction to a mobile phone, avoid
Position machine sends holding time when network inputs instruct to other mobile phones for not needing to receive network inputs instruction, thereby reduces net
The delay of network input.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of characters input method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic illustration of characters input method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another characters input method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of character entry apparatus provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another character entry apparatus provided in an embodiment of the present invention.
Specific embodiment
It elaborates below to the embodiment of the present invention, the present embodiment carries out under the premise of the technical scheme of the present invention
Implement, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to following implementation
Example.
The embodiment of the invention provides a kind of characters input method and devices, just provided in an embodiment of the present invention first below
A kind of characters input method is introduced.
Fig. 1 is a kind of flow diagram of characters input method provided in an embodiment of the present invention, and Fig. 2 is the embodiment of the present invention
A kind of schematic illustration of the characters input method provided;As depicted in figs. 1 and 2, applied to containing being equipped with input method in network
Mobile phone and host computer network inputs system in mobile phone, which comprises
S101: establishing and the service class of Configuration network input method;
Specifically, rewrite input method service class such as, the creation input interface in InputMethodService class such as,
Network communication listening thread is added in onCreateInputView method, and characters input method includes: to submit text method such as,
CommitText method and send key assignments method such as, at least one of sendKeyEvent method.
It in practical applications, can be first input method in network be installed to mobile phone, then in cellphone inputting method, by net
Network input method is arranged to default input method, subsequently into the application interface for carrying out input text.
Resettle the input canonical for being inherited from android.InputMethodService Android input method service class
Be engaged in class, i.e., input method class such as, the class of InputMethodService, then again in program configuration file, such as
This service class is configured in AndroidManifest.xml file.
In practical applications, submission text method for carrying out text input can be used such as, commitText method.
In practical applications, character to be entered can be retrieved, judges whether that there is text and command character simultaneously,
If it is not, if only text, if command character inputs, is used using the commitText method for carrying out text input
SendKeyEvent method.
S102: the network input port of the input method in network is mapped to the network output mouth of host computer, and is established
Network monitoring program;
Specifically, host computer can be mapped to the network port of mobile phone by the network port, also may map in mobile phone
Such as, the port adb resettles the network monitoring thread for mapped port to the Android debugging bridge of input method in network.
S103: the network inputs instruction that host computer is sent is received;
S104: the network inputs instruction is parsed, and is instructed according to the network inputs and carries out character input.
Specifically, can instruct according to the network inputs, class is connected using input, in InputConnection class
Characters input method carry out character input.
Specifically, may determine that the character is text or command character;If the character is file, pass through
CommitText method in InputConnection class carries out the input of text;If the character is command character, pass through
SendKeyEvent method in InputConnection class carries out the input of command character.
In practical applications, it after network monitoring thread receives network packet, is parsed, is used according to network protocol
CommitText method in InputConnection class realizes text input, using in InputConnection class
The input of sendKeyEvent method realization control character.Using the above embodiment of the present invention, the text in input method is called directly
This input function and/or command character input function, can be improved input speed.
It is understood that input method in network can send instructions to mobile phone in host computer, and in hand by Ethernet
Realize Chinese, English, character on machine, and the input including carriage return, backspace, the control characters such as up and down.
Using embodiment illustrated in fig. 1 of the present invention, the network input port of the input method in network of input method in network is mapped to
The network output mouth of host computer, compared with the existing technology, host computer only carry out the input of network inputs instruction to a mobile phone,
It avoids host computer and holding time when network inputs instruct is sent to other mobile phones for not needing to receive network inputs instruction, in turn
Reduce the delay of network inputs.
Fig. 3 is the flow diagram of another characters input method provided in an embodiment of the present invention, as shown in figure 3, using
In the host computer being applied in the network inputs system containing the mobile phone and host computer that are equipped with input method in network, the method packet
It includes:
S201: the network output mouth of itself is mapped to the network input port of the input method in network;
Specifically, host computer can be mapped to the network port of mobile phone by the network port, also may map in mobile phone
The port adb of input method in network.
S202: the character to be entered inputted according to user generates the network packet for being directed to the character to be entered, and will be described
Network packet is sent to the mobile phone by the network output mouth.
Specifically, host computer receives the character to be entered of user's input, then character storage is passed through into network packet
The corresponding network port is sent to the network port or the port adb of mobile phone.
Using embodiment illustrated in fig. 3 of the present invention, the network input port of the input method in network of input method in network is mapped to
The network output mouth of host computer, compared with the existing technology, host computer only carry out the input of network inputs instruction to a mobile phone,
It avoids host computer and holding time when network inputs instruct is sent to other mobile phones for not needing to receive network inputs instruction, in turn
Reduce the delay of network inputs.
Corresponding with embodiment illustrated in fig. 1 of the present invention, the present invention also provides a kind of character entry apparatus.
Fig. 4 is a kind of structural schematic diagram of character entry apparatus provided in an embodiment of the present invention, is equipped with applied to containing
Mobile phone in the mobile phone of input method in network and the network inputs system of host computer, described device include:
Module 301 is established, for establishing the service class of simultaneously Configuration network input method;
First mapping block 302, for the network input port of the input method in network to be mapped to the network of host computer
Output port, and establish network monitoring program;
Receiving module 303, for receiving the network inputs instruction of host computer transmission;
Parsing module 304 instructs progress character defeated for parsing the network inputs instruction, and according to the network inputs
Enter.
Using embodiment illustrated in fig. 4 of the present invention, the network input port of the input method in network of input method in network is mapped to
The network output mouth of host computer, compared with the existing technology, host computer only carry out the input of network inputs instruction to a mobile phone,
It avoids host computer and holding time when network inputs instruct is sent to other mobile phones for not needing to receive network inputs instruction, in turn
Reduce the delay of network inputs.
It is described to establish module 302 in a kind of specific embodiment of the embodiment of the present invention, it is also used to:
The creation input interface method function in input method service class is rewritten, network communication listening thread is added, character is defeated
Entering method includes: at least one of to submit text method and send key assignments method.
In a kind of specific embodiment of the embodiment of the present invention, the parsing module 304 is also used to:
It is instructed according to the network inputs, carries out character input using the characters input method in input connection class.
In a kind of specific embodiment of the embodiment of the present invention, parsing module 304 is also used to:
Judge that the character is text or command character;
If the character is text, the defeated of text is carried out by the commitText method in InputConnection class
Enter;
If the character is command character, pass through the sendKeyEvent method (send key in InputConnection class
Value) carry out command character input.
Corresponding with embodiment illustrated in fig. 3 of the present invention, the present invention also provides a kind of character entry apparatus.
Fig. 5 is the structural schematic diagram of another character entry apparatus provided in an embodiment of the present invention, applied to being applied to contain
There is the host computer in the network inputs system of the mobile phone and host computer that are equipped with input method in network, described device includes:
Second mapping block 401, the network for the network output mouth of itself to be mapped to the input method in network are defeated
Inbound port;
Sending module 402, the character to be entered for being inputted according to user generate the network for being directed to the character to be entered
Packet, and the network packet is sent to the mobile phone by the network output mouth.
Using embodiment illustrated in fig. 5 of the present invention, the network input port of the input method in network of input method in network is mapped to
The network output mouth of host computer, compared with the existing technology, host computer only carry out the input of network inputs instruction to a mobile phone,
It avoids host computer and holding time when network inputs instruct is sent to other mobile phones for not needing to receive network inputs instruction, in turn
Reduce the delay of network inputs.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (10)
1. a kind of characters input method, which is characterized in that applied to containing the mobile phone and host computer for being equipped with input method in network
Mobile phone in network inputs system, which comprises
Establish the service class of simultaneously Configuration network input method;
The network input port of the input method in network is mapped to the network output mouth of host computer, and establishes network monitoring journey
Sequence;
Receive the network inputs instruction that host computer is sent;
The network inputs instruction is parsed, and is instructed according to the network inputs and carries out character input.
2. a kind of characters input method according to claim 1, which is characterized in that described to establish simultaneously Configuration network input method
Service class, comprising:
The creation input interface method function in input method service class is rewritten, network communication listening thread, character input side is added
Method includes: at least one of to submit text method and send key assignments method.
3. a kind of characters input method according to claim 2, which is characterized in that described to be instructed according to the network inputs
Carry out character input, comprising:
It is instructed according to the network inputs, carries out character input using the characters input method in input connection class.
4. a kind of characters input method according to claim 3, which is characterized in that described to be instructed according to the network inputs
Carry out character input, comprising:
Judge that the character is text or command character;
If the character is file, the input of text is carried out by the submission text method in input connection class;
If the character is command character, pass through the input for sending key assignments method and carrying out command character in input connection class.
5. be based on a kind of described in any item characters input methods of claim 1-4, which is characterized in that applied to be applied to contain
The host computer being equipped in the mobile phone of input method in network and the network inputs system of host computer, which comprises
The network output mouth of itself is mapped to the network input port of the input method in network;
It according to the character to be entered that user inputs, generates and is directed to the network packet of the character to be entered, and the network packet is led to
It crosses the network output mouth and is sent to the mobile phone.
6. a kind of character entry apparatus, which is characterized in that applied to containing the mobile phone and host computer for being equipped with input method in network
Mobile phone in network inputs system, described device include:
Module is established, for establishing the service class of simultaneously Configuration network input method;
First mapping block, for the network input port of the input method in network to be mapped to the network output of host computer
Mouthful, and establish network monitoring program;
Receiving module, for receiving the network inputs instruction of host computer transmission;
Parsing module for parsing the network inputs instruction, and instructs according to the network inputs and carries out character input.
7. a kind of character entry apparatus according to claim 6, which is characterized in that it is described to establish module, it is also used to:
The creation input interface method function in input method service class is rewritten, network communication listening thread, character input side is added
Method includes: at least one of to submit text method and send key assignments method.
8. a kind of character entry apparatus according to claim 7, which is characterized in that the parsing module is also used to:
It is instructed according to the network inputs, carries out character input using the characters input method in input connection class.
9. a kind of characters input method according to claim 8, which is characterized in that parsing module is also used to:
Judge that the character is text or command character;
If the character is file, the input of text is carried out by the submission text method in input connection class;
If the character is command character, pass through the input for sending key assignments method and carrying out command character in input connection class.
10. be based on a kind of described in any item character entry apparatus of claim 6-9, which is characterized in that applied to be applied to contain
There is the host computer in the network inputs system of the mobile phone and host computer that are equipped with input method in network, described device includes:
Second mapping block, for the network output mouth of itself to be mapped to the network input port of the input method in network;
Sending module, the character to be entered for being inputted according to user generate the network packet for being directed to the character to be entered, and will
The network packet is sent to the mobile phone by the network output mouth.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810850288.XA CN109189239A (en) | 2018-07-28 | 2018-07-28 | A kind of characters input method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810850288.XA CN109189239A (en) | 2018-07-28 | 2018-07-28 | A kind of characters input method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189239A true CN109189239A (en) | 2019-01-11 |
Family
ID=64937826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810850288.XA Pending CN109189239A (en) | 2018-07-28 | 2018-07-28 | A kind of characters input method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189239A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968190A (en) * | 2012-10-24 | 2013-03-13 | 深圳市深信服电子科技有限公司 | Local input method mapping device and method based on remote application |
-
2018
- 2018-07-28 CN CN201810850288.XA patent/CN109189239A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968190A (en) * | 2012-10-24 | 2013-03-13 | 深圳市深信服电子科技有限公司 | Local input method mapping device and method based on remote application |
Non-Patent Citations (1)
Title |
---|
ITLEAKS: ""RemoteIme"", 《HTTPS://GITHUB.COM/ITLEAKS/REMOTEIME》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612661A (en) | Data communication method and device | |
CN103970601B (en) | Execute operational order method and apparatus | |
JP2019523605A (en) | Network policy update trigger method, management function entity and core network device | |
CN106961665A (en) | A kind of Intelligent hardware based on Bluetooth communication matches somebody with somebody network method | |
JP2015529422A (en) | Smart home system based on call center and method for realizing the same | |
CN107018189A (en) | Migrate application data and receive the method and device of application data | |
CN101529807B (en) | A method and system for realizing universal interfaces in the network management system | |
CN113261249A (en) | Data transmission method, related equipment and computer storage medium | |
EP2472785A1 (en) | Service linkage control system and method | |
CN104243513B (en) | A kind of data transmission device of double card navigation system | |
CN110856213B (en) | Method and device for switching data transmission modes, storage medium and electronic equipment | |
CN108052401A (en) | System property monitor method, terminal device and computer readable storage medium | |
CN109189239A (en) | A kind of characters input method and device | |
WO2014048129A1 (en) | Indicating message sending method, indicating message receiving method, device and system | |
CN110582063A (en) | method for sending short message in intranet environment | |
CN103167432A (en) | System and method for achieving near-field information sending based on bluetooth transmission protocol | |
CN102378357A (en) | Wireless sensor network terminal registration method, terminals, gateway and service platform | |
CN114302463A (en) | Network switching method, system, device and storage medium | |
CN109347656B (en) | Method and system for configuring virtual host uplink network card | |
CN104427529B (en) | A kind of information processing method and terminal | |
CN106209389B (en) | Power supply communication system and communication method based on G.x protocol | |
CN102651881B (en) | Parameter modifying method and system in test of external field of wireless network | |
CN102104511A (en) | Mobile phone | |
CN105357651A (en) | Discourse right processing method, apparatus, dispatcher station and terminal in cluster conversation | |
CN104853321A (en) | Speaking right processing method and device in cluster communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |