CN107548114A - A kind of switching method and apparatus of SIM card - Google Patents

A kind of switching method and apparatus of SIM card Download PDF

Info

Publication number
CN107548114A
CN107548114A CN201710750851.1A CN201710750851A CN107548114A CN 107548114 A CN107548114 A CN 107548114A CN 201710750851 A CN201710750851 A CN 201710750851A CN 107548114 A CN107548114 A CN 107548114A
Authority
CN
China
Prior art keywords
sim card
switching
base station
necessity
condition
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
CN201710750851.1A
Other languages
Chinese (zh)
Other versions
CN107548114B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710750851.1A priority Critical patent/CN107548114B/en
Publication of CN107548114A publication Critical patent/CN107548114A/en
Application granted granted Critical
Publication of CN107548114B publication Critical patent/CN107548114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of switching method and apparatus of SIM card, and applied in the mobile device comprising data communication module, the data communication module is connected by handover module with one in two or more SIM cards, and methods described includes:When triggering SIM card switching condition, determined whether to switch necessity of SIM card according to default environmental condition;The environmental condition includes terrain environment condition and/or base-station environment condition;When being judged as there is switching SIM card if necessary, the handover module is notified to carry out SIM card switching, so that the data communication module is connected with the SIM card after switching.The technical scheme can realize the useful switching of SIM card, avoid meaningless switching waste of resource, and the cost of mobile device need not be significantly increased, cheap and effective.

Description

A kind of switching method and apparatus of SIM card
Technical field
The present invention relates to data communication technology field, and in particular to a kind of switching method and apparatus of SIM card.
Background technology
In the prior art, many mobile devices support the insertion (i.e. to block) of plurality of SIM cards more, but data communication module is (logical Often including baseband chip and radio frequency chip) setting and differ, generally according to the difference of radio frequency chip quantity, support respectively single Treat (radio frequency chip) and treat (multiple radio frequency chips) more.
Multi-card multi-standby, which is undoubtedly, adds equipment cost, and more cards are singly treated, need to select suitable SIM card switching method.
The content of the invention
In order to solve the above problems at least in part, the invention provides a kind of switching method and apparatus of SIM card.
According to one aspect of the present invention, there is provided a kind of switching method of SIM card, applied to including data communication module Mobile device, the data communication module passes through a company in SIM card handover module and two or more SIM cards Connect, this method includes:
When triggering SIM card switching condition, determined whether to switch necessity of SIM card according to default environmental condition;Institute Stating environmental condition includes terrain environment condition and/or base-station environment condition;
When being judged as there is switching SIM card if necessary, the SIM card handover module is notified to carry out SIM card switching, so that institute Data communication module is stated to be connected with the SIM card after switching.
Alternatively, the SIM card switching condition includes:
The duration that the SIM card is in Network Abnormal state reaches preset time;
And/or
According to the current geographic position information of acquisition, the SIM card access is found out from default map data base Base station is abnormal base station.
Alternatively, the environmental condition is base-station environment condition, described to determine whether to cut according to default environmental condition Changing necessity of SIM card includes:
According to the current geographic position information of acquisition, present speed, and predetermined paths and default switching time, calculate Geographical location information when reaching the switching time;
Geographical location information when being reached according to the switching time, finds out according to base from default map data base The normal Base Station set that environmental condition of standing determines;
When the base station in the normal Base Station set can be currently not connected with one or more of the data communication module When individual SIM card accesses, it is judged as there is necessity of switching SIM card, is otherwise judged as not switching necessity of SIM card.
Alternatively, this method also includes:
When the duration that the SIM card is in Network Abnormal state reaching the scheduled time, current geographic position is obtained Information, the base station that SIM card is currently accessed is found out from the map data base, be abnormal shape by the status indication of the base station State;
The abnormality is reported into server, so that the server is received in preset time period to described different When reporting the number to reach predetermined threshold value of normal state, is abnormal base station by the basestation marker.
Alternatively, the environmental condition is terrain environment condition, described to determine whether to cut according to default environmental condition Changing necessity of SIM card includes:
According to the current geographic position information of acquisition, corresponding terrain environment letter is found out from default map data base Breath;
When the terrain environment information is designated as Network Abnormal landform, it is judged as not switching necessity of SIM card, otherwise It is judged as thering is necessity of switching SIM card.
Alternatively, each SIM card is set with priority respectively, and this method also includes:
According to the current geographic position information of acquisition, the base for being currently able to access is found out from default map data base Stand;
According to the base station for being currently able to access and the priority of each SIM card, determine whether to switch necessity of SIM card.
According to another aspect of the present invention, there is provided a kind of switching device of SIM card, applied to including data communication module Mobile device in, the data communication module passes through one in SIM card handover module and two or more SIM cards Connection, the device include:
Judging unit, for when triggering SIM card switching condition, determining whether to switch according to default environmental condition Necessity of SIM card;The environmental condition includes terrain environment condition and/or base-station environment condition;
Notification unit, for when being judged as there is switching SIM card if necessary, notifying the SIM card handover module to carry out SIM Card switching, so that the data communication module is connected with the SIM card after switching.
Alternatively, the SIM card switching condition includes:
The duration that the SIM card is in Network Abnormal state reaches preset time;
And/or
According to the current geographic position information of acquisition, the SIM card access is found out from default map data base Base station is abnormal base station.
Alternatively, the environmental condition is base-station environment condition;
The judging unit, for the current geographic position information according to acquisition, present speed, and predetermined paths and in advance If switching time, calculate the geographical location information when reaching the switching time, and reach according to the switching time When geographical location information, found out from default map data base according to base-station environment condition determine normal Base Station collection Close, when the base station in the normal Base Station set can be currently not connected with one or more SIM of the data communication module When card accesses, it is judged as there is necessity of switching SIM card, is otherwise judged as not switching necessity of SIM card.
Alternatively, the device also includes:
Map datum maintenance unit, the duration for being in Network Abnormal state when the SIM card reach pre- timing Between when, obtain current geographic position information, the base station that SIM card is currently accessed is found out from the map data base, by the base The status indication stood is abnormality, and the abnormality is reported into server, so that the server is in preset time period It is abnormal base station by the basestation marker when reporting the number to reach predetermined threshold value inside to receive to the abnormality.
Alternatively, the environmental condition is terrain environment condition;
The judging unit, for the current geographic position information according to acquisition, searched from default map data base Go out corresponding terrain environment information;When the terrain environment information is designated as Network Abnormal landform, it is judged as not switching SIM Necessity of card, otherwise it is judged as there is necessity of switching SIM card.
Alternatively, each SIM card is set with priority respectively;
The judging unit, for the current geographic position information according to acquisition, searched from default map data base Go out the base station for being currently able to access;According to the base station for being currently able to access and the priority of each SIM card, determine whether to switch Necessity of SIM card.
Alternatively, including processor and machinable medium, be stored with can be by for the machinable medium The machine-executable instruction of the computing device, the processor are promoted by the machine-executable instruction:Realization is such as taken up an official post Method described in one.
Alternatively, machine-executable instruction is stored with, when being called and being performed by processor, the machine-executable instruction Promote the processor:Realize as above any described method.
From the foregoing, technical scheme, by setting base-station environment condition after SIM card switching condition is triggered With the environmental condition such as terrain environment condition, the switching of SIM card is carried out again when meeting environmental condition, the technical scheme can be realized The useful switching of SIM card, meaningless switching waste of resource is avoided, and the cost of mobile device need not be significantly increased, it is low It is honest and clean and effective.
Brief description of the drawings
Fig. 1 shows a kind of schematic flow sheet of the switching method of SIM card according to an embodiment of the invention;
Fig. 2 shows a kind of structural representation of the switching device of SIM card according to an embodiment of the invention;
Fig. 3 shows a kind of structural representation of computing device according to an embodiment of the invention;
Fig. 4 shows a kind of structural representation of mobile device according to an embodiment of the invention.
Embodiment
Block the SIM card switching method singly treated at present is usually more:In currently used SIM card Network Abnormal, it is switched to Standby SIM card.
But the switching method of so single Rule of judgment often causes insignificant switching.Herein, it is described to be not intended to When the switching of justice refers to switch to another SIM card, system detectio is also unsatisfactory for use condition to another SIM card, then exists When previously used SIM card does not have recovery business yet, system can toggle between two SIM cards.Insignificant switching can It can be present in many scenes, such as:It is difficult to be linked into base station in the place such as tunnel, mountain valley, even if at this moment switching SIM card is led to It is often and insignificant.If being not provided with corresponding switching condition, SIM card will switch repeatedly, cause insignificant switching, so as to Waste of resource.In another example the SIM card after switching occur can not access base station (such as positioned at non-portion of operator corresponding to the SIM card Affix one's name to the region of base station) or the abnormal situation of the base station service that is accessed, then current switching and insignificant.
To solve the above problems at least in part, technical concept of the invention is then:Above-mentioned scene is carried out rational Evade, avoid insignificant switching as far as possible, i.e., without the switching of SIM card when in above-mentioned scene.So how problem is Properly select out such scene.
Therefore, embodiment of the invention discloses that a kind of switching method and apparatus of SIM card, with solve in the prior art certain Under a little scenes the problem of SIM card frequent switching waste of resource.To make the object, technical solutions and advantages of the present invention clearer, Below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application. " one kind " of singulative used in the application and appended claims, " described " and "the" are also intended to including majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
Fig. 1 shows a kind of schematic flow sheet of the switching method of SIM card according to an embodiment of the invention, can apply In the mobile device comprising data communication module, data communication module passes through SIM card handover module and two or more SIM card in a connection, this method includes:
Step S110, when triggering SIM card switching condition, determined whether to switch SIM card according to default environmental condition Necessity;Environmental condition includes terrain environment condition and/or base-station environment condition.
From narration above, when the environment residing for mobile device is it is difficult to provide the environment (example of preferable network service Such as tunnel, mountain valley) or base-station environment it is poor when, the no practical significance of switching of SIM card only can waste of resource.Therefore at this Environmental condition is provided with embodiment to judge the necessity of switching SIM card.Data communication module can be 4G modules, including one Individual baseband chip and a radio frequency chip.
Step S120, when being judged as there is switching SIM card if necessary, notice SIM card handover module carries out SIM card switching, So that data communication module is connected with the SIM card after switching.
Here handover module can use SIM card switching circuit to realize.Mobile device in the present embodiment can be row The 4G routers disposed on the mobile traffics such as car are but it is also possible to be other mobile devices.
It can be seen that the method shown in Fig. 1, by setting environmental condition after SIM card switching condition is triggered, is meeting environment bar The switching of SIM card is carried out during part again, it is possible to achieve the useful switching of SIM card, insignificant switching waste of resource is avoided, and The cost of mobile device need not be significantly increased, it is cheap and effective.In above-mentioned some optional embodiments, when according to default When environmental condition determines to perform handover operation, the base station that normal Base Station service is provided for the geographical position residing for mobile device can When being currently not connected with one or more SIM cards of the data communication module and accessing, then be judged as having switching SIM card must Will.
In one embodiment of the invention, in the above method, SIM card switching condition includes:SIM card is in Network Abnormal The duration of state reaches preset time;And/or the current geographic position information according to acquisition, from default map datum The base station that SIM card access is found out in storehouse is abnormal base station.
The first condition illustrated above is to obtain currently used SIM card (to be currently connected with data communication module SIM card) network state, when SIM card is in Network Abnormal state (or the state continues for some time), that is, trigger SIM card switching condition.A kind of more time-saving condition is, when getting the Network Abnormal state of SIM card, to judge the SIM Whether the base station that clamping enters is abnormal base station.To realize this point, a data can be set renewable in a mobile device Map data base, mobile device current geographic position information is obtained by GPS module or data communication module etc., by searching ground Chart database, to judge whether the base station of SIM card access is abnormal base station.Here base station can be preserved in map data base Geographical location information, the base station information such as whether coverage, operator, state abnormal.It is different in the embodiment of the present invention Chang Jizhan can be the base station that can not provide normal Base Station service, such as because technical failure can not provide the base of normal Base Station service Stand, or the base station of preferable network signal can not be provided.Then normal Base Station can be the base station that can provide normal Base Station service, example If provide the base station of preferable network signal.
In one embodiment of the invention, in the above method, environmental condition is base-station environment condition, according to default ring The necessity whether border condition judgment has switching SIM card includes:According to the current geographic position information of acquisition, present speed, and Predetermined paths and default switching time, calculate the geographical location information when reaching switching time;Reached according to switching time When geographical location information, found out from default map data base according to base-station environment condition determine normal Base Station collection Close;When the base station in normal Base Station set can be accessed by one or more SIM cards of current unconnected data communication module When, it is judged as there is necessity of switching SIM card, is otherwise judged as not switching necessity of SIM card.
The necessity for how switching SIM card according to base-station environment condition judgment has been shown in particular in the present embodiment.Here Base-station environment condition can include can by base station signal coverage, whether base station network abnormal, base station service can be by Normal offer etc..Herein, whether base station network can be determined as follows extremely:If base station signal is weaker than a certain threshold It is worth, and/or has base station signal but without base station network, be then believed that base station network is abnormal.The embodiment of the present invention is according to the base station Environmental condition determines whether there is abnormal base station, optionally, it is determined whether abnormal base station be present includes two aspects:First, consider each The signal cover of base station, for current location, if the base station that signal can cover current location be present, if not The base station that signal can cover current location be present, then it is believed that presence can not provide the abnormal base station of base station service;Second, In the case where presence can cover the base station of current location, whether determine whether the base station is different extremely according to base station network Chang Jizhan, if base station network is abnormal, it is determined that the base station is abnormal base station.Can be true according to base-station environment condition by the above method Fixed existing abnormal collection of base stations, then reject abnormal collection of base stations from default map data base, remaining collection of base stations Then it is considered normal Base Station set.
In some optional embodiments, it is determined whether normal Base Station be present can also be in the following way.First, consider The signal cover of each base station, for current location, if the base station that signal can cover current location be present, if The base station that signal can cover current location be present, then it is believed that the normal Base Station for providing base station service be present.Second, depositing In the case where the base station of current location can be covered, whether determine whether the base station is abnormal base extremely according to base station network Stand, if base station network is normal, it is determined that the base station is normal Base Station.
Current translational speed can be calculated by the geographical location information got.Certainly it is not that explanation is moved here Dynamic equipment must configure power plant module, but can be calculated according to the scene (such as on train) that it is placed.Citing and Speech, within a period of time (such as 3s), current geographic position information several times is obtained by GPS module, according to the geography of acquisition Positional information calculation goes out present speed, can be specifically calculated by the method for differential, or according to Doppler's frequency Shift-in row calculates, and similar mathematical method has a lot, is not limited herein.When GPS module can export NMEA0183 agreements During message, it can even more be directly read from message to present speed.
According to current geographic position information, present speed, default route information and (current SIM of default switching time After card switches to another SIM card, data communication module identifies the SIM card after the switching, dialing establishes connections to recovery number again A period of time is needed according to communication, this time is referred to alternatively as switching time, usually 20s or so) it can calculate in switching time Geographical location information during arrival, this point are very simple.So this geographical location information calculated is by searching ground Chart database (is referred to the map data base in previous embodiment), it may be determined that its coverage in which base station It is interior.So according to the state of each base station, a normal Base Station set (being also likely to be empty set) is can be obtained by naturally.Citing and Speech, currently used SIM card is UNICOM's SIM card, and the base station in normal Base Station set is moved, belonging to telecommunications respectively, then such as Mobile SIM card is provided with the fruit mobile device, is exactly now the necessity for switching SIM card.If empty set, then just do not have Switch necessity of SIM card.If multiple SIM cards can switch, one can be chosen at random or according to priority.
In the above embodiments, base station information is included in map data base, in one embodiment of the invention, is provided The maintaining method of base station information, the i.e. above method also include:The duration that Network Abnormal state is in when SIM card reaches pre- When fixing time, current geographic position information is obtained, the base station that SIM card is currently accessed is found out from map data base, by the base The status indication stood is abnormality;Abnormality is reported into server, so that server receives in preset time period It is abnormal base station by the basestation marker when reporting the number to reach predetermined threshold value to the abnormality.
Map data base is referred in previous embodiment to be updated, and, can receive clothes with reference to the present embodiment specifically The base station information that business device issues, or, base station information regularly is asked from server, according in base station information updating map data base The state of each base station.It (can be specifically, in mobile device energy that server, which can receive the abnormality that mobile device reports, When enough networking), if in predetermined amount of time, there is the abnormality that multiple mobile devices have reported a certain base station, then just should Basestation marker is abnormal base station.It is contemplated that the active push base station information or by mobile device when base station state changes Active obtaining base station information.In view of the maintenance efficiency of base station, server can also be within a period of time actively by abnormal base station The mark of normal Base Station is reverted to, if receiving the abnormality for reporting the base station again, then is meeting bar according to preceding method The mark processing of abnormal base station is re-started during part.
In one embodiment of the invention, in the above method, environmental condition is terrain environment condition, according to default ring The necessity whether border condition judgment has switching SIM card includes:According to the current geographic position information of acquisition, from default map number According to finding out corresponding terrain environment information in storehouse;When landform environmental information instruction terrain environment condition is Network Abnormal landform When, it is judged as not switching necessity of SIM card, is otherwise judged as there is necessity of switching SIM card.The Network Abnormal landform can be with It is that base station network easily occur abnormal and/or can not provide the geographical environment of normal Base Station service, such as mountain valley, tunnel, difference Network operator services overlapping region etc..
In this case Network Abnormal landform, such as mountain valley, tunnel etc. can be identified in map data base.Here with showing The advantage for having technology to compare also resides in:Because prior art is after mobile device enters Network Abnormal landform, SIM can be constantly carried out Card switching, and the SIM card of a Network Abnormal state when mobile device leaves the Network Abnormal landform, may be just switched to, Now also need to be switched to another SIM card;And in the present embodiment, if original SIM when mobile device leaves the Network Abnormal landform Card network state recovers normal, then need not carry out SIM card switching.Therefore it is (i.e. foregoing 20s or so can be saved under optimal cases The switching time that embodiment is previously mentioned) time.
In one embodiment of the invention, in the above method, each SIM card is set with priority respectively, and this method is also Including:According to the current geographic position information of acquisition, the base station for being currently able to access is found out from default map data base; According to the base station for being currently able to access and the priority of each SIM card, determine whether to switch necessity of SIM card.
In many cases, although user inserts multiple SIM cards in a mobile device, it is more desirable to use therein one .Can be now that each SIM card sets priority, such as certain user wishes mainly to use a telecommunications SIM card, by UNICOM SIM Card from charging angle as standby (such as considering, only for example).In this case, if mobile device exists in telecommunications SIM card After being switched to UNICOM's SIM card, if it is determined that the coverage of telecomm base station has been currently entering, although at this moment may UNICOM SIM The network state of card is also very good, but can switch back into telecommunications SIM card again.The demand being thus more close to the users.
The switching method of the SIM card shown in the various embodiments described above can be separately from can also enter according to the actual requirements The certain combination of row, the present invention are without limitation.
Exemplary explanation is carried out with reference to a concrete scene:A 4G routers, 4G routes are deployed with certain train UNICOM's SIM card and a movement SIM card are provided with device, and gives tacit consent to connection UNICOM SIM card, wherein, 4G routers are additionally provided with ground Chart database, for storing the base station letters the such as whether geographical location information of base station, coverage, operator, state abnormal Breath.
In train driving, easily there are following situations:
1) when the Network Abnormal landform such as train driving to tunnel, mountain valley, it may appear that the situation of network state extreme difference.If According to prior art, 4G routers are easy to trigger SIM card switching condition, and UNICOM's SIM card is switched into mobile SIM card, but aobvious So this switching is insignificant, and the mobile SIM card after switching is similarly in the network state of extreme difference, again can be by mobile SIM card UNICOM's SIM card is switched back into, so repeatedly until leaving Network Abnormal landform.Therefore according to technical side provided in an embodiment of the present invention Case, in full triggering SIM card switching condition, determined whether to switch necessity of SIM card according to landform environmental condition, in this scene Under, it is clear that can be judged as belonging to Network Abnormal landform, then just do not perform SIM card switching, the judgement can perform always until Train leaves Network Abnormal landform.4G modules very first time trial can recover former network environment after Network Abnormal landform is left. If according to switching flow of the prior art, when leaving Network Abnormal landform, a SIM card switching may be just triggered, The technical scheme of the embodiment of the present invention can at most save switching time T.
2) when triggering SIM card switching condition, the SIM card after switching can also be judged (in this example for mobile SIM card) A normal Base Station can be accessed after switching time T.By taking T=20s as an example, if performing SIM card switching according to prior art, The position that 20s rank rears garage sails to does not have mobile base station covering, then and the same network of mobile SIM card after switching is obstructed, according to So meet SIM card switching condition, then this is once insignificant switching again, therefore in an embodiment of the present invention, can be sentenced Whether the position that disconnected 20s rank rears garage sails to has the mobile base station covering that can normally provide service, is not performed if not SIM card switches, and at most can also save switching time T.
It is above-mentioned 1) to be performed parallel with 2) the middle judgement performed, a preferential execution can also be selected.
1) and 2) if pointing out to switch necessity of SIM card according to the judged result in, SIM card switching can be performed, UNICOM's SIM card is so switched to mobile SIM card again.If mobile SIM card still network is obstructed, then thinks now to move The base station state of SIM card access is abnormal, can record the abnormality of the base station, server is reported in network recovery.This When 1) and 2) can also repeat in judgement, whether see needs to switch back into UNICOM's SIM card.
Fig. 2 shows a kind of structural representation of the switching device of SIM card according to an embodiment of the invention, the device Can be applied in the mobile device comprising data communication module, data communication module can by SIM card handover module and two or A connection in more than two SIM cards.As shown in Fig. 2 the switching device 200 of SIM card includes:
Judging unit 210, for when triggering SIM card switching condition, determining whether to cut according to default environmental condition Change necessity of SIM card;Environmental condition includes terrain environment condition and/or base-station environment condition.
Notification unit 220, for when being judged as there is switching SIM card if necessary, notice SIM card handover module to carry out SIM Card switching, so that data communication module is connected with the SIM card after switching.
In above-mentioned some optional embodiments, when determining to perform handover operation according to default environmental condition, to move The base station that geographical position residing for dynamic equipment provides normal Base Station service can be currently not connected with the data communication module When one or more SIM cards access, then it is judged as thering is necessity of switching SIM card.
From narration above, when the environment residing for mobile device is it is difficult to provide the environment (example of preferable network service Such as tunnel, mountain valley) or base-station environment it is poor when, the no practical significance of switching of SIM card only can waste of resource.Therefore at this Environmental condition is provided with embodiment to judge the necessity of switching SIM card.Data communication module can be 4G modules, including one Individual baseband chip and a radio frequency chip.
Here handover module can use SIM card switching circuit to realize.Mobile device in the present embodiment can be row The 4G routers disposed on the mobile traffics such as car are but it is also possible to be other mobile devices.
It can be seen that the device shown in Fig. 2, by setting environmental condition after SIM card switching condition is triggered, is meeting environment bar The switching of SIM card is carried out during part again, it is possible to achieve the useful switching of SIM card, insignificant switching waste of resource is avoided, and The cost of mobile device need not be significantly increased, it is cheap and effective.
In one embodiment of the invention, in said apparatus, SIM card switching condition includes:SIM card is in Network Abnormal The duration of state reaches preset time;And/or the current geographic position information according to acquisition, from default map datum The base station that SIM card access is found out in storehouse is abnormal base station.
In one embodiment of the invention, in said apparatus, environmental condition is base-station environment condition;Judging unit 210, For the current geographic position information according to acquisition, present speed, and predetermined paths and default switching time, calculate and cutting Geographical location information when changing geographical location information during time arrival, and being reached according to switching time, from default map The normal Base Station set determined according to base-station environment condition is found out in database, when the base station in normal Base Station set can be by When one or more SIM cards of current unconnected data communication module access, it is judged as there is necessity of switching SIM card, otherwise It is judged as not switching necessity of SIM card.
In one embodiment of the invention, said apparatus also includes:Map datum maintenance unit (not shown), for working as When the duration that SIM card is in Network Abnormal state reaches the scheduled time, current geographic position information is obtained, from map datum The base station that SIM card is currently accessed is found out in storehouse, is abnormality by the status indication of the base station, abnormality is reported into clothes Be engaged in device so that server received in preset time period to abnormality when reporting the number to reach predetermined threshold value, by institute It is abnormal base station to state basestation marker.
In one embodiment of the invention, in said apparatus, environmental condition is terrain environment condition;Judging unit 210, For the current geographic position information according to acquisition, corresponding terrain environment information is found out from default map data base; When landform environmental information instruction terrain environment condition is Network Abnormal landform, it is judged as not switching necessity of SIM card, otherwise It is judged as thering is necessity of switching SIM card.The Network Abnormal landform can base station network exception easily occurred and/or can not carry For the geographical environment of normal Base Station service, such as mountain valley, tunnel, heterogeneous networks carrier service overlapping region etc..
In one embodiment of the invention, in said apparatus, each SIM card is set with priority respectively;Judging unit 210, for the current geographic position information according to acquisition, currently accessible base is found out from default map data base Stand;According to currently accessible base station and the priority of each SIM card, determine whether to switch necessity of SIM card.
The switching device 200 of SIM card provided by the invention can be realized by software, can also pass through hardware or soft or hard The mode that part combines is realized.Exemplified by implemented in software, can by processor 310 by nonvolatile memory 350 with SIM card Machine-executable instruction corresponding to switching device 200 reads in volatile memory 340 and run.In this case, with SIM card Switching device 200 corresponding to machine-executable instruction operate in the computing device, that is, in the operating system of main frame.
For hardware view, as shown in figure 3, a kind of structural representation of computing device for one embodiment of the invention Figure, except the processor 310 shown in Fig. 3, internal bus 320, network interface 330, volatile memory 340 and non-volatile Outside memory 350, according to the actual functional capability of the computing device, other hardware can also be included.
For example, Fig. 4 shows a kind of structural representation of mobile device according to an embodiment of the invention, such as Fig. 4 institutes Show, mobile device 400 includes processor 310,4G modules 420, SIM card handover module 420, sim card slot position 430, SIM card are cut Changing device 200, GPS module 440, map data base 450.The mobile device 400 can also include the internal bus shown in Fig. 3 320th, network interface 330, volatile memory 340 and nonvolatile memory 350, but be not shown in Fig. 4.
In various embodiments, nonvolatile memory 350 can be:Memory driver (such as hard disk drive), consolidate State hard disk, any kind of storage dish (such as CD, DVD), either similar storage medium or combinations thereof.It is volatile Property memory 340 can be:RAM (Radom Access Memory, random access memory).
Further, nonvolatile memory 350 and volatile memory 340 are used as machinable medium, thereon may be used Store machine-executable instruction corresponding to the switching device 200 of the SIM card performed as processor 310.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method The part explanation of example is applied, is no longer repeated here.Device embodiment described above is only schematical, wherein described The unit illustrated as separating component can be or may not be physically separate, and the part shown as unit can be with It is or may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can To select some or all of module therein to realize the purpose of this embodiment scheme according to the actual needs.This area is common Technical staff is without creative efforts, you can to understand and implement.
In summary, technical scheme, by setting environmental condition after SIM card switching condition is triggered, full The switching of SIM card is carried out during sufficient environmental condition again, it is possible to achieve the useful switching of SIM card, avoid insignificant switching and waste Resource, and the cost of mobile device need not be significantly increased, it is cheap and effective.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (14)

  1. A kind of 1. switching method of SIM card, it is characterised in that this method is applied to the mobile device comprising data communication module, The data communication module is connected by SIM card handover module with one in two or more SIM cards, this method bag Include:
    When triggering SIM card switching condition, determined whether to switch necessity of SIM card according to default environmental condition;The ring Border condition includes terrain environment condition and/or base-station environment condition;
    When being judged as there is switching SIM card if necessary, the SIM card handover module is notified to carry out SIM card switching, so that the number It is connected according to communication module with the SIM card after switching.
  2. 2. the method as described in claim 1, it is characterised in that the SIM card switching condition includes:
    The duration that the SIM card is in Network Abnormal state reaches preset time;
    And/or
    According to the current geographic position information of acquisition, the base station that the SIM card accesses is found out from default map data base It is abnormal base station.
  3. 3. the method as described in claim 1, it is characterised in that the environmental condition is base-station environment condition, and the basis is pre- If environmental condition determine whether switch SIM card necessity include:
    According to the current geographic position information of acquisition, present speed, and predetermined paths and default switching time, calculate in institute State geographical location information during switching time arrival;
    Geographical location information when being reached according to the switching time, finds out from default map data base according to base station ring The normal Base Station set that border condition determines;
    When the base station in the normal Base Station set can be currently not connected with one or more SIM of the data communication module When card accesses, it is judged as there is necessity of switching SIM card, is otherwise judged as not switching necessity of SIM card.
  4. 4. method as claimed in claim 2 or claim 3, it is characterised in that this method also includes:
    When the duration that the SIM card is in Network Abnormal state reaching the scheduled time, current geographic position information is obtained, The base station that SIM card is currently accessed is found out from the map data base, is abnormality by the status indication of the base station;
    The abnormality is reported into server, so that the server is received in preset time period to the abnormal shape When reporting the number to reach predetermined threshold value of state, is abnormal base station by the basestation marker.
  5. 5. the method as described in claim 1, it is characterised in that the environmental condition is terrain environment condition, and the basis is pre- If environmental condition determine whether switch SIM card necessity include:
    According to the current geographic position information of acquisition, corresponding terrain environment information is found out from default map data base;
    When the terrain environment information is designated as Network Abnormal landform, it is judged as not switching necessity of SIM card, otherwise judges To there is necessity of switching SIM card.
  6. 6. the method as described in claim 1, it is characterised in that each SIM card is set with priority respectively, and this method is also wrapped Include:
    According to the current geographic position information of acquisition, the base station for being currently able to access is found out from default map data base;
    According to the base station for being currently able to access and the priority of each SIM card, determine whether to switch necessity of SIM card.
  7. 7. a kind of switching device of SIM card, it is characterised in that the device is applied to the mobile device comprising data communication module In, the data communication module is connected by SIM card handover module with one in two or more SIM cards, the dress Put including:
    Judging unit, for when triggering SIM card switching condition, being determined whether to switch SIM card according to default environmental condition Necessity;The environmental condition includes terrain environment condition and/or base-station environment condition;
    Notification unit, for when being judged as there is switching SIM card if necessary, notifying the SIM card handover module to carry out SIM card and cut Change, so that the data communication module is connected with the SIM card after switching.
  8. 8. device as claimed in claim 7, it is characterised in that the SIM card switching condition includes:
    The duration that the SIM card is in Network Abnormal state reaches preset time;
    And/or
    According to the current geographic position information of acquisition, the base station that the SIM card accesses is found out from default map data base It is abnormal base station.
  9. 9. device as claimed in claim 7, it is characterised in that the environmental condition is base-station environment condition;
    The judging unit, for the current geographic position information according to acquisition, present speed, and predetermined paths and default When switching time, calculating the geographical location information when reaching the switching time, and being reached according to the switching time Geographical location information, the normal Base Station set determined according to base-station environment condition is found out from default map data base, when One or more SIM cards that base station in the normal Base Station set can be currently not connected with the data communication module connect It is fashionable, it is judged as there is necessity of switching SIM card, is otherwise judged as not switching necessity of SIM card.
  10. 10. device as claimed in claim 8 or 9, it is characterised in that the device also includes:
    Map datum maintenance unit, when the duration for being in Network Abnormal state when the SIM card reaches the scheduled time, Current geographic position information is obtained, the base station that SIM card is currently accessed is found out from the map data base, by the shape of the base station State is labeled as abnormality, and the abnormality is reported into server, so that the server receives in preset time period To being abnormal base station by the basestation marker when reporting the number to reach predetermined threshold value to the abnormality.
  11. 11. device as claimed in claim 7, it is characterised in that the environmental condition is terrain environment condition;
    The judging unit, for the current geographic position information according to acquisition, phase is found out from default map data base The terrain environment information answered;When the terrain environment information is designated as Network Abnormal landform, it is judged as not switching SIM card Necessity, otherwise it is judged as there is necessity of switching SIM card.
  12. 12. device as claimed in claim 7, it is characterised in that each SIM card is set with priority respectively;
    The judging unit, for the current geographic position information according to acquisition, find out and work as from default map data base Before the base station that has access to;According to the base station for being currently able to access and the priority of each SIM card, determine whether to switch SIM card Necessity.
  13. 13. a kind of switching device of SIM card, it is characterised in that including processor and machinable medium, the machine can Storage medium is read to be stored with and be able to can be held by the machine by the machine-executable instruction of the computing device, the processor Row instruction promotes:Realize any described methods of claim 1-6.
  14. A kind of 14. machinable medium, it is characterised in that be stored with machine-executable instruction, by processor call and During execution, the machine-executable instruction promotes the processor:Realize any described methods of claim 1-6.
CN201710750851.1A 2017-08-28 2017-08-28 SIM card switching method and device Active CN107548114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710750851.1A CN107548114B (en) 2017-08-28 2017-08-28 SIM card switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710750851.1A CN107548114B (en) 2017-08-28 2017-08-28 SIM card switching method and device

Publications (2)

Publication Number Publication Date
CN107548114A true CN107548114A (en) 2018-01-05
CN107548114B CN107548114B (en) 2020-10-27

Family

ID=60957514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710750851.1A Active CN107548114B (en) 2017-08-28 2017-08-28 SIM card switching method and device

Country Status (1)

Country Link
CN (1) CN107548114B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708733A (en) * 2019-11-07 2020-01-17 RealMe重庆移动通信有限公司 Network connection control method and device, storage medium and electronic equipment
CN110868746A (en) * 2019-11-18 2020-03-06 RealMe重庆移动通信有限公司 Network switching method and device, electronic equipment and storage medium
CN111182602A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 SIM card switching method of mobile terminal, mobile terminal and computer storage medium
WO2020258050A1 (en) * 2019-06-25 2020-12-30 小米通讯技术有限公司 Method and apparatus for determining wireless resource
CN112533192A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Method and device for switching SIM (subscriber identity Module) card and electronic equipment
CN114143840A (en) * 2020-09-04 2022-03-04 华为技术有限公司 Communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167476A (en) * 2013-03-12 2013-06-19 广东欧珀移动通信有限公司 Method and device for dynamically switching over a plurality of SIM (subscriber identity module) cards of mobile terminal
CN105392166A (en) * 2015-11-06 2016-03-09 广东欧珀移动通信有限公司 Method and apparatus for data network switching of dual-card electronic terminal
EP2490492B1 (en) * 2011-02-19 2016-04-20 ST-Ericsson SA Subscriber identity switch of a communication terminal
CN106604258A (en) * 2016-12-20 2017-04-26 深圳市优克联新技术有限公司 User identity identification card switching method and apparatus
CN106878929A (en) * 2017-03-13 2017-06-20 贵州财富之舟科技有限公司 The communication handover method and system of NB IoT equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2490492B1 (en) * 2011-02-19 2016-04-20 ST-Ericsson SA Subscriber identity switch of a communication terminal
CN103167476A (en) * 2013-03-12 2013-06-19 广东欧珀移动通信有限公司 Method and device for dynamically switching over a plurality of SIM (subscriber identity module) cards of mobile terminal
CN105392166A (en) * 2015-11-06 2016-03-09 广东欧珀移动通信有限公司 Method and apparatus for data network switching of dual-card electronic terminal
CN106604258A (en) * 2016-12-20 2017-04-26 深圳市优克联新技术有限公司 User identity identification card switching method and apparatus
CN106878929A (en) * 2017-03-13 2017-06-20 贵州财富之舟科技有限公司 The communication handover method and system of NB IoT equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182602A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 SIM card switching method of mobile terminal, mobile terminal and computer storage medium
WO2020258050A1 (en) * 2019-06-25 2020-12-30 小米通讯技术有限公司 Method and apparatus for determining wireless resource
US20220322134A1 (en) * 2019-06-25 2022-10-06 Xiaomi Communications Co., Ltd. Method and apparatus for determining radio resource
CN112533192A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Method and device for switching SIM (subscriber identity Module) card and electronic equipment
WO2021052482A1 (en) * 2019-09-19 2021-03-25 华为技术有限公司 Method and apparatus for switching sim card, and electronic device
CN112533192B (en) * 2019-09-19 2022-04-22 华为技术有限公司 Method and device for switching SIM (subscriber identity Module) card and electronic equipment
CN110708733A (en) * 2019-11-07 2020-01-17 RealMe重庆移动通信有限公司 Network connection control method and device, storage medium and electronic equipment
CN110868746A (en) * 2019-11-18 2020-03-06 RealMe重庆移动通信有限公司 Network switching method and device, electronic equipment and storage medium
CN110868746B (en) * 2019-11-18 2022-04-05 RealMe重庆移动通信有限公司 Network switching method and device, electronic equipment and storage medium
CN114143840A (en) * 2020-09-04 2022-03-04 华为技术有限公司 Communication method and device
CN114143840B (en) * 2020-09-04 2023-11-17 华为技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN107548114B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN107548114A (en) A kind of switching method and apparatus of SIM card
CN101702964B (en) Method and system for enabling connection of a mobile communication terminal to a radio communication network
CN102137487B (en) Method and equipment for selecting service gateway
CN110856225A (en) Network switching method, device, terminal and storage medium
CN102448187A (en) Method and terminal capable of automatically accessing Wi-Fi (Wireless Fidelity) network
CN101981986A (en) Avoiding excessive signaling during wireless terminal toggling
CN103283290A (en) Multi SIM management
US9693221B2 (en) Method of managing at least one wireless communications interface of a terminal, and a terminal
CN105578590A (en) All-network-universal terminal network registration method and terminal
CN103916922A (en) Communication terminal and user card switching method thereof
CN104247518A (en) Cell search control method, cell search control apparatus, mobile communication terminal, computer program and storage medium
CN109756382B (en) Fault positioning method and device
CN102821432A (en) Communication control device, wireless communication terminal, communication system, and communication control method
CN101282544A (en) Method and apparatus for transmitting and receiving short message of double-card double-standby mobile terminal
CN102487535B (en) Support cell switching control method and the equipment of multi-communication standard wireless communication terminal
CN103200637A (en) Network switching method and network switching system
CN107635259A (en) A kind of data service from adaptation method, device and terminal
CN102711160A (en) Method and device for information configuration
CN106034037A (en) Disaster recovery switching method and device based on virtual machine
US8996558B2 (en) Geolocation information storage system for mobile communications data
CN105657752A (en) Redirecting method, network modules and terminal
CN108668340A (en) Network search method and terminal device, computer readable storage medium
CN101137187B (en) Wireless communication network system and its access method
CN102572887A (en) Method and device for reporting neighbor cell relation measurement results
CN101263685A (en) Radio communication terminal and network side communication apparatus

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
GR01 Patent grant
GR01 Patent grant