CN115551038A - Network card switching method and electronic equipment - Google Patents
Network card switching method and electronic equipment Download PDFInfo
- Publication number
- CN115551038A CN115551038A CN202210023598.0A CN202210023598A CN115551038A CN 115551038 A CN115551038 A CN 115551038A CN 202210023598 A CN202210023598 A CN 202210023598A CN 115551038 A CN115551038 A CN 115551038A
- Authority
- CN
- China
- Prior art keywords
- switching
- network card
- allowing
- card
- timer
- 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.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/34—Reselection control
Abstract
The application provides a network card switching method and electronic equipment, and relates to the technical field of terminals. The method comprises the following steps: when the stream is switched, the timer is started immediately, and the switching can not be carried out again before the timer is invalid, so that the ping-pong effect is inhibited. Recording the switching times of the stream from the main card to the auxiliary card, when the switching times are larger than or equal to the preset maximum switching times, not allowing the switching, recording the time stamp of not allowing the switching, and when the time passes the preset times cooling time, clearing the switching times and allowing the switching again. By using the method, the ping-pong effect in the network card switching process can be inhibited, and the user experience is improved.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a network card switching method and an electronic device.
Background
The electronic device may include multiple network cards, for example, one primary network card and one secondary network card. When the network of the electronic device is optimized by using the multiple network cards, the situation that the quality of the multiple network cards is poor sometimes occurs, and at the moment, the network may be frequently switched back and forth among the multiple network cards in a short time, so that ping-pong switching of the network cards is generated, and poor user experience is caused.
Disclosure of Invention
In order to solve the above problems, the present application provides a network card switching method and an electronic device, which can suppress a ping-pong effect in a network card switching process and improve user experience.
In a first aspect, the present application provides a method for switching a network card, including:
when the stream switching is carried out, a timer is started immediately, and the switching can not be carried out again before the timer is invalid;
the limitation of the maximum switching times maxTimes and the limitation of the cooling time cooldown time are increased, wherein the maximum switching times maxTimes and the cooling time cooldown time may be determined according to actual conditions, and the application is not particularly limited.
By using the method, the ping-pong effect in the network card switching process can be inhibited, and the user experience is improved.
In a second aspect, the present application provides an electronic device, which includes a memory and a processor, where the memory stores computer code, and the computer code implements the method for switching the network card described above when executed by the processor.
Drawings
Fig. 1 is a schematic view of a scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a network card switching method according to an embodiment of the present application;
fig. 3 is a first schematic diagram illustrating a software architecture of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application more clearly understood by those skilled in the art, an application scenario of the technical solutions of the present application is first described below.
Referring to fig. 1, the figure is a schematic view of a scenario provided by the present application.
Taking a dual-card scenario as an example, when the quality of both the main card cell0 and the sub-card cell1 is not good, the problem of frequent switching in fig. 1 may occur.
Because the switching action is power consumption and overhead and has damage to user experience, and each switching operation can cause about 2s of card pause, the method for inhibiting the ping-pong effect of network card switching is provided in the application.
Referring to fig. 2, the figure is a flowchart of a method for switching a network card according to an embodiment of the present application.
The method comprises the following steps:
and when the stream is switched, the timer is started immediately, and the switching can not be carried out again before the timer is invalid, so that the ping-pong effect is inhibited.
And increasing the limit of the maximum switching time maxTimes and the limit of the cooling time coolDowntime.
Recording the switching times n of the stream from the main card to the auxiliary card, when n is larger than maxTimes, no switching is allowed, and recording the time stamp of no switching, when the time is more than coolDowntime, the switching times is cleared, and the switching is allowed again.
By using the method, the ping-pong effect in the network card switching process can be inhibited, and the user experience is improved.
Based on the network card switching method provided by the above embodiment, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, the memory stores computer codes, and the computer codes are executed by the processor to implement the network card switching method described above.
The software architecture of the electronic device can be seen in fig. 3 and 4.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. The above-described apparatus embodiments are merely illustrative, and units and modules illustrated as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is merely a detailed description of the present application, and it should be noted that modifications and embellishments could be made by those skilled in the art without departing from the principle of the present application, and these should also be considered as the protection scope of the present application.
Claims (2)
1. A method for switching network cards is characterized by comprising the following steps:
when the stream is switched, a timer is started immediately, and the switching cannot be performed again before the timer is invalid;
recording the switching times of the stream from the main card to the auxiliary card, when the switching times are larger than or equal to the preset maximum switching times, not allowing the switching, recording the time stamp of not allowing the switching, and when the time passes the preset times cooling time, clearing the switching times and allowing the switching again.
2. An electronic device comprising a memory and a processor, wherein the memory stores computer code thereon, and the computer code implements the method for network card switching of claim 1 when executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210023598.0A CN115551038A (en) | 2022-01-10 | 2022-01-10 | Network card switching method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210023598.0A CN115551038A (en) | 2022-01-10 | 2022-01-10 | Network card switching method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115551038A true CN115551038A (en) | 2022-12-30 |
Family
ID=84724336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210023598.0A Withdrawn CN115551038A (en) | 2022-01-10 | 2022-01-10 | Network card switching method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115551038A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572275A (en) * | 2019-08-01 | 2019-12-13 | 新华三技术有限公司成都分公司 | Network card switching method and device, server and computer readable storage medium |
CN111510960A (en) * | 2019-01-30 | 2020-08-07 | 大唐移动通信设备有限公司 | SRVCC handover failure punishment processing method and device |
CN111726797A (en) * | 2020-06-23 | 2020-09-29 | Oppo广东移动通信有限公司 | User identification card switching method and device, storage medium and electronic equipment |
-
2022
- 2022-01-10 CN CN202210023598.0A patent/CN115551038A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111510960A (en) * | 2019-01-30 | 2020-08-07 | 大唐移动通信设备有限公司 | SRVCC handover failure punishment processing method and device |
CN110572275A (en) * | 2019-08-01 | 2019-12-13 | 新华三技术有限公司成都分公司 | Network card switching method and device, server and computer readable storage medium |
CN111726797A (en) * | 2020-06-23 | 2020-09-29 | Oppo广东移动通信有限公司 | User identification card switching method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101788926B (en) | Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform | |
DE69934598T2 (en) | Combined search and pager monitoring with offline storage of samples | |
CN102413529A (en) | Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal | |
ATE370552T1 (en) | POWER SAVING METHOD OF A MOBILE TELEPHONE STATION | |
CN112087772B (en) | Network anomaly recovery method, terminal and computer storage medium | |
CN108616942A (en) | Method, access network equipment and the terminal of communication | |
KR20020066166A (en) | Wireless communication device dealing with intermittent signal | |
EP1030529A3 (en) | HLR fault recovery for mobile communication system | |
CN105873072A (en) | Carrier aggregation control method and device of mobile terminal and mobile terminal | |
EP1439725A1 (en) | Handover of video telephony session with degraded quality | |
CN115551038A (en) | Network card switching method and electronic equipment | |
EP1658546B1 (en) | Method and apparatus for cell re-selection parameter recoding | |
CN106488523A (en) | A kind of method and apparatus of suppression antenna transmission mode frequent switching | |
EP2490479A1 (en) | Method and mobile switching center (msc) for implementing load re-distribution | |
JP2006197190A (en) | Mobile phone, switching execution determination method and switching execution determination program | |
CN114157018B (en) | Distributed feeder automation recovery method based on line load rate and peer-to-peer communication | |
CN113630833B (en) | Base station parameter adjusting method and device, storage medium and electronic device | |
EP3627891A1 (en) | Communication method, network device, and terminal device | |
CN102572796B (en) | The data interactive processing method of mobile device and smart card and device | |
CN114696970A (en) | Method, device and medium for indicating physical downlink shared channel monitoring | |
CN105407543A (en) | Call control method and core network device | |
WO2018166406A1 (en) | Cell search method and ue | |
CN110740483B (en) | Information processing method and device in LTE switching process | |
CN107567040A (en) | A kind of network optimized approach, core net and base station | |
JP3338785B2 (en) | Statistical transmission information amount reduction system and its reduction method |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20221230 |