CN109144585A - A kind of input method, input unit, readable medium and smart machine - Google Patents
A kind of input method, input unit, readable medium and smart machine Download PDFInfo
- Publication number
- CN109144585A CN109144585A CN201810863119.XA CN201810863119A CN109144585A CN 109144585 A CN109144585 A CN 109144585A CN 201810863119 A CN201810863119 A CN 201810863119A CN 109144585 A CN109144585 A CN 109144585A
- Authority
- CN
- China
- Prior art keywords
- input
- preset
- input unit
- data format
- action
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a kind of input method, input unit, readable medium and smart machine, method includes: to receive the input action information of the input unit transmitted with preset first data format;The input action information is parsed by the analysis program being preset in the equipment, obtains action command;The action command is passed into preset destination application, completes the input control on the destination application.With do not need to intelligent terminal carry out ROOT, do not destroy intelligent terminal original system, safety is good, it is at low cost, easy to use the advantages that.
Description
Technical field
The present invention relates to input technology fields more particularly to a kind of input method, input unit, readable medium and intelligence to set
It is standby.
Background technique
After the intelligent terminals such as smart phone, plate are connect by OTG line with external input device (keyboard, mouse),
External input device may be implemented to the input control of intelligent terminal.It inputs the operation system that realization process is intelligent terminal
The input of system response external input equipment instructs (such as keyboard presses some key, and mouse is moved a certain distance to some direction),
And according to input instruction execution corresponding actions, due to responding input instruction by operating system, pass through external input device
When carrying out input control, it can not realize that currently running application program (APP) is to the only of external input device on intelligent terminal
It accounts for.By taking the smart phone of Android (Android) system connects external input device as an example, if intelligent terminal is currently in front stage operation
Application program be certain games, for being operated by the mouse input device of external connection to game, when mouse shifting
When moving to the top of display interface, android system can respond mouse state, the system mode column at drop-down display top, thus
User's game experiencing can be seriously affected.Therefore, it is necessary to the methods that one kind can monopolize external input device, so that external input is set
It is standby only to be monopolized by the application program of front stage operation.
Although in the prior art in the presence of the method that can be realized the exclusive input equipment of application program, this method is needed to intelligence
Energy mobile phone carries out ROOT, and since ROOT does not meet the guarantee clause of smart phone, and the safety that will lead to smart phone is big
Big the problems such as reducing, moreover, do not support user to carry out ROOT the mobile phone of certain brands yet, so, the prior art can not
The very good solution above problem.
Summary of the invention
The technical problem to be solved in the present invention is that, for technical problem of the existing technology, the present invention provides one
Kind does not need to carry out ROOT to intelligent terminal, does not destroy intelligent terminal original system, safety is good, at low cost, easy to use
Input method, input unit, readable medium and smart machine.
In order to solve the above technical problems, technical solution proposed by the present invention are as follows: a kind of input method is received with preset the
The input action information of the input unit of one data format transmitting;By described in the parsing of the analysis program that is preset in the equipment
Input action information, obtains action command;The action command is passed into preset destination application, is completed in the mesh
Mark the input control in application program.
Further, the analysis program also generates the feedback information of the input action information, and with described preset
First data format sends the feedback information to the input unit.
Further, first data format includes data stream format.
Further, first data format includes meeting the data format of serial communication standard.
Further, the analysis program is independently of the destination application.
Further, the analysis program is a part of the destination application.
A kind of input unit, including device noumenon and processor, described device ontology are used to receive the input action of user,
The processor is used to generate the input action information of preset first data format according to the input action of the user.
Further, the processor is also used to parse preset first data format that input unit receives
Feedback information, and control described device ontology and respond the feedback information.
Further, preset first data format includes data stream format.
Further, first data format includes meeting the data format of serial communication standard.
A kind of readable medium is stored with program code on the readable medium, and said program code is performed achievable
Described in any item input methods as above.
A kind of smart machine, including processor and readable medium as described above;The processor for execute it is described can
Read the program code stored on medium.
Compared with the prior art, the advantages of the present invention are as follows:
1, the present invention is by with data stream format or meeting serial communication standard for the input action information of input unit
Data format is sent to intelligent terminal, is directly passed to target after being parsed by the analysis program on intelligent terminal
Application program is responded;For another example it is not instructed in traditional input process by the input that driver receives and parses through input unit,
By the input action of operating system response input unit, application program is the corresponding interface of call operation system to realize at this
Input operation in application program makes so that generating will lead in specific input state because operating system responds input action
It obtains the case where the input in the application program is interrupted, input can not be monopolized by leading to the problem of application program.
2, the present invention is parsed the input action instruction of input unit by the analysis program independently of operating system, therefore,
It does not need to carry out ROOT to intelligent terminal, the original system of intelligent terminal will not be destroyed, the safety of intelligent terminal will not be reduced
With reliability;Meanwhile implementation process of the invention is simple, it is easy to accomplish.
Detailed description of the invention
Fig. 1 is the flow diagram of the specific embodiment of the invention.
Fig. 2 is specific embodiment of the invention input device structure schematic diagram.
Specific embodiment
Below in conjunction with Figure of description and specific preferred embodiment, the invention will be further described, but not therefore and
It limits the scope of the invention.
As shown in Figure 1, the input method of the present embodiment, receives the input unit transmitted with preset first data format
Input action information;The input action information is parsed by the analysis program being preset in the equipment, obtains action command;
The action command is passed into preset destination application, completes the input control on the destination application.?
In the present embodiment, to be illustrated for an input between input equipment and smart machine.Preset first data format
For data stream format, or: meet the data format of serial communication standard.It is, of course, also possible to be other data formats.Input dress
It sets using this specific data lattice, so that intelligent terminal not will recognise that accessed device is input unit, intelligence will not be passed through
The driver of mounted input unit parses the input action information of office input unit in energy terminal.Input dress
It sets by taking keyboard as an example, that is to say, that due to using this specific data format, after keyboard is linked into intelligent terminal, intelligence
Energy terminal not will recognise that accessed device is keyboard.It should be noted that needing to open intelligent terminal using what format
Upper corresponding data-interface, such as uses the data format of serial communication standard, it is necessary to open the serial ports of intelligent terminal.
In the present embodiment, when user by input unit carry out input operation when, as tap keyboard on some key,
Or when moving mouse or clicking the key on mouse, an input action information can be accordingly generated, the input action information is with pre-
If the first data format be delivered to intelligent terminal, due to intelligent terminal do not identify the device be input unit, intelligence
Can the input unit driver of terminal the processing such as will not the input action information be parsed, be responded.It also would not be because defeated
The specific input state for entering device causes operating system to respond and interrupts input to destination application, as mouse be moved to it is aobvious
Show the top at interface and operating system is made to respond state drop-down display system menu, leads to not continue to target application journey
The input of sequence.
It in the present embodiment, will not be to input unit due to the driver nonrecognition input unit of operating system
Input action is responded.Therefore, in the present embodiment, the analysis program being preset in intelligent terminal by one is to the input
Action message is parsed, and is obtained action command, and the action command is passed to destination application, is completed input unit and exist
Input control on the destination application.Destination application is preferably the program run in intelligent terminal front end.As shown in figure 1
Shown, if " A " key of keyboard is pressed, the input action of " A " key pressing is sent to intelligent terminal with data-stream form, and intelligence is eventually
The analysis program at end is parsed, and obtains the instruction of " A " key pressing, and the instruction of " A " key pressing is passed to application program, by
Application program carries out response and executes corresponding actions, such as inputs character " A ", or holds in game (when application program is certain game)
The movement of row " A " key pressing.For the mobile operation of mouse, handling principle is identical.When i.e. mouse is moved, mouse shifting can be generated
Dynamic action message, the action message are sent to intelligent terminal with data-stream form, and the analysis program parsing on intelligent terminal should
Action message, and send destination application to, mouse is moved accordingly on the display interface of destination application.
In the present embodiment, the analysis program also generates the feedback information of the input action information, and with described pre-
If the first data format send the feedback information to the input unit.As shown in fig. 1, as " the Caps of keyboard
When Lock " key is pressed, keyboard can generate the action message of " Caps Lock " key pressing, and the action message is with the lattice of data flow
Formula sends intelligent terminal to, and after the analysis program on intelligent terminal is parsed, analysis program is pressed for " Caps Lock " key is somebody's turn to do
Lower movement generates a feedback information, the i.e. information of the LED status overturning of " Caps Lock " key, the feedback information equally with
Data stream format is sent to input unit, and input unit parses the feedback information, controls the instruction of " Caps Lock " key
Lamp state is overturn, and the indicator light of " Caps Lock " key is lighted or extinguish.
In the present embodiment, analysis program is independently of the destination application.Certainly, analysis program may be described
A part of destination application.By analysis program independently of destination application, it is only necessary to which an analysis program can be right
Multiple target programs realize exclusive input, and versatility is good.It, can be just for target using analysis program as a part of target program
Program needs the input state responded to be parsed, and specific aim is stronger.
The input unit of this implementation column, including device noumenon and processor, described device ontology is for receiving the defeated of user
Enter movement, the input action that the processor is used to generate preset first data format according to the input action of the user is believed
Breath.The processor is also used to parse the feedback information for preset first data format that input unit receives, and controls
Described device ontology processed responds the feedback information.Preset first data format includes data stream format.Or: it is described
First data format includes meeting the data format of serial communication standard.In the present embodiment, input unit can be keyboard, mouse
The input equipments such as mark, have processor on the input equipment, and the input action information package of input unit can be by processor
The information for the first data format that Deng sets.The information of the first data format after packing is sent to reception device (such as intelligent terminal)
Afterwards, reception device is handled according to above-mentioned input method, responds input action information, or further include according to input action
Information generates and returns feedback information.After input unit receives feedback information, dissection process is carried out by processor, and responding should
Feedback information, as according to above-mentioned input method, feedback information is the letter that the LED status of " Caps Lock " key is overturn
Breath, then respond the feedback information, light or extinguish the indicator light of " Caps Lock " key.
The readable medium of the present embodiment is stored with program code on readable medium, and said program code is performed can be real
Now described in any item input methods as above.
The smart machine of the present embodiment, including processor and readable medium as described above;The processor is for executing
The program code stored on the readable medium.
Above-mentioned only presently preferred embodiments of the present invention, is not intended to limit the present invention in any form.Although of the invention
It has been disclosed in a preferred embodiment above, however, it is not intended to limit the invention.Therefore, all without departing from technical solution of the present invention
Content, technical spirit any simple modifications, equivalents, and modifications made to the above embodiment, should all fall according to the present invention
In the range of technical solution of the present invention protection.
Claims (10)
1. a kind of input method, it is characterised in that: the input for receiving the input unit transmitted with preset first data format is dynamic
Make information;The input action information is parsed by the analysis program being preset in the equipment, obtains action command;It will be described
Action command passes to preset destination application, completes the input control on the destination application.
2. input method according to claim 1, it is characterised in that: the analysis program also generates the input action letter
The feedback information of breath, and the input unit to is sent the feedback information with preset first data format.
3. input method according to claim 1 or 2, it is characterised in that: first data format includes data flow lattice
Formula.
4. input method according to claim 3, it is characterised in that: the analysis program is independently of the target application journey
Sequence.
5. input method according to claim 4, it is characterised in that: the analysis program is the destination application
A part.
6. a kind of input unit, it is characterised in that: including device noumenon and processor, described device ontology is for receiving user's
Input action, the processor are used to generate the input action of preset first data format according to the input action of the user
Information.
7. input unit according to claim 6, it is characterised in that: the processor is also used to parse input unit reception
The feedback information of preset first data format arrived, and control described device ontology and respond the feedback information.
8. input unit described according to claim 6 or 7, it is characterised in that: preset first data format includes data
Stream format.
9. a kind of readable medium, program code is stored on the readable medium, it is characterised in that: said program code is performed
When can realize such as input method described in any one of claim 1 to 5.
10. a kind of smart machine, it is characterised in that: including processor and readable medium as claimed in claim 9;The processing
Device is for executing the program code stored on the readable medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810863119.XA CN109144585A (en) | 2018-08-01 | 2018-08-01 | A kind of input method, input unit, readable medium and smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810863119.XA CN109144585A (en) | 2018-08-01 | 2018-08-01 | A kind of input method, input unit, readable medium and smart machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144585A true CN109144585A (en) | 2019-01-04 |
Family
ID=64799494
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810863119.XA Pending CN109144585A (en) | 2018-08-01 | 2018-08-01 | A kind of input method, input unit, readable medium and smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144585A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086227A (en) * | 2018-08-01 | 2018-12-25 | 长沙市极云网络科技有限公司 | A kind of exclusive input method, inputting and transferring equipment, input unit and intelligent terminal |
CN111930646A (en) * | 2020-08-10 | 2020-11-13 | 天津七一二通信广播股份有限公司 | Method for realizing external key extension module of Android embedded equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001142614A (en) * | 1999-11-11 | 2001-05-25 | Nec Shizuoka Ltd | Portable telephone system |
CN201698272U (en) * | 2010-06-30 | 2011-01-05 | 华为终端有限公司 | Mobile terminal external equipment and mobile terminal processing system |
KR20120025151A (en) * | 2010-09-07 | 2012-03-15 | 주식회사 아이리버 | Portable device for comprising additional input apparatus |
CN103049088A (en) * | 2011-10-14 | 2013-04-17 | 信锦企业股份有限公司 | External operating system and method for touch device |
US20140057621A1 (en) * | 2012-08-23 | 2014-02-27 | Samsung Electronics Co., Ltd. | Mobile device connected with external input device and control method thereof |
CN104881120A (en) * | 2015-05-27 | 2015-09-02 | 小米科技有限责任公司 | Method and device for connecting external device |
TW201546662A (en) * | 2014-04-03 | 2015-12-16 | Hon Hai Prec Ind Co Ltd | Electronic device and external keyboard thereof |
CN105786543A (en) * | 2014-12-26 | 2016-07-20 | 北京奇虎科技有限公司 | Interface loading method and device |
CN105988946A (en) * | 2015-02-11 | 2016-10-05 | 同星实业股份有限公司 | Input interface device of mobile device |
-
2018
- 2018-08-01 CN CN201810863119.XA patent/CN109144585A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001142614A (en) * | 1999-11-11 | 2001-05-25 | Nec Shizuoka Ltd | Portable telephone system |
CN201698272U (en) * | 2010-06-30 | 2011-01-05 | 华为终端有限公司 | Mobile terminal external equipment and mobile terminal processing system |
KR20120025151A (en) * | 2010-09-07 | 2012-03-15 | 주식회사 아이리버 | Portable device for comprising additional input apparatus |
CN103049088A (en) * | 2011-10-14 | 2013-04-17 | 信锦企业股份有限公司 | External operating system and method for touch device |
US20140057621A1 (en) * | 2012-08-23 | 2014-02-27 | Samsung Electronics Co., Ltd. | Mobile device connected with external input device and control method thereof |
TW201546662A (en) * | 2014-04-03 | 2015-12-16 | Hon Hai Prec Ind Co Ltd | Electronic device and external keyboard thereof |
CN105786543A (en) * | 2014-12-26 | 2016-07-20 | 北京奇虎科技有限公司 | Interface loading method and device |
CN105988946A (en) * | 2015-02-11 | 2016-10-05 | 同星实业股份有限公司 | Input interface device of mobile device |
CN104881120A (en) * | 2015-05-27 | 2015-09-02 | 小米科技有限责任公司 | Method and device for connecting external device |
Non-Patent Citations (1)
Title |
---|
吴锡修: "《Visual C++2.X MFC Windows程序设计》", 31 August 1996, 西南交通大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086227A (en) * | 2018-08-01 | 2018-12-25 | 长沙市极云网络科技有限公司 | A kind of exclusive input method, inputting and transferring equipment, input unit and intelligent terminal |
CN111930646A (en) * | 2020-08-10 | 2020-11-13 | 天津七一二通信广播股份有限公司 | Method for realizing external key extension module of Android embedded equipment |
CN111930646B (en) * | 2020-08-10 | 2022-12-06 | 天津七一二移动通信有限公司 | Method for realizing external key extension module of Android embedded equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190237003A1 (en) | Display device, electronic device and method of controlling screen display | |
CN104317255A (en) | Internet-of-things-based intelligent household control system | |
CN103973889A (en) | Device and method for using intelligent handheld device as wireless USB HID device | |
CN111045878B (en) | Cross-browser financial self-service terminal hardware calling method based on WebSocket | |
CN102929385A (en) | Method for controlling application program by voice | |
CN109144585A (en) | A kind of input method, input unit, readable medium and smart machine | |
CN109548051A (en) | Wireless data transmission of internet of things method and terminal | |
CN106843808B (en) | A kind of instruction analytic method of compatible different-format type | |
CN104143066A (en) | Security information exchanging device | |
CN204557186U (en) | A kind of control circuit of vacuum component | |
CN204989857U (en) | Remote control device based on pioneer robot | |
CN115794313A (en) | Virtual machine debugging method, system, electronic equipment and storage medium | |
CN208954085U (en) | A kind of inputting and transferring equipment, input unit | |
CN105116884A (en) | Control method of sweeping robot, server and service system | |
CN112235346A (en) | Data communication method and system based on serial port connection | |
CN106991961A (en) | A kind of artificial intelligence LED dot matrix display screens control device and its control method | |
CN107864503A (en) | Connection method, equipment and the computer-readable recording medium of WLAN | |
CN106896956A (en) | The implementation method of multi-point touch under a kind of " road " system | |
CN107562733A (en) | A kind of instant message interpretation method and system and a kind of electronic equipment | |
CN104252309B (en) | A kind of method and system for realizing intelligent terminal Chinese version editor | |
CN206877667U (en) | An artificial intelligence LED dot matrix display control device | |
CN106933122A (en) | Train display intelligent interactive method and system | |
CN109086227A (en) | A kind of exclusive input method, inputting and transferring equipment, input unit and intelligent terminal | |
CN111030904B (en) | Multi-path CAN bus message real-time processing method under multi-level communication | |
CN108965072B (en) | Intelligent gateway external equipment association control method |
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: 20190104 |