CN110290514A - SIM card recommended method, device, storage medium and computer equipment - Google Patents

SIM card recommended method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN110290514A
CN110290514A CN201910673737.2A CN201910673737A CN110290514A CN 110290514 A CN110290514 A CN 110290514A CN 201910673737 A CN201910673737 A CN 201910673737A CN 110290514 A CN110290514 A CN 110290514A
Authority
CN
China
Prior art keywords
communication network
sim card
mobile terminal
card
modem
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910673737.2A
Other languages
Chinese (zh)
Other versions
CN110290514B (en
Inventor
郑勇
许仿珍
王辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Waterward Information Co Ltd
Original Assignee
Shenzhen Water World Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201910673737.2A priority Critical patent/CN110290514B/en
Publication of CN110290514A publication Critical patent/CN110290514A/en
Application granted granted Critical
Publication of CN110290514B publication Critical patent/CN110290514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters

Abstract

This application discloses a kind of SIM card recommended method, device, storage medium and computer equipments, wherein SIM card recommended method, comprising: obtains the current location of the mobile terminal;According to the current location, judge whether the mobile terminal is covered by multiple communication networks;If the mobile terminal is covered by multiple communication networks, specified communication network is selected;Identify the communication network that the SIM card in the card slot of the mobile terminal can use;If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, recommendation information is generated, wherein the recommendation information is the information for recommending to match the SIM card of the specified communication network.To recommend suitable SIM card out, the problem of people can not buy most suitable SIM card is overcome.And using it is automatic recommend and specified communication network by the way of, improve communication quality, reduce occur SIM card it is improper and a possibility that frequently replace, to reduce cumbersome degree.

Description

SIM card recommended method, device, storage medium and computer equipment
Technical field
This application involves computer field is arrived, especially relate to a kind of SIM card recommended method, device, storage medium and Computer equipment.
Background technique
Out on tours (such as external trip) is instantly common leisure way, and excessively high communication cost when out on tours is Problem, therefore people can buy use when local SIM card communicates to travel.But people are to locality when due to out on tours Communication network charge and do not know about, most suitable SIM card can not be bought.People perhaps randomly choose SIM card come using or Voluntarily collect information analyze which kind of SIM card it is suitable oneself, but both methods or lead to the still high enterprise of communication cost, communication Quality not can guarantee;Or lead to the consuming of excessive time and energy, and possibly can not select most suitable SIM card.
Summary of the invention
The application's is designed to provide a kind of SIM card recommended method, device, storage medium and computer equipment, it is intended to Under the premise of not needing the additional time energy of user effort, by recommending suitable SIM card to reduce communication cost, guarantee to lead to Believe quality.
The application proposes a kind of SIM card recommended method, is applied to mobile terminal, comprising:
Obtain the current location of the mobile terminal;
According to the current location, judge whether the mobile terminal is covered by multiple communication networks;
If the mobile terminal is covered by multiple communication networks, by preset communication network comparison algorithm, from multiple Specified communication network is selected in communication network;
According to preset SIM card Network Recognition method, identify that the SIM card in the card slot of the mobile terminal can use Communication network, wherein the mobile terminal has n card slot, n is integer more than or equal to 1;
Judge whether the communication network that the SIM card in the card slot of the mobile terminal can use includes the specified communication Network;
If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, generate Recommendation information, wherein the recommendation information is the information for recommending to match the SIM card of the specified communication network.
Further, described according to the current location, judge whether the mobile terminal is covered by multiple communication networks The step of, include:
The base station map prestored is transferred, wherein base station location and base station coverage distance is marked in the base station map;
In the base station map, obtain all no more than the base station coverage distance at a distance from the current location Specific base;
Judge whether all specific bases belong to the base station of same communication network;
If all specific bases are not belonging to the base station of same communication network, determine that the mobile terminal is multiple Communication network covering.
Further, described by preset communication network comparison algorithm, specified communication is selected from multiple communication networks The step of network includes:
Obtain the communication rate and packet loss of each communication network;
According to formula: the selection index=a1 × communication rate-a2 × packet loss calculates separately to obtain each logical The corresponding selection index of communication network, wherein a1, a2 are preset parameter, and a1, a2 are all larger than 0;
In each selection index being calculated, the corresponding communication network of the maximum selection index of numerical value is selected to make For the specified communication network.
Further, described according to preset SIM card Network Recognition method, in the card slot for identifying the mobile terminal The communication network that SIM card can use, wherein the mobile terminal has the step of n card slot, n is the integer more than or equal to 1 Before, include:
Obtain different frequency range and the corresponding communication network information in different regions;
Communication network database is generated, wherein the communication network database has recorded the different frequency range and different regions Corresponding communication network information;
It is described according to preset SIM card Network Recognition method, identify the SIM card institute energy in the card slot of the mobile terminal The step of communication network used, include:
Obtain the corresponding working frequency range of SIM card in the card slot of the mobile terminal;
Using the communication network database, the corresponding communication network of the working frequency range at current location is obtained.
Further, the mobile terminal has multiple modems, between the card slot and the modem It is connected by preset switching circuit, it is described according to preset SIM card Network Recognition method, identify the card of the mobile terminal The communication network that SIM card in slot can use, wherein the mobile terminal has n card slot, n is the integer more than or equal to 1 The step of before, include:
Multiple parallel channels are constructed using the switching circuit, wherein parallel channel is used to connect the SIM in the card slot Card and the modem;
Whether SIM card of the judgement in same parallel channel matches with modem;
If any SIM card and modem in same parallel channel mismatch, the switching circuit is utilized Parallel channel is rebuild, and returns and whether executes SIM card and modem of the judgement in same parallel channel The step of matching, until each SIM card in same parallel channel is matched with modem, alternatively, all SIM cards Matched with modem;
If each SIM card in same parallel channel is matched with modem, communication network identification is generated Instruction, the communication network identification instruction are used to indicate according to preset SIM card Network Recognition method, are identified described mobile whole The communication network that SIM card in the card slot at end can use.
Further, the mobile terminal has insertion detection circuit, and the insertion detection circuit is inserted into the card slot It is connected when SIM card, described to construct multiple parallel channels using the switching circuit, wherein parallel channel is for connecting the card slot In SIM card and the step of the modem before, comprising:
Obtain the current parameters of the insertion detection circuit;
Judge whether the current parameters are greater than preset parameter threshold;
If the current parameters are not more than preset parameter threshold, the corresponding card slot of the insertion detection circuit is marked For empty slot.
Further, the mobile terminal has the modem of K support double SIM card, and the switching circuit has 2K 1 × n variable connectors, two SIM interfaces of each modem are separately connected 1 × n variable connector Single ended interfaces, wherein K is the integer greater than 0, described to construct multiple parallel channels using the switching circuit, wherein parallel channel For the step of connecting the SIM card in the card slot and the modem, include:
First 1 × n variable connector is controlled, so that the first SIM interface and first card slot of first modem SIM card connection;Second 1 × n variable connector is controlled, so that the second SIM interface of first modem and second The SIM card of card slot is connected to;……;M-th of 1 × n variable connectors are controlled, so that the first SIM interface of the m/2 modem It is connected to the SIM card of m-th of card slot;M+1 1 × n variable connectors are controlled, so that the 2nd SIM of the m/2 modem Interface is connected to the SIM card of the m+1 card slot, and wherein m is even number;……;Until the 2nd SIM of k-th modem connects Mouth connection or the SIM card connection of n-th of card slot;
The interface channel of the SIM card being separately connected in the card slot at this time and the modem is denoted as parallel logical Road.
The application provides a kind of SIM card recommendation apparatus, is applied to mobile terminal, comprising:
Position acquisition unit, for obtaining the current location of the mobile terminal;
Communication network judging unit, for judging the mobile terminal whether by multiple communications according to the current location The network coverage;
Communication network selecting unit, if being covered for the mobile terminal by multiple communication networks, by preset logical Communication network comparison algorithm selects specified communication network from multiple communication networks;
Communication network recognition unit, for identifying the mobile terminal according to preset SIM card Network Recognition method The communication network that SIM card in card slot can use, wherein the mobile terminal has n card slot, n is whole more than or equal to 1 Number;
Specified communication network judging unit, the SIM card in card slot for judging the mobile terminal can use logical Whether communication network includes the specified communication network;
Recommendation information generation unit, if the communication network that the SIM card for the mobile terminal can use does not include institute Specified communication network is stated, then generates recommendation information, wherein the recommendation information is the SIM for recommending to match the specified communication network The information of card.
The application also proposes a kind of storage medium, is computer-readable storage medium, is stored thereon with computer journey Sequence, computer program, which is performed, realizes SIM card recommended method above-mentioned.
The application also proposes a kind of computer equipment, including memory, processor and storage are on a memory and can be The computer program run on processor, processor realize SIM card recommended method above-mentioned when executing computer program.
The beneficial effect of the application is: the SIM card recommended method of the application proposition, device, storage medium, computer are set It is standby, by the current location for obtaining the mobile terminal;If the mobile terminal is covered by multiple communication networks, by default Communication network comparison algorithm, specified communication network is selected from multiple communication networks;According to preset SIM card Network Recognition side Method identifies the communication network that the SIM card in the card slot of the mobile terminal can use;If the SIM card of the mobile terminal The communication network that can be used does not include the specified communication network, then generates recommendation information, wherein the recommendation information is to push away Recommend the information for matching the SIM card of the specified communication network.To recommend suitable SIM card out, people are overcome to locality The problem of communication network is charged and is not known about, and most suitable SIM card can not be bought.And it is communicated relative to traditional artificial selection Network, the application can effectively improve communication quality by the way of automatic recommendation and specified communication network.The SIM of the application Card is therefore to reduce via communication network comparison algorithm, SIM card Network Recognition method and it is preferred that obtained SIM card and SIM occur Block it is improper and a possibility that frequently replace, to reduce cumbersome degree.
Detailed description of the invention
Fig. 1 is the flow diagram of SIM card recommended method in one embodiment of the application;
Fig. 2 is the structural schematic diagram of SIM card recommendation apparatus in one embodiment of the application;
Fig. 3 is the structural schematic diagram of storage medium in one embodiment of the application;
Fig. 4 is the structural schematic diagram of computer equipment in one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application, it is not used to limit the application.
Referring to Fig.1, the embodiment of the present application proposes a kind of SIM card recommended method, is applied to mobile terminal, comprising:
S1, the current location for obtaining the mobile terminal;
S2, according to the current location, judge whether the mobile terminal is covered by multiple communication networks;
If S3, the mobile terminal are covered by multiple communication networks, by preset communication network comparison algorithm, from more Specified communication network is selected in a communication network;
S4, according to preset SIM card Network Recognition method, identify the SIM card institute energy in the card slot of the mobile terminal The communication network used, wherein the mobile terminal has n card slot, n is the integer more than or equal to 1;
S5, judge whether the communication network that the SIM card in the card slot of the mobile terminal can use includes described specified Communication network;
If the communication network that the SIM card of S6, the mobile terminal can use does not include the specified communication network, give birth to At recommendation information, wherein the recommendation information is the information for recommending to match the SIM card of the specified communication network.
As described in above-mentioned steps S1, the current location of the mobile terminal is obtained.Current location can be used any way and obtain It takes, such as is obtained using GPS positioning system, also can use mobile terminal and receive the downlink broadcast from operator base station Channel information obtains.
As described in above-mentioned steps S2, according to the current location, judge the mobile terminal whether by multiple communication networks Covering.Judge whether the mobile terminal can be such as current by scanning in any way by the covering of multiple communication networks Signal of communication is to learn whether the mobile terminal is covered by multiple communication networks.But this method is in some communication network It will cause erroneous judgement, therefore the application more preferably following method when signal is weaker: the base station map prestored transferred, wherein the base station Base station location and base station coverage distance are marked in map;In the base station map, obtain at a distance from the current location No more than all specific bases of the base station coverage distance;Judge whether all specific bases belong to the same operation Quotient;If all specific bases are not belonging to the same operator, determine that the mobile terminal is covered by multiple communication networks. To in the case where not needing the communication network of mobile terminal, can also know that communication network covers situation.Wherein, at described It can also include: described in acquisition before judging whether the mobile terminal is covered by multiple communication networks according to the current location The historical position information of mobile terminal;According to the historical position information, judge whether the current location belongs to the movement Terminal resides permanently position;If what the current location was not belonging to the mobile terminal resides permanently position, Covering judgment instruction is generated, The Covering judgment instruction is used to indicate according to the current location, judges whether the mobile terminal is covered by multiple communication networks Lid.Position is reside permanently described in wherein and refers to mobile terminal position resident for a long time, such as refers to that the mobile terminal resides permanently position described The resident time is set greater than preset time threshold.Wherein, whether position reaction mobile terminal (i.e. user) is reside permanently in easypro (such as family, company) is set in right position, and when mobile terminal is in comfortable position, it is that mobile terminal is resident for a long time due to residing permanently position Position, therefore user has sufficient time to select suitable communication network, alternatively, communication network of the user itself to the position Network is familiar with relatively, does not need the automatic recommendation for carrying out SIM card, therefore does not need to generate Covering judgment instruction, to reduce When for specific mobile terminal (i.e. current location, which belongs to, residing permanently the mobile terminal of position), it is not necessary to calculating consumption.
As described in above-mentioned steps S3, if the mobile terminal is covered by multiple communication networks, pass through preset communication network Network comparison algorithm selects specified communication network from multiple communication networks.If the mobile terminal is only covered by a communication network Lid, then the corresponding SIM card of the communication network can only be used, there is no need to further screen.Further, if it is described mobile whole End is only covered by a communication network, then is judged with the presence or absence of specified SIM card in the card slot of the mobile terminal, wherein the finger Determine the SIM card for the communication network that SIM card refers to using the covering mobile terminal;If there is no refer in the card slot of the mobile terminal Determine SIM card, then generate recommendation information, wherein the recommendation information is to recommend the specified SIM card.And if the mobile terminal quilt Multiple communication network coverings select specified communication network then by preset communication network comparison algorithm from multiple communication networks Network, wherein specified communication network suits the requirements, such as meet communication cost is minimum, signal of communication preferably etc..Specifically, It is described by preset communication network comparison algorithm, specified communication network is selected from multiple communication networks, comprising: obtain it is each The communication rate and packet loss of the communication network;According to formula: the selection index=a1 × communication rate-a2 × described loses Packet rate calculates separately to obtain the corresponding selection index of each communication network, and wherein a1, a2 are preset parameter, and a1, a2 are big In 0;In each selection index being calculated, select numerical value is maximum to select the corresponding communication network of index as institute State specified communication network.To obtain the optimal communication network of overall merit.
As described in above-mentioned steps S4, according to preset SIM card Network Recognition method, the card slot of the mobile terminal is identified In the communication network that can use of SIM card, wherein the mobile terminal has n card slot, n is the integer more than or equal to 1.Though So obtained specified communication network, if but the currently used SIM of mobile terminal just matched with the specified communication network , then just without recommending SIM card.Therefore, according to preset SIM card Network Recognition method, the mobile terminal is first identified Card slot in the communication network that can use of SIM card.It include: wherein to obtain institute according to preset SIM card Network Recognition method State the corresponding working frequency range of SIM card in the card slot of mobile terminal;Using preset communication network database, obtain in present bit The working frequency range corresponding communication network when setting.Alternatively, preset SI network recognition methods includes: to obtain from preset database Take the mobile terminal at current location, the communication network that the SIM card in card slot can use, wherein the database is preparatory It describes in each geographic area, the communication network that the SIM card in card slot can use.
As described in above-mentioned steps S5, the communication network for judging that the SIM card in the card slot of the mobile terminal can use is No includes the specified communication network.The method wherein judged can be any means, if such as the communication network that identifies include Network name then can determine whether the communication that the SIM card in the card slot of the mobile terminal can use by comparing network name Whether network includes the specified communication network.
As described in above-mentioned steps S6, if the communication network that the SIM card of the mobile terminal can use does not include the finger Determine communication network, then generate recommendation information, wherein the recommendation information is the SIM card for recommending to match the specified communication network Information.If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, show currently to make SIM card be not it is most suitable, accordingly generate recommendation information, it is proposed that the user of the mobile terminal is using recommending SIM card is communicated.
In one embodiment, described according to the current location, judge the mobile terminal whether by multiple communications The step S2 of the network coverage includes:
S201, transfer the base station map prestored, wherein be marked in the base station map base station location and base station covering away from From;
S202, in the base station map, obtain with the current location at a distance from no more than the base station coverage distance All specific bases;
S203, judge whether all specific bases belong to the base station of same communication network;
If S204, all specific bases are not belonging to the base station of same communication network, the mobile terminal is determined It is covered by multiple communication networks.
As described above, realizing according to the current location, judge whether the mobile terminal is covered by multiple communication networks Lid.Base station is the infrastructure of common carrier, and within base station coverage distance, the user of common carrier can pass through the base It stands and uses corresponding communication network.The application passes through the base station map prestored, to learn distribution situation and the base station of base station Coverage distance.Wherein base station coverage distance has according to the difference of operator, local environment (weather, weather, geographical environment etc.) Variation.Therefore the base station coverage distance of different base station is different in the map of base station, so as to obtain most accurate data letter Breath.The base station map is recycled, all fingers for being not more than the base station coverage distance at a distance from the current location are obtained Determine base station, the specific base obtained from is all to be able to carry out the base station of efficient communication, correspondingly, the corresponding communication of specific base Network is the communication network that can cover current location.Accordingly, if all specific bases are not belonging to same communication network The base station of network then determines that the mobile terminal is covered by multiple communication networks.
In one embodiment, described by preset communication network comparison algorithm, it is selected from multiple communication networks The step S3 of specified communication network includes:
S301, the communication rate and packet loss for obtaining each communication network;
S302, according to formula: selection the index=a1 × communication rate-a2 × packet loss, calculate separately to obtain The corresponding selection index of each communication network, wherein a1, a2 are preset parameter, and a1, a2 are all larger than 0;
S303, in each selection index being calculated, select the corresponding communication of the maximum selection index of numerical value Network is as the specified communication network.
As described above, realizing through preset communication network comparison algorithm, selected from multiple communication networks specified logical Communication network.In order to select the highest communication network of overall merit, the application is using the expense and packet loss for comprehensively considering communication network The mode of rate realizes the specified communication network of selection.Wherein packet loss refers to that lost data packets quantity accounts for transmitted data group Ratio.Calculation method is for example are as follows: the quantity of lost data packets/input data packet quantity;Or calculation method are as follows: lose data The size of data of packet/input data packet size of data.Further according to formula: the selection index=a1 × communication rate-a2 × The packet loss calculates separately to obtain the corresponding selection index of each communication network, and wherein a1, a2 are preset parameter, a1, A2 is all larger than 0.Selection index to be calculated is the numerical response of communication network quality, accordingly by multiple communication networks pair Numerical value is maximum to select the corresponding communication network of index as the specified communication network for selecting in index of answering.
In one embodiment, described according to preset SIM card Network Recognition method, identify the mobile terminal The communication network that SIM card in card slot can use, wherein the mobile terminal has n card slot, n is whole more than or equal to 1 Before several step S4, include:
S311, different frequency range and the corresponding communication network information in different regions are obtained;
S312, communication network database is generated, wherein the communication network database has recorded the different frequency range and not The corresponding communication network information with area;
It is described according to preset SIM card Network Recognition method, identify the SIM card institute energy in the card slot of the mobile terminal The step S4 of the communication network used includes:
S401, the corresponding working frequency range of SIM card in the card slot of the mobile terminal is obtained;
S402, using the communication network database, obtain the corresponding communication network of the working frequency range at current location Network.
As described above, realizing the communication network that the SIM card in the card slot for identifying the mobile terminal can use.This Application is using building communication network database in advance, wherein the communication network database has recorded the different frequency range and difference The mode of the corresponding communication network information in area, enables the mobile terminal of the application directly to know accurate communication in any one location The network information.Wherein, above-mentioned communication network information includes but is not limited to operator name, geographical location, frequency range and communication expense With etc..
Communication network database, by taking GSM mobile handset frequency range as an example, such as:
Global band table under table 1.GSM network
Country Frequency range (MHz)
China (China Mobile) GSM900/1800
United States (U.S. AT&T) GSM850/1900
Canada (certain Canadian communication network) GSM850/1900
、、、 、、、
France (certain French communication network) GSM900/1800
Wherein, what the radio transmission of communication network utilized is radio band, therefore can uniquely be obtained according to radio band Know accurate communication network, and due to the characteristic of region, different regions are different using the communication network of same frequency range, this Application is recorded into communication network database, so that the SIM card in the card slot for identifying the mobile terminal can use Communication network when, by communication network database comparison work frequency range with current location it can be learnt that SIM card can make Communication network.
In one embodiment, the mobile terminal has multiple modems, the card slot and the modulatedemodulate It adjusts and is connected between device by preset switching circuit, it is described according to preset SIM card Network Recognition method, identify the movement The communication network that SIM card in the card slot of terminal can use, wherein the mobile terminal have n card slot, n for more than or equal to Before the step S4 of 1 integer, include:
S321, multiple parallel channels are constructed using the switching circuit, wherein parallel channel is for connecting in the card slot SIM card and the modem;
Whether the SIM card of S322, judgement in same parallel channel matches with modem;
If S323, any SIM card in same parallel channel and modem mismatch, the switch is utilized Circuit rebuilds parallel channel, and returns to the SIM card and modem for executing the judgement in same parallel channel The step of whether matching, until each SIM card in same parallel channel is matched with modem, alternatively, all SIM card was matched with modem;
If S324, each SIM card in same parallel channel are matched with modem, communication network is generated Identification instruction, the communication network identification instruction are used to indicate according to preset SIM card Network Recognition method, identify the shifting The communication network that SIM card in the card slot of dynamic terminal can use.
As described above, realizing the use of multiple SIM card.A modem (modem) in one terminal can prop up Hold the required frequency range of part operator and network formats, the required frequency range of operator and network system that multiple modem are supported Formula can be more, enumerate as follows:
2.K modem band support of table and network formats
By taking three big operators of China as an example, a modem realizes the support to 7 mould, 18 frequency: supporting TD-LTE mode Tetra- kinds of frequency ranges of B38/B39/B40/B41, tri- kinds of frequency ranges of B1/B3/B7 of FDD-LTE mode, the B34/B39 of TD-SCDMA mode Two kinds of frequency ranges, tetra- kinds of frequency ranges of 850/900/1900/2100MHz of WCDMA mode, the 850/900/1800/ of GSM/EDGE mode 1900 3 kinds of frequency ranges, two kinds of frequency ranges of the 800MHz of CDMA/EVDO mode.Wherein SIM card correspondingly uses certain frequency ranges, therefore SIM card needs to cooperate with corresponding modem, could work normally.
The application by constructing multiple first parallel channels so that multiple SIM card can be detected simultaneously whether with modulation Demodulator matching;Unevenness matching, then continue to construct multiple second parallel channels, so that multiple SIM card can be detected simultaneously is It is no to be matched with modem;If still mismatching, continue to construct third parallel channel ... ..., until all SIM card with Modem successful match, alternatively, all SIM cards were matched with modem.Wherein, in above-mentioned multiple deterministic processes In, as long as there is the arbitrarily result that once judges that can match with modem as all SIM cards, determine to match at Function, and then generate communication network identification instruction.If also, wherein have part successful match in parallel channel, it is subsequent parallel The building in channel can exclude the parallel channel of successful match (only to need the SIM card and modem for non-successful match Construct channel).Wherein, the determiners such as " first " in the present embodiment, " second " and " third " are only used for distinguishing different Parallel channel constructed by moment, should not purposes to parallel channel and building mode etc. cause to limit.
In one embodiment, the mobile terminal has insertion detection circuit, and the insertion detection circuit is described Card slot is connected when being inserted into SIM card, described to construct multiple parallel channels using the switching circuit, and wherein parallel channel is for connecting Before the step S321 of SIM card in the card slot and the modem, comprising:
S3201, the current parameters for obtaining the insertion detection circuit;
S3201, judge whether the current parameters are greater than preset parameter threshold;
If S3203, the current parameters are not more than preset parameter threshold, by the corresponding card of the insertion detection circuit Slot marker is empty slot.
Empty slot is first judged whether there is as described above, realizing.The application has insertion detection using the mobile terminal Circuit, the design that the insertion detection circuit is connected when the card slot is inserted into SIM card make empty slot detection become possibility.Tool Body, obtain the current parameters of the insertion detection circuit;Judge whether the current parameters are greater than preset parameter threshold;If The current parameters are not more than preset parameter threshold, then the corresponding card slot of the insertion detection circuit are labeled as empty slot.Its In, if insertion detection circuit can be made to be connected since card slot inserts SIM card, when relative to being not inserted into SIM card, insertion detection The current parameters of circuit, such as current values can be greater than preset parameter threshold, judge whether it is empty slot accordingly.As replacement Ground, if insertion detection circuit open circuit when the card slot is inserted into SIM card, if the current parameters are greater than preset parameter The corresponding card slot of the insertion detection circuit is then labeled as empty slot by threshold value.
In one embodiment, the mobile terminal has the modem of K support double SIM card, the switch Circuit has 2K 1 × n variable connectors, and it is more that two SIM interfaces of each modem are separately connected the 1 × n The single ended interfaces of way switch, wherein K is the integer greater than 0, described to construct multiple parallel channels using the switching circuit, wherein Parallel channel is used to connect the step S321 of SIM card and the modem in the card slot, includes:
First S3211, control 1 × n variable connector, so that the first SIM interface and first of first modem The SIM card of a card slot is connected to;Control second 1 × n variable connector so that the second SIM interface of first modem with The SIM card connection of second card slot;……;M-th of 1 × n variable connectors are controlled, so that the first of the m/2 modem SIM interface is connected to the SIM card of m-th of card slot;M+1 1 × n variable connectors are controlled, so that the m/2 modem Second SIM interface is connected to the SIM card of the m+1 card slot, and wherein m is even number;……;Until the of k-th modem The connection of two SIM interfaces or the SIM card connection of n-th of card slot;
S3212, the interface channel of the SIM card being separately connected in the card slot at this time and the modem is denoted as simultaneously Row of channels.
Multiple parallel channels are constructed using the switching circuit as described above, realizing, wherein parallel channel is for connecting SIM card and the modem in the card slot.The application has K support double SIM card using the mobile terminal Modem, the switching circuit have 2K 1 × n variable connectors, and two SIM interfaces of each modem are distinguished The mode for connecting 1 × n variable connector, realizes the building of parallel channel.Wherein 1 × n variable connector refers to a kind of switch, One head only has an interface (single ended interfaces), and other end has in multiterminal interface, and 1 × n variable connector can refer to according to control Enable one in selection single ended interfaces and the multiterminal interface.To the SIM card in the multiple card slot can respectively with it is multiple Modem connection, and then judge whether to match simultaneously.
The SIM card recommended method that the application proposes, by the current location for obtaining the mobile terminal;If described mobile whole End is covered by multiple communication networks, then by preset communication network comparison algorithm, is selected from multiple communication networks specified logical Communication network;According to preset SIM card Network Recognition method, identify that the SIM card in the card slot of the mobile terminal can use Communication network;If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, give birth to At recommendation information, wherein the recommendation information is the information for recommending to match the SIM card of the specified communication network.To recommend Suitable SIM card overcomes people and local communication network is charged and do not known about, can not buy asking for most suitable SIM card Topic.And relative to traditional artificial selection communication network, the application is by the way of automatic recommendation and specified communication network, energy Enough effectively improve communication quality.The SIM card of the application is excellent via communication network comparison algorithm, SIM card Network Recognition method Select obtained SIM card, thus reduce occur SIM card it is improper and a possibility that frequently replace, to reduce cumbersome Degree.
Referring to Fig. 2, the embodiment of the present application also proposes a kind of SIM card recommendation apparatus, is applied to mobile terminal, comprising:
Position acquisition unit 10, for obtaining the current location of the mobile terminal;
Communication network judging unit 20, for judging the mobile terminal whether by multiple logical according to the current location Communication network covering;
Communication network selecting unit 30, if being covered for the mobile terminal by multiple communication networks, by preset Communication network comparison algorithm selects specified communication network from multiple communication networks;
Communication network recognition unit 40, for identifying the mobile terminal according to preset SIM card Network Recognition method Card slot in the communication network that can use of SIM card, wherein the mobile terminal has n card slot, n is more than or equal to 1 Integer;
Specified communication network judging unit 50, what the SIM card in card slot for judging the mobile terminal can use Whether communication network includes the specified communication network;
Recommendation information generation unit 60, if the communication network that the SIM card for the mobile terminal can use does not include The specified communication network, then generate recommendation information, wherein the recommendation information is to recommend to match the specified communication network The information of SIM card.
As described in said units 10, the current location of the mobile terminal is obtained.Current location can be used any way and obtain It takes, such as is obtained using GPS positioning system, also can use mobile terminal and receive the downlink broadcast from operator base station Channel information obtains.
As described in said units 20, according to the current location, judge the mobile terminal whether by multiple communication networks Covering.Judge whether the mobile terminal can be such as current by scanning in any way by the covering of multiple communication networks Signal of communication is to learn whether the mobile terminal is covered by multiple communication networks.But this method is in some communication network It will cause erroneous judgement, therefore the application more preferably following method when signal is weaker: the base station map prestored transferred, wherein the base station Base station location and base station coverage distance are marked in map;In the base station map, obtain at a distance from the current location No more than all specific bases of the base station coverage distance;Judge whether all specific bases belong to the same operation Quotient;If all specific bases are not belonging to the same operator, determine that the mobile terminal is covered by multiple communication networks. To in the case where not needing the communication network of mobile terminal, can also know that communication network covers situation.Wherein, at described It can also include: described in acquisition before judging whether the mobile terminal is covered by multiple communication networks according to the current location The historical position information of mobile terminal;According to the historical position information, judge whether the current location belongs to the movement Terminal resides permanently position;If what the current location was not belonging to the mobile terminal resides permanently position, Covering judgment instruction is generated, The Covering judgment instruction is used to indicate according to the current location, judges whether the mobile terminal is covered by multiple communication networks Lid.Position is reside permanently described in wherein and refers to mobile terminal position resident for a long time, such as refers to that the mobile terminal resides permanently position described The resident time is set greater than preset time threshold.Wherein, whether position reaction mobile terminal (i.e. user) is reside permanently in easypro (such as family, company) is set in right position, and when mobile terminal is in comfortable position, it is that mobile terminal is resident for a long time due to residing permanently position Position, therefore user has sufficient time to select suitable communication network, alternatively, communication network of the user itself to the position Network is familiar with relatively, does not need the automatic recommendation for carrying out SIM card, therefore does not need to generate Covering judgment instruction, to reduce When for specific mobile terminal (i.e. current location, which belongs to, residing permanently the mobile terminal of position), it is not necessary to calculating consumption.
As described in said units 30, if the mobile terminal is covered by multiple communication networks, pass through preset communication network Network comparison algorithm selects specified communication network from multiple communication networks.If the mobile terminal is only covered by a communication network Lid, then the corresponding SIM card of the communication network can only be used, there is no need to further screen.Further, if it is described mobile whole End is only covered by a communication network, then is judged with the presence or absence of specified SIM card in the card slot of the mobile terminal, wherein the finger Determine the SIM card for the communication network that SIM card refers to using the covering mobile terminal;If there is no refer in the card slot of the mobile terminal Determine SIM card, then generate recommendation information, wherein the recommendation information is to recommend the specified SIM card.And if the mobile terminal quilt Multiple communication network coverings select specified communication network then by preset communication network comparison algorithm from multiple communication networks Network, wherein specified communication network suits the requirements, such as meet communication cost is minimum, signal of communication preferably etc..Specifically, It is described by preset communication network comparison algorithm, specified communication network is selected from multiple communication networks, comprising: obtain it is each The communication rate and packet loss of the communication network;According to formula: the selection index=a1 × communication rate-a2 × described loses Packet rate calculates separately to obtain the corresponding selection index of each communication network, and wherein a1, a2 are preset parameter, and a1, a2 are big In 0;In each selection index being calculated, select numerical value is maximum to select the corresponding communication network of index as institute State specified communication network.To obtain the optimal communication network of overall merit.
As described in said units 40, according to preset SIM card Network Recognition method, the card slot of the mobile terminal is identified In the communication network that can use of SIM card, wherein the mobile terminal has n card slot, n is the integer more than or equal to 1.Though So obtained specified communication network, if but the currently used SIM of mobile terminal just matched with the specified communication network , then just without recommending SIM card.Therefore, according to preset SIM card Network Recognition method, the mobile terminal is first identified Card slot in the communication network that can use of SIM card.It include: wherein to obtain institute according to preset SIM card Network Recognition method State the corresponding working frequency range of SIM card in the card slot of mobile terminal;Using preset communication network database, obtain in present bit The working frequency range corresponding communication network when setting.Alternatively, preset SIM card Network Recognition method includes: from preset data The mobile terminal is obtained in library at current location, the communication network that the SIM card in card slot can use, wherein the data Library is described in advance in each geographic area, the communication network that the SIM card in card slot can use.
As described in said units 50, the communication network for judging that the SIM card in the card slot of the mobile terminal can use is No includes the specified communication network.The method wherein judged can be any means, if such as the communication network that identifies include Network name then can determine whether the communication that the SIM card in the card slot of the mobile terminal can use by comparing network name Whether network includes the specified communication network.
As described in said units 60, if the communication network that the SIM card of the mobile terminal can use does not include the finger Determine communication network, then generate recommendation information, wherein the recommendation information is the SIM card for recommending to match the specified communication network Information.If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, show currently to make SIM card be not it is most suitable, accordingly generate recommendation information, it is proposed that the user of the mobile terminal is using recommending SIM card is communicated.
In one embodiment, the communication network judging unit 20, comprising:
Base station map transfers subelement, for transferring the base station map prestored, wherein base is marked in the base station map Station location and base station coverage distance;
Specific base obtains subelement, for obtaining little at a distance from the current location in the base station map In all specific bases of the base station coverage distance;
Same base judgment sub-unit, for judging whether all specific bases belong to the base of same communication network It stands;
Covering determines that subelement is sentenced if being not belonging to the base station of same communication network for all specific bases The fixed mobile terminal is covered by multiple communication networks.
As described above, realizing according to the current location, judge whether the mobile terminal is covered by multiple communication networks Lid.Base station is the infrastructure of common carrier, and within base station coverage distance, the user of common carrier can pass through the base It stands and uses corresponding communication network.The application passes through the base station map prestored, to learn distribution situation and the base station of base station Coverage distance.Wherein base station coverage distance has according to the difference of operator, local environment (weather, weather, geographical environment etc.) Variation.Therefore the base station coverage distance of different base station is different in the map of base station, so as to obtain most accurate data letter Breath.The base station map is recycled, all fingers for being not more than the base station coverage distance at a distance from the current location are obtained Determine base station, the specific base obtained from is all to be able to carry out the base station of efficient communication, correspondingly, the corresponding communication of specific base Network is the communication network that can cover current location.Accordingly, if all specific bases are not belonging to same communication network The base station of network then determines that the mobile terminal is covered by multiple communication networks.
In one embodiment, the communication network selecting unit 30, comprising:
Expense and packet loss obtain subelement, for obtaining the communication rate and packet loss of each communication network;
Index computation subunit is selected, for according to formula: the selection index=a1 × communication rate-a2 × described loses Packet rate calculates separately to obtain the corresponding selection index of each communication network, and wherein a1, a2 are preset parameter, and a1, a2 are big In 0;
Communication network selects subelement, for selecting numerical value maximum in each selection index being calculated Select the corresponding communication network of index as the specified communication network.
As described above, realizing through preset communication network comparison algorithm, selected from multiple communication networks specified logical Communication network.In order to select the highest communication network of overall merit, the application is using the expense and packet loss for comprehensively considering communication network The mode of rate realizes the specified communication network of selection.Wherein packet loss refers to that lost data packets quantity accounts for transmitted data group Ratio.Calculation method is for example are as follows: the quantity of lost data packets/input data packet quantity;Or calculation method are as follows: lose data The size of data of packet/input data packet size of data.Further according to formula: the selection index=a1 × communication rate-a2 × The packet loss calculates separately to obtain the corresponding selection index of each communication network, and wherein a1, a2 are preset parameter, a1, A2 is all larger than 0.Selection index to be calculated is the numerical response of communication network quality, accordingly by multiple communication networks pair Numerical value is maximum to select the corresponding communication network of index as the specified communication network for selecting in index of answering.
In one embodiment, described device, comprising:
Communication network information acquiring unit, for obtaining the corresponding communication network information of different frequency range and different regions;
Communication network database generation unit, for generating communication network database, wherein the communication network database Have recorded the corresponding communication network information of the different frequency range and different regions;
The communication network recognition unit includes:
Working frequency range obtains subelement, the corresponding working frequency range of SIM card in the card slot for obtaining the mobile terminal;
Communication network obtains subelement, for utilizing the communication network database, obtains the work at current location Make the corresponding communication network of frequency range.
As described above, realizing the communication network that the SIM card in the card slot for identifying the mobile terminal can use.This Application is using building communication network database in advance, wherein the communication network database has recorded the different frequency range and difference The mode of the corresponding communication network information in area, enables the mobile terminal of the application directly to know accurate communication in any one location The network information.Wherein, above-mentioned communication network information includes but is not limited to operator name, geographical location, frequency range and communication expense With etc..Communication network database, by taking GSM mobile handset frequency range as an example, such as:
Global band table under table 1.GSM network
Country Frequency range (MHz)
China (China Mobile) GSM900/1800
United States (U.S. AT&T) GSM850/1900
Canada (certain Canadian communication network) GSM850/1900
、、、 、、、
France (certain French communication network) GSM900/1800
Wherein, what the radio transmission of communication network utilized is radio band, therefore can uniquely be obtained according to radio band Know accurate communication network, and due to the characteristic of region, different regions are different using the communication network of same frequency range, this Application is recorded into communication network database, so that the SIM card in the card slot for identifying the mobile terminal can use Communication network when, by communication network database comparison work frequency range with current location it can be learnt that SIM card can make Communication network.
In one embodiment, the mobile terminal has multiple modems, the card slot and the modulatedemodulate It adjusts and is connected between device by preset switching circuit, described device, comprising:
First parallel channel construction unit, for constructing multiple parallel channels using the switching circuit, wherein parallel logical Road is used to connect the SIM card in the card slot and the modem;
Matching judgment unit, for judging whether the SIM card in same parallel channel matches with modem;
Second parallel channel construction unit, if for any SIM card and modem in same parallel channel It mismatches, then rebuilds parallel channel using the switching circuit, and return and execute the judgement in same parallel channel In SIM card the step of whether being matched with modem, until each SIM card and modulatedemodulate in same parallel channel Device is adjusted to match, alternatively, all SIM cards were matched with modem;
Instruction generation unit is identified, if each SIM card for being in same parallel channel and modem equal Match, then generate communication network identification instruction, the communication network identification instruction is used to indicate to be known according to preset SIM card network Other method identifies the communication network that the SIM card in the card slot of the mobile terminal can use.
As described above, realizing the use of multiple SIM card.A modem (modem) in one terminal can prop up Hold the required frequency range of part operator and network formats, the required frequency range of operator and network system that multiple modem are supported Formula can be more, enumerate as follows:
2.K modem band support of table and network formats
By taking three big operators of China as an example, a modem realizes the support to 7 mould, 18 frequency: supporting TD-LTE mode Tetra- kinds of frequency ranges of B38/B39/B40/B41, tri- kinds of frequency ranges of B1/B3/B7 of FDD-LTE mode, the B34/B39 of TD-SCDMA mode Two kinds of frequency ranges, tetra- kinds of frequency ranges of 850/900/1900/2100MHz of WCDMA mode, the 850/900/1800/ of GSM/EDGE mode 1900 3 kinds of frequency ranges, two kinds of frequency ranges of the 800MHz of CDMA/EVDO mode.Wherein SIM card correspondingly uses certain frequency ranges, therefore SIM card needs to cooperate with corresponding modem, could work normally.
The application by constructing multiple first parallel channels so that multiple SIM card can be detected simultaneously whether with modulation Demodulator matching;Unevenness matching, then continue to construct multiple second parallel channels, so that multiple SIM card can be detected simultaneously is It is no to be matched with modem;If still mismatching, continue to construct third parallel channel ... ..., until all SIM card with Modem successful match, alternatively, all SIM cards were matched with modem.Wherein, in above-mentioned multiple deterministic processes In, as long as there is the arbitrarily result that once judges that can match with modem as all SIM cards, determine to match at Function, and then generate communication network identification instruction.If also, wherein have part successful match in parallel channel, it is subsequent parallel The building in channel can exclude the parallel channel of successful match (only to need the SIM card and modem for non-successful match Construct channel).
In one embodiment, the mobile terminal has insertion detection circuit, and the insertion detection circuit is described Card slot is connected when being inserted into SIM card, described device, comprising:
Current parameters acquiring unit, for obtaining the current parameters of the insertion detection circuit;
Parameter threshold judging unit, for judging whether the current parameters are greater than preset parameter threshold;
Empty slot marking unit detects the insertion if being not more than preset parameter threshold for the current parameters The corresponding card slot of circuit is labeled as empty slot.
Empty slot is first judged whether there is as described above, realizing.The application has insertion detection using the mobile terminal Circuit, the design that the insertion detection circuit is connected when the card slot is inserted into SIM card make empty slot detection become possibility.Tool Body, obtain the current parameters of the insertion detection circuit;Judge whether the current parameters are greater than preset parameter threshold;If The current parameters are not more than preset parameter threshold, then the corresponding card slot of the insertion detection circuit are labeled as empty slot.Its In, if insertion detection circuit can be made to be connected since card slot inserts SIM card, when relative to being not inserted into SIM card, insertion detection The current parameters of circuit, such as current values can be greater than preset parameter threshold, judge whether it is empty slot accordingly.As replacement Ground, if insertion detection circuit open circuit when the card slot is inserted into SIM card, if the current parameters are greater than preset parameter The corresponding card slot of the insertion detection circuit is then labeled as empty slot by threshold value.
In one embodiment, the mobile terminal has the modem of K support double SIM card, the switch Circuit has 2K 1 × n variable connectors, and it is more that two SIM interfaces of each modem are separately connected the 1 × n The single ended interfaces of way switch, wherein K is the integer greater than 0, first parallel channel construction unit, comprising:
Subelement is connected, for controlling first 1 × n variable connector, so that the first SIM of first modem connects Mouth is connected to the SIM card of first card slot;Second 1 × n variable connector is controlled, so that the second of first modem SIM interface is connected to the SIM card of second card slot;……;M-th of 1 × n variable connectors are controlled, so that the m/2 modulation /demodulation First SIM interface of device is connected to the SIM card of m-th of card slot;M+1 1 × n variable connectors are controlled, so that the m/2 modulation Second SIM interface of demodulator is connected to the SIM card of the m+1 card slot, and wherein m is even number;……;Until k-th modulatedemodulate Adjust the second SIM interface connection of device or the SIM card connection of n-th of card slot;
First parallel channel marks subelement, for will be separately connected the SIM card in the card slot and the modulation at this time The interface channel of demodulator is denoted as parallel channel.
Multiple parallel channels are constructed using the switching circuit as described above, realizing, wherein parallel channel is for connecting SIM card and the modem in the card slot.The application has K support double SIM card using the mobile terminal Modem, the switching circuit have 2K 1 × n variable connectors, and two SIM interfaces of each modem are distinguished The mode for connecting 1 × n variable connector, realizes the building of parallel channel.Wherein 1 × n variable connector refers to a kind of switch, One head only has an interface (single ended interfaces), and other end has in multiterminal interface, and 1 × n variable connector can refer to according to control Enable one in selection single ended interfaces and the multiterminal interface.To the SIM card in the multiple card slot can respectively with it is multiple Modem connection, and then judge whether to match simultaneously.
The SIM card recommendation apparatus that the application proposes, by the current location for obtaining the mobile terminal;If described mobile whole End is covered by multiple communication networks, then by preset communication network comparison algorithm, is selected from multiple communication networks specified logical Communication network;According to preset SIM card Network Recognition method, identify that the SIM card in the card slot of the mobile terminal can use Communication network;If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, give birth to At recommendation information, wherein the recommendation information is the information for recommending to match the SIM card of the specified communication network.To recommend Suitable SIM card overcomes people and local communication network is charged and do not known about, can not buy asking for most suitable SIM card Topic.And relative to traditional artificial selection communication network, the application is by the way of automatic recommendation and specified communication network, energy Enough effectively improve communication quality.The SIM card of the application is excellent via communication network comparison algorithm, SIM card Network Recognition method Select obtained SIM card, thus reduce occur SIM card it is improper and a possibility that frequently replace, to reduce cumbersome Degree.
Referring to Fig. 3, the embodiment of the present application also proposes a kind of storage medium 100, is computer-readable storage medium, On be stored with computer program 200, computer program 200 is performed the SIM card recommendation side realized in any of the above-described embodiment Method.
Referring to Fig. 4, the embodiment of the present application also propose a kind of computer equipment 300, including memory 400, processor 500 with And it is stored in the computer program 200 that can be run on memory 400 and on processor 500, processor 500 executes computer journey The SIM card recommended method in any of the above-described embodiment is realized when sequence 200.
It will be understood by those skilled in the art that the computer equipment 300 of the embodiment of the present invention is above-mentioned involved for holding One or more equipment in row the application in method.These equipment can specially design and manufacture for required purpose, It or also may include known device in general purpose computer.These equipment have the computer program 200 that is stored in it or Application program, these computer programs 200 are selectively activated or are reconstructed.Such computer program 200 can be stored in In equipment (for example, computer) readable medium or it is stored in and is suitable for storing e-command and is coupled to any class of bus respectively In the medium of type, computer-readable medium include but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM, And magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random storage Device), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), (Electrically Erasable Programmable Read-Only Memory, electric erazable programmable is read-only to be deposited EEPROM Reservoir), flash memory, magnetic card or light card.It is, readable medium includes by equipment (for example, computer) can read Form storage or transmission information any medium.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations Technical field, similarly include in the scope of patent protection of the application.

Claims (10)

1. a kind of SIM card recommended method, which is characterized in that be applied to mobile terminal, comprising:
Obtain the current location of the mobile terminal;
According to the current location, judge whether the mobile terminal is covered by multiple communication networks;
If the mobile terminal is covered by multiple communication networks, by preset communication network comparison algorithm, from multiple communications Specified communication network is selected in network;
According to preset SIM card Network Recognition method, identify that the SIM card in the card slot of the mobile terminal can use logical Communication network, wherein the mobile terminal has n card slot, n is the integer more than or equal to 1;
Judge whether the communication network that the SIM card in the card slot of the mobile terminal can use includes the specified communication network Network;
If the communication network that the SIM card of the mobile terminal can use does not include the specified communication network, recommendation is generated Information, wherein the recommendation information is the information for recommending to match the SIM card of the specified communication network.
2. SIM card recommended method according to claim 1, which is characterized in that it is described according to the current location, judge institute The step of whether mobile terminal is covered by multiple communication networks is stated, includes:
The base station map prestored is transferred, wherein base station location and base station coverage distance is marked in the base station map;
In the base station map, obtain all specified no more than the base station coverage distance at a distance from the current location Base station;
Judge whether all specific bases belong to the base station of same communication network;
If all specific bases are not belonging to the base station of same communication network, determine the mobile terminal by multiple communications The network coverage.
3. SIM card recommended method according to claim 1, which is characterized in that described to be compared by preset communication network Algorithm, the step of selecting specified communication network from multiple communication networks, comprising:
Obtain the communication rate and packet loss of each communication network;
According to formula: the selection index=a1 × communication rate-a2 × packet loss calculates separately to obtain each communication network The corresponding selection index of network, wherein a1, a2 are preset parameter, and a1, a2 are all larger than 0;
In each selection index being calculated, select numerical value is maximum to select the corresponding communication network of index as institute State specified communication network.
4. SIM card recommended method according to claim 1, which is characterized in that described according to preset SIM card Network Recognition Method identifies the communication network that the SIM card in the card slot of the mobile terminal can use, wherein the mobile terminal has Before the step of n card slot, n is the integer more than or equal to 1, comprising:
Obtain different frequency range and the corresponding communication network information in different regions;
Communication network database is generated, wherein the communication network database has recorded the different frequency range and different regions are corresponding Communication network information;
It is described according to preset SIM card Network Recognition method, identify that the SIM card in the card slot of the mobile terminal can use Communication network the step of, include:
Obtain the corresponding working frequency range of SIM card in the card slot of the mobile terminal;
Using the communication network database, the corresponding communication network of the working frequency range at current location is obtained.
5. SIM card recommended method according to claim 1, which is characterized in that the mobile terminal has multiple modulatedemodulates Device is adjusted, is connected between the card slot and the modem by preset switching circuit, it is described according to preset SIM card net Network recognition methods identifies the communication network that the SIM card in the card slot of the mobile terminal can use, wherein described mobile whole End had before the step of n card slot, n is the integer more than or equal to 1, comprising:
Construct multiple parallel channels using the switching circuit, wherein parallel channel be used to connect SIM card in the card slot with The modem;
Whether SIM card of the judgement in same parallel channel matches with modem;
If any SIM card and modem in same parallel channel mismatch, again using the switching circuit Parallel channel is constructed, and returns and executes whether SIM card of the judgement in same parallel channel matches with modem The step of, until each SIM card in the same parallel channel is matched with modem, alternatively, all SIM cards with Modem matched;
If each SIM card in same parallel channel is matched with modem, communication network identification instruction is generated, The communication network identification instruction is used to indicate according to preset SIM card Network Recognition method, identifies the mobile terminal The communication network that SIM card in card slot can use.
6. SIM card recommended method according to claim 5, which is characterized in that the mobile terminal has insertion detection electricity Road, the insertion detection circuit are connected when the card slot is inserted into SIM card, described multiple parallel using switching circuit building Before the step of channel, wherein parallel channel is used to connect SIM card and the modem in the card slot, comprising:
Obtain the current parameters of the insertion detection circuit;
Judge whether the current parameters are greater than preset parameter threshold;
If the current parameters are not more than preset parameter threshold, by the corresponding card slot of the insertion detection circuit labeled as sky Slot.
7. SIM card recommended method according to claim 5, which is characterized in that the mobile terminal has K support double The modem of SIM card, the switching circuit have 2K 1 × n variable connectors, and two SIM of each modem connect Mouth is separately connected the single ended interfaces of 1 × n variable connector, and wherein K is the integer greater than 0, opens described in the utilization Powered-down road constructs multiple parallel channels, and wherein parallel channel is used to connect the SIM card in the card slot and the modem The step of, include:
First 1 × n variable connector is controlled, so that the SIM of the first SIM interface of first modem and first card slot Card connection;Second 1 × n variable connector is controlled, so that the second SIM interface of first modem and second card slot SIM card connection;……;M-th of 1 × n variable connectors are controlled, so that the first SIM interface and m of the m/2 modem The SIM card of a card slot is connected to;M+1 1 × n variable connectors are controlled, so that the second SIM interface of the m/2 modem It is connected to the SIM card of the m+1 card slot, wherein m is even number;……;Until the second SIM interface of k-th modem connects Logical or n-th of card slot SIM card connection;
The interface channel of the SIM card being separately connected in the card slot at this time and the modem is denoted as parallel channel.
8. a kind of SIM card recommendation apparatus, which is characterized in that be applied to mobile terminal, comprising:
Position acquisition unit, for obtaining the current location of the mobile terminal;
Communication network judging unit, for judging the mobile terminal whether by multiple communication networks according to the current location Covering;
Communication network selecting unit passes through preset communication network if being covered for the mobile terminal by multiple communication networks Network comparison algorithm selects specified communication network from multiple communication networks;
Communication network recognition unit, for identifying the card slot of the mobile terminal according to preset SIM card Network Recognition method In the communication network that can use of SIM card, wherein the mobile terminal has n card slot, n is the integer more than or equal to 1;
Specified communication network judging unit, the communication network that the SIM card in card slot for judging the mobile terminal can use Whether network includes the specified communication network;
Recommendation information generation unit, if the communication network that the SIM card for the mobile terminal can use does not include the finger Determine communication network, then generate recommendation information, wherein the recommendation information is the SIM card for recommending to match the specified communication network Information.
9. a kind of storage medium, which is characterized in that it is computer-readable storage medium, is stored thereon with computer program, The computer program is performed the SIM card recommended method realized as described in any one of claims 1 to 7.
10. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can The computer program run on the processor, the processor realize such as claim 1 when executing the computer program To SIM card recommended method described in any one of 7.
CN201910673737.2A 2019-07-24 2019-07-24 SIM card recommendation method and device, storage medium and computer equipment Active CN110290514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910673737.2A CN110290514B (en) 2019-07-24 2019-07-24 SIM card recommendation method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910673737.2A CN110290514B (en) 2019-07-24 2019-07-24 SIM card recommendation method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN110290514A true CN110290514A (en) 2019-09-27
CN110290514B CN110290514B (en) 2021-11-30

Family

ID=68023956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910673737.2A Active CN110290514B (en) 2019-07-24 2019-07-24 SIM card recommendation method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110290514B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546945A (en) * 2013-10-28 2014-01-29 电子科技大学 Network selection method and device for multimode communication equipment
CN105376839A (en) * 2015-11-26 2016-03-02 上海斐讯数据通信技术有限公司 Mobile terminal and mobile network selection prompting method and system thereof
CN105792299A (en) * 2016-05-20 2016-07-20 广东欧珀移动通信有限公司 Optimum usage method for 3G network, optimum usage device and mobile terminal
US20170127229A1 (en) * 2015-10-28 2017-05-04 Spreadtrum Hong Kong Limited Method and apparatus for searching mobile network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546945A (en) * 2013-10-28 2014-01-29 电子科技大学 Network selection method and device for multimode communication equipment
US20170127229A1 (en) * 2015-10-28 2017-05-04 Spreadtrum Hong Kong Limited Method and apparatus for searching mobile network
CN105376839A (en) * 2015-11-26 2016-03-02 上海斐讯数据通信技术有限公司 Mobile terminal and mobile network selection prompting method and system thereof
CN105792299A (en) * 2016-05-20 2016-07-20 广东欧珀移动通信有限公司 Optimum usage method for 3G network, optimum usage device and mobile terminal

Also Published As

Publication number Publication date
CN110290514B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN107197424B (en) Bluetooth connection method, bluetooth device and Bluetooth connection system
DE102005063581B3 (en) System and method for operating a base radio station
CN103595868B (en) Language extension method and system based on geographic position and applied to handheld device
CN104185294B (en) The recognition methods of mobile phone focus and identification device
CN107947878A (en) A kind of cognitive radio power distribution method based on efficiency and spectrum effect combined optimization
EP2241130A4 (en) Method and user equipment in a communication network
CN103052143A (en) Network selection method of dual mode card
CN107529208A (en) A kind of multi-mode terminal service processing method and processing device, multimode terminal
CN104469872A (en) Cross-system data service bidirectional switching method, system and dual mode terminal
CN102595560A (en) Method, device and system for searching and selecting network
CN106658502B (en) Intelligent wireless local area network reserved access method based on fingerprint authentication
CN105848188B (en) A kind of wireless network access method, system and equipment
CN110351433A (en) A kind of method, apparatus and terminal device of double card switching
CN106488529A (en) A kind of method and device for accessing WIFI network
CN106793068A (en) A kind of SRS resource collocation method and device
CN103906184A (en) Method and system for selecting WIFI channel during LTE terminal hot point coverage
CN106303031A (en) The processing method of a kind of terminal, system and terminal
CN110290514A (en) SIM card recommended method, device, storage medium and computer equipment
CN103517376B (en) A kind of communication recovery method and communication terminal
CN104469820B (en) Wireless local area network module control method and device of terminal
CN107343005B (en) Bootstrap information sending method and device based on multi-protocol stack
CN103209460A (en) Method for preferentially selecting communication network frequency band and communication terminal
CN111328126A (en) Communication method and device
CN105933959A (en) Adaptive transmission parameter adjustment method and device based on geographical position
CN107306390A (en) The management method and device of a kind of mobile terminal phonecard

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210806

Address after: 518000 201, No.26, yifenghua Innovation Industrial Park, Xinshi community, Dalang street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen waterward Information Co.,Ltd.

Address before: 518000, block B, huayuancheng digital building, 1079 Nanhai Avenue, Shekou, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Waterward Co.,Ltd.

GR01 Patent grant
GR01 Patent grant