CN113498131B - Automatic network switching method of intelligent terminal and intelligent terminal - Google Patents

Automatic network switching method of intelligent terminal and intelligent terminal Download PDF

Info

Publication number
CN113498131B
CN113498131B CN202010260490.4A CN202010260490A CN113498131B CN 113498131 B CN113498131 B CN 113498131B CN 202010260490 A CN202010260490 A CN 202010260490A CN 113498131 B CN113498131 B CN 113498131B
Authority
CN
China
Prior art keywords
network
sim card
executing
card
intelligent terminal
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
Application number
CN202010260490.4A
Other languages
Chinese (zh)
Other versions
CN113498131A (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.)
Newcapec Electronics Co Ltd
Original Assignee
Newcapec Electronics 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 Newcapec Electronics Co Ltd filed Critical Newcapec Electronics Co Ltd
Priority to CN202010260490.4A priority Critical patent/CN113498131B/en
Publication of CN113498131A publication Critical patent/CN113498131A/en
Application granted granted Critical
Publication of CN113498131B publication Critical patent/CN113498131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00837Determination of triggering parameters for hand-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/305Handover due to radio link failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to an automatic network switching method of an intelligent terminal and the intelligent terminal, and belongs to the technical field of network switching. The method considers that the intelligent terminal has certain self-recovery capability after the current used network condition is abnormal, the SIM card is not switched immediately after the network condition is judged to be abnormal once, but the abnormal times of the network condition are counted, if the network condition recovery capability is strong, the network communication of the current used SIM card can be recovered quickly before the counting value does not reach the set threshold value for switching the SIM card, and if the counting value reaches the threshold value for switching the SIM card, the SIM card and the network are switched immediately, so that the quick recovery of the networking state of the intelligent terminal is realized, and the intelligent terminal is recovered to normal networking work. The network automatic switching method has simple principle, can quickly recover the network connection state without complex analysis and calculation, has flexible application range, and is suitable for both vehicle-mounted intelligent terminals and mobile terminals.

Description

Automatic network switching method of intelligent terminal and intelligent terminal
Technical Field
The invention belongs to the technical field of network switching, and particularly relates to an intelligent terminal and an automatic network switching method thereof.
Background
In the vehicle-mounted intelligent terminal in the prior art, because the vehicle-mounted environment does not have the condition of laying cables, wireless communication becomes the communication mode selected by the vehicle-mounted intelligent terminal, but the wireless communication has the defects of larger environmental influence factors and poor stability compared with wired communication, and the vehicle-mounted environment moves at a high speed, and the shaking in the moving process easily causes network fluctuation, influences the normal communication of the vehicle-mounted intelligent terminal and influences the normal operation of the vehicle-mounted intelligent terminal. When the network condition is poor, the SIM card and the network of the vehicle-mounted intelligent terminal are generally required to be switched, but the switching can be manually performed only, the switching time is long, and the vehicle-mounted intelligent terminal cannot perform normal communication within the long switching time, so that the normal work of the vehicle-mounted intelligent terminal is seriously influenced.
Generally, most of call functions in the mobile terminal support dual-card dual-standby, such as making and receiving calls, sending and receiving short messages, and the like, but one SIM card can only use 2G or 3G while the other SIM card uses a 4G network, and the 4G network using the other SIM card needs to be manually switched, so that users who need to use the network uninterruptedly and elderly users who are not familiar with network settings can have poor user experience.
Chinese patent application No. CN104954546B proposes an intelligent SIM card switching method for an intelligent terminal, which performs an SIM card switching operation by judging that the current signal strength does not reach a set signal strength threshold, and switches from a communication service mode of the current SIM card to a communication service mode of another SIM card. This method has the following problems:
firstly, when the network signal strength is normal (that is, a set signal strength threshold is reached), but the networking fails, according to the method, the SIM switching condition is not satisfied, the network connection is mistaken to be normal, and the network is not switched, so that the intelligent terminal cannot be networked, and the normal operation of the intelligent terminal is affected.
Secondly, once the network signal strength is judged to be abnormal at the current moment, the network is switched, even if the network has self-recovery capability and can recover more quickly or even recover instantly, according to the method, the condition of switching the SIM card is judged to be met, the network is still switched, and the network switching wastes a certain time, although only 1s is possible, a certain time delay still exists for the vehicle-mounted intelligent terminal which moves at a high speed and has high networking real-time requirement, so that the normal work of the intelligent terminal is influenced.
Disclosure of Invention
The invention aims to provide an automatic network switching method of an intelligent terminal, which is used for solving the problems that the existing automatic SIM card switching method is unreliable and impractical and cannot ensure that the intelligent terminal can quickly recover a networking state. Meanwhile, an intelligent terminal is also provided for solving the problems that the existing automatic SIM card switching method is unreliable and impractical, the intelligent terminal cannot be ensured to quickly recover the networking state, and the normal communication is influenced.
Based on the purpose, the technical scheme of the network automatic switching method of the intelligent terminal is as follows:
1) Detecting the signal intensity of the currently used SIM card, setting a network flag bit to be 0 when the signal intensity is lower than a set intensity threshold value, adding 1 to the abnormal times of the network condition, and executing the step 5); when the signal intensity is not lower than the intensity threshold value, executing the step 2);
2) Detecting the network connection state of the currently used SIM card, setting the network flag bit to be 0 and adding 1 to the abnormal times of the network condition when the network connection state is disconnected, and executing the step 5); when the network connection state is normal, executing the step 3);
3) Detecting the current network zone bit, if the network zone bit is 1, clearing the accumulated abnormal times of the network condition, and finishing the detection; if the network flag bit is 0, executing the step 4);
4) Network dialing is carried out, if the dialing is successful, the abnormal times of the network condition are reset, the network zone bit is set to be 1, and the detection is finished; if the dialing fails, adding 1 to the abnormal times of the network conditions, and executing the step 5);
5) And judging whether the abnormal times of the network conditions are greater than a set threshold value for switching the SIM card, and if so, switching the SIM card, thereby realizing the automatic network switching.
The beneficial effects of the above technical scheme are:
the network automatic switching method of the invention considers that the intelligent terminal has certain self-recovery capability after the current used network condition is abnormal, therefore, after the network condition is judged to be abnormal once, the SIM card is not switched immediately, but the number of times of the abnormal network condition is counted, if the network condition recovery capability is strong, the network communication of the current used SIM card can be recovered quickly before the counting value does not reach the set threshold value of switching the SIM card, if the counting value reaches the threshold value of switching the SIM card, the network condition of the current used SIM card can not be recovered in short time, the SIM card and the network are switched immediately, so as to realize the quick recovery of the networking state of the intelligent terminal and ensure that the intelligent terminal recovers the normal networking work. And after one-time network dialing is successful, the abnormal network condition times are cleared, so that the switching is avoided after the counting times quickly reach a threshold value, and the network communication cannot be recovered by utilizing the network self-recovery capability.
In addition, when the network condition of the SIM card is judged to be abnormal, a plurality of conditions are considered, including but not limited to the signal intensity and the network connection state of the SIM card, and as long as any one condition is met, the network condition of the SIM card is judged to be abnormal for one time, the number of times of the network condition abnormality is counted for one time, the network condition of the SIM card can be accurately judged, and the SIM card and the network can be switched in time. The network automatic switching method has simple principle, can quickly recover the network connection state without complicated analysis and calculation, is practical, has flexible applicable objects, and is suitable for both vehicle-mounted intelligent terminals and handheld intelligent mobile terminals.
In order to detect the network abnormal condition caused by poor contact between the SIM card and the card slot, further, before detecting the signal strength in step 1), the method further includes:
detecting whether a card exists in a card slot of a currently used SIM card, setting a network flag bit to be 0 and adding 1 to the abnormal times of the network condition when no card exists, and executing the step 5); and when the card is detected, detecting the signal intensity.
In order to detect the abnormal network condition caused by the abnormal network registration, the method further includes, in step 2), before detecting the network connection state:
detecting whether the network registration of the currently used SIM card is normal, if the network registration is detected to be abnormal, setting a network flag bit to be 0, adding 1 to the abnormal times of the network condition, and executing the step 5); and if the network registration is detected to be normal, detecting the network connection state.
Based on the purpose, the technical scheme of the intelligent terminal is as follows:
comprising a memory and a processor, and a computer program stored on the memory and running on the processor, the processor being coupled to the memory, the processor implementing the following steps when executing the computer program:
1) Detecting the signal intensity of the currently used SIM card, setting a network flag bit to be 0 when the signal intensity is lower than a set intensity threshold, adding 1 to the abnormal times of the network condition, and executing the step 5); when the signal intensity is not lower than the intensity threshold value, executing the step 2);
2) Detecting the network connection state of the currently used SIM card, setting the network flag bit to be 0 and adding 1 to the abnormal times of the network condition when the network connection state is disconnected, and executing the step 5); when the network connection state is normal, executing the step 3);
3) Detecting the current network zone bit, if the network zone bit is 1, clearing the accumulated abnormal times of the network condition, and finishing the detection; if the network flag bit is 0, executing step 4);
4) Network dialing is carried out, if the dialing is successful, the abnormal times of the network condition are reset, the network zone bit is set to be 1, and the detection is finished; if the dialing fails, adding 1 to the abnormal times of the network condition, and executing the step 5);
5) And judging whether the number of times of abnormal network conditions is greater than a set threshold value for switching the SIM card, and if so, switching the SIM card, thereby realizing automatic network switching.
The beneficial effects of the above technical scheme are:
the intelligent terminal of the invention adopts the automatic network switching method, can accurately judge the abnormal condition of the network, and can quickly recover normal communication by utilizing the self-recovery capability of the network when the network condition is abnormal; if the network cannot be recovered, the SIM card is immediately switched to realize the timely switching of the communication network, so that the intelligent terminal is ensured to quickly recover the networking state, and the normal networking communication of the intelligent terminal is not influenced.
In order to detect the network abnormal condition caused by poor contact between the SIM card and the card slot, the method further includes, in step 1), before detecting the signal strength:
detecting whether a card exists in a card slot of a currently used SIM card, setting a network flag bit to be 0 when no card exists, adding 1 to the abnormal times of the network condition, and executing the step 5); and when the card is detected, detecting the signal intensity.
In order to detect the abnormal network condition caused by the abnormal network registration, the method further includes, in step 2), before detecting the network connection state:
detecting whether the network registration of the currently used SIM card is normal, if the network registration is detected to be abnormal, setting a network flag bit to be 0, adding 1 to the abnormal times of the network condition, and executing the step 5); and if the network registration is detected to be normal, detecting the network connection state.
In order to avoid the occurrence of a network abnormal condition caused by manually inputting an incorrect APN parameter, the processor is further communicatively connected with a card reader, the card reader is used for reading an APN parameter of a SIM card prestored in a parameter card and sending the APN parameter of the SIM card to the processor, and the processor is used for performing network dialing according to the APN parameter of the SIM card. And the user inputs the APN parameters into the processor in a mode of swiping the card to the card reader by the parameter card in which the APN parameters are stored, so that manual input errors are avoided.
Drawings
Fig. 1 is a flowchart of a network automatic switching method of an intelligent terminal according to embodiment 1 of the method of the present invention;
fig. 2 is a flowchart of a network automatic switching method of an intelligent terminal according to embodiment 2 of the method of the present invention;
FIG. 3 is a schematic diagram of an intelligent terminal according to an embodiment of the present invention;
the reference numerals in the figures are explained below:
3, an intelligent terminal; 30, a processor; 31, a memory; 32, a computer program; and 33, a switching module of the SIM card.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings.
Method example 1:
in this embodiment, a network automatic switching method of an intelligent terminal is provided by taking a vehicle-mounted intelligent terminal of a passenger car as an application scene, and before describing the method, parameter configuration needs to be performed, and the specific steps are as follows:
on the provided card issuing platform, the parameter information of APN (access point name) of two SIM cards used by a user (a driver in the application scene) is completely filled, the parameter information comprises the type of an operator, a user name, a password and the like, the used SIM card can be the APN parameter of a public network card without setting, and a card issuer is used for acquiring corresponding data from a background (namely the card issuing platform) and writing the corresponding data into the corresponding position of the parameter card.
And the user takes the parameter card, swipes the parameter card on a system setting interface of the vehicle-mounted intelligent terminal, writes the parameter information of the SIM card into a configuration file of the system, and displays the APN parameter information of the SIM card after the parameter card is swiped and enters the system setting interface. And when the parameter card is swiped again, updating the parameter information.
The APN parameter of the SIM card is set by swiping the parameter card, the process is more convenient and faster, and the error probability of manual setting is reduced to a certain extent. After the parameter configuration is completed, a flow of one detection of the method for automatically switching the network of the intelligent terminal according to the embodiment is shown in fig. 1, and includes the following steps:
1) Detecting whether the SIM card is inserted into the currently used card slot, if the SIM card is not detected, setting a network flag bit to be 0, adding 1 to failure count (namely the number of abnormal times of the network condition), skipping and executing a step 7); if a SIM card is detected, step 2) is continued.
2) Detecting the signal intensity of the current SIM card, judging the inquired signal intensity, setting a network flag bit to be 0 if the inquired signal intensity is lower than a set normal intensity threshold, adding 1 to the failure count, skipping and executing the step 7); otherwise, if the intensity is not lower than the set normal intensity threshold value, the step 3) is continuously executed.
3) Detecting the network type of the current SIM card registration, if the current SIM card is not registered in the network, judging that the network registration is abnormal, setting a network flag bit to be 0, adding 1 to the failure count, skipping and executing the step 7); otherwise, if the registration to the network is confirmed, the network registration is determined to be normal, and then step 4) is executed.
4) Detecting the network connection state of the current SIM card, if the current network connection state is disconnected, setting the network flag bit to be 0, adding 1 to the failure count, skipping and executing the step 7); if the current network connection state is normal, step 5) is executed.
5) Detecting a current network zone bit, wherein the network zone bit indicates whether to dial, if the network zone bit is 1, the network zone bit does not dial, clearing the accumulated abnormal times of the network condition, and exiting; if the network flag bit is 0, continuing to execute step 6) to dial the network.
6) Network dialing is carried out, and the steps are as follows:
reading APN information of two SIM cards from a configuration file of a system, wherein the APN information comprises parameters such as a user name and a password, if the APN information is not stored in the configuration file, the SIM card is considered as a public network card, the operator type of the current SIM card is judged according to the inquired network type, and then a default APN parameter is selected according to the operator; and if the APN information is stored in the configuration file, carrying out APN parameter setting on the obtained parameters.
And after the setting is finished, executing the dialing script to start ppp dialing, and judging whether the ip address, the subnet mask, the gateway and the DNS (domain name system) are successfully acquired under the ppp network node of the system after the dialing is finished. If the number is acquired, indicating that the dialing is successful, clearing the failure count, marking the position 1 with the network, and exiting; if the acquisition fails, the dialing fails, the failure times are added by 1, and the step 7) is continuously executed.
7) And judging whether the failure count is larger than a set threshold (for example, 10) for switching the SIM card, and if so, switching the SIM card.
And (3) switching to use another SIM card by controlling the SIM card switching circuit, and then executing the step 1) until the network dialing through the other SIM card is successful.
The above is a detection process, and may be set to detect once every certain time, that is, according to a set detection frequency (for example, 20-30 times within 1 s), an interrupt routine may be set, and detection is performed once in each interrupt routine.
In this embodiment, when the SIM card is switched or the SIM card is used for the first time before switching, the initial network flag is set to 0, according to the flow in fig. 1, if it is detected that there is a card in the card slot, the signal strength is normal, the network registration is normal, and the network connection is normal, and the initial network flag is 0 at this time, network dialing is performed, and if network dialing is successful, the network flag is set to 1, the number of times of abnormal network conditions is cleared, and this detection is ended. During the next detection, if the card is detected in the card slot, and the signal intensity, the network registration and the network connection are normal, the network zone bit is 1 at the moment, so that the dialing is not performed again. That is, the detection within a period of time after the dialing is successful does not dial again, and the influence of the dialing (long dialing time) on the network use is avoided.
In the first detection process, according to the flow in fig. 1, four cases are distinguished:
in the first case, if no card is inserted, counting the number of abnormal times of the network condition, wherein the count is 1, setting the network zone bit to be 0, and the number of times of the count does not reach the set number of times, the SIM card is not switched, and the detection is finished;
in case two, if the card is detected in the card slot, but the signal strength is abnormal, similarly, counting the number of times of abnormal network conditions, wherein the count is 1, setting the network flag bit to be 0, not switching the SIM card, and ending the detection;
if the card slot is detected to have a card, the signal intensity is normal, but the current SIM card is not registered in the network, counting the number of times of abnormal network conditions, wherein the counting is 1, setting the network zone bit to be 0, not switching the SIM card, and ending the detection;
and if the card is detected in the card slot, the signal intensity is normal, the SIM card is normally registered in the network, but the network connection is disconnected, counting the number of times of abnormal network conditions, wherein the counting is 1, setting the network zone bit to be 0, not switching the SIM card, and finishing the detection.
After the first detection, if the above situation is still the case of the second detection, adding 1 to the abnormal times of the network condition, setting the network flag bit to 0, setting the count to 2, and if the count still does not reach the set times (namely the set threshold), the SIM card is not switched, and the detection is finished this time; until the continuous detection times reach the set times, and each detection result of the set times detects that no card exists in the card slot, the signal intensity is abnormal, the card slot is not registered in the network, or the network is disconnected, so that the abnormal times of the network condition are increased by 1, the network is not recovered by itself all the time in the detection period, and the SIM card is switched immediately, thereby realizing the network switching.
When the counted number (i.e. the number of abnormal network conditions) does not reach the set number, and the card is detected again, and the signal strength, network registration, and network connection are normal, because the current network flag bit is 0, network dialing needs to be performed, and the network dialing result is divided into the following two cases:
if the network dialing is successful, setting the network flag bit to be 1, resetting the abnormal times of the network conditions, namely counting to be 0, and counting the abnormal times of the network conditions again;
if the network dialing is not successful, setting the network flag bit to be 0, adding 1 to the abnormal times of the network condition, comparing whether the accumulated count reaches the set times, and if so, switching the SIM card; if not, the SIM card is not switched.
In this embodiment, although any one of the conditions in the steps 1) to 4) may not be satisfied, which may cause the intelligent terminal to fail to perform network communication normally, considering that the network has a self-recovery capability, if the network condition can be recovered quickly, the method is more time-saving than a method of directly switching a network of an SIM card, and for a vehicle-mounted intelligent terminal (or a mobile intelligent terminal) which moves at a high speed and has a high requirement on networking real-time performance, the network itself may recover to be normal without switching the SIM card, and the time delay generated by the method is less than that generated by a method of switching the SIM card; when the number of times of abnormal network conditions reaches a set threshold, which indicates that the currently used network cannot recover within a specified time limit, switching the SIM card, starting from the step 1), judging again, and if the switched network conditions are normal, executing the step 6) to dial the network successfully and then quitting.
Because a user can preferentially use the SIM with a normal network condition when using the network of the vehicle-mounted terminal, the existing method switches the SIM card when judging that the network signal strength does not meet the condition once, the switched network condition cannot be ensured to be normal even if the SIM card is switched, and if the connected main network is quickly recovered, but the SIM card is switched to another network with an abnormal network condition according to the existing method, uninterrupted network communication of the intelligent terminal is not facilitated.
Therefore, in this embodiment, the threshold value is set according to the requirement of the user on the network self-recovery capability, the value range of the set threshold value for switching the SIM card is 10 to 20, after it is determined that the network condition is abnormal for one time, the SIM card is not switched immediately, but the SIM card is detected and determined for multiple times according to steps 1) to 6) in this embodiment, and if any detection is performed, the judgment result of whether the network dialing is successful in step 6) is yes, the counted number is cleared, so that switching after the counted number reaches the threshold value quickly is avoided.
Moreover, according to the network automatic switching method of the present invention, in the process of performing the above steps 1) -6) to perform the multiple detection and determination, after the network dialing is successful, the number of times of the abnormal network condition is cleared, which indicates that the current network condition is recovered, and if the abnormal network condition is determined later, the network condition needs to be counted again, so the network automatic switching method of the present invention is more suitable for the network with strong network condition recovery capability.
In summary, the network automatic switching method of the present invention can solve the problems mentioned in the background art, such as long time for manually switching the SIM card, unreliable and impractical method for automatically switching the SIM card, and can also effectively solve the network disconnection caused by the following situations:
(1) Because the network coverage areas of different operators are different in different areas, the situation that the network quality of the SIM card of one operator is good and the network quality of the SIM card of the other operator is poor easily occurs in the same place, if the current network cannot be restored immediately, the SIM cards can be quickly and automatically switched, and the normal communication function of the intelligent terminal is ensured.
(2) The condition that one SIM card is in poor contact caused by severe shaking of the vehicle in the driving process can be detected in time in the step 1) and the SIM cards can be automatically switched in time; meanwhile, the device is also beneficial to later-period timely maintenance.
(3) When the network is suspended due to reasons such as arrearage or exceeding the package flow range, the SIM card can be quickly and automatically switched, and the normal communication function of the intelligent terminal is ensured.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. For example, if the situation of whether the SIM card is inserted or not is not considered, the present invention may start the determination from step 2) without performing the determination of step 1).
For another example, in this embodiment, the determination sequence of steps 1) to 4) may be adjusted, that is, the sequence of the four conditions (card insertion, signal strength, network registration, and network connection) is set according to the situation, as another implementation, the four conditions of steps 1) to 4) may also be determined at the same time, and if the result of any condition determination is N (as shown in fig. 1, which indicates no), the number of times of network condition abnormality is increased by 1.
The strength of the network condition recovery capability in this embodiment may be determined through testing, for example, by performing the foregoing steps 1) to 6) for multiple times, and calculating a time length for each network recovery, and if the time length is greater than the set time threshold, determining that the network recovery capability is weak, and if the time length is not greater than the set time threshold, determining that the network recovery capability is strong. As other embodiments, the strength and weakness of the network condition recovery capability can be determined by self according to the use experience of the user, and the determination by the test is not necessary. It should be noted that, when the network condition recovery capability is determined through testing, the time threshold may be set according to user requirements, for example, the total time from the SIM card switching to the intelligent terminal to perform normal network connection communication again is set, or the time threshold is set according to experience, and a specific implementation manner is not limited in this embodiment.
The above network automatic switching method is proposed by using a car-mounted intelligent terminal of a passenger car as an application scenario, but the network automatic switching method of the embodiment is not only applicable to this, but also applicable to other types of intelligent terminals.
Method example 2:
the present embodiment provides a network automatic switching method for an intelligent terminal, a flow of one-time detection of which is shown in fig. 2, and the method includes the following steps:
1) Detecting the signal intensity of the current SIM card, judging the signal intensity, setting a network flag bit to be 0 if the signal intensity is lower than a set normal threshold, adding 1 to a failure count, skipping and executing the step 5); otherwise, if the value is not lower than the set normal threshold value, continuing to execute the step 2).
2) Detecting the network connection state of the current SIM card, if the current network connection state is disconnected, setting the network flag bit to be 0, adding 1 to the failure count, skipping and executing the step 5); if the current network connection state is normal, step 3) is executed.
3) Detecting the current network zone bit, if the network zone bit is 1, indicating that the network condition is normal, clearing the accumulated abnormal times of the network condition, and ending the detection; if the network flag bit is 0, the network status is abnormal, and step 4) is continuously executed.
4) Network dialing is carried out, if the dialing is successful, the failure count is reset, the network mark position is 1, and the operation is quitted; if the dialing fails, the number of failures is added with 1, and the step 5) is continuously executed.
5) And judging whether the failure count is greater than a set threshold value for switching the SIM card, and if so, switching the SIM card.
Compared with the network automatic switching method in the method embodiment 1, the network automatic switching method of the embodiment is different in that the judgment of the condition detected each time is reduced, the card slot and the network registration condition of the SIM card do not need to be judged, and only the signal strength judgment and the network connection state judgment need to be performed. In the moving process of the intelligent terminal, the network signal strength and the network connection state are greatly influenced by the environment where the intelligent terminal is located, so that the network signal strength changes greatly, and the network connection state is unstable, therefore, compared with the mode example 1, the method selects two conditions of the network signal strength and the network connection state for judgment, simplifies the judgment steps, and is beneficial to fast switching of the current SIM card.
The embodiment of the device is as follows:
fig. 3 is a schematic diagram of an intelligent terminal according to an embodiment of the present invention. As shown in fig. 3, the intelligent terminal 3 of this embodiment includes: processor 30, memory 31, and computer program 32 stored in memory 31 and operable on processor 30, where steps of the network automatic switching method in the foregoing method embodiments, for example, step 1) to step 7) shown in fig. 1, or, as shown in step 1) to step 5) shown in fig. 2, are implemented when processor 30 executes computer program 32, and as the method is clearly and completely described in the method embodiments, this embodiment is not described again.
The intelligent terminal 3 in fig. 3 further includes a SIM card switching module 33, the processor 30 is in communication connection with the SIM card switching module 33, and the SIM card switching module 33 is configured to perform SIM card switching according to a switching instruction of the processor 30.
The intelligent terminal 3 in this embodiment may be a vehicle-mounted intelligent terminal, a desktop computer, a notebook, a palm computer, a cloud server, and other computing devices, and the intelligent terminal 3 may include, but is not limited to, a processor 30 and a memory 31, and those skilled in the art can understand that fig. 3 is only an example of the intelligent terminal 3, and does not form a limitation on the intelligent terminal 3, and may include more or less components than those shown in the drawings, or combine some components, or different components, for example, the intelligent terminal may further include an input/output device, a network access device, a bus, and the like.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the intelligent terminal 3, such as a hard disk or a memory of the intelligent terminal 3. The memory 31 may also be an external storage device of the Smart terminal 3, such as a plug-in hard disk provided on the Smart terminal 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 31 may also include both an internal storage unit of the smart terminal 3 and an external storage device. The memory 31 is used to store computer programs and other programs and data required by the smart terminal, and the memory 31 may also be used to temporarily store data that has been output or will be output.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any embodiment.
The present invention can implement all or part of the flow in the above method embodiments 1 or 2, and can also be implemented by instructing related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method embodiments can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (7)

1. A network automatic switching method of an intelligent terminal is characterized by comprising the following steps:
1) Detecting the signal intensity of the currently used SIM card, setting a network flag bit to be 0 when the signal intensity is lower than a set intensity threshold, adding 1 to the abnormal times of the network condition, and executing the step 5); when the signal intensity is not lower than the intensity threshold value, executing the step 2);
2) Detecting the network connection state of the currently used SIM card, setting the network flag bit to be 0 and adding 1 to the abnormal times of the network condition when the network connection state is disconnected, and executing the step 5); when the network connection state is normal, executing step 3);
3) Detecting the current network zone bit, if the network zone bit is 1, clearing the accumulated abnormal times of the network condition, and finishing the detection; if the network flag bit is 0, executing step 4);
4) Network dialing is carried out, if the dialing is successful, the abnormal times of the network condition are cleared, the network zone bit is set to be 1, and the detection is finished; if the dialing fails, adding 1 to the abnormal times of the network condition, and executing the step 5);
5) And judging whether the abnormal times of the network conditions are greater than a set threshold value for switching the SIM card, and if so, switching the SIM card, thereby realizing the automatic network switching.
2. The method for automatically switching networks of intelligent terminals according to claim 1, wherein in step 1), before detecting the signal strength, the method further comprises:
detecting whether a card exists in a card slot of a currently used SIM card, setting a network flag bit to be 0 when no card exists, adding 1 to the abnormal times of the network condition, and executing the step 5); and when the card is detected, detecting the signal intensity.
3. The method for automatically switching networks of intelligent terminals according to claim 1 or 2, wherein in step 2), before detecting the network connection status, the method further comprises:
detecting whether the network registration of the currently used SIM card is normal, if the network registration is detected to be abnormal, setting a network flag bit to be 0, adding 1 to the abnormal times of the network condition, and executing the step 5); and if the network registration is detected to be normal, detecting the network connection state.
4. An intelligent terminal, comprising a memory and a processor, and a computer program stored on the memory and running on the processor, the processor being coupled to the memory, the processor implementing the computer program when executing the computer program:
1) Detecting the signal intensity of the currently used SIM card, setting a network flag bit to be 0 when the signal intensity is lower than a set intensity threshold, adding 1 to the abnormal times of the network condition, and executing the step 5); when the signal intensity is not lower than the intensity threshold value, executing the step 2);
2) Detecting the network connection state of the currently used SIM card, setting the network flag bit to be 0 and adding 1 to the abnormal times of the network condition when the network connection state is disconnected, and executing the step 5); when the network connection state is normal, executing the step 3);
3) Detecting the current network zone bit, if the network zone bit is 1, clearing the accumulated abnormal times of the network condition, and finishing the detection; if the network flag bit is 0, executing the step 4);
4) Network dialing is carried out, if the dialing is successful, the abnormal times of the network condition are cleared, the network zone bit is set to be 1, and the detection is finished; if the dialing fails, adding 1 to the abnormal times of the network condition, and executing the step 5);
5) And judging whether the number of times of abnormal network conditions is greater than a set threshold value for switching the SIM card, and if so, switching the SIM card, thereby realizing automatic network switching.
5. The intelligent terminal according to claim 4, wherein in step 1), before detecting the signal strength, the method further comprises:
detecting whether a card exists in a card slot of a currently used SIM card, setting a network flag bit to be 0 and adding 1 to the abnormal times of the network condition when no card exists, and executing the step 5); and when the card is detected, detecting the signal intensity.
6. The intelligent terminal according to claim 4 or 5, wherein in step 2), before detecting the network connection status, the method further comprises:
detecting whether the network registration of the currently used SIM card is normal, if the network registration is detected to be abnormal, setting a network flag bit to be 0, adding 1 to the abnormal times of the network condition, and executing the step 5); and if the network registration is detected to be normal, detecting the network connection state.
7. The intelligent terminal according to claim 4 or 5, wherein the processor is communicatively connected with a card reader, the card reader is configured to read APN parameters of a SIM card prestored in a parameter card and send the APN parameters of the SIM card to the processor, and the processor is configured to perform network dialing according to the APN parameters of the SIM card.
CN202010260490.4A 2020-04-03 2020-04-03 Automatic network switching method of intelligent terminal and intelligent terminal Active CN113498131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010260490.4A CN113498131B (en) 2020-04-03 2020-04-03 Automatic network switching method of intelligent terminal and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010260490.4A CN113498131B (en) 2020-04-03 2020-04-03 Automatic network switching method of intelligent terminal and intelligent terminal

Publications (2)

Publication Number Publication Date
CN113498131A CN113498131A (en) 2021-10-12
CN113498131B true CN113498131B (en) 2022-10-04

Family

ID=77995066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010260490.4A Active CN113498131B (en) 2020-04-03 2020-04-03 Automatic network switching method of intelligent terminal and intelligent terminal

Country Status (1)

Country Link
CN (1) CN113498131B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040458A (en) * 2021-10-28 2022-02-11 西安广和通无线软件有限公司 Operator network switching method, device, communication module, terminal and storage medium
CN114928865B (en) * 2022-05-12 2024-05-10 拉扎斯网络科技(上海)有限公司 Network switching method and device for meal taking cabinet router
CN116669084B (en) * 2023-07-31 2023-11-10 浙江大华技术股份有限公司 Fault restoration method, device, equipment and storage medium based on cellular network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140037673A (en) * 2012-09-19 2014-03-27 삼성전자주식회사 Apparatas and method for changing a connection state of network in an electronic device
CN106068673A (en) * 2014-05-21 2016-11-02 柏思科技有限公司 The use of multiple SIMs at radio communication device
CN106792956A (en) * 2017-01-20 2017-05-31 深圳前海弘稼科技有限公司 Plantation equipment and method for switching network
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
CN107708168A (en) * 2017-11-23 2018-02-16 广东欧珀移动通信有限公司 SIM card switching method, mobile terminal and computer-readable recording medium
CN108184247A (en) * 2017-12-29 2018-06-19 奇酷互联网络科技(深圳)有限公司 Communication means, device, communication equipment and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140037673A (en) * 2012-09-19 2014-03-27 삼성전자주식회사 Apparatas and method for changing a connection state of network in an electronic device
CN106068673A (en) * 2014-05-21 2016-11-02 柏思科技有限公司 The use of multiple SIMs at radio communication device
CN106792956A (en) * 2017-01-20 2017-05-31 深圳前海弘稼科技有限公司 Plantation equipment and method for switching network
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
CN107708168A (en) * 2017-11-23 2018-02-16 广东欧珀移动通信有限公司 SIM card switching method, mobile terminal and computer-readable recording medium
CN108184247A (en) * 2017-12-29 2018-06-19 奇酷互联网络科技(深圳)有限公司 Communication means, device, communication equipment and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LTE国际漫游网络优选方案研究;文旭桦;《移动通信》;20161130(第22期);全文 *

Also Published As

Publication number Publication date
CN113498131A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
CN113498131B (en) Automatic network switching method of intelligent terminal and intelligent terminal
US10285122B2 (en) Method and apparatus for handling abnormality of network communication function and storage medium
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN103428797A (en) Mobile terminal and dialing switching method
WO2016041171A1 (en) Method and apparatus for determining terminal roaming status, terminal and server
CN112953753B (en) Data acquisition method and device, terminal equipment and storage medium
CN113115351A (en) Network exception processing method and device, terminal equipment and medium
CN104918298A (en) Network connection control method and apparatus, and mobile terminal
CN104866782A (en) Data processing method and apparatus
CN107395451B (en) Processing method, device and equipment for internet traffic abnormity and storage medium
CN108601018B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN110493810B (en) Method, device, equipment and medium for detecting recording notification fault
CN108738054B (en) Processing method for network communication function abnormity, modem, mobile terminal and storage medium
US20040087303A1 (en) System and method for collecting debugging and system crash information from a mobile phone
CN111447652B (en) Switching method, device and equipment of mobile edge operation host of mobile terminal
CN108307418B (en) Method, device, equipment and medium for identifying LTE weak coverage cell
WO2020007250A1 (en) Pseudo base station identification on-off control method and device, mobile terminal, and storage medium
CN113613239B (en) Network mode switching method, network mode switching device, medium, and electronic device
CN107205241B (en) Wireless communication detection method and equipment thereof
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN105376786B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN114928833A (en) Network link login method and device, power terminal and storage medium
CN109347890B (en) Method, apparatus, device and medium for pseudo terminal detection
CN113978412A (en) Automobile noninductive unlocking method and system, computer equipment and storage medium
CN109451528B (en) Method, device and equipment for processing abnormal small-flow call ticket and computer storage medium

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