Summary of the invention
The technical problem to be solved in the present invention is automatic SMS reply function in order to overcome mobile terminal in prior art can not automatically reply the note comprising the useful information such as telephone number, address defect according to the demand of user, provides a kind of and can inquire keyword from the note received and the data message matched with keyword is compiled as note to carry out the method answered short message automatically of mobile terminal and a kind of mobile terminal utilizing described mobile terminal to realize automatically replied.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of method answered short message automatically of mobile terminal, its feature is, it comprises the following steps:
S
1, at least one keyword is set, each keyword all matches with the data message that stores in described mobile terminal;
S
2, after receiving the note that a destination mobile terminal sends, judge whether include keyword in the content of described note received, and when being judged as YES, perform step S
3;
S
3, from described mobile terminal, inquire the data message matched with the keyword that comprises in the content of the described note received, and the data message inquired is compiled as note;
S
4, will the automatic SMS reply that edit to described destination mobile terminal.
Wherein step S
1in when arranging keyword, the data message of association, coupling, and step S can be set for each keyword
2in receive described destination mobile terminal send note after, keyword retrieval can be carried out to described note, judge whether occurred step S in the word of described note
1the keyword of middle setting, if so, then performs step S
3.
And in step S
3in just can inquire the data message matched with target keyword, and the data message inquired is compiled as note, automatically finally in step S
4in again will the automatic SMS reply that edit to described destination mobile terminal.Wherein, the automatic editor of note and to automatically reply be all the function that those skilled in the art can utilize technology and realize as required, the method for specific implementation just repeats no more at this.
Like this, utilize method of the present invention just can carry out the retrieval of keyword according to the content of the note received, and judge that other users wish to want by note the useful information known based on keyword, and then inquiring the useful data message matched with keyword, and be compiled as automatic SMS reply to the other side.Thus when the inconvenient editing short message of user, useful data message can be inquired pointedly from mobile phone, and automatically edit in the mode of note and reply to the other side, improve the experience of user.
Preferably, step S
1described in data information memory in the address list of described mobile terminal, described data message comprise in the birthday by information of the number information of contact person, the address information of contact person, the mailbox message of contact person, the company information of contact person and contact person one or more, at least one keyword described comprise match with described data message number, address, mailbox, one or more in company and birthday.
Wherein, the data message matched with described keyword is specifically as follows the information stored in the address list of described mobile terminal, the telephone number of the concrete contact method of contact person, the concrete address of contact person, the data message such as mailbox, the Business Name of contact person, the concrete birthday of contact person of contact person can be comprised, described multiple keyword then comprise match with described data message number (or the near synonym such as phone, telephone number language), address (or the near synonym language such as address, family), mailbox, the word such as company and birthday.And first above-mentioned word can prestore and be stored in the keyword dictionary of described mobile terminal, again in conjunction with general communicative habits, substantially all can ask a question by query clause when other user's query information, therefore, " have and do not have ", " ", " having ", " where " etc. are represented that the word of query also prestores to be stored in described keyword dictionary simultaneously.
Like this, after receiving note, just whether can include the word stored in described keyword dictionary, if having by the emphasis word inquired about in described short message content, then from described address list, inquire the data message corresponding with keyword, then compile automatic SMS reply to the other side.
Preferably, step S
2for:
S
21, receive one destination mobile terminal send note after, each word in the described note received is mated with each word in the name of the contact person stored in described address list successively according to by the order after arriving first, if the match is successful, then the name of contact person that goes out of output matching, then performs step S
22if it fails to match, then one first preset SMS is automatically returned to described destination mobile terminal and process ends;
S
22, judge described note content in whether include keyword, if so, then perform step S
3, if not, then one second preset SMS is automatically returned to described destination mobile terminal and process ends;
Step S
3for: from described address list, inquire the data message matched with the keyword that comprises in the name of the described contact person exported and the content of described note that receives, and the data message inquired is compiled as note.
Step S
21in can take sequential search method when concrete coupling, namely carry out contrasting and mating with the name stored in described address list successively from the first character joint of short message content, until certain byte start can with name successful match, if the last byte of short message content also cannot the match is successful, then show the name do not had in described short message content in current entries.
Described first preset SMS and described second preset SMS then can pre-set according to the actual needs of user.
Preferably, step S
1also comprise a step S before
10: receive one first control signal to open the function answered short message automatically of described mobile terminal;
Step S
4also comprise a step S afterwards
5: receive one second control signal with the function answered short message automatically described in closing.
Like this, can be just the option with opening and closing by the described function setting answered short message automatically, open described function when needs, and just can close described function after completion.Described first control signal and described second control signal are all then the touch screen that sends of user or key command and the control signal produced.
Preferably, step S
1in from described address list, also choose the number of at least one contact person as destination number, step S
21in receive one destination mobile terminal send note after, also first judge the number whether comprising described destination mobile terminal in described destination number, if so, then continue perform step S
21, if not, then process ends.
Like this, just the authority automatically replied can be set to the user object carrying out note, such as, the note that the phone number that can only automatically reply some contact person stored in described address list is sent, and the note that the phone number need not replying remaining contact person is sent.
The object of the invention is to additionally provide a kind of mobile terminal, its feature is, it comprises a keyword and arranges module, a keyword judge module, a data message enquiry module and a message reply module;
Described keyword arranges module for arranging at least one keyword, and each keyword all matches with the data message that stores in described mobile terminal;
Described keyword judge module is used for after the note receiving a destination mobile terminal transmission, judge whether include keyword in the content of the described note received, and when being judged as YES, call described data message enquiry module from described mobile terminal, inquire the data message matched with the keyword that comprises in the content of the described note received, and the data message inquired is compiled as note;
Described message reply module is used for the automatic SMS reply extremely described destination mobile terminal that will edit.
Preferably, described data information memory is in the address list of described mobile terminal, described data message comprise in the birthday by information of the number information of contact person, the address information of contact person, the mailbox message of contact person, the company information of contact person and contact person one or more, at least one keyword described comprise match with described data message number, address, mailbox, one or more in company and birthday.
Preferably, described mobile terminal also comprises a matching module, described matching module is used for, after receiving the note that a destination mobile terminal sends, being mated successively by each word in the described note received according to by the order after arriving first with each word in the name of the contact person stored in described address list;
If the match is successful, the then name of contact person that goes out of output matching, and call described keyword judge module and judge whether include keyword in the content of described note, if, then call described data message enquiry module inquire from described address list with the name of the described contact person exported and described in the data message that matches of the keyword that comprises in the content of described note that receives, and the data message inquired is compiled as note, if not, then call described message reply module and one second preset SMS is automatically returned to described destination mobile terminal;
If it fails to match, then call described message reply module and one first preset SMS is automatically returned to described destination mobile terminal.
Preferably, described mobile terminal also comprises one and automatically replies and arrange module, for receiving one first control signal to open the function answered short message automatically of described mobile terminal, also for receiving one second control signal with the function answered short message automatically described in closing.
Preferably, described keyword arranges module also for choosing the number of at least one contact person as destination number from described address list, described keyword judge module is also for after the note receiving a destination mobile terminal transmission, first the number whether comprising described destination mobile terminal in described destination number is judged, if so, described matching module is then called.
Positive progressive effect of the present invention is: the present invention can carry out the retrieval of keyword according to the content of the note received, and judge that other users wish to want by note the useful information known based on keyword, and then inquiring the useful data message matched with keyword, and be compiled as automatic SMS reply to the other side.Thus when the inconvenient editing short message of user, useful data message can be inquired pointedly from mobile phone, and automatically edit in the mode of note and reply to the other side, improve the experience of user.
Embodiment
Present pre-ferred embodiments is provided, to describe technical scheme of the present invention in detail below in conjunction with accompanying drawing.
Embodiment 1:
As shown in Figure 1, mobile terminal of the present invention comprises a keyword and arranges module 1, keyword judge module 2, data message enquiry module 3, message reply module 4, matching module 5 and and automatically reply and arrange module 6.
Wherein, user can arrange by described automatically replying the opening and closing that module 6 realizes the function that answers short message automatically to mobile terminal, particularly, described automatically reply module 6 is set can after reception one first control signal, open the function answered short message automatically of described mobile terminal, after reception one second control signal, the function answered short message automatically described in closedown.Described first control signal and described second control signal are all then the touch screen that sends of user or key command and the control signal produced.Like this, can be just the option with opening and closing by the described function setting answered short message automatically, open described function when needs, and just can close described function after completion.
First user can arrange module 1 by described keyword and arrange multiple keyword, and each keyword then matches with the data message that stores in described mobile terminal.
The details of contact person all can be stored in the address list of the mobile terminal of user, like this, the data message matched with described keyword is concrete just for the information stored in the address list of described mobile terminal, can comprise the telephone number of the concrete contact method of contact person, the concrete address of contact person, the data message such as mailbox, the Business Name of contact person, the concrete birthday of contact person of contact person.Described multiple keyword then comprise match with described data message number (or the near synonym such as phone, telephone number language), address (or the near synonym language such as address, family), mailbox, the word such as company and birthday.And first above-mentioned word can prestore and be stored in the keyword dictionary of described mobile terminal, again in conjunction with general communicative habits, substantially all can ask a question by query clause when other user's query information, therefore, will " have " simultaneously, " ", " having ", " where " "? " be stored in described keyword dictionary Deng representing that the word of query and symbol also prestore.
Like this, after described mobile terminal receives the note that a destination mobile terminal sends, each word in the described note received can mate with each word in the name of the contact person stored in the address list of described mobile terminal according to by the order after arriving first by described matching module 5 successively.If the match is successful, the then name of contact person that goes out of output matching, and call described keyword judge module 2 and judge whether to include in the content of described note at least one keyword as target keyword, the word whether included in described keyword dictionary can be inquired about in the word of the content of described note by emphasis.
If described keyword judge module 2 is judged as YES, then call described data message enquiry module 3 from described address list, inquire the data message matched with the name of the described contact person exported and at least one target keyword described, and the data message inquired is compiled as note, and the automatic SMS reply extremely described destination mobile terminal that described message reply module 4 finally can will edit.If described keyword judge module 2 is judged as NO, then can calls described message reply module 4 and one second preset SMS is automatically returned to described destination mobile terminal, as " can let down, not finding " by answer short message.
And if described matching module 5 it fails to match, then can call described message reply module 4 and one first preset SMS is automatically returned to described destination mobile terminal.
Wherein, the short message content of described first preset SMS and described second preset SMS then can pre-set according to the actual needs of user.
In specific embodiment of the invention process, user can also arrange module 1 by described keyword and from described address list, choose the number of at least one contact person as destination number, described keyword judge module 2 can also after described mobile terminal receives the note of a destination mobile terminal transmission, first the number whether comprising described destination mobile terminal in described destination number is judged, if, then call described matching module 5, if not, then do not respond.
In concrete practice of the present invention, after described mobile terminal receives a note, content as note is: " you have so-and-so number? " " you have so-and-so number? " " so-and-so number you have? " " address of so-and-so family you have? " etc., described matching module 5 can first match from address list contact person so-and-so, and described keyword judge module 2 can inquire " number " from the content of note, keywords such as " addresses ", described data message enquiry module 3 inquires the number with so-and-so from described address list, the data message of so-and-so addresses match (is also so-and-so telephone number, so-and-so better address), and the data message inquired is compiled as note automatically, described message reply module 4 can by the automatic SMS reply that edits out in the other side's mobile phone.
Like this, utilize mobile terminal of the present invention just can carry out the retrieval of keyword according to the content of the note received, and judge that other users wish to want by note the useful information known based on keyword, and then inquiring the useful data message matched with keyword, and be compiled as automatic SMS reply to the other side.Thus when the inconvenient editing short message of user, useful data message can be inquired pointedly from mobile phone, and automatically edit in the mode of note and reply to the other side, improve the experience of user.
As shown in Figure 2, the method answered short message automatically of the present invention's mobile terminal of utilizing the mobile terminal of the present embodiment to realize comprises the following steps:
Step 100, receive the first control signal to open the function answered short message automatically of described mobile terminal.
Step 101, arrange multiple keyword, each keyword all matches with the data message that stores in described mobile terminal.
Step 102, receive one destination mobile terminal send note after, each word in the described note received is mated with each word in the name of the contact person stored in described address list successively according to by the order after arriving first, if the match is successful, the then name of contact person that goes out of output matching, then step 103 is performed, if it fails to match, then the first preset SMS is automatically returned to described destination mobile terminal and process ends.
Step 103, judge described note content in whether include at least one keyword as target keyword, if so, then perform step 104, if not, then the second preset SMS automatically returned to described destination mobile terminal and process ends.
Step 104, from described address list, inquire the data message matched with the name of the described contact person exported and at least one target keyword described, and the data message inquired is compiled as note.
Step 105, the automatic SMS reply extremely described destination mobile terminal that will edit.
Step 106, receive the second control signal with the function answered short message automatically described in closing, then process ends.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these change and amendment all falls into protection scope of the present invention.