Quick input digit method
[technical field]
The present invention relates to a kind of digital input method, relates to a kind of method of using the quick input digit of numeric keypad specifically.
[background technology]
Its numerical key of traditional mobile computer and English key are made with the bifurcation function, whether it is under text button pattern or numerical key pattern, doing judgement with the mark of computer-internal entirely judges with the LED lamp on the keyboard, when the input file of compound text button and numerical key, must be cut into type mode quickly, be cut into figure pattern quickly, very inconvenient.
So there is the people just to add a QWERTY keyboard more again on mobile computer, this problem of deriving again is exactly not portable, and keyboard is too big, has and runs counter to the compact Portability principle of mobile computer.
In view of this someone designs the keypad that has only numerical key again, but the residing pattern of its keyboard is done judgement with the mark of computer-internal entirely and judged no material alteration with the LED lamp on the keyboard with the state striking resemblances on the mobile computer keyboard.
Chinese patent application has disclosed a kind of command switch-over method of key groups for No. 00102878.2, it is a detecting Num lock position status function in keyboard controller, when the activation of Num lock position, can reach input function as long as send the sign indicating number of numerical key, but when the decapacitation of Num lock position (when just Num lockLED goes out), it must send Num lock sign indicating number to computing machine, via system validation again with Num lock position activation, and send order Num lock lamp is lighted, then, again the one key sign indicating number of numerical key is delivered to computing machine, keyboard controller in the keyboard send a Num lock sign indicating number automatically again to computing machine then, via system validation again with Num lock position decapacitation, and send sign indicating number that order extinguishes Num lock lamp to keyboard controller, and keyboard controller is carried out then, and just the LED lamp with Num lock extinguishes, expend long time, reduce execution speed.
For instance: the Num lock position of computing machine is decapacitation at present, just keyboard is under the English mode, this moment, keypad naturally was exactly a cursor function, and to import " 123 ", method with above-mentioned patented technology, keyboard controller must be judged Num lock position earlier, send Num lock sign indicating number to computing machine, via system validation again with Num lock position activation, the LED lamp is lighted and then the key set code of " 1 " is delivered to computing machine on the keyboard, and then send a Num lock sign indicating number to computing machine, via system validation Num lock LED is extinguished.
And then send Num lock sign indicating number to computing machine, again Num lock lamp is lighted via system validation, and then the key set code of numerical key " 2 " delivered to computing machine, and then send a Num lock sign indicating number to computing machine, via system validation Num lock LED is extinguished.
Send Num lock sign indicating number then again again to computing machine, again Num lock lamp is lighted via system validation, and then the key set code of numerical key " 3 " delivered to computing machine, and then send a Num lock sign indicating number to computing machine, via system validation Num lock LED is extinguished, because system must confirm this Numlock position state, and then issue orders and change the state of Num lock LED on the keyboard, cause the Num lock LED flicker on the mobile computer, whole speed becomes very slow, and LED transition between flickering causes the waste of the energy again.
Chinese patent application has disclosed a kind of switching handling method of keyboard instruction input pattern for No. 00103036.1, and No. the 00102878.2nd, its functional method and patented claim are roughly the same, mainly as follows
1. the switching handling method of a keyboard instruction input pattern, this method comprises:
A), either party must keep the requirement of certain state not force Master Keyboard or auxiliary keyboard;
B), the state of Master Keyboard or auxiliary keyboard why, auxiliary keyboard software is used the state flag current state of memory Master Keyboard and auxiliary keyboard earlier;
C), when pressing any key of auxiliary keyboard, auxiliary keyboard software can go to judge whether the state of the Master Keyboard that has the inner flag of auxiliary keyboard identical with the state of auxiliary keyboard, if then directly send keypad code; If not, then can send the number lock sign indicating number and give main frame, it is identical with the state of auxiliary keyboard to allow the Master Keyboard state become, so that receive the keypad code of auxiliary keyboard, then send keypad code and give main frame, and then send the number lock sign indicating number to give main frame, with the state reduction of Master Keyboard, and auxiliary keyboard still maintains original state.
This technical scheme is sent key set code then because of being in transition always, and there are problems such as speed is slow, energy dissipation equally in transition reduction then.
Therefore, prior art is improved, provided a kind of transmission time short, power consumption is few, can significantly lower keyboard and main frame transmission load, and the method for input number keyboard is necessity in fact fast to speed execution speed.
[summary of the invention]
The purpose of this invention is to provide a kind of transmission time short, the transmission load is low, power consumption less, the fast quick input digit method of execution speed.
To achieve these goals, the present invention adopts following technical scheme:
A kind of quick input digit method is provided, and it comprises as follows:
(1) at first carries out key scan and judge that memory has or not and press Num lock key, find to push button, then confirm key position;
(2) after confirming key position, differentiate the Num lock flag state that is arranged at computer-internal;
(3) auxiliary input device is provided with and the synchronous flag state of computing machine Num lock flag state:
A) when computing machine Num lock flag state be activation, when auxiliary input device was synchronous regime, then auxiliary input device was directly sent the corresponding key sign indicating number, so that the computing machine display digit;
B) when computing machine Num lock flag state be decapacitation, when auxiliary input device was synchronous regime, then auxiliary input device was sent the corresponding key sign indicating number, so that the computing machine display highlighting carries out literal input;
Auxiliary input device is provided with and the asynchronous flag state of computing machine Num lock flag state:
C) when computing machine Num lock flag state be activation, when auxiliary input device is asynchronous mode, send the key set code of tool digital function from computer keyboard, auxiliary input device is sent Num lock sign indicating number earlier and is given computing machine, makes to calculate facility cursor input function, then, enter and postpone mechanism, cursor input in postponing, after the delay, servicing unit is sent Num lock sign indicating number makes main frame return digital input state;
D) when computing machine Num lock flag state be decapacitation, when auxiliary input device is asynchronous mode, send the key set code of mere formality word function from computer keyboard, auxiliary input device is sent Num lock sign indicating number earlier and is given computing machine, makes to calculate facility numeral input function, then, enter and postpone mechanism, numeral input in postponing, after the delay, servicing unit is sent Num lock sign indicating number makes main frame return the cursor input state.
The delay mechanism that this wait postpones input is that auxiliary input device if press numerical key again in the certain time interval that postpones, is then directly sent digital key after sending digital key; If do not press numerical key again in the certain time interval that postpones, then auxiliary input device is sent Num lock sign indicating number again and is given computing machine, makes the Num lock flag state of computing machine return to original state.
Step (2)~(3) operation capable of circulation.
The present invention provides a kind of numerical key auxiliary input device that uses above-mentioned quick input digit method again, it comprises computer equipment, this computer equipment comprises keyboard controller and numerical value load module key, and this numerical value load module key is connected with the input-output line of keyboard controller.
This numerical key auxiliary input device can be connected with USB general-purpose interface joint, so that patch on computing machine, can be printed with the above numeral of at least two kinds of functions, symbol on each keycap of this numerical key auxiliary input device, selects to use for the user.
Compared with prior art, the present invention has following beneficial effect:
Quick input digit method of the present invention and device can provide the transmission time short, the transmission load is low, power consumption less, the fast numeral of execution speed keys in.
[description of drawings]
Fig. 1 is the schematic flow sheet of the quick input digit method of the present invention when main frame Num lock is bright;
Fig. 2 is the schematic flow sheet of the quick input digit method of the present invention when main frame Num lock goes out;
Fig. 3 is to use the input equipment synoptic diagram of the quick input digit method of the present invention.
[embodiment]
Please refer to Fig. 1~Fig. 3, a kind of numerical key auxiliary input device, it comprises computer equipment, and this computer equipment comprises keyboard controller and numerical value load module key, and this numerical value load module key is connected with the input-output line of keyboard controller.As shown in Figure 3, the Master Keyboard in the dotted line is the keyboard that mobile computer is used, and it is matched in the housing that a housing maybe can separate with main frame, and the servicing unit of this creation is connected with main frame through transmission line.
This numerical key auxiliary input device can be connected with USB general-purpose interface joint, so that patch on computing machine, can be printed with the above numeral of at least two kinds of functions, symbol on each keycap of this numerical key auxiliary input device, selects to use for the user.
The numerical key auxiliary input device adopts a kind of quick input digit method input number keyboard, and its method is as follows:
The status indication of this servicing unit can be remembered the Num lock status indication of main frame and the sync mark state of present servicing unit, when servicing unit was arranged at asynchronous mode, the key set code of being sent by servicing unit all can make main frame be presented the function of numeral.
When main frame was Num lock activation, the key set code of sending from servicing unit when servicing unit is arranged at synchronous regime did not need to send the key set code of Num lock earlier and then sends the key set code of numeral, just can reach the function of display digit.
When main frame was Num lock decapacitation, the key set code of sending from servicing unit when servicing unit is arranged at synchronous regime was a cursor function.
In the time of main frame Num lock decapacitation, when servicing unit is arranged at asynchronous mode, the key set code of sending from the keyboard of main frame is a literal function, and we from servicing unit send the sign indicating number can send earlier Numlock send then the numeral key set code to main frame, the keyboard controller of servicing unit can be waited for after finishing, wait for the numerical key input whether other is arranged, import then because Num lock this moment is bright as numerical key, so directly send this numeral key, the keyboard controller of servicing unit can be waited for then, goes round and begins again.Arrive when the stand-by period of keyboard controller, but not from the servicing unit input number keyboard, servicing unit can be sent Num lock sign indicating number again and be returned to original state at this moment, just the literal input state.
In the time of main frame Num lock activation, when servicing unit is arranged at asynchronous mode, the key set code of sending from the keyboard of main frame is a digital function, and the sign indicating number that we send from servicing unit can be sent the key set code of NumLock earlier, make that main frame is a literal function, and servicing unit enters cursor function, the key set code of sending numeral then is to main frame, what can show at main frame is cursor function, the keyboard controller of servicing unit can be waited for after finishing, wait for the cursor key input whether other is arranged, import then because Num lock this moment goes out as cursor key, so directly send this cursor key, the keyboard controller of servicing unit can be waited for then, goes round and begins again.Arrive when the stand-by period of keyboard controller, but not from servicing unit input cursor key, servicing unit can be sent Num lock sign indicating number again and be returned to original state, just digital input state at this moment.
Gu the keyboard controller on this numerical value mansion time keyboard has on the creation increased the mechanism of waiting for, make that the NUM LED on the main frame need not be busy with flicker, it is very slow that the speed of whole computer system is become, and has the wisdomization dexterityization, more humane.