CN107295594B - Method for switching network, device and mobile terminal - Google Patents
Method for switching network, device and mobile terminal Download PDFInfo
- Publication number
- CN107295594B CN107295594B CN201710667225.6A CN201710667225A CN107295594B CN 107295594 B CN107295594 B CN 107295594B CN 201710667225 A CN201710667225 A CN 201710667225A CN 107295594 B CN107295594 B CN 107295594B
- Authority
- CN
- China
- Prior art keywords
- sim card
- network
- application
- switching
- registration
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention is suitable for network switching technical field, provides a kind of method for switching network, device and mobile terminal.It include: that whether registered network is successful for the first SIM card of detection;If the first SIM card registered network success, determine the networking score of the network of the first SIM card registration according to parameter preset, the parameter preset include it is following at least one: signal strength, network formats, network bandwidth, network rate;The networking score for the network that determining first SIM card is registered is compared with the first preset value;If the networking score of the network of the first SIM card registration is less than the first preset value, data service is then transferred to the second SIM card from the first SIM card, to realize the network switching from the first SIM card to the network of the second SIM card, first SIM card and second SIM card correspond to different operators.By the above method, it can guarantee that mobile terminal transmits data in time, improve the good experience of user.
Description
Technical field
The invention belongs to network switching technical field more particularly to a kind of method for switching network, device and mobile terminal.
Background technique
Currently, mobile terminal (such as mobile phone) can support one or more smart card (Subscriber
Identification Module, SIM), in the multiple SIM card, it can run over a cellular network simultaneously, but 1 can only be kept
It opens SIM and is in upper net state.
The mobile terminal that people are used in net state can obtain various information, and in upper net state
Mobile terminal is usually directed to the switching between heterogeneous networks.For the mobile terminal with single SIM card, network switching includes single
Switching of a SIM card between data network and wifi network also includes switching of the single SIM card between different wifi networks.
For the mobile terminal with multiple SIM cards, network switching includes single SIM card cutting between data network and wifi network
Change, the switching between different wifi networks, also include different SIM card between switching.
It is (false when one of SIM card is arranged if mobile terminal has 2 SIM cards but in existing method for switching network
Be set as card 1) as after data card, if user's not manual switching to card 2, Network status regardless of the card 1 (including net
Network signal difference, in addition without service the case where), mobile terminal all will not actively be switched on card 2 from card 1, cause mobile terminal hardly possible
To transmit data in time.
Therefore, it is desirable to provide a kind of new method, to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method for switching network, device and mobile terminal, it is existing to solve
Technology cannot carry out the switching of SIM card when mobile terminal has multiple SIM card automatically, be difficult to so as to cause mobile terminal and
When transmission data the problem of.
The first aspect of the embodiment of the present invention provides a kind of method for switching network, comprising:
Detecting the first SIM card, whether registered network is successful;
If the first SIM card registered network success, the network of the first SIM card registration is determined according to parameter preset
Network score, the parameter preset include it is following at least one: signal strength, network formats, network bandwidth, network rate;
The networking score for the network that determining first SIM card is registered is compared with the first preset value;
If the networking score of the network of first SIM card registration is less than the first preset value, by data service from first
SIM card is transferred to the second SIM card, to realize network of the network switching from the first SIM card to the second SIM card, the first SIM
Card corresponds to different operators with second SIM card.
The second aspect of the embodiment of the present invention provides a kind of network switching device, comprising:
The whether successful judging unit of network registry, for detecting the first SIM card, whether registered network is successful;
Networking score determination unit, if succeeding for the first SIM card registered network, according to parameter preset determination
First SIM card registration network networking score, the parameter preset include it is following at least one: signal strength, network formats,
Network bandwidth, network rate;
Networking score comparing unit, the networking score and first of the network for registering first SIM card determined
Preset value compares;
Network switch unit, if the networking score of the network for first SIM card registration less than the first preset value,
Data service is transferred to the second SIM card from the first SIM card, to realize from the network switching of the first SIM card to the second SIM card
Network, first SIM card and second SIM card correspond to different operators.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It realizes such as the step of any one of method for switching network the method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, realizes as described in any one of method for switching network when the computer program is executed by processor
The step of method.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
Due to judge the first SIM card registration network networking score less than the first preset value when, by data service
It is transferred to the second SIM card from the first SIM card, and the first SIM card and second SIM card correspond to different operators, it therefore, will
Data service is transferred to the second SIM card from the first SIM card, and access network quality can be improved by switching SIM card preferably
The probability of network, and then guarantee that mobile terminal transmits data in time, improve the good experience of user.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart for method for switching network that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of network switching device provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present invention three provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of flow chart of method for switching network of first embodiment of the invention offer, implements in the present invention
In example, " the first SIM card " and " the second SIM card " corresponding different operator, and in " the first SIM card " and " the second SIM card "
" first ", " second " are only used for distinguishing different SIM cards, and there is no physical meanings;Similarly, " the first preset value " and " second is pre-
If " first ", " second " in value " are similar, this is repeated no more.
Step S11, whether registered network is successful for the first SIM card of detection.
Specifically, mobile terminal starting after, register current data card (being assumed to be the first SIM card), and detect this first
Whether registered network is successful for SIM card.Wherein, the network of the first SIM card registration includes data network and wifi network.Optionally,
If registered network fails, the prompt of registered network failure is shown, so that user knows.
Wherein, for the schematic diagram of the mobile terminal as shown in Fig. 2, in Fig. 2, which includes memory 201, processing
Device 202, input equipment 203, output equipment 204, bus 205.
Step S12 determines that first SIM card is registered according to parameter preset if the first SIM card registered network success
Network networking score, the parameter preset include it is following at least one: signal strength, network formats, network bandwidth, network
Rate.
Wherein, network formats include the networks such as 2G, 3G, 4G, 5G;Network rate includes data uplink rate and data downstream
Rate.
Specifically, when the number of parameter preset is greater than 1, corresponding weight can be arranged to each parameter preset in advance, then
It is added after the weight that each parameter preset is arranged is multiplied with the numerical value of corresponding parameter preset, obtains networking for network
Point.Alternatively, the corresponding numberical range of each parameter preset is divided into different numerical intervals, then it is arranged different after dividing
Numerical intervals correspond to different values, finally, the corresponding value of the numerical intervals where the numerical value of each parameter preset is added, obtain
The networking score of network.
In the step, the networking of the network of first SIM card registration can be just calculated after the success of the first SIM card registered network
Score, but since when the first SIM card registered network just succeeds, the corresponding parameter of network may be also in unstable shape
Therefore condition can calculate again the networking score of the network of registration after the first SIM card registered network success a period of time.At this point,
The step S12 includes:
If the success of A1, the first SIM card registered network, counts the successful duration of the first SIM card registered network.
A2, when the successful duration of the first SIM card registered network is greater than or equal to default registration time length, according to default
Parameter determines the networking score of the network of the first SIM card registration.It is small in the successful duration of the first SIM card registered network
When default registration time length, continue the successful duration of the first SIM card registered network that adds up, so as to subsequent again by cumulative institute
The first successful duration of SIM card registered network is stated compared with default registration time length.
Step S13, the networking score for the network that determining first SIM card is registered is compared with the first preset value.
Specifically, which is the numerical value that operator corresponding with the first SIM card is consistent.
Step S14, if the networking score of the network of first SIM card registration takes data less than the first preset value
Business is transferred to the second SIM card from the first SIM card, to realize network of the network switching from the first SIM card to the second SIM card, institute
It states the first SIM card and second SIM card corresponds to different operators.
Specifically, the networking score for the network registered when the first SIM card then shows the first SIM less than the first preset value
The network quality for blocking the network of registration is more bad, and since the first SIM card and the second SIM card belong to different operators, when belonging to
When the network quality of the network of the corresponding operator of first SIM card is more bad, belong to the network of the corresponding operator of the second SIM card
Network quality may be more excellent, and therefore, data service is arranged to the second SIM card automatically, can be connect by switching SIM card to improve
Enter the probability of network quality preferably network.
Optionally, in order to improve the safety for running the environment applied, the step S14 includes:
If it is current to obtain mobile terminal less than the first preset value for the networking score of the network of B1, first SIM card registration
The security level of the application of starting.Specifically, different security levels is arranged in all applications in advance for mobile terminal installation, with
And the security level that the network settings that can register for the first SIM card are different, in this way, can currently be opened by obtaining mobile terminal
Dynamic application information (as obtain application mark, the application mark can for application title, icon, application packet name
Deng), its corresponding security level is determined further according to the information of the application.For example, by the application of user's proprietary information is related to, such as with
The security level of the related application of bank is set as highest security level, by the peace of instant messaging application (such as wechat, QQ)
Full rank is set as secondary high security level, and the security level of other application is set as minimum.For example, being in advance different networks
Different security levels is set, for example, the security level highest of setting mobile data network, needs the peace of the wifi network of password
Full rank is taken second place, and the complete rank for not needing the wifi network of password is minimum.
If the security level for the application that B2, mobile terminal are currently up is higher than the peace of the network of first SIM card registration
Data service is then transferred to the second SIM card from the first SIM card by full rank, to realize from the network switching of the first SIM card to the
The network of two SIM cards.Optionally, in order to reduce the switching frequency of SIM card, then in the application for judging that mobile terminal is currently up
Security level be higher than first SIM card registration network security level when, search whether there is available security level
Data service (if it does not exist, is then transferred to the second SIM card from the first SIM card, to realize from the if it exists by higher network
The network switching of one SIM card to the second SIM card network), then it is higher the available security level to be accessed by first SIM card
Network, then judge whether the security level for the application that mobile terminal is currently up is higher than the available higher net of security level
Data service is transferred to the second SIM card from the first SIM card if being higher than by the security level of network, to realize from the first SIM card
The network of network switching to the second SIM card temporarily data service is not transferred to the 2nd SIM from the first SIM card if being lower than
Card, while continuing to use the network of the first SIM card registration.Certainly, since the networking score of network would generally be with the time
Change and change, therefore, during the network registered using SIM card, when preset interval duration reaches, according to default
Parameter determines the networking score of the network of the first SIM card registration.
Optionally, the method for switching network further include:
If the security level for the application that B3, mobile terminal are currently up is less than or equal to the net of first SIM card registration
The security level of network then continues to use the network of the first SIM card registration.Optionally, since the networking score of network is usual
It can change with time change, therefore, during the network registered using SIM card, when preset interval duration reaches
When, the networking score of the network of the first SIM card registration is determined according to parameter preset.
Optionally, in order to effectively reduce by the increased campus network of downloading data institute, the step S14 includes:
If it is current to obtain mobile terminal less than the first preset value for the networking score of the network of C1, first SIM card registration
The information of the application of starting.
C2, judge whether the application is data downloading class application according to the information of the application of acquisition, alternatively, described
Using whether being application just in downloading data.Specifically, according to the mark of application, such as the title of application, icon, application packet
Name etc. judges whether the application is data downloading class application: when the mark and the mark of preset data downloading class application of application
When identical, determine that the application downloads class application for data;According to using current downlink data amount judge the application currently whether
Just in downloading data: when the current downlink data amount of application is more than preset data-quantity threshold, determining the application under
Carry the application of data.
If C3, the application are data downloading class application or are application just in downloading data, the application is obtained
The business residue usage amount information of data download and the second SIM card.Wherein, the business residue usage amount letter of the second SIM card
Breath includes that the remaining data of second SIM card downloads total amount.
It, will if the data download of C4, the application are less than or equal to the business residue usage amount information of the second SIM card
Data service is transferred to the second SIM card from the first SIM card, to realize the net from the network switching of the first SIM card to the second SIM card
Network.
Optionally, the method for switching network further include:
If the data download of the application is greater than the business residue usage amount information of the second SIM card, institute is continued to use
State the network of the first SIM card registration.When carrying out data downloading due to mobile terminal, there may be certain flow rate, because
This, if judging, the data download of application is greater than the business residue usage amount information of the second SIM card, does not switch to the temporarily
Two SIM cards.
Optionally, after the step S14, comprising:
Whether registered network is successful for D1, the second SIM card of detection.
If the success of D2, the second SIM card registered network, the net of the second SIM card registration is determined according to parameter preset
The networking score of network, the parameter preset include it is following at least one: signal strength, network formats, network bandwidth, network speed
Rate.Optionally, if the second SIM card registered network success, counts the successful duration of the first SIM card registered network;?
When the successful duration of first SIM card registered network is greater than or equal to default registration time length, according to parameter preset determination
The networking score of the network of first SIM card registration.
D3, the network for registering determining second SIM card networking score compared with the second preset value.Specifically,
Second preset value is the numerical value that operator corresponding with the second SIM card is consistent.
If the networking score of the network of D4, second SIM card registration is greater than or equal to the second preset value, continue to use
The network of the second SIM card registration.
If the networking score of the network of D5, second SIM card registration is less than the second preset value, by data service from the
Two SIM cards are transferred to the first SIM card, to realize the network from the network switching of the second SIM card to the first SIM card.It may be noted that
, the executable step similar with step B1~B3, C1~C4 of step D5 only need to be mutual by the first SIM card and the second SIM card
It changes, details are not described herein again.
In first embodiment of the invention, whether registered network is successful for the first SIM card of detection, if first SIM card is registered
Network success, determines the networking score of the network of first SIM card registration according to parameter preset, the parameter preset include with
Descend at least one: signal strength, network formats, network bandwidth, network rate, the net that determining first SIM card is registered
The networking score of network is compared with the first preset value, if the networking score of the network of first SIM card registration is default less than first
Value, then be transferred to the second SIM card from the first SIM card for data service, to realize from the network switching of the first SIM card to second
The network of SIM card, first SIM card and second SIM card correspond to different operators.Due to judging the first SIM
When blocking the networking score of the network of registration less than the first preset value, data service is transferred to the second SIM card from the first SIM card,
And the first SIM card and second SIM card correspond to different operators, therefore, data service are transferred to from the first SIM card
Two SIM cards, can improve the probability of access network quality preferably network by switching SIM card, and then guarantee mobile terminal
Transmission data in time, improve the good experience of user.
Embodiment two:
Corresponding with a kind of method for switching network that embodiment one provides, Fig. 3 shows second embodiment of the invention offer
A kind of structural schematic diagram of network switching device, the network switching device can be applied in mobile terminal, for ease of description, only
Show part related to the embodiment of the present invention:
The network switching device includes: the whether successful judging unit 31 of network registry, networking score determination unit 32, networking
Score comparing unit 33, network switch unit 34.Wherein:
The whether successful judging unit 31 of network registry, for detecting the first SIM card, whether registered network is successful.
Wherein, the network of the first SIM card registration includes data network and wifi network.Optionally, if registered network fails,
Show the prompt of registered network failure, then so that user knows.
Score determination unit 32 of networking determines institute according to parameter preset if successful for the first SIM card registered network
State the first SIM card registration network networking score, the parameter preset include it is following at least one: signal strength, network system
Formula, network bandwidth, network rate.
Wherein, network formats include the networks such as 2G, 3G, 4G, 5G;Network rate includes data uplink rate and data downstream
Rate.
Specifically, when the number of parameter preset is greater than 1, corresponding weight can be arranged to each parameter preset in advance, then
It is added after the weight that each parameter preset is arranged is multiplied with the numerical value of corresponding parameter preset, obtains networking for network
Point.Alternatively, the corresponding numberical range of each parameter preset is divided into different numerical intervals, then it is arranged different after dividing
Numerical intervals correspond to different values, finally, the corresponding value of the numerical intervals where the numerical value of each parameter preset is added, obtain
The networking score of network.
Optionally, the networking score of the network of registration is calculated again after the first SIM card registered network success a period of time.
At this point, the networking score determination unit 32 includes:
The successful duration statistical module of registered network, if counting described for the first SIM card registered network success
The one successful duration of SIM card registered network.
First network is networked points calculating module, for being greater than in the successful duration of the first SIM card registered network or
When equal to default registration time length, the networking score of the network of the first SIM card registration is determined according to parameter preset.
It networks score comparing unit 33, the networking score of the network for register first SIM card determined and the
One preset value compares.
Specifically, which is the numerical value that operator corresponding with the first SIM card is consistent.
Network switch unit 34, if the networking score of the network for first SIM card registration less than the first preset value,
Data service is then transferred to the second SIM card from the first SIM card, to realize from the network switching of the first SIM card to the second SIM card
Network, first SIM card and second SIM card correspond to different operators.
Optionally, in order to improve the safety for running the environment applied, the network switch unit 34 includes:
The security level of application obtains module, if the networking score of the network for first SIM card registration is less than the
One preset value obtains the security level for the application that mobile terminal is currently up.It specifically, is in advance all of mobile terminal installation
Using different security level is arranged, and, the different security level of the network settings that can be registered for the first SIM card.
First SIM card switching module, if the security level for the application being currently up for mobile terminal is higher than described first
The security level of the network of SIM card registration, then be transferred to the second SIM card from the first SIM card for data service, to realize from first
The network switching of SIM card to the second SIM card network.Optionally, in order to reduce the switching frequency of SIM card, then judging to move
When the security level for the application that dynamic terminal is currently up is higher than the security level of the network of first SIM card registration, search is
No there are the higher networks of available security level, (if it does not exist, are then transferred to data service from the first SIM card if it exists
Second SIM card, to realize the network from the network switching of the first SIM card to the second SIM card), then it is accessed by first SIM card
The available higher network of security level, then judging whether the security level for the application that mobile terminal is currently up is higher than this can
Data service is transferred to the 2nd SIM from the first SIM card if being higher than by the security level of the higher network of security level
Card, to realize the network from the network switching of the first SIM card to the second SIM card, if being lower than, temporarily not by data service from the
One SIM card is transferred to the second SIM card, while continuing to use the network of the first SIM card registration.Certainly, due to the connection of network
Net score would generally change with time change, therefore, during the network registered using SIM card, when preset
When duration reaches, the networking score of the network of the first SIM card registration is determined according to parameter preset.
Optionally, the network switching device further include:
First network holding unit, if the security level for the application being currently up for mobile terminal is less than or equal to described
The security level of the network of first SIM card registration then continues to use the network of the first SIM card registration.Optionally, due to net
The networking score of network would generally change with time change, therefore, during the network registered using SIM card, when pre-
If interval duration when reaching, the networking score of the network of first SIM card registration is determined according to parameter preset.
Optionally, in order to effectively reduce by the increased campus network of downloading data institute, the network switch unit 34 is wrapped
It includes:
The data obtaining module of application, if the networking score of the network for first SIM card registration is pre- less than first
If value obtains the information for the application that mobile terminal is currently up.
Application type judgment module, the information for the application according to acquisition judge whether the application is under data
Class application is carried, alternatively, whether the application is application just in downloading data.Specifically, according to the mark of application, such as application
Title, icon, packet name of application etc. judge whether the application is data downloading class application: mark and preset number when application
When identical according to the mark of downloading class application, determine that the application downloads class application for data;According to using current downlink data amount
Judge that the application is current whether just in downloading data: when the current downlink data amount of application is more than preset data-quantity threshold,
Determine that the application is just in the application of downloading data.
Business residue usage amount data obtaining module, if being data downloading class application or under for the application
The application for carrying data, obtains the data download of the application and the business residue usage amount information of the second SIM card.
Second SIM card switching module, if being less than or equal to the business of the second SIM card for the data download of the application
Data service is then transferred to the second SIM card from the first SIM card by remaining usage amount information, to realize the network from the first SIM card
Switch to the network of the second SIM card.
Optionally, the network switching device further include:
Second network holding unit, if the business residue that the data download for the application is greater than the second SIM card makes
Dosage information then continues to use the network of the first SIM card registration.
Optionally, the network switching device further include:
The whether successful detection unit of second SIM card registered network, for detecting the second SIM card, whether registered network is successful.
Second SIM card networking score determination unit, if for the second SIM card registered network success, according to default ginseng
Number determines the networking score of the networks of second SIM cards registration, the parameter preset include it is following at least one: signal is strong
Degree, network formats, network bandwidth, network rate.Optionally, if the second SIM card registered network success, statistics described first
The successful duration of SIM card registered network;When the successful duration of the first SIM card registered network is greater than or equal to default registration
When long, the networking score of the network of the first SIM card registration is determined according to parameter preset.
Second SIM card is networked score comparing unit, and network for registering second SIM card determined is networked
Divide compared with the second preset value.Specifically, which is the numerical value that operator corresponding with the second SIM card is consistent.
Second SIM card continues to use unit, if the networking score of the network for second SIM card registration is greater than or waits
In the second preset value, then the network of the second SIM card registration is continued to use.
Second SIM card and the first SIM card switch unit, if the networking score of the network for second SIM card registration
Less than the second preset value, then data service is transferred to the first SIM card from the second SIM card, to realize the network from the second SIM card
Switch to the network of the first SIM card.It should be pointed out that second SIM card can be performed with the first SIM card switch unit and step
B1~B3, C1~C4 similar step need to only exchange the first SIM card and the second SIM card, and details are not described herein again.
In second embodiment of the invention, due to judging the networking score of the network of the first SIM card registration less than first
When preset value, data service is transferred to the second SIM card from the first SIM card, and the first SIM card and second SIM card are corresponding
Therefore data service is transferred to the second SIM card from the first SIM card by different operators, can be mentioned by switching SIM card
The probability of height access network quality preferably network, and then guarantee that mobile terminal transmits data in time, improve the good body of user
It tests.
Embodiment three:
Fig. 4 is the schematic diagram for the mobile terminal that one embodiment of the invention provides.As shown in figure 4, the mobile end of the embodiment
End 4 includes: processor 40, memory 41 and is stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes that above-mentioned each wifi hotspot management method is implemented when executing the computer program 42
Step in example, such as step S11 to S14 shown in FIG. 1.Alternatively, when the processor 40 executes the computer program 42
Realize the function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 34 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the mobile terminal 4 is described.For example, the computer program 42 can be divided
It is cut into the whether successful judging unit of network registry, networking score determination unit, networking score comparing unit, network switch unit.
Each unit concrete function is as follows:
The whether successful judging unit of network registry, for detecting the first SIM card, whether registered network is successful;
Networking score determination unit, if succeeding for the first SIM card registered network, according to parameter preset determination
First SIM card registration network networking score, the parameter preset include it is following at least one: signal strength, network formats,
Network bandwidth, network rate;
Networking score comparing unit, the networking score and first of the network for registering first SIM card determined
Preset value compares;
Network switch unit, if the networking score of the network for first SIM card registration less than the first preset value,
Data service is transferred to the second SIM card from the first SIM card, to realize from the network switching of the first SIM card to the second SIM card
Network, first SIM card and second SIM card correspond to different operators.
The mobile terminal 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The mobile terminal may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of mobile terminal 4 does not constitute the restriction to mobile terminal 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the mobile terminal can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the mobile terminal 4, such as the hard disk or interior of mobile terminal 4
It deposits.The memory 41 is also possible to the External memory equipment of the mobile terminal 4, such as be equipped on the mobile terminal 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the mobile terminal 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the mobile terminal
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (8)
1. a kind of method for switching network characterized by comprising
Detecting the first SIM card, whether registered network is successful;
If the first SIM card registered network success determines the networking of the network of the first SIM card registration according to parameter preset
Score, the parameter preset include it is following at least one: signal strength, network formats, network bandwidth, network rate;
The networking score for the network that determining first SIM card is registered is compared with the first preset value;
If the networking score of the network of first SIM card registration is less than the first preset value, by data service from the first SIM card
Be transferred to the second SIM card, to realize the network from the network switching of the first SIM card to the second SIM card, first SIM card and
Second SIM card corresponds to different operators;
If the networking score of the network of first SIM card registration is less than the first preset value, by data service from first
SIM card is transferred to the second SIM card, to realize the network from the network switching of the first SIM card to the second SIM card, comprising:
If the networking score of the network of the first SIM card registration obtains what mobile terminal was currently up less than the first preset value
The security level of application;
If the security level for the application that mobile terminal is currently up is higher than the security level of the network of first SIM card registration,
Data service is then transferred to the second SIM card from the first SIM card, to realize from the network switching of the first SIM card to the second SIM card
Network.
2. method for switching network as described in claim 1, which is characterized in that if the first SIM card registered network at
Function determines the networking score of the network of the first SIM card registration according to parameter preset, comprising:
If the first SIM card registered network success, counts the successful duration of the first SIM card registered network;
It is true according to parameter preset when the successful duration of the first SIM card registered network is greater than or equal to default registration time length
The networking score of the network of the fixed first SIM card registration.
3. method for switching network as described in claim 1, which is characterized in that the method for switching network further include:
If the security level for the application that mobile terminal is currently up is less than or equal to the safety of the network of first SIM card registration
Rank then continues to use the network of the first SIM card registration.
4. method for switching network as described in claim 1, which is characterized in that if the network of first SIM card registration
Networking score less than the first preset value, then data service is transferred to the second SIM card from the first SIM card, to realize from first
The network switching of SIM card to the second SIM card network, comprising:
If the networking score of the network of the first SIM card registration obtains what mobile terminal was currently up less than the first preset value
The information of application;
Judge whether the application is data downloading class application according to the information of the application of acquisition, alternatively, the application is
No is just in the application of downloading data;
If the application is data downloading class application or is application just in downloading data, the data downloading of the application is obtained
The business residue usage amount information of amount and the second SIM card;
If the data download of the application is less than or equal to the business residue usage amount information of the second SIM card, data are taken
Business from the first SIM card is transferred to the second SIM card, to realize the network from the network switching of the first SIM card to the second SIM card.
5. method for switching network as claimed in claim 4, which is characterized in that the method for switching network further include:
If the data download of the application is greater than the business residue usage amount information of the second SIM card, described the is continued to use
The network of one SIM card registration.
6. a kind of network switching device characterized by comprising
The whether successful judging unit of network registry, for detecting the first SIM card, whether registered network is successful;
Score determination unit of networking determines described first according to parameter preset if successful for the first SIM card registered network
SIM card registration network networking score, the parameter preset include it is following at least one: signal strength, network formats, network
Bandwidth, network rate;
Networking score comparing unit, the networking score of the network for registering first SIM card determined are preset with first
Value compares;
Network switch unit, if the networking score of the network for first SIM card registration will be counted less than the first preset value
From the first SIM card it is transferred to the second SIM card according to service, to realize the net from the network switching of the first SIM card to the second SIM card
Network, first SIM card and second SIM card correspond to different operators;
The network switch unit includes:
The security level of application obtains module, if the networking score of the network for first SIM card registration is pre- less than first
If value obtains the security level for the application that mobile terminal is currently up;
First SIM card switching module, if the security level for the application being currently up for mobile terminal is higher than first SIM card
Data service is then transferred to the second SIM card from the first SIM card by the security level of the network of registration, to realize from the first SIM card
Network switching to the second SIM card network.
7. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
8. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710667225.6A CN107295594B (en) | 2017-08-07 | 2017-08-07 | Method for switching network, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710667225.6A CN107295594B (en) | 2017-08-07 | 2017-08-07 | Method for switching network, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107295594A CN107295594A (en) | 2017-10-24 |
CN107295594B true CN107295594B (en) | 2019-01-11 |
Family
ID=60104664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710667225.6A Active CN107295594B (en) | 2017-08-07 | 2017-08-07 | Method for switching network, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107295594B (en) |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107864158A (en) * | 2017-12-20 | 2018-03-30 | 北斗七星(重庆)物联网技术有限公司 | A kind of method, apparatus, equipment and the storage medium of Internet of Things information transfer |
CN108495349B (en) * | 2018-03-15 | 2021-07-27 | 维沃移动通信有限公司 | Switching method of operator network and mobile terminal |
CN112400303B (en) * | 2019-01-31 | 2022-05-13 | 华为技术有限公司 | Network switching method, equipment and network system |
CN113747525A (en) * | 2019-03-26 | 2021-12-03 | 华为技术有限公司 | Method for switching internet access card and electronic equipment |
WO2020227914A1 (en) * | 2019-05-14 | 2020-11-19 | 北京小米移动软件有限公司 | Method and apparatus for improving service continuity, and medium |
CN110207776A (en) * | 2019-06-28 | 2019-09-06 | 京源中科科技股份有限公司 | Water meter, its data uploading method and equipment based on NB-IoT |
CN110446172A (en) * | 2019-08-15 | 2019-11-12 | 宇龙计算机通信科技(深圳)有限公司 | Switching method, device, storage medium and the terminal of subscriber identification card |
CN110533412A (en) * | 2019-08-23 | 2019-12-03 | 深圳市沃特沃德股份有限公司 | For the method for payment of intelligent terminal, device, storage medium and computer equipment |
CN112543474A (en) * | 2019-09-20 | 2021-03-23 | 奇酷互联网络科技(深圳)有限公司 | Network connection method, mobile terminal and storage medium |
CN110557747A (en) * | 2019-10-24 | 2019-12-10 | 深圳传音控股股份有限公司 | network registration method, terminal and readable storage medium |
CN110708732A (en) * | 2019-10-29 | 2020-01-17 | 深圳市有方科技股份有限公司 | Method and terminal for dynamically self-adapting network switching |
CN112752318B (en) * | 2019-10-30 | 2023-08-22 | 深圳市万普拉斯科技有限公司 | Network switching method and device, mobile terminal and readable storage medium |
CN113498131B (en) * | 2020-04-03 | 2022-10-04 | 新开普电子股份有限公司 | Automatic network switching method of intelligent terminal and intelligent terminal |
CN111756427A (en) * | 2020-05-06 | 2020-10-09 | 广州市中海达测绘仪器有限公司 | Multi-card single-standby GNSS receiver intelligent switching device, method, equipment and medium |
WO2021258287A1 (en) * | 2020-06-23 | 2021-12-30 | Qualcomm Incorporated | Dynamically determining the designated data service (dds) component for improved selection of slicing resources |
CN112073999B (en) * | 2020-08-24 | 2023-09-29 | 浙江大华技术股份有限公司 | Communication terminal, vehicle-mounted terminal and network switching method thereof |
CN113965972B (en) * | 2021-09-08 | 2022-11-11 | 广东联想懂的通信有限公司 | Method, device, equipment and storage medium for supporting multi-network switching by single communication card |
CN114585037B (en) * | 2022-04-12 | 2024-02-27 | 深圳市锐尔觅移动通信有限公司 | Network type switching method and device, terminal equipment and computer readable medium |
CN115996373B (en) * | 2023-03-21 | 2023-06-16 | 北京昆仑海岸科技股份有限公司 | Network access method and device of NB-IoT device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104902528A (en) * | 2015-04-28 | 2015-09-09 | 宇龙计算机通信科技(深圳)有限公司 | Dual-card terminal, method and device for automatically switching data services of dual-card terminal |
CN105682258A (en) * | 2016-01-20 | 2016-06-15 | 广东欧珀移动通信有限公司 | User identification card switching method and device |
CN106454801A (en) * | 2016-12-14 | 2017-02-22 | 北京小米移动软件有限公司 | Network switching method and terminal |
CN106604258A (en) * | 2016-12-20 | 2017-04-26 | 深圳市优克联新技术有限公司 | User identity identification card switching method and apparatus |
CN106817731A (en) * | 2015-11-30 | 2017-06-09 | 华为终端(东莞)有限公司 | The method for switching network and terminal device of terminal |
CN107529154A (en) * | 2016-06-22 | 2017-12-29 | 中兴通讯股份有限公司 | The communication means and device of multimode terminal |
-
2017
- 2017-08-07 CN CN201710667225.6A patent/CN107295594B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104902528A (en) * | 2015-04-28 | 2015-09-09 | 宇龙计算机通信科技(深圳)有限公司 | Dual-card terminal, method and device for automatically switching data services of dual-card terminal |
CN106817731A (en) * | 2015-11-30 | 2017-06-09 | 华为终端(东莞)有限公司 | The method for switching network and terminal device of terminal |
CN105682258A (en) * | 2016-01-20 | 2016-06-15 | 广东欧珀移动通信有限公司 | User identification card switching method and device |
CN107529154A (en) * | 2016-06-22 | 2017-12-29 | 中兴通讯股份有限公司 | The communication means and device of multimode terminal |
CN106454801A (en) * | 2016-12-14 | 2017-02-22 | 北京小米移动软件有限公司 | Network switching method and terminal |
CN106604258A (en) * | 2016-12-20 | 2017-04-26 | 深圳市优克联新技术有限公司 | User identity identification card switching method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107295594A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107295594B (en) | Method for switching network, device and mobile terminal | |
CN107404740B (en) | Method for switching network, device and the terminal device of safety | |
CN110392052A (en) | A kind of block chain intelligence contract processing system and method | |
CN107484190B (en) | Method for connecting network, mobile terminal and computer readable storage medium | |
CN109962855A (en) | A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device | |
CN107277878B (en) | Method for switching network, device and mobile terminal | |
CN107645393A (en) | Determine the method, apparatus and system of the black-box system input and output degree of association | |
CN108040358A (en) | A kind of connection method of wireless network, terminal device and storage medium | |
CN109195178A (en) | signal quality monitoring method and terminal device | |
CN106954225A (en) | Method, device and the wireless device of radio roaming | |
CN107645478A (en) | Network attack defending system, method and device | |
CN109740630A (en) | Method for processing abnormal data and device | |
CN109041140A (en) | It is switched fast wireless network methods, Intelligent hardware and terminal device | |
CN107277896B (en) | Wifi hotspot management method, device and terminal device | |
CN107197493B (en) | A kind of method for switching network, network switching device and intelligent terminal | |
CN111315026B (en) | Channel selection method, device, gateway and computer readable storage medium | |
CN113452576B (en) | Method and device for monitoring network environment, storage medium and electronic device | |
CN105049452B (en) | Switching method, device and the intelligent terminal of resource downloading mode | |
CN107148035A (en) | Method, device and the wireless device of Frequency Band Selection | |
CN112468573A (en) | Data pushing method, device, equipment and storage medium | |
CN112532467B (en) | Method, device and system for realizing fault detection | |
CN102857939B (en) | The collocation method and device of cell parameter | |
CN107333286A (en) | Wifi hotspot connection management method, device and terminal device | |
CN107360059A (en) | Network detecting method, network detection means and intelligent terminal | |
CN113596938A (en) | Network switching method and device of mobile terminal, storage medium and electronic device |
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 | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |