CN107040949A - In network method, device and computer-readable recording medium - Google Patents

In network method, device and computer-readable recording medium Download PDF

Info

Publication number
CN107040949A
CN107040949A CN201710445178.0A CN201710445178A CN107040949A CN 107040949 A CN107040949 A CN 107040949A CN 201710445178 A CN201710445178 A CN 201710445178A CN 107040949 A CN107040949 A CN 107040949A
Authority
CN
China
Prior art keywords
sim card
specified timer
timer
specified
card
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
CN201710445178.0A
Other languages
Chinese (zh)
Other versions
CN107040949B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710445178.0A priority Critical patent/CN107040949B/en
Publication of CN107040949A publication Critical patent/CN107040949A/en
Application granted granted Critical
Publication of CN107040949B publication Critical patent/CN107040949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

Network method, device and computer-readable recording medium are stayed the disclosure is directed to one kind, belongs to communication technical field, applied in the terminal of dual-card dual-standby single-pass, the first SIM card and the second SIM card is installed in the terminal, this method includes:During the specified timer of the second SIM card carries out timing, judge whether the network environment residing for the first SIM card changes;When the network environment residing for the first SIM card changes, the specified timer of the second SIM card is set, so that the specified timer of the second SIM card enters timeout mode;When the timer of the second SIM card is in timeout mode, is performed and beaten flow by the second SIM card, net is stayed with carry out the second SIM card.The disclosure sets the specified timer expired of the second SIM card when the network environment of the first SIM card changes, so as to shorten the cycle for flow of being beaten by the progress of the second SIM card, improves the success rate that net is stayed by the second SIM card.

Description

In network method, device and computer-readable recording medium
Technical field
This disclosure relates to communication technical field, more particularly to it is a kind of in network method, device and computer-readable recording medium.
Background technology
With the development of the communication technology, the terminal such as mobile phone, tablet personal computer can pass through SIM (Subscriber Identity Module client identification modules) card access to communication networks, with the information exchange between realization and other-end.And as double card is double The mature of technology is treated, terminal can be switched between double SIM card, to meet different network demands.
For convenience of description, the SIM card for attempting to move data network connection by terminal current time is referred to as the first SIM Card, another SIM card is referred to as the second SIM card.For the terminal of dual-card dual-standby single-pass, under normal conditions, the second SIM card Flow in net may be caused to fail because of reasons such as network congestions, so that terminal needs to carry out flow of beating by the second SIM card, To success in net.When the read-around ratio of flow of beat reaches preset times, terminal needs triggering the second SIM card correspondence Specified timer carry out timing;After the specified timer expired of second SIM card, the terminal can be again through second SIM card carries out flow of beating, so that the second SIM card success in net.
The content of the invention
In order to shorten the cycle for flow of being beaten by the progress of the second SIM card, so as to improve the success that the second SIM card stays net Rate, the disclosure provides a kind of in network method, device and computer-readable recording medium.
Network method, the terminal applied to dual-card dual-standby single-pass are stayed there is provided one kind according to the first aspect of the embodiment of the present disclosure In, the first SIM card and the second SIM card are installed, methods described includes in the terminal:
During the specified timer of second SIM card carries out timing, the net residing for first SIM card is judged Whether network environment changes;
When the network environment residing for first SIM card changes, the specified timing of second SIM card is set Device, so that the specified timer of second SIM card enters timeout mode;
When the timer of second SIM card is in timeout mode, flow of beating is performed by second SIM card, With carry out second SIM card stay net.
Alternatively, during the specified timer in second SIM card carries out timing, described first is judged Whether the network environment residing for SIM card changes, including:
During the specified timer of second SIM card carries out timing, detect first SIM card whether by nothing Service state successfully stays net;
When detecting first SIM card by non-service state successful when in net, the net residing for first SIM card is determined Network environment changes.
Alternatively, whether detection first SIM card successfully stays net by non-service state, including:
Judge whether the status identifier of first SIM card is set to the second default value from the first default value;
When the status identifier of first SIM card is to be set to second default value from first default value When, determine that first SIM card successfully stays net by non-service state.
Alternatively, during the specified timer in second SIM card carries out timing, described first is judged Whether the network environment residing for SIM card changes, including:
During the specified timer of second SIM card carries out timing, judge whether by first SIM card Carry out location updating;
When it is determined that carrying out location updating by first SIM card, the network environment residing for first SIM card is determined Change.
Alternatively, during the specified timer in second SIM card carries out timing, described first is judged Whether the network environment residing for SIM card changes, including:
During the specified timer of second SIM card carries out timing, judge whether by first SIM card Carry out rat switching;
When it is determined that carrying out rat switchings by first SIM card, the network environment residing for first SIM card is determined Change.
Alternatively, the specified timer of setting second SIM card, so that the specified timing of second SIM card Device enters timeout mode, including:
Stop the timing of the specified timer of second SIM card, and set the specified timer of second SIM card to enter Enter timeout mode.
Alternatively, the specified timer for setting second SIM card enters timeout mode, including:
The present timing time of the specified timer of second SIM card is added with preset duration, to set described The specified timer of two SIM cards enters timeout mode, and the preset duration is more than or equal to the specified timing of second SIM card The time-count cycle of device.
Alternatively, the specified timer of setting second SIM card, so that the specified timing of second SIM card Device enters timeout mode, including:
Timing is carried out using default accelerated factor as the time of day of the specified timer of second SIM card, so that institute The specified timer for stating the second SIM card enters timeout mode.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device in net, the terminal applied to dual-card dual-standby single-pass In, the first SIM card and the second SIM card are installed, described device includes in the terminal:
Judge module, during carrying out timing in the specified timer of second SIM card, judges described first Whether the network environment residing for SIM card changes;
Setup module, for when the network environment residing for first SIM card changes, setting the 2nd SIM The specified timer of card, so that the specified timer of second SIM card enters timeout mode;
Performing module, for when the timer of second SIM card is in timeout mode, passing through second SIM card Execution is beaten flow, and net is stayed with carry out second SIM card.
Alternatively, the judge module includes:
Detection sub-module, during carrying out timing in the specified timer of second SIM card, detects described the Whether one SIM card successfully stays net by non-service state;
First determination sub-module, for when detecting first SIM card by non-service state successful when in net, determining institute The network environment residing for the first SIM card is stated to change.
Alternatively, the detection sub-module is used for:
Judge whether the status identifier of first SIM card is set to the second default value from the first default value;
When the status identifier of first SIM card is to be set to second default value from first default value When, determine that first SIM card successfully stays net by non-service state.
Alternatively, the judge module includes:
First judging submodule, during carrying out timing in the specified timer of second SIM card, judgement is It is no that location updating is carried out by first SIM card;
Second determination sub-module, for when it is determined that carrying out location updating by first SIM card, determining described first Network environment residing for SIM card changes.
Alternatively, the judge module includes:
Second judging submodule, during carrying out timing in the specified timer of second SIM card, judgement is The no switching that rat is carried out by first SIM card;
3rd determination sub-module, for when it is determined that carrying out rat switchings by first SIM card, determining described first Network environment residing for SIM card changes.
Alternatively, the setup module includes:
Submodule, the timing of the specified timer for stopping second SIM card are set, and the 2nd SIM is set The specified timer of card enters timeout mode.
Alternatively, the setting submodule is used for:
The present timing time of the specified timer of second SIM card is added with preset duration, to set described The specified timer of two SIM cards enters timeout mode, and the preset duration is more than or equal to the specified timing of second SIM card The time-count cycle of device.
Alternatively, the setup module includes:
Timing submodule, for using default accelerated factor as the specified timer of second SIM card time of day Timing is carried out, so that the specified timer of second SIM card enters timeout mode.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of device in net, the terminal applied to dual-card dual-standby single-pass In, the first SIM card and the second SIM card are installed, described device includes in the terminal:
Processor;
Memory for storing processor-executable instruction;
Wherein, the step of processor is configured as performing any one method described in above-mentioned first aspect.
It is described computer-readable according to the fourth aspect of the embodiment of the present disclosure there is provided a kind of computer-readable recording medium Be stored with instruction on storage medium, applied in the terminal of dual-card dual-standby single-pass, being provided with the first SIM card and in the terminal Two SIM cards, any one method of above-mentioned first aspect is realized in instruction when being executed by processor the step of.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the disclosed embodiments, when During the specified timer of the second SIM card carries out timing, detect the network environment residing for the first SIM card and change When, the specified timer expired of the second SIM card can be directly set, so as to carry out flow of beating, contracting by the second SIM card In the cycle of the short flow that by the second SIM card beat, improve the success rate that net is stayed by the second SIM card.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart in network method according to an exemplary embodiment.
Fig. 2 is another flow chart in network method according to an exemplary embodiment.
Fig. 3 A are a kind of block diagrams of device in net according to an exemplary embodiment.
Fig. 3 B are the block diagrams of the first judge module according to an exemplary embodiment.
Fig. 3 C are the block diagrams of second of judge module according to an exemplary embodiment.
Fig. 3 D are the block diagrams of the third judge module according to an exemplary embodiment.
Fig. 3 E are a kind of block diagrams of setup module according to an exemplary embodiment.
Fig. 3 F are the block diagrams of another setup module according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of terminal according to an exemplary embodiment.
Embodiment
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 disclosure.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 disclosure.
Before detailed explanation is carried out to the embodiment of the present disclosure, the first noun to being related in the embodiment of the present disclosure It is explained respectively with application scenarios.
First, the noun being related in the embodiment of the present disclosure is introduced.
Dual-card dual-standby single-pass
Dual-card dual-standby single-pass refers to that terminal can support two SIM cards, and supports that the corresponding number of two SIM cards can be with Simultaneously " standby ", but " it can not converse " simultaneously.And when standby, the corresponding number of any one SIM card can called;But such as Really one of them is conversed, then another number can not receive calling, and can not call through, and can not also call.
Wherein, two SIM cards that terminal is supported can generally connect communication network, and that is to say can carry out staying net. And two SIM card may be respectively referred to as main card and vice card.Main card refers to that current trial moves data network company in terminal The SIM card connect, vice card refers to SIM card of the terminal currently without the connection for moving data network, for convenience of description, subsequently Main card is referred to as the first SIM card, vice card is referred to as the second SIM card.
Secondly, the application scenarios that the embodiment of the present disclosure is related to are introduced.
In correlation technique, for the terminal of dual-card dual-standby single-pass, under normal conditions, user may carry with Terminal, when user is moved to somewhere, the second SIM card may cause flow in net to fail because of the change of network environment, So as to which terminal needs to carry out flow of beating by the second SIM card, to success in net.When beat, the read-around ratio of flow reaches During to preset times, terminal needs the corresponding specified timer of the second SIM card of triggering to carry out timing, such as, when carrying out stream of beating When the read-around ratio of journey reaches 10 times, the specified timer that can trigger the second SIM card carries out timing;Wherein, when the second SIM card Specified timer when being in time status, the terminal can not carry out beating flow by the second SIM card, only when this second After the specified timer expired of SIM card, the terminal can carry out flow of beating again through the second SIM card, so that the second SIM card Success in net.But, because the time-count cycle of the specified timer of the second SIM card is often very long, such as, and second SIM card Time-count cycle is 30 minutes, then, after the specified timer of the second SIM card starts timing, the terminal can only be after 30 minutes Flow of beating is carried out by the second SIM card again, so that second SIM card can not stay net in this 30 minutes, terminal is reduced Success rate in net is carried out by the second SIM card.Simultaneously as second SIM card can not stay net for a long time, user couple have impact on The use of second SIM card.Therefore, network method is stayed present disclose provides one kind, this method can be in the network residing for the first SIM card When environment changes, the specified timer expired of the second SIM card is set, swept so as to shorten terminal by the second SIM card In the cycle of net flow, improve the success rate that the second SIM card stays net.
After the noun and application scenarios in the embodiment of the present disclosure are introduced, next to the embodiment of the present disclosure What is provided is explained in network method.
Fig. 1 is a kind of flow chart in network method according to an exemplary embodiment, as shown in figure 1, method is used for In the terminal of dual-card dual-standby single-pass, the first SIM card is installed in the terminal and the second SIM card comprises the following steps.
In a step 101, during the specified timer of the second SIM card carries out timing, judge residing for the first SIM card Network environment whether change.
In a step 102, when the network environment residing for the first SIM card changes, the specified meter of the second SIM card is set When device so that the specified timer of the second SIM card enters timeout mode.
In step 103, when the timer of the second SIM card is in timeout mode, stream of beating is performed by the second SIM card Journey, with carry out the second SIM card stay net.
In the disclosed embodiments, during timing is carried out in the specified timer of the second SIM card, first is detected When network environment residing for SIM card changes, the specified timer expired of the second SIM card is set, so as to pass through second SIM card carries out flow of beating, and shortens the cycle for flow of being beaten by the progress of the second SIM card, improves and stayed by the second SIM card The success rate of net.
Alternatively, during the specified timer of the second SIM card carries out timing, the net residing for the first SIM card is judged Whether network environment changes, including:
During the specified timer of the second SIM card carries out timing, whether the first SIM card of detection is by non-service state Net is stayed in success;
When detecting the first SIM card by non-service state successful when in net, the network environment hair residing for the first SIM card is determined Changing.
Alternatively, whether the first SIM card of detection successfully stays net by non-service state, including:
Judge whether the status identifier of the first SIM card is set to the second default value from the first default value;
When the status identifier of the first SIM card is to be set to the second default value from the first default value, first is determined SIM card successfully stays net by non-service state.
Alternatively, during the specified timer of the second SIM card carries out timing, the net residing for the first SIM card is judged Whether network environment changes, including:
During the specified timer of the second SIM card carries out timing, judge whether to carry out position by the first SIM card Update;
When it is determined that carrying out location updating by the first SIM card, determine that the network environment residing for the first SIM card becomes Change.
Alternatively, during the specified timer of the second SIM card carries out timing, the net residing for the first SIM card is judged Whether network environment changes, including:
During the specified timer of the second SIM card carries out timing, judge whether to carry out rat by the first SIM card Switching;
When it is determined that carrying out rat switchings by the first SIM card, determine that the network environment residing for the first SIM card changes.
Alternatively, the specified timer of the second SIM card is set, so that the specified timer of the second SIM card enters overtime shape State, including:
Stop the timing of the specified timer of the second SIM card, and set the specified timer of the second SIM card to enter overtime shape State.
Alternatively, the specified timer of the second SIM card is set to enter timeout mode, including:
The present timing time of the specified timer of second SIM card is added with preset duration, to set the second SIM card Specified timer enters timeout mode, and the preset duration is more than or equal to the time-count cycle of the specified timer of the second SIM card.
Alternatively, the specified timer of the second SIM card is set, so that the specified timer of the second SIM card enters overtime shape State, including:
Timing is carried out using default accelerated factor as the time of day of the specified timer of the second SIM card, so that the 2nd SIM The specified timer of card enters timeout mode.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real Example is applied no longer to repeat this one by one.
Fig. 2 is a kind of flow chart in network method that the embodiment of the present disclosure is provided.The embodiment of the present disclosure will be 2 pairs with reference to accompanying drawing Embodiment shown in above-mentioned Fig. 1 carries out detailed explanation, and referring to Fig. 2, this method comprises the following steps.
In step 201, during the specified timer of the second SIM card carries out timing, terminal judges the first SIM card Whether residing network environment changes.
From the foregoing, it is probably that network environment changes what is caused that the second SIM card, which can not be carried out in net, when second SIM card remains unchanged in when can not stay in the network environment of net, and terminal carries out flow of beating again by the second SIM card can also Occurs the situation that can not stay net.Therefore, the success rate of net is stayed, it is necessary in the net residing for the second SIM card in order to improve the second SIM card When network environment changes, flow of beating is carried out.But, when the specified timer of the second SIM card is in time status, the end End can not carry out flow of beating by the second SIM card, that is to say, when the specified timer of the second SIM card is in time status, The terminal will not judge whether the network environment described in the second SIM card changes.And the first SIM card and the second SIM card be In same terminal, when the network environment residing for the first SIM card changes, illustrate that terminal may be moved, second Network environment residing for SIM card may change because of the movement of terminal, therefore, and terminal is in order to improve the second SIM card Success rate in net, can judge the net residing for the first SIM card during the specified timer of the second SIM card carries out timing Whether network environment changes.
It should be noted that in the disclosed embodiments, this specifies timer to be T3212 timers, certainly, in reality Can also be other timers in the application of border.
Wherein, terminal judges that the operation whether network environment residing for the first SIM card changes can include following three The mode of kind.
First way, during the specified timer of the second SIM card carries out timing, terminal can detect first Whether SIM card successfully stays net by non-service state;When detecting the first SIM card by non-service state successful when in net, is determined Network environment residing for one SIM card changes.
Wherein, to may determine that whether the status identifier of the first SIM card from the first default value is set to second pre- for terminal If numerical value;When the status identifier of the first SIM card is to be set to the second default value from the first default value, first is determined SIM card successfully stays net by non-service state.
It should be noted that the first default value is used to indicate that the first SIM card is in non-service state, the second default value Net state is stayed for indicating that the first SIM card is in.First default value and the second default value can be set in advance, and this first Default value and the second default value can be numeral, letter etc., such as first default value can be 0,1,2 etc., second Default value can be 0,1,2 etc., only need the first default value different from the second default value.
Such as, when the first default value is 1, and the second default value is 2, if the status identifier of the first SIM card is 1, it is determined that the first SIM card is currently at non-service state, it is changed into 2 when terminal detects the status identifier of the first SIM card from 1 When, determine that the first SIM card successfully stays net by non-service state.
In addition, the setting of the status identifier for the first SIM card, terminal can be to detect first SIM card current During in non-service state, the status identifier for setting first SIM card is the first default value, when detecting the first SIM card When in net state is currently at, the status identifier for setting first SIM card is the second default value.It that is to say, if first SIM card is currently at non-service state, then the status identifier for setting first SIM card is the first default value, when detecting First SIM card is changed into when in net state from non-service state, then sets the status identifier of the first SIM card by the first default value It is changed into the second default value.
The second way, during the specified timer of the second SIM card carries out timing, terminal judges whether by the One SIM card carries out location updating;When it is determined that carrying out location updating by the first SIM card, the network residing for the first SIM card is determined Environment changes.
Wherein, because terminal is being accessed after the corresponding mobile data network of the first SIM card, if the position area being presently in Domain changes, i.e. when the network environment of the first SIM card changes, in order that the band of position that terminal is had access to after change Corresponding mobile data network, to keep the stability of its mobile data network accessed, terminal needs to carry out location updating.Cause This, terminal can decide whether to occur location updating to determine whether the network environment residing for the first SIM card changes.
The third mode, during the specified timer of the second SIM card carries out timing, terminal judges whether by the One SIM card carries out rat switching;When it is determined that carrying out rat switchings by the first SIM card, the network residing for the first SIM card is determined Environment changes.
Due to for there is many rat terminal, when network environment is converted, terminal can carry out rat switching, than Such as, when there is third generation rat (3G) and forth generation rat (4G) in terminal, if the currently used forth generation rat of the first SIM card, when When network environment residing for first SIM changes, first SIM card will switch to third generation rat from the 4th generation rat.Cause This, terminal may determine that by the way that whether the first SIM card carries out rat switchings to determine whether is network environment residing for the first SIM card Change.
In step 202., when the network environment described in the first SIM card changes, terminal sets the finger of the second SIM card Timer is determined, so that the specified timer of the second SIM card enters timeout mode.
From the foregoing, when the network environment residing for the first SIM card changes, illustrating that terminal may be moved Dynamic, the network environment of the second SIM card be able to may also change, and may now be made by the second SIM card flow that beat Second SIM card successfully stays net.But, when the specified timer of the second SIM card is in time status, the terminal can not be by the Two SIM cards carry out flow of beating, and only after the specified timer expired of second SIM card, the terminal can pass through the 2nd SIM Card carries out flow of beating again.Therefore, when the network environment described in the first SIM card changes, terminal can set second The specified timer of SIM card, so that the specified timer of the second SIM card enters timeout mode.Wherein, terminal sets the 2nd SIM The specified timer of card, entering timeout mode with the specified timer for alloing the second SIM card includes the following two kinds mode.
(1), terminal stops the timing of the specified timer of the second SIM card, and sets the specified timer of the second SIM card to enter Enter timeout mode.
Wherein, the present timing time of the specified timer of the second SIM card can be added by terminal with preset duration, to set The specified timer for putting the second SIM card enters timeout mode, and the preset duration is more than or equal to the specified timer of the second SIM card Time-count cycle.
It should be noted that in order to ensure the present timing time of the specified timer of the second SIM card and preset duration After addition, the specified timer expired of the second SIM card can be made immediately, therefore, the preset duration needs to be more than or equal to second The time-count cycle of the specified timer of SIM card.Such as, it is 30 minutes when the timely cycle of the specified timer of second SIM card When, in order to set the specified timer of the second SIM card overtime immediately, the preset duration can grade for 30 points, 35.
In addition, terminal can be by setting a preset duration, to set the specified timer of the second SIM card to enter time-out State.It can also be not provided with the preset duration in actual applications, but stop the specified timer of the second SIM card in terminal After timing, directly set the second SIM card specified timer enter timeout mode, that is to say, no matter second SIM card specify Whether the present timing time of timer overtime, and terminal stops after the timing of the specified timer of the second SIM card, all determine this The specified timer of two SIM cards enters timeout mode.
What deserves to be explained is, when terminal sets the specified timer of the second SIM card by above-mentioned first way, due to can To make the specified timer expired of second SIM card immediately, the specified timer expired without waiting the second SIM card, plus Fast terminal by the second SIM card beat cycle of flow.
(2), default accelerated factor is carried out timing by terminal, with The specified timer of the second SIM card is set to enter timeout mode.
It should be noted that the default accelerated factor can be set in advance, such as, the default accelerated factor can be 1 point Clock, 5 minutes, 10 minutes etc..
Due under normal conditions, it with one second was that time of day carries out timing that the specified timer of the second SIM card, which is, when When presetting accelerated factor for 1 minute, 5 minutes, the time of day such as 10 minutes, if regarding the default accelerated factor as second The time of day of the specified timer of SIM card carries out timing, then can accelerate speed during the specified timer of second SIM card Degree, the specified timer for shortening the second SIM card enters the time of timeout mode, so that shortening terminal passes through the second SIM card Carry out the cycle of flow of beating.
In step 203, when the timer of the second SIM card is in timeout mode, terminal is performed by the second SIM card and swept Net flow, with carry out the second SIM card stay net.
It should be noted that terminal performs flow of beating by the second SIM card, to carry out the behaviour for staying net of the second SIM card Make can include various ways, in the disclosed embodiments in the following manner exemplified by illustrate, not to the embodiment of the present disclosure Constitute and limit.
Wherein, terminal by the second SIM card perform beat flow to operation can be:Terminal selects the second SIM card Any communication network in the communication standard supported;In selected communication network, suitable cell is selected, and to communication Network initiates access request, completes registration in a communication network;When the tracking area identification of discovery affiliated subdistrict is not in preservation During tracking area identification list, TAU (Tracking Area Update, tracing section updating) flow is initiated, area is tracked more Newly.
In addition, above-mentioned flow of beating can also include other steps, such as cell reselection.
It should also be noted that, terminal carries out the specific of the steps such as communication network selection, cell selection by the second SIM card Operation can join correlation technique, and the embodiment of the present disclosure is no longer repeated this one by one.
In the disclosed embodiments, when being changed due to the network environment residing for the first SIM card, residing for the second SIM card Network environment can also may change.Therefore, in order to improve the success rate that the second SIM card stays net, when in the second SIM card During specifying timer progress timing, terminal may determine that whether the network environment residing for the first SIM card changes, and When the network environment residing for the first SIM card changes, the specified timer expired of the second SIM card is set, so that terminal can To carry out flow of beating by the second SIM card, the cycle for flow of being beaten by the progress of the second SIM card is shortened, improves and passes through Second SIM card stays the success rate of net.Simultaneously, it is to avoid cause because the time-count cycle of the specified timer of the second SIM card is long The situation of the second SIM card can not be used.
Fig. 3 A are a kind of block diagrams for device in net that the embodiment of the present disclosure is provided, referring to Fig. 3 A, and the device in net can be by Software, hardware or both are implemented in combination with.The device is applied in the terminal of dual-card dual-standby single-pass, and the is provided with the terminal One client identification module SIM card and the second SIM card, the device include:Judge module 301, setup module 302 and performing module 303。
Judge module 301, during carrying out timing in the specified timer of the second SIM card, judges the first SIM card Whether residing network environment changes;
Setup module 302, for when the network environment residing for the first SIM card changes, setting the finger of the second SIM card Timer is determined, so that the specified timer of the second SIM card enters timeout mode;
Performing module 303, for when the timer of the second SIM card is in timeout mode, being performed and being swept by the second SIM card Net flow, with carry out the second SIM card stay net.
Alternatively, referring to Fig. 3 B, judge module 301 includes:
Detection sub-module 3011, during carrying out timing in the specified timer of the second SIM card, detection first Whether SIM card successfully stays net by non-service state;
First determination sub-module 3012, for when detecting the first SIM card by non-service state successful when in net, determining Network environment residing for one SIM card changes.
Alternatively, detection sub-module 3011 is used for:
Judge whether the status identifier of the first SIM card is set to the second default value from the first default value;
When the status identifier of the first SIM card is to be set to the second default value from the first default value, first is determined SIM card successfully stays net by non-service state.
Alternatively, referring to Fig. 3 C, judge module 301 includes:
First judging submodule 3013, during carrying out timing in the specified timer of the second SIM card, judgement is It is no that location updating is carried out by the first SIM card;
Second determination sub-module 3014, for when it is determined that carrying out location updating by the first SIM card, determining the first SIM The residing network environment of card changes.
Alternatively, referring to Fig. 3 D, judge module 301 includes:
Second judging submodule 3015, during carrying out timing in the specified timer of the second SIM card, judgement is The no switching that wireless access technology rat is carried out by the first SIM card;
3rd determination sub-module 3016, for when it is determined that carrying out rat switchings by the first SIM card, determining the first SIM card Residing network environment changes.
Alternatively, referring to Fig. 3 E, setup module 302 includes:
Submodule 3021 is set, the timing of the specified timer for stopping the second SIM card, and the second SIM card is set Specified timer enters timeout mode.
Alternatively, submodule 3021 is set to be used for:
The present timing time of the specified timer of second SIM card is added with preset duration, to set the second SIM card Specified timer enters timeout mode, and the preset duration is more than or equal to the time-count cycle of the specified timer of the second SIM card.
Alternatively, referring to Fig. 3 F, setup module 302 includes:
Timing submodule 3022, for using default accelerated factor as the specified timer of the second SIM card time of day Timing is carried out, so that the specified timer of the second SIM card enters timeout mode.
In the disclosed embodiments, when being changed due to the network environment residing for the first SIM card, residing for the second SIM card Network environment can also may change.Therefore, in order to improve the success rate that the second SIM card stays net, when in the second SIM card During specifying timer progress timing, terminal may determine that whether the network environment residing for the first SIM card changes, and When the network environment residing for the first SIM card changes, the specified timer expired of the second SIM card is set, so that terminal can To carry out flow of beating by the second SIM card, the cycle for flow of being beaten by the progress of the second SIM card is shortened, improves and passes through Second SIM card stays the success rate of net.Simultaneously, it is to avoid cause because the time-count cycle of the specified timer of the second SIM card is long The situation of the second SIM card can not be used.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of the terminal 400 of dual-card dual-standby single-pass according to an exemplary embodiment.For example, eventually End 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Reference picture 4, terminal 400 can include following one or more assemblies:Processing assembly 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communication component 416.
The integrated operation of the usual control terminal 400 of processing assembly 402, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 402 can include one or more modules, just Interaction between processing assembly 402 and other assemblies.For example, processing assembly 402 can include multi-media module, it is many to facilitate Interaction between media component 408 and processing assembly 402.
Memory 404 is configured as storing various types of data supporting the operation in terminal 400.These data are shown Example includes the instruction of any application program or method for being operated in terminal 400, and contact data, telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of terminal 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing power supply for terminal 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between the terminal 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 408 includes a front camera and/or rear camera.When terminal 400 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when terminal 400 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 is provide interface between processing assembly 402 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for terminal 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of terminal 400, the relative positioning of component is for example described Component is the display and keypad of terminal 400, and sensor cluster 414 can also detect 400 1 components of terminal 400 or terminal Position change, the existence or non-existence that user contacts with terminal 400, the orientation of terminal 400 or acceleration/deceleration and terminal 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal 400 and other equipment.Terminal 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 400 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, real shown in above-mentioned Fig. 1 or Fig. 2 for performing The method that example offer is provided.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of terminal 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that mobile terminal is able to carry out the method that above-mentioned Fig. 1 or embodiment illustrated in fig. 2 are provided.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (18)

1. one kind stays network method, it is characterised in that applied in the terminal of dual-card dual-standby single-pass, first is provided with the terminal Client identification module SIM card and the second SIM card, methods described include:
During the specified timer of second SIM card carries out timing, the network rings residing for first SIM card are judged Whether border changes;
When the network environment residing for first SIM card changes, the specified timer of second SIM card is set, with The specified timer of second SIM card is set to enter timeout mode;
When the timer of second SIM card is in timeout mode, flow of beating is performed by second SIM card, to enter Row second SIM card stays net.
2. the method as described in claim 1, it is characterised in that the specified timer in second SIM card is counted When during, judge whether the network environment residing for first SIM card changes, including:
During the specified timer of second SIM card carries out timing, detect first SIM card whether by without service State successfully stays net;
When detecting first SIM card by non-service state successful when in net, the network rings residing for first SIM card are determined Border changes.
3. method as claimed in claim 2, it is characterised in that whether detection first SIM card is by non-service state Net is stayed in success, including:
Judge whether the status identifier of first SIM card is set to the second default value from the first default value;
When the status identifier of first SIM card is to be set to second default value from first default value, Determine that first SIM card successfully stays net by non-service state.
4. the method as described in claim 1, it is characterised in that the specified timer in second SIM card is counted When during, judge whether the network environment residing for first SIM card changes, including:
During the specified timer of second SIM card carries out timing, judge whether to carry out by first SIM card Location updating;
When it is determined that carrying out location updating by first SIM card, determine that the network environment residing for first SIM card occurs Change.
5. the method as described in claim 1, it is characterised in that the specified timer in second SIM card is counted When during, judge whether the network environment residing for first SIM card changes, including:
During the specified timer of second SIM card carries out timing, judge whether to carry out by first SIM card Wireless access technology rat switching;
When it is determined that carrying out rat switchings by first SIM card, determine that the network environment residing for first SIM card occurs Change.
6. the method as described in claim 1-5 is any, it is characterised in that the specified timing of setting second SIM card Device, so that the specified timer of second SIM card enters timeout mode, including:
Stop the timing of the specified timer of second SIM card, and set the specified timer of second SIM card to enter the excess of imports When state.
7. method as claimed in claim 6, it is characterised in that the specified timer of setting second SIM card enters Timeout mode, including:
The present timing time of the specified timer of second SIM card is added with preset duration, to set the 2nd SIM The specified timer of card enters timeout mode, and the preset duration is more than or equal to the specified timer of second SIM card Time-count cycle.
8. the method as described in claim 1-5 is any, it is characterised in that the specified timing of setting second SIM card Device, so that the specified timer of second SIM card enters timeout mode, including:
Timing is carried out using default accelerated factor as the time of day of the specified timer of second SIM card, so that described the The specified timer of two SIM cards enters timeout mode.
9. a kind of device in net, it is characterised in that applied in the terminal of dual-card dual-standby single-pass, first is provided with the terminal Client identification module SIM card and the second SIM card, described device include:
Judge module, during carrying out timing in the specified timer of second SIM card, judges the first SIM Whether the residing network environment of card changes;
Setup module, for when the network environment residing for first SIM card changes, setting second SIM card Timer is specified, so that the specified timer of second SIM card enters timeout mode;
Performing module, for when the timer of second SIM card is in timeout mode, being performed by second SIM card Beat flow, net is stayed with carry out second SIM card.
10. device as claimed in claim 9, it is characterised in that the judge module includes:
Detection sub-module, during carrying out timing in the specified timer of second SIM card, detection described first Whether SIM card successfully stays net by non-service state;
First determination sub-module, for when detecting first SIM card by non-service state successful when in net, determining described Network environment residing for one SIM card changes.
11. device as claimed in claim 10, it is characterised in that the detection sub-module is used for:
Judge whether the status identifier of first SIM card is set to the second default value from the first default value;
When the status identifier of first SIM card is to be set to second default value from first default value, Determine that first SIM card successfully stays net by non-service state.
12. device as claimed in claim 9, it is characterised in that the judge module includes:
First judging submodule, during carrying out timing in the specified timer of second SIM card, judges whether to lead to Cross first SIM card and carry out location updating;
Second determination sub-module, for when it is determined that carrying out location updating by first SIM card, determining the first SIM The residing network environment of card changes.
13. device as claimed in claim 9, it is characterised in that the judge module includes:
Second judging submodule, during carrying out timing in the specified timer of second SIM card, judges whether to lead to Cross the switching that first SIM card carries out wireless access technology rat;
3rd determination sub-module, for when it is determined that carrying out rat switchings by first SIM card, determining first SIM card Residing network environment changes.
14. the device as described in claim 9-13 is any, it is characterised in that the setup module includes:
Submodule, the timing of the specified timer for stopping second SIM card are set, and second SIM card is set Specified timer enters timeout mode.
15. device as claimed in claim 14, it is characterised in that the setting submodule is used for:
The present timing time of the specified timer of second SIM card is added with preset duration, to set the 2nd SIM The specified timer of card enters timeout mode, and the preset duration is more than or equal to the specified timer of second SIM card Time-count cycle.
16. the device as described in claim 9-13 is any, it is characterised in that the setup module includes:
Timing submodule, for being carried out default accelerated factor as the time of day of the specified timer of second SIM card Timing, so that the specified timer of second SIM card enters timeout mode.
17. a kind of device in net, it is characterised in that applied in the terminal of dual-card dual-standby single-pass, being provided with the in the terminal One client identification module SIM card and the second SIM card, described device include:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as the step of perform claim requires any one method described in 1-8.
18. be stored with instruction on a kind of computer-readable recording medium, the computer-readable recording medium, it is characterised in that Applied in the terminal of dual-card dual-standby single-pass, being provided with the first client identification module SIM card and the second SIM card in the terminal, The step of instruction realizes any one method described in claim 1-8 when being executed by processor.
CN201710445178.0A 2017-06-12 2017-06-12 Network residing method, device and computer readable storage medium Active CN107040949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710445178.0A CN107040949B (en) 2017-06-12 2017-06-12 Network residing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710445178.0A CN107040949B (en) 2017-06-12 2017-06-12 Network residing method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107040949A true CN107040949A (en) 2017-08-11
CN107040949B CN107040949B (en) 2020-10-30

Family

ID=59541788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710445178.0A Active CN107040949B (en) 2017-06-12 2017-06-12 Network residing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107040949B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065069A (en) * 2019-11-29 2020-04-24 惠州华阳通用电子有限公司 T-BOX data network recovery method and device
CN111356159A (en) * 2020-05-25 2020-06-30 北京小米移动软件有限公司 Network-resident mode adjusting method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052138A (en) * 2011-09-02 2013-04-17 联发科技(新加坡)私人有限公司 Network-searching method and device for multimode UE (user equipment)
CN103747469A (en) * 2014-01-21 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Device and method for rapidly starting network search
CN104796963A (en) * 2014-01-17 2015-07-22 马维尔国际有限公司 Cell residence method for mobile terminal, device and mobile terminal
CN104918300A (en) * 2014-03-12 2015-09-16 马维尔国际贸易有限公司 Device and method for mobile communication
US20160119860A1 (en) * 2014-10-28 2016-04-28 Samsung Electronics Co., Ltd. Slotted cell search in hybrid data in multi-sim devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052138A (en) * 2011-09-02 2013-04-17 联发科技(新加坡)私人有限公司 Network-searching method and device for multimode UE (user equipment)
CN104796963A (en) * 2014-01-17 2015-07-22 马维尔国际有限公司 Cell residence method for mobile terminal, device and mobile terminal
CN103747469A (en) * 2014-01-21 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Device and method for rapidly starting network search
CN104918300A (en) * 2014-03-12 2015-09-16 马维尔国际贸易有限公司 Device and method for mobile communication
US20160119860A1 (en) * 2014-10-28 2016-04-28 Samsung Electronics Co., Ltd. Slotted cell search in hybrid data in multi-sim devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065069A (en) * 2019-11-29 2020-04-24 惠州华阳通用电子有限公司 T-BOX data network recovery method and device
CN111065069B (en) * 2019-11-29 2023-07-14 惠州华阳通用电子有限公司 T-BOX data network recovery method and device
CN111356159A (en) * 2020-05-25 2020-06-30 北京小米移动软件有限公司 Network-resident mode adjusting method, device and storage medium

Also Published As

Publication number Publication date
CN107040949B (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN104936304B (en) Smart machine binding method, smart machine and server
CN104159275B (en) Method for connecting network and device
CN104360653B (en) Troubleshooting methodology and device
CN106792638B (en) Method for connecting network and terminal
CN106454801B (en) Method for switching network and terminal
CN105975156B (en) Application interface display methods and device
EP3166359A1 (en) Network connecting method and apparatus, computer program and recording medium
CN107608561A (en) Touch-screen control method and device
CN107943347A (en) Touch-screen control method and device
CN105704766A (en) Control method and device of double-card mobile terminal
CN107465821A (en) Switch the method and apparatus of mobile terminal data network service
CN107241770A (en) Method for connecting network and device
CN106851723A (en) cell switching method and device
CN106792937A (en) The processing method and processing device of call request
CN107105339A (en) A kind of methods, devices and systems for playing live video
CN105912204A (en) Method and device for starting up application interface
CN108702689A (en) Cell accessing method, device and storage medium
CN105101125A (en) Method and device for setting call forwarding
CN105188024B (en) Access the method, apparatus and system of network
CN104780574A (en) Method and device for network switchover
CN107040949A (en) In network method, device and computer-readable recording medium
CN104298576B (en) terminal test method and device
CN106650569B (en) Fingerprint input method and device
CN107040910A (en) Wireless roaming method, radio roaming device and electronic equipment
CN104812026B (en) District staying method, device and mobile terminal

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