Summary of the invention
The main object of the present invention is to provide a kind of information processing based on double-tone multi-frequency coding matrixMethod and information processing system, the technical problem received and sent messages exactly with solution.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: provide a kind of baseIn the information processing method of double-tone multi-frequency coding matrix, double-tone multi-frequency coding matrix includes G codeWord, information processing method includes coding step and decoding step, and coding step includes: obtain userThe character of input, wherein, character is the element in predefined character matrix, character matrixThe sum of row and the sum of row are respectively less than or equal to G;Resolve character line number in character matrix andColumns, searches the second code word that the first code word corresponding to columns is corresponding with line number in G code word;First code word and the second code word are carried out double-tone multi-frequency coding, generates coding signal;Send coding letterNumber, decoding step includes: received encoded signal;Coding signal is carried out dual-tone multifrequency decoding, rawBecome the first code word in G code word and the second code word;Using the first code word as columns, by second codeWord, as line number, finds character according to columns and line number in character matrix;By display screen orSpeaker shows character, it is not necessary to user listens to the information of sender's oral account, facilitates user to obtain information;
Wherein, described character is inputted by sound identification module, and its implementation is: first obtain useThe voice messaging at family, recalls the most integrated speech recognition algorithm, uses speech recognition algorithm to knowThe most described voice messaging, is converted into corresponding character by described voice messaging.
Wherein, double-tone multi-frequency coding matrix also includes initial code word and terminates code word, G code wordIt it is 0~90 code word.
Wherein, the first code word and the second code word are carried out double-tone multi-frequency coding, generate coding signalStep is particularly as follows: be arranged in order initial code word, the first code word, the second code word and terminate code word, rightInitial code word, the first code word, the second code word and the code word that terminates carry out double-tone multi-frequency coding, and generation is compiledCode signal.
Wherein, coding signal is carried out dual-tone multifrequency decoding, generates the first code word in G code wordWith the step of the second code word particularly as follows: coding signal is carried out dual-tone multifrequency decoding, sequentially generateBeginning code word, the first code word, the second code word and end code word.
Wherein, using the first code word as columns, using the second code word as line number, according to columns and rowBefore number finds the step of character in character matrix, also include: from initial code word and end codeThe first code word and the second code word is extracted between word.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide oneInformation processing system based on double-tone multi-frequency coding matrix, double-tone multi-frequency coding matrix includes G codeWord, information processing system includes sending terminal and receiving terminal, sends terminal and include: input module,Input module is for obtaining the character of user's input, and wherein, character is predefined character matrixIn element, the sum of the row of character matrix and the sum of row are respectively less than or equal to G;Wherein, instituteStating character to be inputted by sound identification module, its implementation is: first obtain the voice messaging of user,Recall the most integrated speech recognition algorithm, use voice letter described in speech recognition algorithm identificationBreath, is converted into corresponding character by described voice messaging;Character is shown by display screen or speaker,Listen to the information of sender's oral account without user, facilitate user to obtain information;Parsing module, resolvesModule, for resolving character line number in character matrix and columns, searches columns in G code wordThe second code word that the first corresponding code word is corresponding with line number;Coding module, coding module is for theOne code word and the second code word carry out double-tone multi-frequency coding, generate coding signal;Sending module, sendsModule is for receiving terminal transmission coding signal.Reception terminal includes: receiver module, receives mouldBlock is used for received encoded signal;Decoder module, decoder module is many for coding signal is carried out double-toneFrequency decoding, generates the first code word in G code word and the second code word;Search module, search moduleFor using the first code word as columns, using the second code word as line number, according to columns and line number at wordSymbol matrix finds character.
Wherein, double-tone multi-frequency coding matrix also includes initial code word and terminates code word, G code wordIt it is 0~90 code word.
Wherein, coding module is specifically for being arranged in order initial code word, the first code word, the second code wordWith end code word, initial code word, the first code word, the second code word and end code word are carried out double-tone manyFrequency coding, generates coding signal.
Wherein, decoder module, specifically for coding signal is carried out dual-tone multifrequency decoding, sequentially generatesInitial code word, the first code word, the second code word and end code word.
Wherein, search module be additionally operable to from initial code word and terminate to extract the first code word between code wordWith the second code word.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention based on double-toneThe information processing method of multifrequency coding matrix and information processing system are by double-tone multi-frequency coding matrixCarry out code character and decoding obtain character, it is possible to receive and send messages exactly, do not have mistake,Abundant Consumer's Experience.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present inventionIt is clearly and completely described, it is clear that described embodiment is only that the part of the present invention is realExecute example rather than whole embodiments.Based on the embodiment in the present invention, ordinary skillAll other embodiments that personnel are obtained under not making creative work premise, broadly fall into thisThe scope of invention protection.
Referring to Fig. 1, Fig. 1 is present invention information processing method based on double-tone multi-frequency coding matrixThe schematic flow sheet of embodiment, the flow process of information processing method comprises the following steps:
Step S11: obtaining the character of user's input, wherein, character is predefined character squareElement in Zhen, the sum of the row of character matrix and the sum of row are respectively less than or equal to G.
Wherein, character matrix is predefined, and the character in character matrix is arranged according to particular orderRow.The sum of the row of character matrix and the sum of row are within G, then the size of character matrix isI thinks 1 × 1, and maximum can be G × G.In the present embodiment, G code word is 0~90Individual code word, then the size of character matrix is 10 × 10 to the maximum, has 100 elements.Generally useThe character that family uses comprises 26 English alphabets and some special symbols, even some Chinese characters,100 elements, for these characters, are enough.
In the present embodiment, character is inputted by physical button or virtual key.Implement at otherIn example, character inputs also by sound identification module, and its implementation is: first obtain userVoice messaging, recalls the most integrated speech recognition algorithm, uses speech recognition algorithm identification languageMessage ceases, and voice messaging is converted into corresponding character.
Step S12: resolve character line number in character matrix and columns, look in G code wordThe second code word that the first code word of looking for columns corresponding is corresponding with line number.
Wherein, when G code word is 0~90 code word, owing to the size of character matrix is less than10 × 10, and double-tone multi-frequency coding matrix includes 0~90 code word, the most each character is correspondingLine number and columns less than 10, then after user inputs character, the line number parsed and columnsThe code word that can find correspondence in 0~90 code word represents.In other words, 0~9In ten code words, arbitrarily two code words of selection just can be with a character in location character matrix.
Dual-tone multifrequency (DTMF, dual-tone multifrequency) is a kind of signaling method, againBeing called double-tone multi-frequency coding, be made up of high frequency group and low frequency group, high frequency group comprises 4 high-frequency signals,Low frequency group comprises 4 low frequency signals, a high-frequency signal and a low frequency signal superposition and forms oneComposite signal, represents a code word.Touch-tone signal has 16 code words, and conventional code word has0~9, * and #, remaining 4 vacant setting, the most as shown in table 1.
Table 1 double-tone multi-frequency coding matrix
Step S13: the first code word and the second code word carry out double-tone multi-frequency coding, generates coding letterNumber.
Wherein, after determining the first code word and the second code word, according in double-tone multi-frequency coding matrixCode word sorts, to the first code word and the second code word respectively with high-frequency signal and low frequency signal superposition tableShow, carry out double-tone multi-frequency coding.Ultimately produce coding signal, i.e. string number, the most every 7Numeral represents a code word.
In the present embodiment, double-tone multi-frequency coding matrix is in addition to including 0~90 code word, alsoIncluding initial code word and end code word, initial code word can be selected the one in * or #, terminate code wordSelect the another kind in * or #.Now, step S13 particularly as follows: be arranged in order initial code word,One code word, the second code word and end code word, to initial code word, the first code word, the second code word and knotBundle code word carries out double-tone multi-frequency coding, generates coding signal.Initial code word table shows letter to be sentThe beginning of breath content, end code word table shows the end of information content to be sent, it is simple to receives and compilesOne side of code signal processes.
Step S14: send coding signal.
Wherein, coding signal can send by the way of wirelessly or non-wirelessly.
Step S21: received encoded signal.
Wherein, coding signal can receive by the way of wirelessly or non-wirelessly.
Step S22: coding signal is carried out dual-tone multifrequency decoding, generates first in G code wordCode word and described second code word.
Wherein, after getting coding signal, obtaining is string number, and every 7 numerals are high frequency letterNumber add low frequency signal, according to the rule of double-tone multi-frequency coding matrix, this string number is carried out double-toneMultifrequency decodes, and every 7 numerals correspond to a code word, all can be from double-tone multi-frequency coding matrix bagInclude in 0~90 code word and find, thus obtain the first code word and the second code word.
Step S23: using the first code word as columns, using the second code word as line number, according to columnsIn character matrix, character is found with line number.
Wherein, the first code word is as columns, and the second code word is as line number.Certainly, the first code word canUsing as line number, the second code word as columns, but, the first code word and the second code word respectively representImplication needs consistent with arranging of sender.Otherwise can decode mess code.Here, character matrix withThe character matrix of sender is consistent.
In the present embodiment, double-tone multi-frequency coding matrix also includes initial code word and terminates code word.StepRapid S22 particularly as follows: coding signal is carried out dual-tone multifrequency decoding, sequentially generate initial code word, theOne code word, the second code word and end code word.So step S23 also includes: from initial code word and knotThe first code word and the second code word is extracted between bundle code word.Due to decoding after generate initial code word,First code word, the second code word and end code word, according to initial code word and end code word it is known that be somebody's turn to doCoding signal is the signal required for user, therefore, extracts between initial code word and end code wordGo out the first code word and the second code word.
After step S23, the method for sending information of the present embodiment further comprises the steps of: displaying character.Specifically, character can be shown by display screen or speaker, facilitate user to obtain information.
On the one hand the information processing method based on double-tone multi-frequency coding matrix of the embodiment of the present invention makesWhen user sends information, input content, it is not necessary to oral account, and the content of user's input is through doubleSound multifrequency coding, can send exactly, will not produce mistake.On the other hand from coding signalDecode the information required for user, it is not necessary to user listens to the information of sender's oral account, it is to avoid produceObscure.
In order to describe the information processing method of the present embodiment in detail, the invention provides one and specifically applyExample.One character matrix of this application example definition, as shown in table 2.
Table 2 character matrix
| A | E | I | M | Q | U | Y | , |
| B | F | J | N | R | V | Z | . |
| C | G | K | O | S | W | * | @ |
| D | H | L | P | T | X | # | _ |
The size of this character matrix is 4 × 8, i.e. 8 row 4 row.Double-tone in character matrix and table 1Multifrequency coding matrix can be mapped, and in character matrix, line number and the columns of each element are equalCan represent by 0~90 code word.
During coding, if user inputs character " B ", then resolve character " B " in character matrixColumns and line number, obtaining line number is 2, and columns is 1.And line number is at double-tone multi-frequency coding matrixMiddle corresponding code word is just 2, and columns corresponding code word in double-tone multi-frequency coding matrix is just 1.FinallyBe arranged in order initial code word (herein selecting *), code that code word (1) that columns is corresponding, line number are correspondingWord (2) and terminate code word (selecting #) herein, to *, 1,2, # carry out double-tone multi-frequency coding,Obtain encoding signal " 1209941120969713366971477941 ", complete coding.Wherein,Every 7 numerals are the superposition of high-frequency signal and low frequency signal, correspond to a code word.This application is realPutting in order of each character of character matrix in example can arbitrarily be arranged, however it is not limited to a certain fixing suitableSequence.
When coding, initial code word and the invariant position of end code word, but the code word that line number is correspondingThe code word corresponding with columns can encode with exchange position.Concrete condition is determined according to actual needsFixed.
During decoding, receive coding signal " 1209941120969713366971477941 ", with 7Individual numeral is interval, successively to " 1209941 ", " 1209697 ", " 1336697 ", " 1477941 ",It is decoded according to the corresponding relation in table 1, then sequentially generates " * ", " 1 ", " 2 ", " # ",Extract " 1 " between " * " and " # " again, " 2 ", just obtain required code word.FinallyAccording to the first row of " 1 " location character matrix, according to second row of " 2 " location character matrix,Thus find character " B ", complete decoding.
It should be noted that, this concrete application example is equal due to the first row and the first row of character matrixCorresponding with code word " 1 ", therefore code word " 0 " does not use, but, those skilled in the art are permissibleThe row and column of character matrix is all represented with code word " 0 " beginning.
Referring to Fig. 2, Fig. 2 is present invention information coding method based on double-tone multi-frequency coding matrixThe schematic flow sheet of embodiment.Double-tone multi-frequency coding matrix comprises G code word, information coding methodComprise the steps:
Step S31: obtaining the character of user's input, wherein, character is predefined character squareElement in Zhen, the sum of the row of character matrix and the sum of row are respectively less than or equal to G.
Step S32: resolve character line number in character matrix and columns, look in G code wordThe second code word that the first code word of looking for columns corresponding is corresponding with line number.
Step S33: the first code word and the second code word carry out double-tone multi-frequency coding, generates coding letterNumber.
Step S34: send coding signal.
Step S31 of the present embodiment information coding method, step S32, step S33, step S34There is step S11 with previous embodiment information processing method, step S12, step S13, stepThe technical characteristic that S14 is identical, here is omitted.
Referring to Fig. 3, Fig. 3 is present invention information decoding method based on double-tone multi-frequency coding matrixThe schematic flow sheet of embodiment.Double-tone multi-frequency coding matrix comprises G code word, information decoding methodComprise the steps:
Step S41: received encoded signal.
Step S42: coding signal is carried out dual-tone multifrequency decoding, generates first in G code wordCode word and described second code word.
Step S43: using the first code word as columns, using the second code word as line number, according to columnsIn character matrix, character is found with line number.
Step S41 of the present embodiment information decoding method, step S42, step S43 have with frontState step S21 of embodiment information processing method, technology that step S22, step S23 are identical specialLevying, here is omitted.
Referring to Fig. 4, Fig. 4 is present invention information processing system based on double-tone multi-frequency coding matrixThe structural representation of embodiment.Information processing system includes sending terminal 1 and receiving terminal 2, sends outEnd 1 of making arrangements for his funeral includes input module 11, parsing module 12, coding module 13 and sending module 13.Receive terminal 2 include receiver module 21, decoder module 22 and search module 23.The present embodimentSend terminal 1 and reception terminal 2 is the equipment such as mobile phone or telephone set.Wherein, double-tone multi-frequency codingMatrix includes G code word.
Input module 11 is for obtaining the character of user's input.Wherein, character is predefined wordElement in symbol matrix, the sum of the row of character matrix and the sum of row are respectively less than or equal to G.
Same, G the code word of the present embodiment is 0~90 code word.The size of character matrix is notMore than 10 × 10 so that double-tone multi-frequency coding matrix and character matrix can be mutually corresponding.In this realityExecuting in example, input module 11 is physical keyboard or dummy keyboard.In other embodiments, inputModule 11 is sound identification module.It should be noted that no matter input module 11 is physical keyboardOr dummy keyboard, character matrix shall not be interpreted as.Although on physical keyboard or dummy keyboardThe character that button is included is identical with the character comprised in character matrix, but physical keyboard or dummy keyboardThe order of each character is not join to the order of the button of each character of upper correspondence with character matrixSystem, say, that no matter suitable to the button of each character corresponding on physical keyboard or dummy keyboardHow sequence arranges, and is only used for obtaining the character that user is typed.
Parsing module 12 is for resolving character line number in character matrix and columns, at G codeWord is searched the second code word that the first code word corresponding to columns is corresponding with line number.
Coding module 13, for the first code word and the second code word are carried out double-tone multi-frequency coding, generatesCoding signal.
After input module 11 gets character, parsing module 12 search in character matrix with this wordAccord with identical character.After finding identical character, parse this character in character matrixLine number and columns, then from 0~90 code word of double-tone multi-frequency coding matrix, search corresponding columnsFirst code word and the second code word of corresponding line number, carrying out double-tone multi-frequency coding to each code word.
In the present embodiment, double-tone multi-frequency coding matrix also includes initial code word and terminates code word, compilesCode module 13 is specifically for being arranged in order initial code word, the first code word, the second code word and end codeWord, carries out double-tone multi-frequency coding to initial code word, the first code word, the second code word and end code word,Generate coding signal.Wherein, the order of the first code word and the second code word can exchange.
Sending module 14 is for receiving terminal 2 transmission coding signal.Sending module 14 can beAntenna or transmitter.
Receiver module 21 sends, for receiving, the coding signal that terminal 1 transmission comes.At the present embodimentIn, receiver module 21 is antenna or receiver.
Decoder module 22, for coding signal is carried out dual-tone multifrequency decoding, generates 0~90 codeThe first code word in word and the second code word.Decoding in coding signal code word out can be from double0~90 code word that sound multifrequency coding matrix includes finds.
Search module 23 to be used for the first code word as columns, using the second code word as line number, rootIn character matrix, character is found according to columns and line number.In this character matrix and transmission terminal 1Character matrix is identical.Further, after finding character, receive terminal 2 and also show to userCharacter.In the present embodiment, receive terminal 2 and show character by display screen or speaker so thatUser can obtain information the most intuitively.
In the present embodiment, double-tone multi-frequency coding matrix also includes initial code word and terminates code word, solvesCode module 22 specifically for coding signal carry out dual-tone multifrequency decoding, sequentially generate initial code word,First code word, the second code word and end code word.Search module 23 be then additionally operable to from initial code word andTerminate to extract the first code word and the second code word between code word.Initial code word and end code word are for tableShow encoded signal representative is character.
The present invention also provides for a kind of mobile terminal, and this mobile terminal is the transmission terminal of previous embodiment1 or receive the one in terminal 2, or can as send terminal 1 also can be as receiving terminal2 so that character both can be encoded by mobile terminal, acquisition character can be decoded again, moreBe suitable to popularization and application.
By the way, the information processing method based on double-tone multi-frequency coding matrix of the present invention andInformation processing system carrys out code character by double-tone multi-frequency coding matrix and decoding obtains character, energyEnough send exactly and reception information, do not have mistake, encode and decode quickness and high efficiency, abundantConsumer's Experience.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention,Every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion, orDirectly or indirectly being used in other relevant technical field, the patent being the most in like manner included in the present invention is protectedIn the range of protecting.