Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the communication means, device and mobile terminal of mobile terminal according to an embodiment of the present invention are described.
Fig. 1 is the flow chart according to the communication means of the mobile terminal of one embodiment of the invention.
As shown in Figure 1, the communication means of mobile terminal according to an embodiment of the present invention, comprising the following steps:
S101 receives the telephone number of user's input.
In embodiments of the present invention, the mode of the telephone number of user's input may include but be not limited to key-press input, voice
The modes such as input, handwriting input, touch operation.
S102 obtains the length information of the telephone number.
In an embodiment of the present invention, the length information of telephone number can be obtained in the following manner:
Mode one
During user inputs telephone number, the length of telephone number is recorded in real time according to the input operation of user.
That is, the length of telephone number is then added 1 accordingly with the every input one-bit digital of user.
Mode two
When user inputs number completion and process dial-up operation, the telephone number that user has inputted is obtained, and count electricity
Number digital in number is talked about, to obtain the length information of telephone number.
S103 judges whether the telephone number belongs to preset kind according to length information.
It makes a phone call and the use habit of telephone number according to user is daily, for some special telephone numbers, uses
Family would generally use fixed SIM card to dial.For example, in general, phone number or fixed telephone number+area
Number length be 11.However, some user groups can establish a group, such as campus group, group, enterprise, group, family
Deng.Corresponding short codes can be respectively set in each user in group.When user needs to dial short codes, in general, use
The corresponding SIM card of short codes that family will use oneself dials.As shown in Fig. 2, the telephone number that frame is selected generally all uses
SIM card A dials.Either for some toll numbers or international telephone number, it can add before phone number
Enter the telephone number of IP number or country code or area code is added, when dialing this kind of telephone number, user wishes to make
It is dialled with the SIM card with preferential policy or support corresponding function.
That is, user can generally select the SIM fixed accordingly to carry out for the telephone number of some specific lengths
Dialing.It therefore, in one embodiment of the invention, can be using the length information of telephone number as a feature, by phone number
Code is divided into different preset kinds.
Wherein, preset kind may include the first kind and Second Type.Wherein, the first kind corresponds to length information and is less than in advance
If the telephone number of length, Second Type corresponds to the telephone number that length information is greater than preset length.Wherein, preset length can be set
It is set to 11.It should be appreciated that preset length under other application scenarios, can also be set as other length according to actual needs.It lifts
For example, in some countries, telephone number length is generally shorter, then can accordingly turn down preset length.
After obtaining the length information of telephone number of user's input, the telephone number can be judged according to length information whether
Belong to preset kind.Specifically, it can determine whether the length information of the telephone number is less than preset length, if length information is small
It in preset length, then can determine whether that the telephone number belongs to the first kind, if length information is less than preset length, can determine whether electricity
Words number belongs to Second Type.
It should be noted that if the length information of telephone number be equal to preset length, the telephone number do not have pair
Common SIM card is answered, the SIM card information in the mobile terminal can be supplied to user, to select to dial as needed by user
The SIM card of the telephone number.
S104 determines default class according to the mapping relations pre-established if the telephone number belongs to preset kind
The corresponding SIM card of type, and dialled using the SIM card to the telephone number.
Wherein, include multiple SIM cards in mobile terminal, the telephone number and SIM card of different preset kinds can be pre-established
Corresponding mapping relations.And then corresponding SIM card can be determined according to the preset kind that the telephone number that user inputs belongs to, it goes forward side by side
Row dialing.
Specifically, if the telephone number of user's input belongs to the first kind, such as short codes, then it can inquire and pre-establish
Type and SIM card mapping relations, to determine the corresponding SIM card of the first kind, and dialled using the SIM card inquired
Number.
If the telephone number of user's input belongs to Second Type, Second Type pair can be inquired in above-mentioned mapping relations
The SIM card answered, and dialled using the SIM card inquired.
Further, for the telephone number of Second Type, length is greater than preset length therefore can be according to phone number
Telephone number further division of the number for the number position being had more in code to Second Type.
Specifically, in one embodiment of the invention, if the telephone number belongs to the second preset kind, basis
The mapping relations pre-established determine the corresponding SIM card of preset kind, comprising: extract the number of predeterminated position in the telephone number
Word;Corresponding SIM card is determined according to the number of predeterminated position.
Wherein, the number of predeterminated position is the number in the telephone number of user's input in addition to regular numbers.Due to
The telephone number of two types mainly increases IP number (such as 17951,17950,17969), national generation before regular numbers
Code (if the code of China is 86) or area code (code of such as Hong Kong Special Administrative Region is 852), and regular numbers are general
For preset length.Therefore, the number position that preset length can be taken since the telephone number tail position that user inputs, is left remaining number
Code bit is the number in addition to regular numbers.
After number in the telephone number for extracting user's input in addition to regular numbers, can further it judge except conventional
The corresponding classification of number except number then can be according to the mapping relations pre-established if it is IP number class, the determining and IP
The corresponding SIM card of number, and dial.It, then can be according to determining and respective country if it is country code or area code
Or the corresponding SIM card in region, and dial.
In one embodiment of the invention, can be made for user in the telephone number dialed in each preset kind
SIM card is learnt, to establish the mapping relations of different preset kinds and SIM card.Specifically, preset kind and SIM card
Mapping relations can be established according to the message registration of mobile terminal.
In the embodiment of the present invention, above-mentioned mapping relations can carry out self study simultaneously previously according to the message registration of mobile terminal
It establishes.As shown in figure 3, in one embodiment of the invention, the step of may also include following set-up above-mentioned mapping relations.
S301 obtains the message registration of mobile terminal.
Due to situations such as during being dialled using mobile terminal, there are number inputting errors, therefore, in order to mention
The accuracy of high above-mentioned mapping relations can obtain the permissible call record of mobile terminal, i.e., user successfully transfers to, and is successfully established
The message registration of call.
S302 extracts the multiple telephone numbers transferred to from message registration and dials multiple telephone numbers respectively
SIM card.
S303 extracts the length information of multiple telephone numbers.
S304 classifies to multiple telephone numbers according to length information, to preset belonging to each telephone number of determination
Type.
Specifically, can according to the length information of each telephone number compared with preset length to the multiple phones transferred to
Number is classified.For example, the telephone number that will be greater than preset length is divided into Second Type, the phone of preset length will be less than
Number is divided into the first kind.
S305 establishes preset kind according to the corresponding SIM card of telephone number in classification results and each preset kind
With the mapping relations of SIM card.
For example, it dials if the telephone number of the first kind mainly passes through SIM card 1, and Second Type
Telephone number mainly passes through SIM card 2 and dials, then can establish first kind corresponding SIM card 1, Second Type corresponding SIM card
2 mapping relations.
It further, can also be for country code included in the telephone number of Second Type, area code, IP number
Corresponding SIM card is determined respectively etc. different classes of, and establishes mapping relations.
To be learnt by the message registration to mobile terminal, the different type and SIM of Intelligent Establishment telephone number
The mapping relations of card, so that the type of the subsequent telephone number according to user's input determines that corresponding SIM card dials.
The communication means of the mobile terminal of the embodiment of the present invention can obtain the length information of the telephone number of user's input,
And judge whether the telephone number belongs to preset kind according to length information, and determine according to the preset kind that telephone number belongs to
Corresponding SIM card, and dial.Corresponding SIM card is directly selected thereby, it is possible to the type for inputting number according to user to carry out
Dialing, is not required to user and binds or select manually, dials more convenient, quick.
Corresponding with the communication means of above-mentioned mobile terminal, the present invention also proposes a kind of communication device of mobile terminal.
Fig. 4 is the structural schematic diagram according to the communication device of the mobile terminal of one embodiment of the invention.
As shown in figure 4, the communication device of mobile terminal according to an embodiment of the present invention, comprising: receiving module 1, first are obtained
Modulus block 2, judgment module 3, determining module 4 and dial module 5.
Specifically, receiving module 1 is used to receive the telephone number of user's input.
In embodiments of the present invention, the mode of the telephone number of user's input may include but be not limited to key-press input, voice
The modes such as input, handwriting input, touch operation.
First acquisition module 2 is used to obtain the length information of the telephone number.
In an embodiment of the present invention, the first acquisition module 2 can obtain the length information of telephone number in the following manner:
Mode one
During user inputs telephone number, the length of telephone number is recorded in real time according to the input operation of user.
That is, the length of telephone number is then added 1 accordingly with the every input one-bit digital of user.
Mode two
When user inputs number completion and process dial-up operation, the telephone number that user has inputted is obtained, and count electricity
Number digital in number is talked about, to obtain the length information of telephone number.
Judgment module 3 is used to judge whether the telephone number belongs to preset kind according to length information.
It makes a phone call and the use habit of telephone number according to user is daily, for some special telephone numbers, uses
Family would generally use fixed SIM card to dial.For example, in general, phone number or fixed telephone number+area
Number length be 11.However, some user groups can establish a group, such as campus group, group, enterprise, group, family
Deng.Corresponding short codes can be respectively set in each user in group.When user needs to dial short codes, in general, use
The corresponding SIM card of short codes that family will use oneself dials.As shown in Fig. 2, the telephone number that frame is selected generally all uses
SIM card A dials.Either for some toll numbers or international telephone number, it can add before phone number
Enter the telephone number of IP number or country code or area code is added, when dialing this kind of telephone number, user wishes to make
It is dialled with the SIM card with preferential policy or support corresponding function.
That is, user can generally select the SIM fixed accordingly to carry out for the telephone number of some specific lengths
Dialing.It therefore, in one embodiment of the invention, can be using the length information of telephone number as a feature, by phone number
Code is divided into different preset kinds.
Wherein, preset kind may include the first kind and Second Type.Wherein, the first kind corresponds to length information and is less than in advance
If the telephone number of length, Second Type corresponds to the telephone number that length information is greater than preset length.Wherein, preset length can be set
It is set to 11.It should be appreciated that preset length under other application scenarios, can also be set as other length according to actual needs.It lifts
For example, in some countries, telephone number length is generally shorter, then can accordingly turn down preset length.
After obtaining the length information of telephone number of user's input, the telephone number can be judged according to length information whether
Belong to preset kind.Specifically, judgment module 3 can determine whether the length information of the telephone number is less than preset length, if
Length information is less than preset length, then can determine whether that the telephone number belongs to the first kind, if length information is less than preset length,
It then can determine whether that telephone number belongs to Second Type.
It should be noted that if the length information of telephone number be equal to preset length, the telephone number do not have pair
Common SIM card is answered, the SIM card information in the mobile terminal can be supplied to user, to select to dial as needed by user
The SIM card of the telephone number.
It is true according to the mapping relations pre-established if determining module 4 belongs to preset kind for the telephone number
Determine the corresponding SIM card of preset kind.
Wherein, include multiple SIM cards in mobile terminal, the telephone number and SIM card of different preset kinds can be pre-established
Corresponding mapping relations.And then corresponding SIM card can be determined according to the preset kind that the telephone number that user inputs belongs to, it carries out
Dialing.
Specifically, if the telephone number of user's input belongs to the first kind, such as short codes, it is determined that module 4 can be looked into
The mapping relations of the type and SIM card that pre-establish are ask, to determine the corresponding SIM card of the first kind.
If the telephone number of user's input belongs to Second Type, it is determined that module 4 can inquire in above-mentioned mapping relations
The corresponding SIM card of Second Type.
Further, for the telephone number of Second Type, length is greater than preset length therefore can be according to phone number
Telephone number further division of the number for the number position being had more in code to Second Type.
Specifically, in one embodiment of the invention, if the telephone number belongs to the second preset kind, it is determined that
Module 4 can be used for: extract the number of predeterminated position in the telephone number;Corresponding SIM is determined according to the number of predeterminated position
Card.
Wherein, the number of predeterminated position is the number in the telephone number of user's input in addition to regular numbers.Due to
The telephone number of two types mainly increases IP number (such as 17951,17950,17969), national generation before regular numbers
Code (if the code of China is 86) or area code (code of such as Hong Kong Special Administrative Region is 852), and regular numbers are general
For preset length.Therefore, the number position that preset length can be taken since the telephone number tail position that user inputs, is left remaining number
Code bit is the number in addition to regular numbers.
After number in the telephone number for extracting user's input in addition to regular numbers, can further it judge except conventional
The corresponding classification of number except number then can be according to the mapping relations pre-established if it is IP number class, the determining and IP
The corresponding SIM card of number, and dial.It, then can be according to determining and respective country if it is country code or area code
Or the corresponding SIM card in region.
Dial module 5 is for dialling to the telephone number using the SIM card.
The communication device of the mobile terminal of the embodiment of the present invention can obtain the length information of the telephone number of user's input,
And judge whether the telephone number belongs to preset kind according to length information, and determine according to the preset kind that telephone number belongs to
Corresponding SIM card, and dial.Corresponding SIM card is directly selected thereby, it is possible to the type for inputting number according to user to carry out
Dialing, is not required to user and binds or select manually, dials more convenient, quick.
In one embodiment of the invention, can be made for user in the telephone number dialed in each preset kind
SIM card is learnt, to establish the mapping relations of different preset kinds and SIM card.Specifically, preset kind and SIM card
Mapping relations can be established according to the message registration of mobile terminal.
In the embodiment of the present invention, above-mentioned mapping relations can carry out self study simultaneously previously according to the message registration of mobile terminal
It establishes.As shown in figure 5, the communication device of the mobile terminal of the embodiment of the present invention, may also include that on the basis of shown in Fig. 4
Two acquisition modules 6, extraction module 7, third obtain module 8, categorization module 9 and establish module 10.
Second acquisition module 6 is used to obtain the message registration of mobile terminal.
Due to situations such as during being dialled using mobile terminal, there are number inputting errors, therefore, in order to mention
The accuracy of high above-mentioned mapping relations, the second acquisition module 6 can obtain the permissible call record of mobile terminal, i.e., user successfully dials
Out, and it is successfully established the message registration of call.
Extraction module 7 from message registration for extracting the multiple telephone numbers transferred to and dialing multiple electricity respectively
Talk about the SIM card of number.
Third obtains the length information that module 8 is used to obtain multiple telephone numbers.
Categorization module 9 is for classifying to multiple telephone numbers according to length information, with each telephone number institute of determination
The preset kind of category.
Specifically, categorization module 9 can according to the length information of each telephone number compared with preset length to having transferred to
Multiple telephone numbers classify.For example, the telephone number that will be greater than preset length is divided into Second Type, will be less than default
The telephone number of length is divided into the first kind.
Module 10 is established for establishing according to the corresponding SIM card of telephone number in classification results and each preset kind
The mapping relations of preset kind and SIM card.
For example, it dials if the telephone number of the first kind mainly passes through SIM card 1, and Second Type
Telephone number mainly passes through SIM card 2 and dials, then first kind corresponding SIM card 1, the second class can be established by establishing module 10
The mapping relations of type corresponding SIM card 2.
Further, establishing module 10 can also be for country code included in the telephone number of Second Type, region
Code, IP number etc. are different classes of to determine corresponding SIM card respectively, and establishes mapping relations.
To be learnt by the message registration to mobile terminal, the different type and SIM of Intelligent Establishment telephone number
The mapping relations of card, so that the type of the subsequent telephone number according to user's input determines that corresponding SIM card dials.
Corresponding with above-described embodiment, the present invention also proposes a kind of mobile terminal.
The mobile terminal of the embodiment of the present invention, the communication device of the mobile terminal including any embodiment of the present invention.
Mobile terminal according to an embodiment of the present invention, can obtain user input telephone number length information, and according to
Length information judges whether the telephone number belongs to preset kind, and is determined according to the preset kind that telephone number belongs to corresponding
SIM card, and dial.Corresponding SIM card is directly selected thereby, it is possible to the type for inputting number according to user to dial,
It is not required to user to bind or select manually, dial more convenient, quick.
Mobile terminal in accordance with another embodiment of the present invention, comprising: processor;For storage processor executable instruction
Memory;Wherein, processor is configured as: receiving the telephone number of user's input;Obtain the length letter of the telephone number
Breath;Judge whether the telephone number belongs to preset kind according to length information;If the telephone number belongs to preset kind,
The corresponding SIM card of preset kind then is determined according to the mapping relations pre-established, and using the SIM card to the telephone number
It dials.
Mobile terminal according to an embodiment of the present invention, can obtain user input telephone number length information, and according to
Length information judges whether the telephone number belongs to preset kind, and is determined according to the preset kind that telephone number belongs to corresponding
SIM card, and dial.Corresponding SIM card is directly selected thereby, it is possible to the type for inputting number according to user to dial,
It is not required to user to bind or select manually, dial more convenient, quick.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that: not
A variety of change, modification, replacement and modification can be carried out to these embodiments in the case where being detached from the principle of the present invention and objective, this
The range of invention is by claim and its equivalent limits.