The content of the invention
It is an object of the invention to provide it is a kind of based on user input conversation message router control method and router,
The configuration for simplifying router is realized, the language form of Intelligent Recognition user's input content, lifts user experience.
Technical scheme provided by the invention is as follows:
A kind of router control method of the conversation message based on user's input, including step:S100 obtains user's input
Conversation message;S200 analyzes the language form of the conversation message;S300 changes the conversation message
Control instruction corresponding to type;S400 performs corresponding operation according to the control instruction.
Further, the step S200 includes step:The conversation message that S210 parsings obtain, obtains the dialogue
Character in message;S260 is matched the character according to preset language storehouse to obtain corresponding language form.
Further, after the step S210, step is included before S260:S220 judges the word in the conversation message
Whether symbol number of types is more than preset number;If so, perform step S230;Otherwise, step S260 is performed;S230 is to user feedback
Information to be confirmed;The information to be confirmed is to ask to confirm the information of the language form of the conversation message to user;S240 connects
Receive the first confirmation that user sends according to the information to be confirmed;S250 is according to first confirmation, it is determined that described
The language form of conversation message is changed into second language type from first language type.
Further, the step S300 includes step:S310 works as the character types number judged in the conversation message
During less than or equal to preset number, according to the first preset language storehouse, it is corresponding with first language type to change all conversation messages
First control instruction;S320 is pre- according to second when judging that the character types number in the conversation message is more than preset number
If language library, the conversation message after conversion change is the second control instruction corresponding with the second language type;Wherein, it is described
First preset language storehouse includes first language type and the relation of default control instruction, and the second preset language storehouse includes second
Language form and the relation of default control instruction.
Further, the step S300 also includes step:Whether the control instruction that S330 judges to be converted to is one
Control instruction;If so, perform step S400;If it is not, perform step S340;S340 performs institute successively according to default execution priority
State and operated corresponding to control instruction.
The present invention also provides a kind of router, including:Acquisition module, obtain the conversation message of user's input;Analysis module,
Analyze the language form of the conversation message;Modular converter, the conversation message is changed as control corresponding with the language form
System instruction;Execution module, corresponding operation is performed according to the control instruction.
Further, the analysis module includes:Resolution unit, the conversation message of acquisition is parsed, it is described right to obtain
Talk about the character in message;Matching unit, the character matched according to preset language storehouse to obtain corresponding language form.
Further, the analysis module also includes:First judging unit, judge the character types in the conversation message
Whether number is more than preset number;First feedback unit, the character in the conversation message is judged when first judging unit
When number of types is more than preset number, to user feedback information to be confirmed;The information to be confirmed for user ask confirm institute
State the information of the language form of conversation message;First receiving unit, receive user sends according to the information to be confirmed first
Confirmation;First determining unit, according to first confirmation, determine the language form of the conversation message by the first language
Speech type is changed into second language type;The matching unit, the word in the conversation message is judged when first judging unit
Symbol number of types is when being less than or equal to preset number, is matched the character according to preset language storehouse to obtain corresponding class of languages
Type.
Further, the modular converter, when judging that it is default that the character types number in the conversation message is less than or equal to
During number, according to the first preset language storehouse, it is the first control instruction corresponding with first language type to change all conversation messages;
The modular converter, it is default according to second also when judging that the character types number in the conversation message is more than preset number
Language library, the conversation message after conversion change is the second control instruction corresponding with the second language type;Wherein, described
One preset language storehouse includes first language type and the relation of default control instruction, and the second preset language storehouse includes the second language
Say type and the relation of default control instruction.
Further, the execution module includes:Whether the second judging unit, the control instruction for judging to be converted to are one
Individual control instruction;Execution unit, when the control instruction for judging to be converted to as a control instruction when, according to the control instruction
Perform corresponding operation;The execution unit, when the control instruction for judging to be converted to as multiple control instructions when, according to default
Execution priority performs operated corresponding to the control instruction successively.
Pass through a kind of router control method and router of the conversation message inputted based on user provided by the invention, energy
Enough bring following at least one beneficial effect:
1) present invention selects without numerous and diverse config option and the page, solves the problems, such as complex operation.
2) after user of the present invention only needs the dialog information of demand of the input comprising user itself, router is waited to perform root
According to operating result corresponding to the control instruction of dialog information conversion, suitable for any user, it is not necessary to which user grasps configuration ginseng
Several meanings, Consumer's Experience are high.
3) present invention can support multilingual, automatic identification language form simultaneously, lift the usage experience of user.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures
Part, one of those is only symbolically depicted, or only marked one of those.Herein, "one" is not only represented
" only this ", the situation of " more than one " can also be represented.
Fig. 1 is a kind of one embodiment of the router control method of the conversation message based on user's input of the present invention, is wrapped
Include:
S100 obtains the conversation message of user's input;
S200 analyzes the language form of the conversation message;
It is control instruction corresponding with the language form that S300, which changes the conversation message,;
S400 performs corresponding operation according to the control instruction.
Specifically, in the prior art, router needs artificial selection for different language form, it is impossible to automatically to
The language form of the conversation message of family input is identified, when causing the conversation message of the different language form of user's input, meeting
So that the conversation message of the possible None- identified user input of router, and if pair that router is inputted due to None- identified user
Talk about message, then can cause router that conversation message can not be converted to control instruction corresponding with the language form.This hair
The mode of the conversation message of user's input of bright acquisition is probably the input medium input that user directly carries in itself in router
Obtain, it is also possible to which user inputs what is obtained by the input medium of the intelligent terminals such as mobile phone, computer.And obtained in the present invention
It is corresponding so as to be selected according to language form, it is necessary to analyze the language form of conversation message after to the conversation message of user's input
Language library, the conversation message of user's input is matched to obtain corresponding control instruction, the present invention can support multi-lingual simultaneously
Say, automatic identification language form, lift the usage experience of user.
Fig. 2 is a kind of another embodiment of the router control method of the conversation message based on user's input of the present invention,
Including:
S100 obtains the conversation message of user's input;
The conversation message that S210 parsings obtain, obtains the character in the conversation message;
S260 is matched the character according to preset language storehouse to obtain corresponding language form;
It is control instruction corresponding with the language form that S300, which changes the conversation message,;
S400 performs corresponding operation according to the control instruction.
Specifically, in the present embodiment, the process of the conversation message of analysis user's input is specifically taught, the present invention first will
The conversation message of user's input is parsed to obtain all characters in conversation message, wherein, character include letter, numeral,
Word and symbol, are specifically included:" 1,2,3, A, B, C ,~,!, #, $, % ... ,-, *, (), ---, one, two " etc..
Assuming that when the conversation message of user's input is " I wants to change transmission channel.", then according to the present invention program, parsing obtain " I,
Think, more, change, pass, defeated, letter, road,." these characters, according to preset language storehouse by these characters it is any one or more
The conversation message for being matched to obtain user's input is Chinese, is then converted to conversation message according to Chinese language storehouse
Corresponding control instruction.Because the web configurations page is numerous in the prior art, user needs oneself to go to search to understand configuration parameter
Meaning, configuration is filled in and issued using correct logic, complex operation, needs to look through when going wrong.The present invention
Need the router network configuration interface of exquisite complexity like that different from prior art, it is only necessary to dialog box circle being easily understood
Face so that user only needs to input the control requirement i.e. conversation message of oneself, it is possible to preset by the way that router is built-in in advance
Language library carries out matched and searched to corresponding control instruction, refers to so that router itself performs according to control instruction with control
The corresponding operation of order, reduces numerous and diverse operation and page selection, is easily understood, convenient and swift, and simplifying the configuration page makes
The adaptation issues of browser and screen resolution must be reduced, substantially increase the usage experience of user.User only needs talking with
After frame interface input user includes the conversation message of the demand of itself, router is waited to perform the control changed according to conversation message
Operating result corresponding to instruction, suitable for any user, it is not necessary to which user grasps the meaning of various configuration parameters, Consumer's Experience
It is high.
Fig. 3 is a kind of another embodiment of the router control method of the conversation message based on user's input of the present invention,
Including:
S100 obtains the conversation message of user's input;
The conversation message that S210 parsings obtain, obtains the character in the conversation message;
S220 judges whether the character types number in the conversation message is more than preset number;If so, perform step
S230;Otherwise, step S260 is performed;
S230 is to user feedback information to be confirmed;The information to be confirmed is to ask to confirm the conversation message to user
The information of language form;
S240 receives the first confirmation that user sends according to the information to be confirmed;
S250 determines that the language form of the conversation message is changed into from first language type according to first confirmation
Second language type;
S260 is matched the character according to preset language storehouse to obtain corresponding language form;
S310 is default according to first when judging that the character types number in the conversation message is less than or equal to preset number
Language library, it is the first control instruction corresponding with first language type to change all conversation messages;
S320 is when judging that the character types number in the conversation message is more than preset number, according to the second preset language
Storehouse, the conversation message after conversion change is the second control instruction corresponding with the second language type;
Whether the control instruction that S330 judges to be converted to is a control instruction;If so, perform step S400;If it is not,
Perform step S340;
S340 operates according to corresponding to default execution priority performs the control instruction successively;
S400 performs corresponding operation according to the control instruction.
Wherein, relation of the first preset language storehouse including first language type with default control instruction, described second
Preset language storehouse includes second language type and the relation of default control instruction.
It is to be matched the critical field in conversation message in the present invention, i.e., specifically, in the present embodiment:
S11 judges whether the either field in the conversation message matches with the critical field of default control instruction;If so,
Perform step S12;Otherwise, step S13 is performed;
S12 judges that the conversation message is invalid control message;
S13 judges that the conversation message includes the effective field.
In the present embodiment, carry out after determining whether that either field matches with critical field, can know in conversation message
There is the effective field being controlled to router itself, thus be avoided that insignificant conversion, the conversation message as user inputs is
" I wants to carry out " just finishes, and carries out the matching of keyword and can avoid being changed all conversation messages of reception, only
Effective field only is carried out into conversion can save conversion time, lift CPU treatment effeciencies, save system resource.
Character in conversation message is carried out after analyzing one by one and counts whether character types number is more than preset number, such as
Assuming that when preset number is 1, when user's input conversation message for " I want to heighten tranmitting frequency, still want to change cipher mode be
WPA." when, character types are obtained as 3 kinds according to analysis, are respectively letter, Chinese character and symbol, but critical field does not include symbol
Number ", " and ".", then it can learn that character types number is more than preset number, then it is different can to learn that user have input
Language form.By " I wants to heighten tranmitting frequency " in conversation message according to preset language storehouse i.e. the first preset language storehouse (Chinese
Language library) matching that carries out critical field obtains a control and heightens the control instruction of tranmitting frequency." it will still want to change encryption side
Formula is the matching that WPA " carries out critical field according to i.e. the first preset language storehouse in preset language storehouse, can only obtain " change encryption side
Formula is ", router can not be identified " WPA " according to Chinese language storehouse, cause router not can know that the encryption specifically changed
What mode is, therefore router is to user feedback " change cipher mode " and " WPA ", then user inputs " WPA ", road again
Received again by device " WPA ", therefore router can just learn that the language form of user is changed, by first language type
Change turns to second language type, and (i.e. Chinese is changed into English, is to enumerate again, can be other Japanese, Korean, Russian etc.
Any language), so as to which router obtains according to the matching of the second preset language storehouse (english language storehouse) progress critical field
" WPA ", router combines " change cipher mode is " and " WPA " is together, obtains a control instruction, then can learn use
" I want to heighten tranmitting frequency, and it is WPA to still want to change cipher mode for family input." after, the control instruction that router returns is respectively
" heightening tranmitting frequency " and " change cipher mode is WPA ", here, suppose that the execution priority of user preset is:Start shooting on >
Net > change cipher mode > upgradings > tunes up or turned down transmission power > switching channel > bandwidth control > shutdown, then route
Device first carries out the operation of " heightening tranmitting frequency ", then perform the " behaviour that change cipher mode is WPA " according to the priority of execution
Make.Because the effective field that the conversation message of user's input includes may be several, it so may be such that and disappeared according to dialogue
Multiple effective fields in breath are converted to multiple control instructions, then refer to once obtaining multiple controls according to a conversation message
When making, then just need to perform corresponding control instruction successively according to default execution priority.The language of country variant at present
Bag needs artificial selection, it is impossible to supports that the conversation message of user's input is identified automatically.For different language in-puts, road
By device may identification can all lead to not normally perform control instruction as difficulty.
It is actual to can be potentially encountered much unascertainable factors when language judges, list here one it is most simple
Single judgement and when being likely encountered problem it is a kind of it is simple judge, when user's input language changes, first
Reaffirmed, it is ensured that change is normally performed activity, then carries out the switching of language pack again, as shown in logic chart Fig. 4:
S10, first log into;
S11, establish connection;
S12, user's input dialogue message;
S13, judge whether that the language form of conversation message can be determined;If so, perform step S16;Otherwise, step is performed
S14;
S14, the information to be confirmed for feeding back different language type;
S15, reception user determine information, determine language form;
S16, basis are with having determined that conversation message is changed as control instruction in the corresponding preset language storehouse of language form;
S17, according to control instruction perform associative operation.
When user's input language changes, reaffirmed first, it is ensured that change is normally performed activity, so
The switching of language pack is carried out again afterwards, as shown in logic chart Fig. 5:
The language form for the conversation message that S21, user input is changed into language 2 from language 1;
S22, the information to be confirmed that feedback language form is language 2;
S23, user continue to input the conversation message that input language type is language 2;
S24, switching language library 1 are language library 2.
In the present embodiment, when user's input, " I want to heighten tranmitting frequency, still wants to change cipher mode when be WPA ", to analyze
Obtain bilingual type i.e. English character and Chinese character, it is assumed that WPA, WEP, DHCP, PPPOE etc. are stored in Chinese library
The particular phrase of these types, then it is Chinese that can just directly obtain language form, if no storage WPA in Chinese library,
The particular phrase of WEP, DHCP, PPPOE etc. type, then " I want to heighten tranmitting frequency router feedback Chinese, still wants to change
Cipher mode is " and English " WAP " give user to confirm, at this point, it is assumed that user continues to input " WAP ", then just reacted user
Confirm that wanting change language library is matched to obtain corresponding control instruction.The present invention can support simultaneously it is multilingual, carry out from
The function of dynamic identification and switching language.
With reference to shown in figure 6, the present invention provides a kind of one embodiment of router 100, including:
Acquisition module 110, obtain the conversation message of user's input;
Analysis module 120, analyze the language form of the conversation message;
Modular converter 130, it is control instruction corresponding with the language form to change the conversation message;
Execution module 140, corresponding operation is performed according to the control instruction.
Specifically, in the present embodiment,
With reference to shown in figure 7, the present invention provides a kind of another embodiment of router 100, other parts in the present embodiment
It is identical with a upper embodiment, including:Acquisition module 110, analysis module 120, modular converter 130, execution module 140;
In addition, the analysis module 120 includes:
Resolution unit 121, the conversation message of acquisition is parsed, obtains the character in the conversation message;
Matching unit 122, the character matched according to preset language storehouse to obtain corresponding language form.
First judging unit 123, judges whether the character types number in the conversation message is more than preset number;
First feedback unit 124, the character types number in the conversation message is judged when first judging unit 123
During more than preset number, to user feedback information to be confirmed;The information to be confirmed is to ask to confirm that the dialogue disappears to user
The information of the language form of breath;
First receiving unit 125, receive the first confirmation that user sends according to the information to be confirmed;
First determining unit 126, according to first confirmation, determine the language form of the conversation message by first
Language form is changed into second language type;
The matching unit 122, the character types number in the conversation message is judged when first judging unit 123
During less than or equal to preset number, the character matched according to preset language storehouse to obtain corresponding language form;
The modular converter 130, when judging that the character types number in the conversation message is less than or equal to preset number,
According to the first preset language storehouse, it is the first control instruction corresponding with first language type to change all conversation messages;
The modular converter 130, also when judging that the character types number in the conversation message is more than preset number, root
According to the second preset language storehouse, the conversation message after conversion change is the second control instruction corresponding with the second language type;
Wherein, relation of the first preset language storehouse including first language type with default control instruction, described second
Preset language storehouse includes second language type and the relation of default control instruction;
The execution module 140 includes:
Whether the second judging unit 141, the control instruction for judging to be converted to are a control instruction;
Execution unit 142, when the control instruction for judging to be converted to as a control instruction when, according to the control instruction
Perform corresponding operation;
The execution unit 142, when the control instruction for judging to be converted to as multiple control instructions when, according to default execution
Priority performs operated corresponding to the control instruction successively.
Specifically, in the present embodiment, in the present embodiment, carry out after determining whether that either field matches with critical field,
Can know has the effective field itself being controlled to router 100 in conversation message, thus be avoided that insignificant conversion, such as
The conversation message of user's input just finishes for " I wants to carry out ", and carrying out the matching of keyword can avoid all of reception
Conversation message is changed, and effective field only is carried out into conversion can save conversion time, lift CPU treatment effeciencies, save
System resource.The present invention is different from the network configuration interface of router 100 that prior art needs exquisite complexity like that, it is only necessary to letter
Single understandable dialog interface so that user only needs to input the control requirement i.e. conversation message of oneself, it is possible to passes through route
The preset language storehouse built-in in advance of device 100 carries out matched and searched to corresponding control instruction, so that itself root of router 100
Operation corresponding with control instruction is performed according to control instruction, reduces numerous and diverse operation and page selection, is easily understood, it is convenient
Fast, the adaptation issues that the configuration page to reduce browser and screen resolution are simplified, substantially increase the use of user
Experience.User is only needed after dialog interface input user includes the conversation message of the demand of itself, waits router 100 to hold
Row operating result according to corresponding to the control instruction that conversation message is changed, suitable for any user, it is not necessary to which user grasps each
The meaning of kind configuration parameter, Consumer's Experience are high.
When using a kind of wireless router 100 of extremely letter configuration of only one dialog box, one is confronted
The problem of be that user does not know your router 100 can tell you what, and user is also impossible to know this at all in other words
Individual router 100 is the version of what language, and the possible dialog box input of extreme example is Chinese, but is route
What device 100 but returned is the word that you do not understand.The present invention seeks to solve this problem, in intelligentized today, when with
When extremely letter configuration is encountered at family, the obstacle of language zone how is avoided.As shown in figure 8, the key for solving this problem is exactly
One is loaded in the front end of session module 11 and supports multilingual multilingual module 14, purpose quickly has before dialogue really starts
The language for judging user and using of effect, can support multilingual exchange simultaneously when necessary.
Hardware components:Increase multilingual module 14 on the basis of primary session module 11, the module stores a variety of states
The language library of family, the effect of session module 11 (equivalent to acquisition module in Fig. 7 110 and analysis module 120) are that user is inputted
Conversation message analyzed, the effective field in conversation message is passed into translation module 12, (i.e. dialogue disappears invalid information
Do not include any one effective field in breath) return and user further confirm that translation module 12 is (equivalent to modulus of conversion in Fig. 7
Block 130) it to be responsible for the effective field of user carrying out processing being converted into control instruction, CPU module 13 in Fig. 7 (equivalent to performing mould
Block 140) control instruction that translation module 12 is sent is received, corresponding operation is performed according to control instruction, CPU module 13 is returned and held
Implementing result is converted to implementing result keyword by row result to translation module 12, translation module 12, and the conversion of session module 11 is held
Row result keyword is execution result information corresponding with conversation message language form.
Software section:When user logs in first, according to the conversation message of user's input, assertion language usage type is simultaneously cut
The language library to match of session module 11 is shifted to, session module 11 will be carried out normal according to this language library and user after switching
Exchange and perform the control instruction of user.When the input language of user changes, language library can be triggered and changed,
Session module 11 will carry out exchange and conmmunication using new language library and user after the completion of change.Translation module 12 is by conversation message
In critical field change into control instruction, and control instruction is issued to CPU module 13, if a plurality of control instruction then basis
Default execution priority performs corresponding control instruction successively.
The conversation message that user is manually entered that can both receive in above-mentioned all embodiments such as talks with word, can also connect
The conversation message such as speech message of the phonetic entry of user is received, when receiving speech message, it is only necessary to by speech message according to voice
Storehouse is converted to corresponding word, and this technology is common, no longer carefully states one by one again.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.