The objective of the invention is to propose the method and system of a kind of portable terminal original handwriting input and transmitting-receiving, make the system that reaches this method of realization in this way that the input speed of portable terminal is improved greatly, and can give full play to the personalization of input, make the input of mobile phone no longer be subjected to receive the restriction of character set simultaneously.
The method of a kind of portable terminal original handwriting input and transmitting-receiving, the method for transmission comprises following steps:
(1) input handwriting;
(2) signal of input is sampled, and convert the data of particular frame format to;
(3) carry out level conversion: converting the level signal of particular frame format data to portable terminal can connect
The level signal of receiving;
(4) carry out Data Format Transform: the number that becomes portable terminal to discern the particular frame format data transaction
According to form;
(5) data are compressed;
(6) show the handwriting of importing;
(7) after input is all finished video data is encoded;
(8) information after will encoding sends with the form of short message.
The method that receives may further comprise the steps:
(1) receives short message;
(2) short message is decoded;
(3) show decoded data.
Decode procedure in the described method of reseptance is the inverse process of the cataloged procedure in the sending method.
Step in the described sending method (3) can be 1: 1 a level conversion.
After carrying out Data Format Transform, before the compressing data, can also preserve, edit and revise data.
After the short message that receives is finished decoding, when showing, can also preserve, edit and revise decoded data.
The data compression method that adopts in the step of described sending method (5) is that lattice compression is become vector.
The step of described sending method (7) adopts the mode that special string is set in the data field to represent to contain the short message of original handwriting when coding.
The step of described sending method (7) adopts following manner to encode:
(1) in the beginning of character, with a byte representation data type;
(2) for the character of default alphabet character set, with a byte representation character data;
(3) for the character that belongs to the UCS2 character set, with two byte statement character datas;
(4) for other character, with the length of two byte representation characters, the back is the padding data again.
Finish once coding with described coding method after, carry out secondary coding, the data flow secondary coding behind the coding is once become the data format of default alphabet, send with the form of short message.
Realize a kind of portable terminal original handwriting input of said method and the system of transmitting-receiving, comprise handwriting input module 201, interface module 202, interface communication module 203, compression module 204, display module 205, coding module 206, decoder module 207 and sending and receiving short messages module 208; Convert the digital information of particular frame format after the hand-written signal sampling of described handwriting input module 201 with input to; Interface module 202 is passed to interface communication module 203 after converting the digital information of these particular frame format to level signal that portable terminal can receive; Interface communication module 203 converts the level signal that receives to portable terminal can the recognition data form, then is sent to compression module 204; Compression module 204 is for need compressing data of showing and transmit; Delivering to display module 205 after the compression shows; Display module 205 is delivered to coding module 206 with data and is encoded after whole inputs are finished; Delivering to sending and receiving short messages module 208 at last sends as short message; After sending and receiving short messages module 208 receives short message, deliver to decoder module 207 earlier and decode, deliver to display module 205 after decoding is finished and show.
Described system also has an expansion module 209 between interface communication module 203 and compression module 204; Processing such as 209 pairs of original handwritings of expansion module are preserved, edited, modification; The short message that receives send display module 205 to show after through decoding, is sent to expansion module 209 simultaneously and handles.
The power supply of handwriting input module 201 is provided by interface module 202.
Can adopt wired mode to be connected between described interface module 202 and the interface communication module 203, also can adopt wireless mode to connect.The wireless connections mode can adopt infrared connection.
The present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 is the flow chart of sending method of the present invention.As shown in Figure 1, at first import handwriting, then the signal of input is sampled, and convert the data of particular frame format to, this two step is finished by handwriting input module 201; The 3rd stepping line level conversion converts the level signal of particular frame format data to level signal that portable terminal can receive, is finished by interface module 202; The conversion of the 4th stepping line data form becomes the portable terminal can the recognition data form particular frame format data transaction, is finished by interface communication module 203; Next carried out for the 5th step, compress, send display module 205 to show after the compression by compression module 204; In the 7th step, after confirming that input is all finished, encode by coding module 206; In the 8th step, the information after will encoding is at last delivered to sending and receiving short messages module 208 and is sent with the form of short message.This wherein, can be between the 4th step and the 5th step to hand-written character edit, preserve, processing such as modification, this step is finished by expansion module 209.The method of reception of the present invention is simple relatively: receive short message, short message is decoded, show decoded data.After the short message that receives is finished decoding, when showing, can also preserve, edit and revise decoded data.This part work is also finished by expansion module 209.The decode procedure here is the inverse process of the cataloged procedure in the sending method.
Fig. 2 is a system construction drawing of the present invention, as shown in Figure 2, system of the present invention comprises handwriting input module 201, interface module 202, interface communication module 203, compression module 204, display module 205, coding module 206, decoder module 207 and sending and receiving short messages module 208.Handwriting input module 201 mainly is the sampling that is used to finish handwriting tracks, and carries out corresponding A/D and change, will convert the data with particular frame format again to through the digital information after the A/D conversion.Fig. 3 has represented a kind of data structure with particular frame format.As shown in Figure 3: MSB is a highest significant position, LSB is a least significant bit, each frame data comprises 6 bytes, first of each byte all by assignment, X0~X13 in each frame data represents the X-axis coordinate of input point, is total to 14bit, and Y0~Y13 represents the coordinate of the Y-axis of input point, also be 14bit, can determine the particular location of an input point by two axial coordinates.P0~P7 is a force value, and its scope from 0 to 255 when force value during less than certain particular value, thinks that pen and handwriting input device really do not contact, and it is invalid that this is put.Handwriting input module 201 can be a touch-screen, also can adopt external equipment---writing input board, as the MGLogic JX-0605 of E-PAD company, the Smart Palm handwriting pad of YTG company etc., this all has been ripe prior art, and this paper will no longer be described in further detail.
The trace information that interface module 202 is responsible for handwriting input module 201 is transmitted converts the level signal that portable terminal can receive to, just carries out level conversion.The reason of carrying out level conversion is that the external interface of each portable terminal has nothing in common with each other, even the external interface of the portable terminal of the different model of same producer also has nothing in common with each other, and the external interface of handwriting input device is not unified yet, just need a level conversion process in the middle of this, generally speaking, the external interface of existing circumscribed handwriting input device is standard RS one a 232C mouth, and portable terminal generally is that the RS-232C interface is not provided, therefore, interface module 202 just need obtain the level exported on the RS-232C mouth, and carry out level conversion according to the requirement of concrete portable terminal, to obtain the signal that portable terminal can correctly receive.General interface module 202 does not make an explanation to the content of data, only is transparent transmission, but can add the interpretation process to the data content under concrete environment in interface module 202 yet.The implementation of interface module 202 is diversified, if adopt touch-screen as handwriting input device, then can just do 1: 1 level conversion, and the interface module 202 of this moment can be several holding wires or simple connection device physically.Interface module 202 can adopt wired mode with being connected of interface communication module 203, also can adopt the mode of wireless connections, as infrared connection.
The function of interface communication module 203 is to finish with interface module 202 to communicate by letter, and by certain agreement the data that receive is made an explanation, and just the Data Format Transform that receives is become the portable terminal can the recognition data form, to obtain the tracing point of original handwriting.General interface communication module 203 at first will be finished the setting of docking port, so that can correctly communicate with handwriting input device, receives correct data flow.As for the agreement that data stream is explained, different and different according to the handwriting input device that adopts, usually handwriting input device oneself defines a kind of data of frame format, and different portable terminals also all has the specific data format that oneself defines, between these two kinds of forms, must change, so that portable terminal can correctly recognize the information of handwriting tracks by interface communication module 203.General handwriting input device is that unit handles with the point, and the frame format of each point only is provided.And native system with character as a handwriting input unit, therefore need additionally to judge whether the user has imported a character, its implementation has multiple, mainly contain two classes: the one, judge according to the coordinate of point, when it meets certain requirements, think that the input of character finishes, drop in the particular range as coordinate.The 2nd, judge according to the time of pausing, when the user does not import within a certain period of time, think that last character input finishes.
After the user imported a character, we just can obtain a series of dot information, thereby obtained the dot matrix of this character.Because the precision of general hand-written equipment can be high more a lot of than the precision of mobile phone, a lot of data useful on hand-written equipment can be redundant data on mobile phone.For the reasonable use resource, improve the utilance of data, we need compress with 204 pairs of lattice informations that obtain of compression module, to adapt to the needs that show and send.The method of compression is diversified, the method that the present invention recommends is that lattice information is compressed into Vector Message, can easily character be amplified and dwindle like this, the patented technology that a kind of vector/lattice compression conversion is arranged in the prior art, a large amount of redundant datas be can delete, demonstration and transmission are beneficial to more.
The major function of display module 205 is that the data that will obtain show on portable terminal.Both can show single hand-written character, also can be with hand-written character and standard character mixed display, common way is to show in real time in input.This is the part that portable terminal itself comprises, and belongs to prior art, repeats no more.
When input is finished, when confirming to send, coding module 206 will carry out the short message coding to the information (comprising the compressed information of hand-written character and the coding of standard character) of whole input.In order to distinguish common short message and the short message that includes hand-written character, can when coding, adopt the mode that special string is set in the data field to represent to contain the short message of original handwriting.As use character string " handwriting " to come mark to include the short message of written character.Fig. 4 has proposed a kind of short message data to be carried out Methods for Coding, can distinguish data of different types, can correct interpretation comprise the short message of hand-written character to guarantee to receive, and obtain the information of these hand-written characters simultaneously, with correct these hand-written characters are shown of energy.Concrete method is: in the beginning of character, with a byte representation data type; For the character of default alphabet character set, with a byte representation character data; For the character that belongs to the UCS2 character set, with two byte statement character datas; For other character, with the length of two byte representation characters, the back is the padding data again.In addition, in order to be distinguished with common short message, also can be according to the specification protocol GSM 03.40 of GSM about short message, with the TP-UDHI position in the short message head is 1, and in TP-UD, defined a new data head, be used for discerning short message and whether comprised hand-written character, and whether serial connection is arranged.In fact, the coded system that Fig. 4 proposes has great autgmentability, owing to adopt a byte to identify as data type in new data head, therefore can tell 256 kinds of data types altogether, is enough to satisfy general user's requirement.
In order to guarantee the correct transmission of data, also can carry out secondary coding sometimes, because gsm protocol is not strictly observed by some short message service center in the reality to short message.Concrete method is that TP-DCS (among GSM03.40 and the GSM03 38 definition) is set to default alphabet, will finish once the data that data flow secondary coding behind the coding becomes default alphabet form with said method.Correspondingly, when decoding, also need to carry out the secondary decode procedure.
After coding is finished, delivering to sending and receiving short messages module 208 according to the mode of common short message sends, be sent to short message service center, short message service center can send to these information another portable terminal among the mobile network, also can be sent to certain address on the Internet internet to these information.
After sending and receiving short messages module 208 receives short message, deliver to decoder module 207 earlier and decode.The decode procedure of decoder module 207 is inverse process of the cataloged procedure of coding module 206, so just can restore correct data message.Can send display module 205 to show after decoding is finished, can also deliver to expansion module 209 and carry out other processing.Expansion module 209 mainly provides the processing again to hand-written character, as editor, preservation, modification etc., can also carry out information interchange with other media (as PC), and this is an optional module.
Below introduced technical scheme of the present invention in detail particularly, by above narration as seen, the system that adopts the present invention to propose: (1) can improve user's input speed effectively, because domestic consumer can easily finish input relevant in the mobile phone with the stroke input method of being accustomed to most, this seems particularly important concerning the countries and regions of using Chinese characters, large character set, can improve the using value of portable terminal greatly.(2) the compatible restriction of NULI character collection.Not only can transmit literal, can also finish the transmission of out of Memory such as picture easily, it is convenient and quick to make people pass through the interchange of portable terminal.(3) more personalized fully satisfies user's performance of individual character in use.On the other hand, owing to realized the transmission of original handwriting, make the present invention in the field of ecommerce, wireless business, have boundless application prospect.