CN108601044B - Network type switching method and device, storage medium and mobile terminal - Google Patents

Network type switching method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108601044B
CN108601044B CN201810556869.2A CN201810556869A CN108601044B CN 108601044 B CN108601044 B CN 108601044B CN 201810556869 A CN201810556869 A CN 201810556869A CN 108601044 B CN108601044 B CN 108601044B
Authority
CN
China
Prior art keywords
network system
signal
crystal oscillator
network
reference signal
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
CN201810556869.2A
Other languages
Chinese (zh)
Other versions
CN108601044A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810556869.2A priority Critical patent/CN108601044B/en
Publication of CN108601044A publication Critical patent/CN108601044A/en
Application granted granted Critical
Publication of CN108601044B publication Critical patent/CN108601044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Oscillators With Electromechanical Resonators (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network type switching method, a network type switching device, a storage medium and a mobile terminal. The method comprises the following steps: generating a crystal oscillator refreshing instruction when a network system switching event is detected; restarting the crystal resonator according to the crystal oscillator refreshing instruction; and performing signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system. By adopting the technical scheme, the crystal oscillator is restarted to the initial state when the network modes are switched, the signal offset generated by the crystal oscillator in the last network mode is eliminated, the problem that the difference between the reference signal and the first signal generated by the crystal oscillator cannot be repaired when the network modes are switched is solved, and the successful switching of the network modes of the mobile terminal is ensured.

Description

Network type switching method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a network type switching method, a network type switching device, a storage medium and a mobile terminal.
Background
With the continuous development of electronic technology and communication technology, a mobile terminal can support multiple network formats, such as 2G (Second Generation mobile communication technology), 3G (3rd-Generation mobile communication technology), and 4G (4rd-Generation mobile communication technology). The mobile terminal can be switched between different network systems in different application states or at different positions.
The connection of the mobile terminal and the base station is based on high frequency electromagnetic waves generated by digital mixing and frequency conversion of low frequency clock information generated by a crystal resonator provided inside the mobile terminal, and modulating a baseband signal to the high frequency signal. Because the clock signal generated by the crystal resonator and the reference signal sent by the base station have deviation due to the difference of the crystal resonator and the difference between the mobile terminal and the base station in other periods, the crystal oscillator can repair the generated clock signal in the same network system at present so as to realize the signal synchronization of the clock signal generated by the crystal resonator and the reference signal sent by the base station.
However, when the network system is connected to a network system, the repair operation of the crystal resonator may cause signal deviation of a generated clock signal, and when the signal deviation between the clock signal with the signal deviation and a reference signal of a target network system exceeds the repair capability of the crystal resonator itself during network system switching, the signal deviation between the clock signal with the signal deviation and the reference signal of the target network system cannot be repaired, that is, a situation of network system switching failure caused by the fact that the clock signal and the reference signal cannot realize signal synchronization occurs, which affects user experience of the mobile terminal.
Disclosure of Invention
The embodiment of the application provides a network type switching method, a network type switching device, a storage medium and a mobile terminal, and the successful switching of the network type is realized.
In a first aspect, an embodiment of the present application provides a method for switching network types, including:
generating a crystal oscillator refreshing instruction when a network system switching event is detected;
restarting the crystal resonator according to the crystal oscillator refreshing instruction;
and performing signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system.
In a second aspect, an embodiment of the present application provides a network system switching apparatus, including:
the refreshing instruction generating module is used for generating a crystal oscillator refreshing instruction when a network system switching event is detected;
the crystal oscillator restarting module is used for restarting the crystal resonator according to the crystal oscillator refreshing instruction;
and the first signal synchronization module is used for carrying out signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for switching a network system according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for switching the network standard according to the embodiment of the present application.
According to the network system switching method provided by the embodiment of the application, when a network system switching event is detected, a crystal oscillator refreshing instruction is generated, the crystal resonator is restarted according to the crystal oscillator refreshing instruction, and signal synchronization is performed on the basis of a first signal generated by the restarted crystal resonator and a reference signal of a target network system sent by a base station, so that the current network system is switched to the target network system. By adopting the scheme, when the network system is switched, the crystal oscillator is refreshed to the initial state by restarting, the signal offset generated by the crystal oscillator in the last network system is eliminated, the problem that the difference between the reference signal and the first signal generated by the crystal oscillator cannot be repaired when the network system is switched is solved, and the successful switching of the network system of the mobile terminal is ensured.
Drawings
Fig. 1 is a schematic flowchart of a network format switching method according to an embodiment of the present application;
fig. 2 is a schematic diagram of network system switching provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another network format switching method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another network format switching method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a network type switching device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a schematic flowchart of a network format switching method according to an embodiment of the present application, where the method may be executed by a network format switching device, where the device may be implemented by software and/or hardware, and may generally be integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, generating a crystal oscillator refreshing instruction when a network system switching event is detected.
For example, the mobile terminal in the embodiment of the present application may include smart devices such as a mobile phone and a tablet computer.
The crystal oscillator is used for generating a clock signal, and is connected with the base station by performing signal processing on the clock signal. The clock signal is a low-frequency signal, a high-frequency signal is obtained by performing digital mixing and frequency conversion on the clock signal, and a baseband signal is led onto the high-frequency signal to perform signal transmission with a base station.
The network standards are exemplary network types applicable to the mobile terminal, and may be 2G, 3G and 4G. The switching of the network system refers to switching between any two network systems, and may be, for example, switching from 2G to 4G, or switching from 4G to 3G, or the like. When the mobile terminal is to be connected to a target network system or switched to the target network system, a reference signal of the target network system sent by the base station needs to be received, and when a clock signal generated by the crystal oscillator is synchronous with the reference signal of the target network system, the connection of the target network system is realized. The crystal oscillator can repair the signal difference between the clock signal and the reference signal in a parameter adjusting mode in order to realize the connection or switching of the target network system. However, the repair capability of the crystal oscillator is fixed, and the reference signals corresponding to different network systems are different, when the network systems are switched, the difference between the reference signal of the target network system and the clock signal generated by the crystal oscillator at the current time may exceed the repair capability of the crystal oscillator, and signal synchronization cannot be achieved through the repair mode of the crystal oscillator, that is, switching of the network systems cannot be achieved.
In this embodiment, when a network system switching event is detected, a crystal oscillator refresh instruction is generated, where the crystal oscillator refresh instruction is used to refresh a crystal oscillator, so that the crystal oscillator can be restored to an initial state, and a difference between a clock signal generated by the crystal oscillator restored to the initial state and a reference signal is within a repairable range of the crystal oscillator.
For example, the switching of the network standard may be determined by the requirement of the mobile terminal, or may be determined by the network standard available from the base station to which the mobile terminal is connected.
In some embodiments, detecting a network-type switching event includes: determining the system requirement at the current moment according to the current running state; and if the system requirement at the current moment is different from the system requirement at the previous moment, determining that a network system switching event exists.
For example, the mobile terminal corresponds to different system requirements in different operating states, and when the system requirement of the mobile terminal at the current time is different from the system requirement at the previous time, it indicates that the mobile terminal needs to perform network system switching, that is, a network system switching event exists. The system requirement includes a call requirement and a network connection requirement, the call requirement refers to the system requirement corresponding to the mobile terminal during a call, and exemplarily, if the current operation state of the mobile terminal is any one of a call state, a dialing state or an incoming call state, the system requirement at the current moment is determined to be the call requirement. The network connection requirement refers to a corresponding network type when the current operation state needs to be connected with a network. For example, the operation status corresponding to the network connection requirement may be any one other than a call state, a dialing state and an incoming call state, such as an APP (Application) operation state or a normal standby state.
Illustratively, when the mobile terminal is switched from the APP running state or the normal standby state to the incoming call state, the system requirement of the mobile terminal is changed from the network connection requirement to the call requirement, and the existence of a network system switching event can be determined; when the mobile terminal is in a call end state, the system requirement of the mobile terminal is changed into a network connection requirement from the call requirement, and the existence of a network system switching event can be determined.
If the system requirement at the current moment is a call requirement, determining that the target network system is a 2G network system; and if the system requirement at the current moment is the network connection requirement, determining a target network system according to the network system provided by the connected base station and the priority of the network system. The network systems corresponding to the call requirement and the network connection requirement are different, for example, the network system corresponding to the call requirement is a 2G network system, and the network system corresponding to the network connection requirement is a 2G, 3G or 4G network system. Each base station has a different configuration and may provide different network systems, for example, a certain base station may provide 2G, 3G, and 4G network systems, and another base station may only provide 2G and 3G network systems. The network system that can be provided by the same base station is provided with a priority, illustratively, the priority of the 4G network system is the highest, the priority of the 3G network system is the second, and the priority of the 2G network is the first. When the system requirement at the current moment is a network connection requirement, determining the network systems which can be provided by the base station connected with the mobile terminal, and determining the network system with the highest priority in the available network systems as a target network system. Illustratively, when the mobile terminal finishes a call, the system requirement of the mobile terminal is changed from the call requirement to the network connection requirement, and the network systems that can be provided by the base station to which the mobile terminal is currently connected include 2G, 3G and 4G network systems, and the priority of the 4G network system is the highest, then the target network system of the network system switching event is the 4G network system.
In some embodiments, detecting a network-type switching event includes: and if the network system identifier carried in the reference signal received at the current moment is different from the network system identifier carried in the reference signal received at the previous moment, determining that a network system switching event exists. When the base station sends the reference signal to the mobile terminal, the reference signal carries a network type identifier corresponding to the reference signal, where the network type identifier may be, for example, a name of a network type, or may be a symbol or a character string uniquely identifying the network type. The mobile terminal can determine the network type to be connected at the current moment by identifying the network type identifier. When the network system identifier carried in the reference signal received at the current moment is different from the network system identifier carried in the reference signal received at the previous moment, it indicates that the network system connectable to the mobile terminal is changed, that is, a network system switching event exists. The reason why the network system identifier at the current time is different from the network system identifier at the previous time may be that a base station to which the mobile terminal is connected changes, or that the receivable reference signals are different due to a change in the position of the mobile terminal. For example, the base station preferentially sends a reference signal of a network type with a high priority to the mobile terminal, and when the mobile terminal cannot receive the reference signal, the base station sequentially sends reference signals of network types with the next priority until the mobile terminal can be connected with a certain network type.
And 102, restarting the crystal resonator according to the crystal oscillator refreshing instruction.
And sending the crystal oscillator refreshing instruction to the crystal resonator, so that the crystal resonator is restarted according to the crystal oscillator refreshing instruction. After the crystal oscillator is restarted, the crystal oscillator can be restored to an initial state, and the frequency of a clock signal generated after the crystal oscillator is restarted can be 26MHz, for example.
And 103, performing signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station, so as to switch the current network system to the target network system.
The first signal is a clock signal generated by the restarted crystal resonator, and the first signal and a reference signal of a target network system are subjected to signal synchronization, so that the current network system can be switched to the target network system. When there is no signal difference between the first signal and the reference signal, the synchronization of the first signal and the reference signal can be directly realized. For example, due to differences between crystal oscillators of different mobile terminals, differences between different base stations, and changes in distance from the base stations caused by changes in the positions of the mobile terminals, signal differences may still exist between the first signal generated by the crystal resonator after the restart and the reference signal. When there is a signal difference, the signal difference can be repaired by the repair capability of the crystal resonator itself to achieve synchronization of the first signal and the reference signal, wherein the signal difference of the first signal and the reference signal can be a second frequency difference or a phase difference. And repairing the corresponding parameter of the crystal resonator based on the second frequency difference or the phase difference so as to realize signal synchronization between the first signal of the crystal resonator and the reference signal. Note that both the second frequency difference and the phase difference are within the repair range of the crystal resonator. Illustratively, if a second frequency difference exists between the first signal and the reference signal, adjusting a frequency parameter of the crystal resonator, wherein an adjustment value of the frequency parameter is the second frequency difference, so that the clock signal generated by the repaired crystal resonator is synchronized with the reference signal; and if the first signal has a phase difference with the reference signal, adjusting the phase parameter of the crystal resonator, wherein the adjusting value of the phase parameter is the phase difference, so that the clock signal generated by the repaired crystal resonator is synchronous with the reference signal. For example, after repairing the frequency parameter of the crystal resonator according to the second frequency difference, if the phase difference still exists, the phase parameter of the crystal resonator may be repaired for the second time, so that the clock signal generated by the repaired crystal resonator is synchronized with the reference signal.
For example, referring to fig. 2, fig. 2 is a schematic diagram of network standard switching provided in the embodiment of the present application, fig. 2 includes network standards of 2G, 3G, and 4G, switching of the network standards may be switching between any two network standards of the network standards of 2G, 3G, and 4G, and fig. 2 only shows switching between the network standards of 2G and 3G as an example. When the 2G network system is switched to the 3G network system, a crystal oscillator refreshing instruction is sent to the crystal resonator, additional refreshing is carried out on the crystal resonator, the additional refreshing is the restarting of the crystal resonator according to the crystal oscillator refreshing instruction, after the crystal resonator is restarted, the synchronization of a first signal generated by the crystal resonator after the restarting and a reference signal of the 3G network system is realized through the repairing of the crystal resonator, and the 2G network system is switched to the 3G network system. Fig. 2 also includes refreshing the crystal resonator when any one of the 2G, 3G, and 4G network systems is connected separately, and repairing the crystal resonator when a reference signal of the connected network system is received. The refreshing of the crystal resonator when any network system is connected independently can be realized by the following two modes, namely, the restarting of the mobile terminal and the releasing of the previous network system. It should be noted that, after the network system is successfully switched, the crystal resonator may be refreshed according to the refresh method.
According to the network system switching method provided by the embodiment of the application, when a network system switching event is detected, a crystal oscillator refreshing instruction is generated, the crystal resonator is restarted according to the crystal oscillator refreshing instruction, and signal synchronization is performed on the basis of a first signal generated by the restarted crystal resonator and a reference signal of a target network system sent by a base station, so that the current network system is switched to the target network system. By adopting the scheme, when the network system is switched, the crystal oscillator is refreshed to the initial state by restarting, the signal offset generated by the crystal oscillator in the last network system is eliminated, the problem that the difference between the reference signal and the first signal generated by the crystal oscillator cannot be repaired when the network system is switched is solved, and the successful switching of the network system of the mobile terminal is ensured.
Fig. 3 is a schematic flow chart of another network format switching method provided in an embodiment of the present application, and referring to fig. 3, the method of the present embodiment includes the following steps:
step 301, when a network system switching event is detected, acquiring a second signal generated by a current crystal oscillator.
The second signal is a clock signal generated by the crystal oscillator when the crystal oscillator is not processed.
Step 302, determining a first frequency difference between the second signal and a reference signal of the target network system sent by the base station.
Illustratively, the first frequency difference is a frequency difference between the second signal and the reference signal, for example, the frequency of the second signal is 26.5MHz, the reference signal of the target network system is 26.1MHz, and the first frequency difference is 0.4 MHz.
Step 303, determining whether the first frequency difference is within a repairable range of the crystal oscillator, if so, performing step 304, and if not, performing step 305.
When the first frequency difference is larger than the repairable range, the first frequency difference is outside the repairable range of the crystal oscillator, and the first frequency difference needs to be eliminated in a mode of restarting the crystal oscillator; when the first frequency difference is smaller than or equal to the repairable range, which indicates that the first frequency difference is within the repairable range of the crystal oscillator, the self-repair of the crystal oscillator can eliminate the first frequency difference, that is, the signal synchronization with the reference signal can be realized through the self-repair of the crystal oscillator without restarting the crystal oscillator.
And step 304, performing signal synchronization based on the second signal generated by the current crystal oscillator and the reference signal of the target network standard sent by the base station, so as to switch the current network standard to the target network standard.
The signal synchronization of the second signal and the reference signal is the same as the signal synchronization principle of the first signal and the reference signal, and is not described herein again.
And 305, generating a crystal oscillator refreshing instruction, and restarting the crystal resonator according to the crystal oscillator refreshing instruction.
And step 306, performing signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station, so as to switch the current network system to the target network system.
According to the network system switching method provided by the embodiment of the application, when a network system switching event is detected, a second signal generated by an unprocessed crystal resonator is obtained, if the signal difference is out of the repairable range of the crystal oscillator, the crystal oscillator is refreshed in a restarting mode, if the signal difference is in the repairable range of the crystal oscillator, the crystal oscillator does not need to be restarted, and signal synchronization is achieved through the self-repairing mode of the crystal oscillator. By adopting the method, the crystal oscillator is refreshed only when the signal difference is out of the repairable range of the crystal oscillator, the network system switching success is ensured, the restarting times of the crystal oscillator are reduced, and the network system switching operation is simplified.
Fig. 4 is a schematic flow chart of another network system switching method provided in an embodiment of the present application, where this embodiment is an alternative to the foregoing embodiment, and correspondingly, as shown in fig. 4, the method of this embodiment includes the following steps:
step 401, when a network system switching event is detected, acquiring a second signal generated by a current crystal oscillator.
Step 402, determining a first frequency difference between the second signal and a reference signal of a target network system sent by the base station.
Step 403, if the first frequency difference is outside the repairable range of the crystal oscillator, generating a frequency adjustment instruction, and calling a frequency adjustment basic program according to the frequency adjustment instruction.
The frequency adjusting instruction is used for generating a frequency adjusting program and adjusting the first frequency difference to realize signal synchronization. The frequency adjustment basic program is preset and stored in a memory of the mobile terminal, and is called when a frequency adjustment instruction is generated. Wherein, the frequency adjustment basic program is an incomplete program of a frequency adjustment value blank.
Correspondingly, when the first frequency difference is within the repairable range of the crystal oscillator, signal synchronization is performed based on the second signal generated by the current crystal oscillator and the reference signal of the target network system sent by the base station, so as to switch the current network system to the target network system.
Step 404, generating a frequency adjustment program according to the first frequency difference and the frequency adjustment basic program.
Illustratively, the first frequency difference is taken as a frequency adjustment value and added to a corresponding position of the frequency adjustment basic program to obtain a complete frequency adjustment program with a frequency adjustment function, for example, the frequency of the second signal is 26.5MHz, the reference signal of the target network system is 26.1MHz, the first frequency difference is 0.4MHz, and 0.4MHz is added to a corresponding position of the frequency adjustment basic program to obtain a frequency adjustment program capable of adjusting the frequency difference of 0.4 MHz. The first frequency difference is a frequency difference between the second signal and the reference signal, and is divided into positive and negative.
And 405, performing frequency adjustment on the second signal generated by the crystal resonator according to the frequency adjustment program.
Illustratively, the frequency of the second signal is 26.5MHz, the frequency adjustment procedure has the capability of adjusting the frequency difference of 0.4MHz, and the frequency of the adjusted second signal is 26.1 MHz.
And step 406, performing signal synchronization based on the adjusted second signal and a reference signal of the target network system sent by the base station, so as to switch the current network system to the target network system.
In the method for switching the network system provided in the embodiment of the application, when a network system switching event is detected, a first frequency difference between a second signal generated by a current crystal oscillator and a reference signal of a target network system is determined, and if the first frequency difference is outside a repairable range of the crystal oscillator, a frequency adjustment program is generated based on the first frequency difference and a frequency adjustment basic program, and frequency adjustment is performed on the second signal, so that the adjusted second signal is synchronous with the reference signal, and the current network system is switched to the target network system. By adopting the method, the second signal is adjusted based on the software adjusting mode, and the implementation mode is simple and quick.
Fig. 5 is a block diagram of a network format switching device provided in an embodiment of the present application, where the device may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may switch a network format by executing a network format switching method of the mobile terminal. As shown in fig. 5, the apparatus includes: a refresh command generating module 501, a crystal restarting module 502 and a first signal synchronizing module 503.
The refreshing instruction generating module is used for generating a crystal oscillator refreshing instruction when a network system switching event is detected;
the crystal oscillator restarting module is used for restarting the crystal resonator according to the crystal oscillator refreshing instruction;
and the first signal synchronization module is used for carrying out signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system.
The network system switching device provided in the embodiment of the application restarts the crystal oscillator to an initial state when the network systems are switched, eliminates signal offset generated by the crystal oscillator in the last network system, solves the problem that the difference between a reference signal and a first signal generated by the crystal oscillator cannot be repaired when the network systems are switched, and ensures successful switching of the network systems of the mobile terminal.
On the basis of the above embodiment, the method further includes:
before generating the crystal oscillator refreshing instruction, the method further comprises the following steps:
the second signal acquisition module is used for acquiring a second signal generated by the current crystal oscillator;
a first frequency difference determining module, configured to determine a first frequency difference between the second signal and a reference signal of a target network system sent by the base station;
a second signal synchronization module, configured to perform signal synchronization based on a second signal generated by the current crystal oscillator and a reference signal of a target network standard sent by the base station if the first frequency difference is within a repairable range of the crystal oscillator, so as to switch the current network standard to the target network standard;
and the refreshing instruction execution module is used for continuing to execute the step of generating the crystal oscillator refreshing instruction if the first frequency difference is out of the repairable range of the crystal oscillator.
On the basis of the above embodiment, the method further includes:
the second signal acquisition module is used for acquiring a second signal generated by the current crystal oscillator when a network system switching event is detected;
a first frequency difference determining module, configured to determine a first frequency difference between the second signal and a reference signal of a target network system sent by the base station;
a basic program calling module, configured to generate a frequency adjustment instruction if the first frequency difference is outside a repairable range of the crystal oscillator, and call a frequency adjustment basic program according to the frequency adjustment instruction;
a frequency adjustment program generation module, configured to generate a frequency adjustment program according to the first frequency difference and the frequency adjustment basic program;
the frequency adjusting module is used for adjusting the frequency of the second signal generated by the crystal resonator according to the frequency adjusting program;
and the third signal synchronization module is used for carrying out signal synchronization on the basis of the adjusted second signal and a reference signal of the target network system sent by the base station so as to switch the current network system to the target network system.
On the basis of the foregoing embodiment, the first signal synchronization module is configured to:
and if the first signal and the reference signal have a second frequency difference or phase difference, repairing the corresponding parameter of the crystal resonator based on the second frequency difference or phase difference so as to realize signal synchronization between the first signal of the crystal resonator and the reference signal.
On the basis of the above embodiment, the method further includes:
the first network system switching event detection module is used for determining the system requirement at the current moment according to the current operation state; and if the system requirement at the current moment is different from the system requirement at the previous moment, determining that a network system switching event exists.
On the basis of the above embodiment, the system requirement includes a call requirement and a network connection requirement.
On the basis of the above embodiment, the method further includes:
and the target network type determining module is used for determining that the target network type is the 2G network type if the type requirement at the current moment is a call requirement when a network type switching event is detected, and determining the target network type according to the network type provided by the connected base station and the priority of the network type if the type requirement at the current moment is a network connection requirement.
On the basis of the above embodiment, the method further includes:
and the second network system switching event detection module is used for determining that a network system switching event exists if the network system identifier carried in the reference signal received at the current moment is different from the network system identifier carried in the reference signal received at the previous moment.
An embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a network format switching method, and the method includes:
generating a crystal oscillator refreshing instruction when a network system switching event is detected;
restarting the crystal resonator according to the crystal oscillator refreshing instruction;
and performing signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described switching operation of the network system, and may also perform related operations in the switching method of the network system provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and a network type switching device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 600 may include: the network system switching method comprises a memory 601, a processor 602 and a computer program stored on the memory 601 and executable by the processor 602, wherein the processor 602 implements the network system switching method according to an embodiment of the present application when executing the computer program.
According to the mobile terminal provided by the embodiment of the application, when the network formats are switched, the crystal oscillator is restarted to the initial state, the signal offset generated by the crystal oscillator in the last network format is eliminated, the problem that the difference between the reference signal and the first signal generated by the crystal oscillator cannot be repaired when the network formats are switched is solved, and the successful switching of the network formats of the mobile terminal is ensured.
Fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application. The mobile terminal may include: a housing (not shown), a memory 701, a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
generating a crystal oscillator refreshing instruction when a network system switching event is detected;
restarting the crystal resonator according to the crystal oscillator refreshing instruction;
and performing signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system.
The mobile terminal further includes: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio 706, speakers 711, a power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external ports 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated mobile terminal 700 is merely one example of a mobile terminal and that the mobile terminal 700 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a mobile terminal for switching network modes provided in this embodiment, where the mobile terminal is a mobile phone as an example.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The network system switching device, the storage medium and the mobile terminal provided in the above embodiments can execute the network system switching method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For the technical details that are not described in detail in the above embodiments, reference may be made to a method for switching a network type provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (9)

1. A method for switching network systems is characterized by comprising the following steps:
generating a crystal oscillator refreshing instruction when a network system switching event is detected;
restarting the crystal resonator according to the crystal oscillator refreshing instruction;
the signal synchronization is carried out on the first signal generated by the restarted crystal resonator and a reference signal of a target network system sent by a base station, and the signal synchronization method comprises the following steps:
if the first signal and the reference signal have a second frequency difference or phase difference, repairing a corresponding parameter of the crystal resonator based on the second frequency difference or phase difference so as to realize signal synchronization between the first signal of the crystal resonator and the reference signal;
and switching the current network standard to the target network standard.
2. The method of claim 1, prior to generating the crystal refresh command, further comprising:
acquiring a second signal generated by the current crystal oscillator;
determining a first frequency difference between the second signal and a reference signal of a target network system sent by the base station;
if the first frequency difference is within the repairable range of the crystal oscillator, performing signal synchronization based on a second signal generated by the current crystal oscillator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system;
and if the first frequency difference is out of the repairable range of the crystal oscillator, continuing to execute the step of generating a crystal oscillator refreshing instruction.
3. The method according to claim 1, upon detecting a network-type switching event, further comprising:
acquiring a second signal generated by the current crystal oscillator;
determining a first frequency difference between the second signal and a reference signal of a target network system sent by the base station;
if the first frequency difference is out of the repairable range of the crystal oscillator, generating a frequency adjusting instruction, and calling a frequency adjusting basic program according to the frequency adjusting instruction;
generating a frequency adjustment program according to the first frequency difference and the frequency adjustment basic program;
carrying out frequency adjustment on a second signal generated by the crystal resonator according to the frequency adjustment program;
and performing signal synchronization based on the adjusted second signal and a reference signal of the target network system sent by the base station so as to switch the current network system to the target network system.
4. The method of claim 1, wherein detecting a network-type handover event comprises:
determining the system requirement at the current moment according to the current running state;
and if the system requirement at the current moment is different from the system requirement at the previous moment, determining that a network system switching event exists.
5. The method according to claim 4, wherein the system requirements include a call requirement and a network connection requirement, and wherein upon detecting a network system switching event, the method further comprises:
if the system requirement at the current moment is a call requirement, determining that the target network system is a 2G network system;
and if the system requirement at the current moment is the network connection requirement, determining a target network system according to the network system provided by the connected base station and the priority of the network system.
6. The method of claim 1, wherein detecting a network-type handover event comprises:
and if the network system identifier carried in the reference signal received at the current moment is different from the network system identifier carried in the reference signal received at the previous moment, determining that a network system switching event exists.
7. A network system switching apparatus, comprising:
the refreshing instruction generating module is used for generating a crystal oscillator refreshing instruction when a network system switching event is detected;
the crystal oscillator restarting module is used for restarting the crystal resonator according to the crystal oscillator refreshing instruction;
the first signal synchronization module is used for carrying out signal synchronization on a first signal generated based on the restarted crystal resonator and a reference signal of a target network system sent by the base station so as to switch the current network system to the target network system;
the first signal synchronization module is configured to:
and if the first signal and the reference signal have a second frequency difference or phase difference, repairing the corresponding parameter of the crystal resonator based on the second frequency difference or phase difference so as to realize signal synchronization between the first signal of the crystal resonator and the reference signal.
8. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method for switching the network scheme according to any one of claims 1 to 6.
9. A mobile terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method for switching network modes according to any one of claims 1 to 6.
CN201810556869.2A 2018-06-01 2018-06-01 Network type switching method and device, storage medium and mobile terminal Active CN108601044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556869.2A CN108601044B (en) 2018-06-01 2018-06-01 Network type switching method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556869.2A CN108601044B (en) 2018-06-01 2018-06-01 Network type switching method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108601044A CN108601044A (en) 2018-09-28
CN108601044B true CN108601044B (en) 2021-09-17

Family

ID=63630738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556869.2A Active CN108601044B (en) 2018-06-01 2018-06-01 Network type switching method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108601044B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114167396A (en) * 2020-09-10 2022-03-11 Oppo广东移动通信有限公司 Control method based on ultra-wideband ranging and related device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8249616B2 (en) * 2007-08-23 2012-08-21 Texas Instruments Incorporated Satellite (GPS) assisted clock apparatus, circuits, systems and processes for cellular terminals on asynchronous networks
CN102791009B (en) * 2011-05-17 2017-07-11 深圳市中兴微电子技术有限公司 Multimode terminal and its time synchronizing method in cross form switching
CN103856232B (en) * 2012-12-07 2016-12-21 展讯通信(上海)有限公司 Mobile terminal and signal processing method, baseband chip, radio frequency chip
CN103067988B (en) * 2013-01-11 2016-04-06 京信通信系统(中国)有限公司 A kind of method and device improving handover success rate
CN103945521B (en) * 2014-04-03 2018-05-29 京信通信系统(中国)有限公司 A kind of method and device for calibrating base station crystal oscillator frequency
US9462489B2 (en) * 2014-05-15 2016-10-04 Qualcomm Incorporated Using client-specific RGS to improve performance on multi-SIM and multi-RAT devices

Also Published As

Publication number Publication date
CN108601044A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN110622123B (en) Display method and device
CN107889092B (en) Bluetooth device communication control method, device, terminal device and storage medium
CN107770759B (en) Bluetooth voice link establishing method and device, storage medium and mobile terminal
US8725200B2 (en) Communication operating method for dual standby mobile terminal and dual standby mobile terminal supporting the same
US11646856B2 (en) Timing configuration method and apparatus
CN108093451B (en) Random access control method, device, storage medium and mobile terminal
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN103294562A (en) Method for sharing peripheral device by dual operating systems and electronic device
KR102043641B1 (en) Operating Method For Nearby Function and Electronic Device supporting the same
CN113395687A (en) Reconnection method, reconnection device, electronic equipment and storage medium
WO2023169434A1 (en) Communication method and apparatus
CN108829229B (en) Screen control method and device, storage medium and intelligent terminal
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN112740779B (en) Double-card communication method and related product
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
US20110287807A1 (en) Communication method and apparatus of dual standby mode terminal
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107291302B (en) Control method and device of touch screen, storage medium and terminal
CN108833033B (en) Method and device for determining radio frequency calibration parameters, storage medium and mobile terminal
CN106506646B (en) Control method and device of playing equipment, mobile terminal and playing system
CN108601044B (en) Network type switching method and device, storage medium and mobile terminal
CN106791090B (en) Mobile terminal restart control method and device and mobile terminal
US20220240143A1 (en) Method for determining network switch resource and method for configuring network switch resource
JP2009237810A (en) Information processor, and control method for information processor
CN108112061B (en) Positioning control method and device, storage medium and terminal equipment

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