Disclosure of Invention
The invention mainly aims to provide a mobile terminal network switching control method and a mobile terminal network switching control device, aiming at preventing service interruption caused when a mobile terminal carries out network switching.
In order to achieve the above object, the present invention provides a mobile terminal network switching control device, which includes:
the mobile terminal comprises a detection module, a reporting module and a reporting module, wherein the detection module is used for measuring a network signal of a neighboring base station according to a measurement request to form a measurement report to be reported when the measurement signaling request sent by a base station currently registered by the mobile terminal is received;
the processing module is used for deleting the frequency band and the measurement data which are matched with the pseudo base station information in the measurement report to be reported according to the pseudo base station information marked by the history to form a target reporting measurement report;
and the sending module is used for sending the target measurement report to the base station so that the base station can control the mobile terminal to carry out network switching according to the target measurement report.
Optionally, the processing module comprises:
the acquisition unit is used for acquiring pseudo base station information of the history mark;
the first judgment unit is used for judging whether a frequency band matched with the pseudo base station information exists in the measurement report to be reported;
the processing unit is used for deleting the frequency band matched with the pseudo base station information and the measurement data in the measurement report to be reported to form a target reported measurement report when the frequency band matched with the pseudo base station information exists in the measurement report to be reported; and when the frequency band matched with the pseudo base station information does not exist in the measurement report to be reported, setting the measurement report to be reported as a target reporting measurement report.
Optionally, the mobile terminal network switching control apparatus further includes:
the receiving module is used for receiving a network switching request sent by the base station according to the target reported measurement report, wherein the network switching request comprises a target neighbor base station to be switched;
and the registration module is used for sending a position updating registration request to the target neighbor base station so as to carry out network switching.
Optionally, the mobile terminal network switching control apparatus further includes:
and the identification module is used for identifying the pseudo base station of the target neighbor base station.
Optionally, the identification module comprises:
the second judgment unit is used for judging whether the base station corresponding to the target neighbor base station sends the location updating registration request for the first time to register;
the control unit is used for setting preset parameters in the position updating registration request by wrong user identification codes and sending the position updating registration request to the target neighbor cell base station when the target neighbor cell base station sends the position updating registration request for the first time;
a third judging unit, configured to judge whether first registration rejection information sent by the target neighboring cell base station according to the location update registration request is received within a first preset time period;
the sending unit is used for obtaining wrong authentication verification information according to a first preset algorithm and sending the wrong authentication verification information to the target neighbor cell base station when an authentication request sent by the target neighbor cell base station according to a position updating registration request is received under the condition that the first registration rejection information is not received within a first preset time period;
a fourth judging unit, configured to judge whether second registration rejection information sent by the target neighboring cell base station according to the wrong authentication verification information is received within a second preset time period;
the analysis processing unit is used for obtaining correct authentication verification information according to a correct user card identification code and a second preset algorithm and re-registering the correct authentication verification information to the target neighbor cell base station when receiving first registration rejection information in a first preset time period or receiving second registration rejection information in a second preset time period; and searching the network again when the second registration rejection information is not received in the second preset time period or the authentication request sent by the base station to be registered according to the location update registration request is not received in the first preset time period, and re-determining the network frequency band to be registered according to the searched network so as to restart the registration process.
In addition, in order to achieve the above object, the present invention further provides a mobile terminal network handover control method, including the following steps:
when a measurement signaling request sent by a base station currently registered by a mobile terminal is received, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report;
and sending the target measurement report to the base station so that the base station can control the mobile terminal to carry out network switching according to the target measurement report.
Optionally, deleting, according to the historically marked pseudo base station information, a frequency band and measurement data in the measurement report to be reported, which are matched with the pseudo base station information, to form a target reported measurement report, includes:
acquiring pseudo base station information marked by history;
judging whether a frequency band matched with the pseudo base station information exists in the measurement report to be reported;
if so, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reported measurement report;
and if not, setting the measurement report to be reported as a target reporting measurement report.
Optionally, the step of sending the target measurement report to the base station, so that the base station controls the mobile terminal to perform network handover according to the target measurement report further includes:
receiving a network switching request sent by a base station according to a target reported measurement report, wherein the network switching request comprises a target adjacent cell base station to be switched;
and sending a position updating registration request to the target neighbor base station to perform network switching.
Optionally, sending a location update registration request to the target neighboring base station, so as to perform the network handover step, further including:
and carrying out pseudo base station identification on the target neighbor base station.
Optionally, the pseudo base station identification of the target neighbor base station includes:
A. judging whether the target neighbor base station registers for sending a position updating registration request for the first time;
B. when the target neighbor base station sends a location updating registration request for the first time, setting a preset parameter in the location updating registration request by using an incorrect user identification code, and sending the location updating registration request to the target neighbor base station;
C. judging whether first registration rejection information sent by a target neighbor cell base station according to a position updating registration request is received within a first preset time period; if yes, executing step G, otherwise executing step D;
D. when the first registration rejection information is not received within a first preset time period, judging whether an authentication request sent by a target neighbor cell base station according to a position updating registration request is received; if yes, executing step E;
E. obtaining wrong authentication verification information according to a first preset algorithm and sending the wrong authentication verification information to a target neighbor base station;
F. judging whether second registration rejection information sent by the target neighbor cell base station according to the wrong authentication verification information is received within a second preset time period; if yes, executing step G, otherwise executing step H;
G. re-registering the right authentication verification information to the target neighbor base station according to the right subscriber card identification code and a second preset algorithm;
H. and searching the network again, and re-determining the network frequency band to be registered according to the searched network so as to restart the registration process.
When a measurement signaling request sent by a base station currently registered by a mobile terminal is received, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported; according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report; and sending the target measurement report to the base station so that the base station can control the mobile terminal to carry out network switching according to the target measurement report. The frequency band of the pseudo base station is deleted in the measurement report to be reported of the mobile terminal to form the target reported measurement report, so that the service interruption caused by accessing the pseudo base station when the mobile terminal is switched to a network can be effectively prevented.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 of the embodiment of the present invention includes: an antenna 101, a transceiver 102, a processor 103, a digital signal processing chip 104, a codec 105, a handset 106, a microphone 107, and a subscriber identity card 108.
The subscriber identity card 108 is used for connection and information exchange with the mobile terminal 100, provides relevant data required for mobile communication services (voice service, data service, etc.), and stores subscriber information, short messages, performs authentication algorithms, generates encryption keys, etc. therein.
The digital signal processing chip 104 may comprise suitable hardware, logic, circuitry and/or code that may be adapted to perform audio signal processing, such as echo suppression, noise suppression, etc., during a call.
The Codec (Codec)105 includes suitable hardware, logic, circuitry, and/or code for performing A/D and D/A conversion.
The antenna 101 is used for transmitting and receiving signals.
The earpiece 106 may comprise suitable hardware, logic, circuitry, and/or code that may be operable to output an audio signal.
The microphone 107 may comprise suitable hardware, logic, circuitry, and/or code that may enable collection of speech signals.
The transceiver 102 is responsible for modulating signals from the processor to a radio frequency band, and transmitting the signals through an antenna after power amplification and the like. The transceiver 102 is also responsible for processing signals received by the antenna by low power noise amplification, frequency mixing, etc. and then sending the processed signals to the processor 103.
The processor 103 is configured to perform baseband processing functions of a physical layer of a communication protocol stack, including digital joint detection, modulation/demodulation, channel coding/decoding, and the like, and is configured to process complex logic operations and perform task allocation, provide an interactive interface for a user, execute an operating system of the mobile terminal, and the like. In addition, the mobile terminal 100 may further include a memory, a power supply unit, a positioning unit, a display unit, and the like for performing corresponding functions.
Based on the above mobile terminal hardware structure, embodiments of the mobile terminal network switching control method and device of the present invention are provided.
As shown in fig. 2, a first embodiment of the present invention provides a mobile terminal network switching control apparatus, including:
the detection module 10 is configured to, when receiving a measurement signaling request sent by a base station currently registered by a mobile terminal, measure a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
the mobile terminal network switching control device provided by the embodiment of the invention is mainly applied to a mobile terminal and is used for selecting a network for mobile terminal communication under a GSM network environment. Specifically, the mobile terminal is preferably a mobile phone, and the following embodiments will be described in detail by taking the mobile terminal as a mobile phone as an example.
In a service state (such as a call or data service interaction is in progress), if adjacent cell switching is required, a network corresponding to a base station sends a measurement signaling request to a mobile phone through the base station; at this time, the mobile phone measures the network signal of the neighboring base station according to the measurement signaling request to form a measurement report to be reported. The measurement report includes a network signal frequency band (i.e. a base station frequency band) that the terminal can receive and measurement data (e.g. network signal strength information may be included).
The processing module 11 is configured to delete a frequency band and measurement data in the measurement report to be reported, where the frequency band and the measurement data are matched with the pseudo base station information, according to the pseudo base station information marked by the history to form a target reported measurement report;
the pseudo base station usually obtains the frequency and field strength information of the BCCH (broadcast control channel) of the neighboring cell on the mobile phone through an engineering mobile phone, and selects the cell with the weakest signal to disguise; then according to the GSM cell selection and reselection algorithm, the pseudo base station cell generates a very large C2 value to inhale the stay of the surrounding user's handset (i.e. the handset accesses the GSM network formed by the pseudo base station). At this time, the pseudo base station can obtain network bottom layer information such as user TMSI/IMSI/IMEI, and finally set any calling number to send information (e.g. fraud short message) to the user through the SDCCH channel. Therefore, the pseudo base station is not interconnected with the real mobile network, and after the mobile phone of the user is accessed to the pseudo base station, the user cannot dial the real user and cannot send information and data to the real user and the website.
In this embodiment, the pseudo base station information marked by the history includes frequency information of the pseudo base station. Specifically, before that, each time the mobile terminal accesses a new base station, the mobile terminal will identify the base station to determine whether the mobile terminal is a fake base station. If the current access is the pseudo base station, the mobile phone quits the residence of the base station, the base station is reselected for registration according to the signal intensity of each network, and the frequency band information of the pseudo base station is only marked and stored to a preset position, so that the mobile phone is prevented from being accessed to the pseudo base station again later.
Specifically, in this embodiment, the processing module 11 includes:
the acquisition unit is used for acquiring pseudo base station information of the history mark;
the first judgment unit is used for judging whether a frequency band matched with the pseudo base station information exists in the measurement report to be reported;
the processing unit is used for deleting the frequency band matched with the pseudo base station information and the measurement data in the measurement report to be reported to form a target reported measurement report when the frequency band matched with the pseudo base station information exists in the measurement report to be reported; and when the frequency band matched with the pseudo base station information does not exist in the measurement report to be reported, setting the measurement report to be reported as a target reporting measurement report.
In this embodiment, when the frequency band matched with the pseudo base station information exists in the measurement report to be reported, the frequency band and the measurement data of the pseudo base station in the measurement report to be reported are all deleted, and the measurement report can be reported to the base station as a target reporting measurement report. And when the frequency band matched with the pseudo base station information does not exist in the measurement report to be reported, directly reporting the detected measurement report to be uploaded to the base station as a target uploading measurement report.
And a sending module 12, configured to send the target measurement report to the base station, so that the base station controls the mobile terminal to perform network handover according to the target measurement report.
And after receiving the target reported measurement report, the base station determines whether to switch the neighbor base station according to the target reported measurement report, determines the target neighbor base station to be switched when the neighbor base station needs to be switched, and then sends a network switching request to the mobile phone according to the network switching request sent by the target neighbor base station, so that the mobile phone performs network switching.
When a measurement signaling request sent by a base station currently registered by a mobile terminal is received, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported; according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report; and sending the target measurement report to the base station so that the base station can control the mobile terminal to carry out network switching according to the target measurement report. The frequency band of the pseudo base station is deleted in the measurement report to be reported of the mobile terminal to form the target reported measurement report, so that the service interruption caused by accessing the pseudo base station when the mobile terminal is switched to a network can be effectively prevented.
Further, referring to fig. 3, based on the first embodiment of the mobile terminal network switching control apparatus of the present invention, in the second embodiment of the mobile terminal network switching control apparatus of the present invention, the mobile terminal network switching control apparatus includes:
the detection module 10 is configured to, when receiving a measurement signaling request sent by a base station currently registered by a mobile terminal, measure a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
the processing module 11 is configured to delete a frequency band and measurement data in the measurement report to be reported, where the frequency band and the measurement data are matched with the pseudo base station information, according to the pseudo base station information marked by the history to form a target reported measurement report;
a sending module 12, configured to send the target measurement report to a base station, so that the base station controls the mobile terminal to perform network handover according to the target measurement report;
a receiving module 13, configured to receive a network handover request sent by a base station according to a target reported measurement report, where the network handover request includes a target neighboring base station to be handed over;
the registration module 14 is configured to send a location update registration request to the target neighboring base station, so as to perform network handover.
In the embodiment of the invention, after the base station receives the target reported measurement report, whether the adjacent cell base station is switched is determined according to the target reported measurement report, when the adjacent cell base station is required to be switched, the target adjacent cell base station which is required to be switched is determined, then a network switching request sent by the target adjacent cell base station is sent to the mobile phone, at the moment, the mobile phone quits the residence on the current base station, and the position is updated and registered on the target adjacent cell base station according to the registration request initiated by the target adjacent cell base station. Specifically, the process of the mobile phone sending the location update registration is not further described here.
Further, referring to fig. 4, based on the second embodiment of the mobile terminal network switching control apparatus of the present invention, in the third embodiment of the mobile terminal network switching control apparatus of the present invention, the mobile terminal network switching control apparatus includes:
the detection module 10 is configured to, when receiving a measurement signaling request sent by a base station currently registered by a mobile terminal, measure a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
the processing module 11 is configured to delete a frequency band and measurement data in the measurement report to be reported, where the frequency band and the measurement data are matched with the pseudo base station information, according to the pseudo base station information marked by the history to form a target reported measurement report;
a sending module 12, configured to send the target measurement report to a base station, so that the base station controls the mobile terminal to perform network handover according to the target measurement report;
a receiving module 13, configured to receive a network handover request sent by a base station according to a target reported measurement report, where the network handover request includes a target neighboring base station to be handed over;
a registration module 14, configured to send a location update registration request to a target neighboring base station for network handover;
and the identification module 15 is configured to perform pseudo base station identification on the target neighboring base station.
In the process of location updating registration, whether the target neighbor base station is a pseudo base station or not can be identified, so that the new base station frequency band is prevented from being the pseudo base station frequency band, and the base station accessed during mobile phone switching is further ensured to be a true base station. Specifically, the method for identifying the pseudo base station by the target pickup base station may be set according to actual needs, and will be described in detail by a specific example, specifically, the identifying module 15 includes:
the second judgment unit is used for judging whether the base station corresponding to the target neighbor base station sends the location updating registration request for the first time to register;
the control unit is used for setting preset parameters in the position updating registration request by wrong user identification codes and sending the position updating registration request to the target neighbor cell base station when the target neighbor cell base station sends the position updating registration request for the first time;
a third judging unit, configured to judge whether first registration rejection information sent by the target neighboring cell base station according to the location update registration request is received within a first preset time period;
the sending unit is used for obtaining wrong authentication verification information according to a first preset algorithm and sending the wrong authentication verification information to the target neighbor cell base station when an authentication request sent by the target neighbor cell base station according to a position updating registration request is received under the condition that the first registration rejection information is not received within a first preset time period;
a fourth judging unit, configured to judge whether second registration rejection information sent by the target neighboring cell base station according to the wrong authentication verification information is received within a second preset time period;
the analysis processing unit is used for obtaining correct authentication verification information according to a correct user card identification code and a second preset algorithm and re-registering the correct authentication verification information to the target neighbor cell base station when receiving first registration rejection information in a first preset time period or receiving second registration rejection information in a second preset time period; and searching the network again when the second registration rejection information is not received in the second preset time period or the authentication request sent by the base station to be registered according to the location update registration request is not received in the first preset time period, and re-determining the network frequency band to be registered according to the searched network so as to restart the registration process.
As shown in fig. 5 and fig. 6, when registering on the true base station, if a location update registration request is sent with an incorrect user identification code, the base station will send the location update registration request to the core network, and the core network may send first registration rejection information to the mobile phone through the base station at this time; in addition, the core network can also reject registration in the subsequent authentication process without rejecting registration. At this time, the core network sends an authentication request to the mobile phone through the base station, and the authentication request carries preset authentication parameters. When the mobile phone receives an authentication request sent by the base station, wrong authentication verification information is obtained according to the authentication request and a first preset algorithm, and then the wrong authentication verification information is sent to the target neighbor base station. The base station can send the wrong authentication verification information to the core network for authentication and verification on the true base station so as to determine authentication identification, and the core network sends second registration rejection information to the mobile phone through the true base station so as to reject registration of the true base station; if the false base station receives the wrong authentication verification information, the false base station generally directly accepts registration because authentication identification cannot be performed, so that the registered mobile phone is resided on the base station. Based on the principle, whether the target neighbor base station is a true base station can be determined by judging whether the mobile phone receives second registration rejection information sent by the target neighbor base station according to the wrong authentication and verification information.
It is understood that the time length of the second preset time period may be set according to actual needs, and is not further limited herein.
Specifically, the content of the first registration rejection information and the content of the second registration rejection information may be set according to actual needs, and are not described in detail here.
It should be noted that, because the time points when the true base station sends the registration rejection information are different, in this embodiment, when the mobile phone performs registration on the target neighboring cell base station for the first time, the wrong authentication verification information is still sent during authentication, so that the accuracy of base station identification can be guaranteed in a double-layer manner. It should be explained here that the calculation method for the wrong authentication verification information may be set according to actual needs, for example, the authentication parameters in the authentication request may not be used, and the algorithm expression of the authentication calculation may also be changed. The manner in which it is specifically modified is not further defined herein.
As shown in fig. 7, a first embodiment of a mobile terminal network handover control method according to the present invention is proposed, and the mobile terminal network handover control method includes:
step S10, when receiving a measurement signaling request sent by a base station currently registered by the mobile terminal, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
the mobile terminal network switching control method provided by the embodiment of the invention is mainly applied to the mobile terminal and is used for selecting the network for mobile terminal communication under the GSM network environment. Specifically, the mobile terminal is preferably a mobile phone, and the following embodiments will be described in detail by taking the mobile terminal as a mobile phone as an example.
In a service state (such as a call or data service interaction is in progress), if adjacent cell switching is required, a network corresponding to a base station sends a measurement signaling request to a mobile phone through the base station; at this time, the mobile phone measures the network signal of the neighboring base station according to the measurement signaling request to form a measurement report to be reported. The measurement report includes a network signal frequency band (i.e. a base station frequency band) that the terminal can receive and measurement data (e.g. network signal strength information may be included).
Step S11, according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report;
the pseudo base station usually obtains the frequency and field strength information of the BCCH (Broadcast control channel) of the neighboring cell on the mobile phone through an engineering mobile phone, and selects the cell with the weakest signal to perform the pseudo process; then according to the GSM cell selection and reselection algorithm, the pseudo base station cell generates a very large C2 value to inhale the stay of the surrounding user's handset (i.e. the handset accesses the GSM network formed by the pseudo base station). At this time, the pseudo base station can obtain network bottom layer information such as user TMSI/IMSI/IMEI, and finally set any calling number to send information (e.g. fraud short message) to the user through the SDCCH channel. Therefore, the pseudo base station is not interconnected with the real mobile network, and after the mobile phone of the user is accessed to the pseudo base station, the user cannot dial the real user and cannot send information and data to the real user and the website.
In this embodiment, the pseudo base station information marked by the history includes frequency information of the pseudo base station. Specifically, before that, each time the mobile terminal accesses a new base station, the mobile terminal will identify the base station to determine whether the mobile terminal is a fake base station. If the current access is the pseudo base station, the mobile phone quits the residence of the base station, the base station is reselected for registration according to the signal intensity of each network, and the frequency band information of the pseudo base station is only marked and stored to a preset position, so that the mobile phone is prevented from being accessed to the pseudo base station again later.
Specifically, in this embodiment, the step S11 may specifically include:
acquiring pseudo base station information marked by history;
judging whether a frequency band matched with the pseudo base station information exists in the measurement report to be reported;
if so, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reported measurement report;
and if not, setting the measurement report to be reported as a target reporting measurement report.
In this embodiment, when the frequency band matched with the pseudo base station information exists in the measurement report to be reported, the frequency band and the measurement data of the pseudo base station in the measurement report to be reported are all deleted, and the measurement report can be reported to the base station as a target reporting measurement report. And when the frequency band matched with the pseudo base station information does not exist in the measurement report to be reported, directly reporting the detected measurement report to be uploaded to the base station as a target uploading measurement report.
And step S12, sending the target measurement report to the base station, so that the base station can control the mobile terminal to switch the network according to the target measurement report.
And after receiving the target reported measurement report, the base station determines whether to switch the neighbor base station according to the target reported measurement report, determines the target neighbor base station to be switched when the neighbor base station needs to be switched, and then sends a network switching request to the mobile phone according to the network switching request sent by the target neighbor base station, so that the mobile phone performs network switching.
When a measurement signaling request sent by a base station currently registered by a mobile terminal is received, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported; according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report; and sending the target measurement report to the base station so that the base station can control the mobile terminal to carry out network switching according to the target measurement report. The frequency band of the pseudo base station is deleted in the measurement report to be reported of the mobile terminal to form the target reported measurement report, so that the service interruption caused by accessing the pseudo base station when the mobile terminal is switched to a network can be effectively prevented.
Further, referring to fig. 8, based on the first embodiment of the method for controlling network handover of a mobile terminal of the present invention, in the second embodiment of the method for controlling network handover of a mobile terminal of the present invention, the method for controlling network handover of a mobile terminal includes:
step S10, when receiving a measurement signaling request sent by a base station currently registered by the mobile terminal, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
step S11, according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report;
step S12, sending the target measurement report to the base station for the base station to control the mobile terminal to switch the network according to the target measurement report
Step S13, receiving a network switching request sent by a base station according to a target reported measurement report, wherein the network switching request comprises a target adjacent cell base station to be switched;
step S14, sending a location update registration request to the target neighboring base station for network handover.
In the embodiment of the invention, after the base station receives the target reported measurement report, whether the adjacent cell base station is switched is determined according to the target reported measurement report, when the adjacent cell base station is required to be switched, the target adjacent cell base station which is required to be switched is determined, then a network switching request sent by the target adjacent cell base station is sent to the mobile phone, at the moment, the mobile phone quits the residence on the current base station, and the position is updated and registered on the target adjacent cell base station according to the registration request initiated by the target adjacent cell base station. Specifically, the process of the mobile phone sending the location update registration is not further described here.
Further, referring to fig. 9, based on the second embodiment of the method for controlling network handover of a mobile terminal of the present invention, in the third embodiment of the method for controlling network handover of a mobile terminal of the present invention, the method for controlling network handover of a mobile terminal includes:
step S10, when receiving a measurement signaling request sent by a base station currently registered by the mobile terminal, measuring a network signal of a neighboring base station according to the measurement request to form a measurement report to be reported;
step S11, according to the pseudo base station information marked by the history, deleting the frequency band and the measurement data matched with the pseudo base station information in the measurement report to be reported to form a target reporting measurement report;
step S12, sending the target measurement report to the base station for the base station to control the mobile terminal to switch the network according to the target measurement report
Step S13, receiving a network switching request sent by a base station according to a target reported measurement report, wherein the network switching request comprises a target adjacent cell base station to be switched;
step S14, sending a position updating registration request to a target adjacent cell base station to carry out network switching;
and step S15, pseudo base station identification is carried out on the target adjacent cell base station.
In this embodiment, after the mobile phone sends the location update registration request to the target neighboring base station, in the process of performing location update registration, it may also be identified whether the target neighboring base station is a pseudo base station, so as to prevent a new base station frequency band from being a pseudo base station frequency band, thereby further ensuring that an access base station is a true base station when the mobile phone is switched. Specifically, the method for identifying the pseudo base station by the target pickup base station may be set according to actual needs, and will be described in detail below by using a specific example, specifically, the step S15 includes the following steps:
A. judging whether the target neighbor base station registers for sending a position updating registration request for the first time;
B. when the target neighbor base station sends a location updating registration request for the first time, setting a preset parameter in the location updating registration request by using an incorrect user identification code, and sending the location updating registration request to the target neighbor base station;
C. judging whether first registration rejection information sent by a target neighbor cell base station according to a position updating registration request is received within a first preset time period; if yes, executing step G, otherwise executing step D;
D. when the first registration rejection information is not received within a first preset time period, judging whether an authentication request sent by a target neighbor cell base station according to a position updating registration request is received; if yes, executing step E;
E. obtaining wrong authentication verification information according to a first preset algorithm and sending the wrong authentication verification information to a target neighbor base station;
F. judging whether second registration rejection information sent by the target neighbor cell base station according to the wrong authentication verification information is received within a second preset time period; if yes, executing step G, otherwise executing step H;
G. re-registering the right authentication verification information to the target neighbor base station according to the right subscriber card identification code and a second preset algorithm;
H. and searching the network again, and re-determining the network frequency band to be registered according to the searched network so as to restart the registration process.
As shown in fig. 5 and fig. 6, when registering on the true base station, if a location update registration request is sent with an incorrect user identification code, the base station will send the location update registration request to the core network, and the core network may send first registration rejection information to the mobile phone through the base station at this time; in addition, the core network can also reject registration in the subsequent authentication process without rejecting registration. At this time, the core network sends an authentication request to the mobile phone through the base station, and the authentication request carries preset authentication parameters. When the mobile phone receives an authentication request sent by the base station, wrong authentication verification information is obtained according to the authentication request and a first preset algorithm, and then the wrong authentication verification information is sent to the target neighbor base station. The base station can send the wrong authentication verification information to the core network for authentication and verification on the true base station so as to determine authentication identification, and the core network sends second registration rejection information to the mobile phone through the true base station so as to reject registration of the true base station; if the false base station receives the wrong authentication verification information, the false base station generally directly accepts registration because authentication identification cannot be performed, so that the registered mobile phone is resided on the base station. Based on the principle, whether the target neighbor base station is a true base station can be determined by judging whether the mobile phone receives second registration rejection information sent by the target neighbor base station according to the wrong authentication and verification information.
It is understood that the time length of the second preset time period may be set according to actual needs, and is not further limited herein.
Specifically, the content of the first registration rejection information and the content of the second registration rejection information may be set according to actual needs, and are not described in detail here.
It should be noted that, because the time points when the true base station sends the registration rejection information are different, in this embodiment, when the mobile phone performs registration on the target neighboring cell base station for the first time, the wrong authentication verification information is still sent during authentication, so that the accuracy of base station identification can be guaranteed in a double-layer manner. It should be explained here that the calculation method for the wrong authentication verification information may be set according to actual needs, for example, the authentication parameters in the authentication request may not be used, and the algorithm expression of the authentication calculation may also be changed. The manner in which it is specifically modified is not further defined herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the invention. However, it will be apparent to one skilled in the art that the specific details are not required in order to practice the invention. The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments are shown and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.