Summary of the invention
The technical matters that the present invention will solve is in order to overcome the defective of prior art; Portable terminal and its implementation of a kind of ClearPad of having function are provided; It not only can discern clicking, double-click and dragging of finger, and the length that can also discern finger is by referring to fast moving simultaneously with both hands.
The present invention solves above-mentioned technical matters through following technical proposals: a kind of portable terminal of the ClearPad of having function is characterized in that it comprises: the ClearPaD module, and it is used to detect finger movement; Flash memory, it is used for application storing; Baseband chip, it is used for reading the data of representing finger movement and running application from the ClearPaD module.
Preferably, said ClearPaD module comprises the ClearPad internal register, and the data of finger movement are represented in its storage.
Preferably, the data of said ClearPad internal register comprise: finger coordinate depressed position, finger type, the metric of finger and ClearPad module state of contact and finger displacement.
Preferably, said finger type comprise click, double-click, long by, drag, slide, amplify/type of dwindling.
Preferably, said baseband chip comprises Driver layer judge module, and its data according to the representative finger movement of ClearPad internal register judge whether finger movement is effective.
Preferably, said portable terminal is mobile phone, Personal Handyphone System or palm PC.
Preferably, said portable terminal adopts client/server communication protocol.
Another technical scheme of the present invention is the implementation method that a kind of portable terminal of the ClearPad of having function is provided, and it is characterized in that it may further comprise the steps:
When S1, finger touch ClearPad module, the ClearPad module is notified Driver layer judge module, reads the data of ClearPad internal register after Driver layer judge module is notified;
S2, Driver layer judge module read the data of representing finger movement according to step S1 and judge whether finger movement is effective, if finger movement is invalid, then forward step S1 to;
S3, message of transmission are given server, and server receives that this forwards is to an application layer;
S4, application layer are received after the message, call corresponding application and carry out corresponding function;
Repeating step S1-S4 is up to end.
Preferably, said step S1 comprises:
Create server when S11, mobile terminal-opening, and be registered to server to the finger kind of message;
S12, Driver layer judge module are received in the finger touch and are had no progeny, and read the valid data of representing finger movement, contacting points position and contact condition, and must read continuously.
Preferably, said step S2 comprises:
S21, whether judge finger movement at hand-written editing interface, if at hand-written editing interface, all message all is invalid action;
Whether S22, judgement finger lift, and promptly whether contact condition is zero, and the prerequisite of the completion of any action is that finger leaves the ClearPad module.
Positive progressive effect of the present invention is: the present invention can both can click certain icon as the mouse-based operation computer, also can double-click or drag chart etc., and portable terminal uses very flexible.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to specify technical scheme of the present invention.
(it is a kind of touch screen technology of ultra-thin, high-accuracy to ClearPad function used in the present invention; Can be attached to existing common liquid crystals screen go up to realize touching control) not only can discern clicking, double-click and dragging of finger, the length that can also discern finger is by referring to simultaneously fast moving (both hands refer to fast near with deviate from fast) with both hands.For example, when mobile phone is play at MP3, as long as finger one is slided at broadcast interface gently to the left or to the right; Just can realize F.F. or rewind down, when e-text was read, one is sliding up or down; Just can change to page up or next nextpage; When Album for glancing over pictures picture or GPS (Global Positioning System, GPS) navigation, two fingers (such as forefinger and thumb) can be realized the picture amplification or dwindle etc. once sliding (do near or away from action) in the above simultaneously.Above-mentioned functions realizes comprising three parts: 1) Driver layer (also claiming bottom) judge module reads the data of ClearPad internal register, through these data, judges and has made what gesture; 2) application layer (also deserving to be called layer) realizes the fast forwarding and fast rewinding of MP3 or the functions such as page turning of e-text; 3) communications protocol layers (also crying the middle layer) sends to the upper strata to the gesture data of bottom in some way.How to set up this communication protocol and could realize above-mentioned functions? Is it more stable that which type of communication protocol uses ClearPad? The present invention adopts client/server (Client/Service) communication protocol; Use this communication protocol can on portable terminal, use the ClearPad function easily; The present invention both increased not quite the load of system, and it is more stable again to communicate by letter.
As shown in Figure 1, portable terminal of the present invention comprises ClearPaD module, LCD (liquid crystal display, LCD), BB IC (BaseBand Integrated Circuit, baseband chip), FLASH (flash memory).Wherein, this ClearPaD module is used to detect finger movement; This BB IC is used for reading the data of representing finger movement and running application from the ClearPaD module; This FLASH is used for application storing.The ClearPaD module is selected the TM617 pattern group of Synaptics company for use in the present embodiment, and BB IC selects the SC6600H chip for use, and FLASH selects TV00570002AGDB type flash memory for use, and LCD selects the 1P2245 module of the sharp company of letter for use.The ClearPaD module comprises the ClearPad internal register, and the data of finger movement are represented in this internal register storage, and the data owner of this internal register will comprise: 1) finger coordinate X, Y depressed position; 2) finger type, it comprise click CP_CLICK, double-click CP_2CLICK, long by CP_PRESS, drag type such as CP_SLIDE, slip CP_FLICK, amplification/dwindle ZOOM; 3) finger and ClearPad module state of contact SENSOR_STATUS (contacting is 1, and noncontact is 0); 4) the metric Delta_S of finger (one or two) displacement; BB IC comprises Driver layer judge module, and this Driver layer judge module judges according to the data of the representative finger movement of ClearPad internal register whether finger movement is effective.
As shown in Figure 2, give a concrete illustration below, promptly pointing slides on the ClearPaD module realizes the implementation method of this explanation of tangent screen:
When A. finger (one or more) touched the ClearPad module, the ClearPad module was notified Driver layer judge module, read the data of ClearPad internal register after Driver layer judge module is notified immediately;
B.Driver layer judge module reads the data of representing finger movement according to steps A and judges whether finger movement is effective, if finger movement invalid (not being above-mentioned arbitrary finger) then forwards steps A to;
C. send a message (message) and give Sevice (server), Sevice receives that this forwards is to application layer (also deserving to be called layer);
D. application layer is received after the message, calls corresponding application and carries out corresponding function;
Repeat the A-D step, up to end.
As shown in Figure 3, be implemented in the method for using ClearPad identification finger movement on the mobile phone through above-mentioned hardware and comprise following several steps:
1. behind the mobile phone power-on, one hand refers on the touch pad of TM617, slide, and finger contact touch pad can trigger an external interrupt signal and give the SC6600H chip, after Driver layer judge module received this look-at-me, reads the data of TM617 internal register immediately;
2.Driver layer judge module handled the data that step 1 reads the TM617 internal register, draws valid data, judges finger movement, as points invalid (not being above-mentioned arbitrary finger), then forwards step 1 to;
3. the result according to step 2 constructs message CP_MSG_PTR content, and this message content comprises position coordinates X and the Y (present embodiment forces to be provided with X=Y=0) and the finger moving displacement Delta_S (present embodiment forces to be provided with Delta_S=0) of type of message (being exactly the CP_FLICK that slides in the present embodiment), finger and touch pad contact point;
4. send message CP_MSG_PTR and give CP_SERVICE, CP_SERVICE receives that this forwards is to application layer (also deserving to be called layer);
5. application layer is received after the message CP_MSG_PTR, and judgement is the finger sliding action, calls corresponding application according to the characteristic of current window then and carries out corresponding function.For example, current window is a text reading, and finger slides from top to bottom gently, will switch to next read page.
Repeat the 1-5 step, up to end.
Said step 1 further comprises:
1.1. create the CP_SERVICE server during mobile phone power-on, and be registered to the CP_SERVICE server to CP_CLICK, CP_2CLICK, CP_PRESS, CP_SLIDE, CP_FLICK and ZOOM message;
1.2.Driver a layer judge module receive in the finger touch and have no progeny, only read TM617 represent finger movement, contacting points position and contact condition etc. several in should using effective register data, and must read continuously;
Said step 2 further comprises:
2.1. whether judge finger movement at hand-written editing interface, if at hand-written editing interface (such as editing short message), all message such as CP_CLICK, CP_2CLICK, CP_PRESS, CP_SLIDE, CP_FLICK and ZOOM all are invalid actions;
Whether lift 2.2. judge finger, promptly whether contact condition SENSOR_STATUS is 0, the prerequisite of the completion of any action must be that finger leaves touch pad (ClearPad module).
In sum, this portable terminal can be mobile phone, Personal Handyphone System or palm PC (PDA) etc.
Though more than described embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, under the prerequisite that does not deviate from principle of the present invention and essence, can make numerous variations or modification to these embodiments.Therefore, protection scope of the present invention is limited appended claims.