CN108307417B - Processing method for network communication function abnormity, modem and mobile terminal - Google Patents

Processing method for network communication function abnormity, modem and mobile terminal Download PDF

Info

Publication number
CN108307417B
CN108307417B CN201810360779.6A CN201810360779A CN108307417B CN 108307417 B CN108307417 B CN 108307417B CN 201810360779 A CN201810360779 A CN 201810360779A CN 108307417 B CN108307417 B CN 108307417B
Authority
CN
China
Prior art keywords
modem
protocol stack
network
protocol
network registration
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.)
Expired - Fee Related
Application number
CN201810360779.6A
Other languages
Chinese (zh)
Other versions
CN108307417A (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 CN201810360779.6A priority Critical patent/CN108307417B/en
Publication of CN108307417A publication Critical patent/CN108307417A/en
Application granted granted Critical
Publication of CN108307417B publication Critical patent/CN108307417B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Abstract

The embodiment of the invention discloses a method for processing network communication function abnormity, which comprises the following steps: after detecting that the position updating fails, the modem acquires a first protocol stack currently used by the modem; the modem closes the first protocol stack and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the modem starts a second protocol stack and uses the second protocol stack to perform network registration; if the network registration is successful, the modem records the current position information. The embodiment of the invention also discloses a modem and a mobile terminal. By adopting the invention, the abnormity of the network communication function can be rapidly detected and recovered.

Description

Processing method for network communication function abnormity, modem and mobile terminal
Technical Field
The present invention relates to the field of communications, and in particular, to a method for processing network communication function abnormality, a modem, and a mobile terminal.
Background
With the development of communication technology, more and more types of communication systems are supported by mobile phones, for example: one mobile phone simultaneously supports 2G, 3G and 4G communication systems of different operators, and the inconvenience of mobile phone replacement is avoided. The high-speed development of the mobile internet makes data services occupy an absolute proportion, so that the role and position of a modem in a mobile phone are increasingly important, the modem is used for converting data to be transmitted into radio frequency signals and converting the radio frequency signals into data to be processed, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor and the like. The mobile network environment where the mobile phone is located is very complex, the mobile phone often switches between different communication systems, and in the process of switching the communication systems, an abnormality often occurs, so that the mobile phone cannot normally perform networking communication, for example, location update fails. In order to solve the problem of the abnormality of the communication which cannot be connected with the network, the commonly adopted solution at present is as follows: when the mobile phone moves to a new position area, a position updating request is sent to the network side, the network side reconfigures the mobile phone, and the configuration parameters of the modem are recovered; or after the user finds that the network communication can not be carried out for a long time, the user manually carries out forced restart on the mobile terminal to recover the configuration parameters of the modem. However, both schemes take too long and are not user-friendly.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method for processing network communication function abnormality, a modem, and a mobile terminal, so as to solve the problem that it takes too long time to automatically attempt to recover or recover a communication service when an abnormality occurs and network communication cannot be performed in the prior art.
In order to solve the foregoing technical problem, a first aspect of an embodiment of the present invention provides a method for processing a network communication function exception, where the method includes:
the modem detects a location update failure;
the modem acquires a first protocol stack currently used by the modem;
the modem closes the first protocol stack and selects a second protocol stack other than the first protocol stack from a plurality of protocol stacks supported by the modem;
the modem starts the second protocol stack and uses the second protocol stack to perform network registration;
and if the network registration is successful, the modem records the current position information.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
if the network registration fails, the modem recovers the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem recovers the switch state of the default protocol stack in the plurality of supported protocol stacks and resets the modem at the same time.
With reference to the first aspect or the first possible implementation, in a second possible implementation, after the recording, by the modem, the current location information if the network registration is successful, the method further includes:
when the position changes, the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks and simultaneously resets the modem.
With reference to the first aspect or the first possible implementation manner or the second possible implementation manner of the first aspect, in a third possible implementation manner, the method further includes:
if the abnormal reason of the position updating failure is not reported, the modem acquires the abnormal reason and the log of the position updating failure;
and the modem reports the abnormal reason, the current position information and the log to a network side and/or a user.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the reporting, by the modem, the cause of the abnormality, the current location information, and the log to a network side includes:
and after surrounding wifi hotspots are scanned and communication connection is established with the wifi hotspots, the abnormal reason, the current position information and the log are reported to a network side by the modem through the wifi hotspots establishing communication connection.
A second aspect of an embodiment of the present invention provides a modem, including:
a detection module for detecting a location update failure;
the determining module is used for acquiring a first protocol stack currently used by the modem;
a selection module, configured to close the first protocol stack and select a second protocol stack other than the first protocol stack from a plurality of protocol stacks supported by the modem;
the registration module is used for starting the second protocol stack and using the second protocol stack to perform network registration;
and the recording module is used for recording the current position information if the network registration is successful.
With reference to the second aspect, in a first possible implementation manner, the modem further includes:
and the recovery module is used for recovering the switch state of the default protocol stack in the supported multiple protocol stacks or recovering the switch state of the default protocol stack in the supported multiple protocol stacks and simultaneously resetting the modem when the network registration fails or after the network registration succeeds and the position changes.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the modem further includes:
a reporting module, configured to obtain an abnormal reason and a log of the location update failure if the abnormal reason of the location update failure is not reported; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the reporting module is specifically configured to:
and scanning surrounding wifi hotspots, and after establishing communication connection with the wifi hotspots, reporting the abnormal reason, the current position information and the log to a network side through the wifi hotspots establishing communication connection.
A third aspect of an embodiment of the present invention provides a mobile terminal, including the modem described in any one of the above.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps that when the modem detects that the position updating fails, a protocol stack currently used by the modem is closed, other protocol stacks except the protocol stack currently used are selected from a plurality of protocol stacks supported by the modem, the other protocol stacks are opened, the other protocol stacks are used for registering the network, and when the network is successfully registered, the current position information is recorded. Therefore, when the modem can not normally communicate, the modem is quickly detected, and the modem automatically tries to recover to normal by a network registration mode through other protocol stacks, so that the problem of overlong time consumption caused by forced restart of a mobile phone or location update is avoided, and the time for recovering network failures is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for processing a network communication function exception according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a method for processing network communication function abnormality according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for processing a network communication function exception according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a modem according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a modem according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flowchart of a method for processing a network communication function exception according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the method includes:
s101, the modem detects that the position updating fails.
S102, the modem acquires a first protocol stack currently used by the modem.
Specifically, the modem is configured to convert a baseband signal into a radio frequency signal, convert the radio frequency signal into the baseband signal, process signaling of an Access Stratum (AS) and a non-access stratum (NAS), interface with the AP processor, and the like; the modem supports multiple protocol stacks. The UE initiates a LOCATION registration process by sending a LOCATION UPDATE REQUEST message (such as LOCATION UPDATE REQUEST, TRACKING AREA UPDATE REQUEST, etc.), and before a User Equipment (UE) completes LOCATION UPDATE, a failure of LOCATION UPDATE may be caused by an abnormal protocol stack or rejection of LOCATION UPDATE by the network side. The abnormal reasons causing the failure of the location update include: the reason why the RRC radio link establishment fails due to poor signal coverage or large signal interference, the NAS layer receives an error indication of the RRC layer or receives an NAS signaling connection release indication of the RRC layer, the UE enters a new Tracking Area (TA), the RRC layer indicates that the location UPDATE request message transmission fails, the RRC layer indicates that the message transmission fails when the UE transmits a location UPDATE COMPLETE message (TRACKING AREA UPDATE COMPLETE), the UE does not receive a location UPDATE allow message (TRACKING AREA data ACCEPT) sent by the network side before the timer T3430 times out, the UE REJECTs (TRACKING AREA UPDATE REJECT) message for location UPDATE, the cause field in the location UPDATE REJECT (TRACKING AREA UPDATE REJECT) message fails to detect, the location UPDATE procedure conflicts with other procedures, the UE fails to authenticate or fails to activate security, and the like. The reasons why the network side rejects the location update are as follows: illegal ue (illegal me), EPS service not allowed (EPS services not allowed), PLMN not allowed (PLMN not allowed), Tracking area not allowed (Tracking area not allowed), EPS service not allowed, and the like. If the UE cannot initiate the service after cell reselection, the location registration failure can be judged. The protocol stack represents a sum of a plurality of protocols corresponding to a certain communication system, for example: the protocol stacks comprise a GSM protocol stack, an EDGE protocol stack, an HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack and the like, and a plurality of sub protocol stacks are arranged below each communication system protocol stack, which is not described again. The modem determines a first protocol stack currently in use when a location update failure is detected.
It should be noted that the modem may be integrated inside the application processor AP or may be a chip independent from the application processor, and the present invention is not limited thereto.
S103, the modem closes the first protocol stack, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
Specifically, the first protocol stack is a protocol stack causing a location update failure, and the modem needs to close the first protocol stack to prevent the location update failure from occurring repeatedly. Then, the modem determines a second protocol stack, which is selected from the plurality of protocol stacks supported by the modem, except the first protocol stack, wherein the policy selected by the modem may be: selecting a protocol stack one level lower than the first protocol stack as a second protocol stack; or measuring the signal intensity of cell signals corresponding to each surrounding protocol stack, and taking the protocol stack with the maximum signal intensity as a second protocol stack; or selecting a protocol stack one level higher than the first protocol stack as a second protocol stack; or other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
And S104, the modem starts the second protocol stack and uses the second protocol stack for network registration.
Specifically, after the first protocol stack is closed, the mobile terminal changes to a non-service state, the modem opens the selected second protocol stack, and performs network registration using the second protocol stack, for example, the LTE network registration process is as follows: the mobile terminal initiates an attach request (attach request) to the network side, if the network side allows the mobile terminal to access, an attach response (attach accept) is returned to the mobile terminal, which indicates that the network registration is successful, and the mobile terminal is converted from an idle state to a connection state; and if the network side does not allow the mobile terminal to access, returning error information to the mobile terminal, which indicates that the network registration fails.
And S105, if the network registration is successful, the modem records the current position information.
Specifically, the location information indicates a logical location of the mobile terminal in the mobile communication network, and the location information may be a cell identifier, an area location code, a location tracking area, or the like, which is not limited in the present invention. If the registration of the network using the second protocol stack is successful, the modem records the current location information.
When the embodiment of the invention is implemented, when the modem detects that the position updating fails, the protocol stack currently used by the modem is closed, other protocol stacks except the protocol stack currently used are selected from a plurality of protocol stacks supported by the modem, the other protocol stacks are opened and the other protocol stacks are used for registering the network, and when the network is successfully registered, the current position information is recorded. Therefore, when the modem can not normally communicate, the modem is quickly detected, and the modem automatically tries to recover to normal by a network registration mode through other protocol stacks, so that the problem of overlong time consumption caused by forced restart of a mobile phone or location update is avoided, and the time for recovering network failures is reduced.
Referring to fig. 2, a schematic flowchart of a method for processing a network communication function exception according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the method includes:
s201, the modem detects that the position updating fails.
Specifically, the modem is installed in the handset, and may be packaged in the application processor AP or be independent of the application processor, which is not limited by the present invention. The modem is used to convert baseband signals to radio frequency signals, convert radio frequency signals to baseband signals, process Access Stratum (AS) and non-access stratum (NAS) signaling, interface with an AP processor, and the like. The UE initiates the LOCATION registration procedure by sending a LOCATION UPDATE REQUEST message (e.g., LOCATION UPDATE REQUEST, TRACKING AREA UPDATE REQUEST, etc.), and a failure of the UE LOCATION UPDATE may be caused by either an exception to the protocol stack or a rejection of the LOCATION UPDATE by the network side before the UE completes the LOCATION UPDATE. The abnormal reasons causing the failure of the location update include: the reason why the RRC radio link establishment fails due to poor signal coverage or large signal interference, the NAS layer receives an error indication of the RRC layer or receives an NAS signaling connection release indication of the RRC layer, the UE enters a new Tracking Area (TA), the RRC layer indicates that the location UPDATE request message transmission fails, the RRC layer indicates that the message transmission fails when the UE transmits a location UPDATE COMPLETE message (TRACKING AREA UPDATE COMPLETE), the UE does not receive a location UPDATE allow message (TRACKING AREA data ACCEPT) sent by the network side before the timer T3430 times out, the UE REJECTs (TRACKING AREA UPDATE REJECT) message for location UPDATE, the cause field in the location UPDATE REJECT (TRACKING AREA UPDATE REJECT) message fails to detect, the location UPDATE procedure conflicts with other procedures, the UE fails to authenticate or fails to activate security, and the like. The reasons why the network side rejects the location update are as follows: illegal ue (illegal me), EPS service not allowed (EPS services not allowed), PLMN not allowed (PLMN not allowed), Tracking area not allowed (Tracking area not allowed), EPS service not allowed, and the like. If the UE cannot initiate the service after cell reselection, the location registration failure can be judged. The modem may detect a location update failure.
S202, the modem acquires a first protocol stack currently used by the modem.
Specifically, a protocol stack represents a sum of multiple protocol stacks corresponding to a certain communication system, for example: the protocol stack comprises a GSM protocol stack, an EDGE protocol stack, an HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack and the like, and a plurality of sub protocol stacks are arranged below each communication system protocol stack, for example: the TD-LTE protocol stack comprises a physical layer protocol stack, a Medium Access Control (MAC) protocol stack, a Radio Link Control (RLC) protocol stack, an RRC protocol stack, a PDCP protocol stack, an NAS protocol stack and the like. And will not be described in detail herein. The method for the modem to acquire the first protocol stack currently used by the modem may be: inquiring a status flag bit indicating a protocol stack in the modem to acquire a currently used first protocol stack, for example, the flag bit 1 indicates that the corresponding protocol stack is in an open state, and the flag bit 0 indicates that the corresponding protocol stack is in a closed state.
S203, the modem closes the first protocol stack, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
Specifically, the modem uses the first protocol stack to cause a location update failure, thereby causing an abnormality of the modem, and the modem needs to close the first protocol stack to prevent the protocol stack registration from being rejected repeatedly. Then, the modem determines a second protocol stack, which is selected from the plurality of protocol stacks supported by the modem, except the first protocol stack, wherein the policy selected by the modem may be: selecting a protocol stack one level lower than the first protocol stack as a second protocol stack; or measuring the signal intensity of cell signals corresponding to each surrounding protocol stack, and taking the protocol stack with the maximum signal intensity as a second protocol stack; or selecting a protocol stack one level higher than the first protocol stack as a second protocol stack; or other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
And S204, the modem starts the second protocol stack and uses the second protocol stack to perform network registration.
Specifically, after the first protocol stack is closed, the mobile terminal changes to a non-service state, the modem opens the selected second protocol stack, and performs network registration using the second protocol stack, for example, the LTE network registration process is as follows: the mobile terminal initiates an attachment request to the network side, if the network side allows the mobile terminal to access, an attachment response is returned to the mobile terminal, which indicates that the network registration is successful, and the mobile terminal is converted from a non-service state to a service state; if the network side does not allow the mobile terminal to access, returning rejection/error information to the mobile terminal, which indicates that the network registration fails.
S205, whether the network registration is successful or not.
Specifically, if the modem successfully registers to the network using the second protocol stack, S206 is performed, and if the modem does not successfully register to the network using the second protocol stack, S207 is performed.
And S206, the modem records the current position information.
Specifically, the location information represents an identifier of a logical location planned in advance in the mobile communication network, for example, the location information includes a cell identifier or a location area code.
S207, the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks and resets the modem at the same time.
Specifically, the modem uses the second protocol stack to unsuccessfully register to the network, and the modem restores the on-off state of the default protocol stack or simultaneously resets the modem according to the on-off state of the default protocol stack known in advance. The default protocol stack is a preset protocol stack in a plurality of protocol stacks supported by the modem, and here, the same default protocol stack may be set for all regions as a protocol stack initially selected for use by the modem, or different default protocol stacks may be set for a single region or a plurality of regions in a certain region, respectively. After the resetting operation is carried out, the modem uses the default protocol stack to carry out network registration, and after the network registration is successful, the modem uses the default protocol stack to work.
And S208, whether the position information is changed or not.
Specifically, the modem periodically acquires the location information, and when the currently acquired location information changes from the last acquired location information, S209 is executed, otherwise S208 is continuously executed. For example, the location information is a cell identifier, and the mobile terminal moves from one cell to another cell to indicate that the location information changes; the position information is a position area code, and the mobile terminal moves from one position area to another position area to indicate that the position information changes. The period of the modem acquiring the location information is not limited in the present invention, and can be set according to actual requirements.
S209, the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks and resets the modem at the same time.
S210, whether the abnormal reason of the position updating failure is reported or not.
Specifically, if the abnormal reason for the location update failure is reported, S213 is executed; otherwise, S211 is executed.
S211, obtaining abnormal reasons and logs of the position updating failure.
S212, reporting the abnormal reason, the current position information and the log to a network side and/or a user.
Specifically, the modem reports the abnormal reason, the current position information and the log to the network side, wherein the information can be reported to the network side through a wifi hot spot under the condition that the mobile terminal is connected with the wifi hot spot, so as to save the flow. Or the modem can also display the abnormal reason on a display screen of the mobile terminal for the user to check.
It should be noted that after S206 is executed, S208 and S210 may be executed in parallel.
And S213, the modem processes the exception and ends.
When the embodiment of the invention is implemented, when the modem detects that the position updating fails, the currently used protocol stack is closed, other protocol stacks except the currently used protocol stack are selected from a plurality of supported protocol stacks, other protocol stacks are opened and other protocol stacks are used for registering the network, when the network is successfully registered, the current position information is recorded, and when the position is changed or the network is failed to be registered, the on-off state of the default protocol stack is recovered or the modem is reset. Therefore, when the modem can not normally communicate, the modem is quickly detected, and the modem automatically restores the normal communication by switching other protocol stacks to carry out network registration, so that the problem of overlong time consumption caused by forced restart of the mobile terminal or location update is avoided, and the time for restoring network failure is reduced.
Referring to fig. 3, another flow diagram of a method for processing a network communication function exception according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the method includes:
s301, the modem detects that the position updating fails.
Specifically, the modem is installed in the handset, and may be packaged in the application processor AP or be independent of the application processor, which is not limited by the present invention. The modem is used to convert baseband signals to radio frequency signals, convert radio frequency signals to baseband signals, process Access Stratum (AS) and non-access stratum (NAS) signaling, interface with an AP processor, and the like. The UE initiates a location registration process by sending a location update request message, and before the UE completes location update, the UE location update failure can be caused by protocol stack exception or rejection of the location update at the network side. The abnormal reasons causing the failure of the location update include: the method comprises the following steps that the RRC radio link is failed to establish due to poor signal coverage or large signal interference, the NAS layer receives an error indication of the RRC layer or receives an NAS signaling connection release indication of the RRC layer, the UE enters a new Tracking Area (TA), the RRC layer indicates that the position updating request message is failed to be sent, the RRC layer indicates that the message is failed to be sent when the UE sends a position updating completion message, a position updating permission message sent by the network side is not received before the timer T3430 is overtime, a position updating rejection message, a reason field in the position updating rejection message is failed to detect, a position updating process conflicts with other processes, UE authentication failure or security activation failure and the like. The reasons why the network side rejects the location update are as follows: illegal UE, EPS service not allowed, PLMN not allowed, tracking area not allowed, EPS service not allowed, etc. If the UE cannot initiate the service after cell reselection, the location registration failure can be judged. The modem may detect a location update failure.
S302, the modem acquires a first protocol stack currently used by the modem.
Specifically, a protocol stack represents a sum of multiple protocol stacks corresponding to a certain communication system, for example: the protocol stack comprises a GSM protocol stack, an EDGE protocol stack, an HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack and the like, and a plurality of sub protocol stacks are arranged below each communication system protocol stack, for example: the TD-LTE protocol stack comprises a physical layer protocol stack, a Medium Access Control (MAC) protocol stack, a Radio Link Control (RLC) protocol stack, an RRC protocol stack, a PDCP protocol stack, an NAS protocol stack and the like. And will not be described in detail herein. The method for the modem to acquire the first protocol stack currently used by the modem may be: inquiring a status flag bit indicating a protocol stack in the modem to acquire a currently used first protocol stack, for example, the flag bit 1 indicates that the corresponding protocol stack is in an open state, and the flag bit 0 indicates that the corresponding protocol stack is in a closed state.
S303, the modem closes the first protocol stack, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
Specifically, the modem uses the first protocol stack to cause a location update failure, thereby causing an abnormality of the modem, and the modem needs to close the first protocol stack to prevent the protocol stack registration from being rejected repeatedly. Then, the modem determines a second protocol stack, which is selected from the plurality of protocol stacks supported by the modem, except the first protocol stack, wherein the policy selected by the modem may be: selecting a protocol stack one level lower than the first protocol stack as a second protocol stack; or measuring the signal intensity of cell signals corresponding to each surrounding protocol stack, and taking the protocol stack with the maximum signal intensity as a second protocol stack; or selecting a protocol stack one level higher than the first protocol stack as a second protocol stack; or other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
S304, the modem starts the second protocol stack and uses the second protocol stack to perform network registration.
Specifically, after the first protocol stack is closed, the mobile terminal changes to a non-service state, the modem opens the selected second protocol stack, and performs network registration using the second protocol stack, for example, the LTE network registration process is as follows: the mobile terminal initiates an attachment request to the network side, if the network side allows the mobile terminal to access, an attachment response is returned to the mobile terminal, which indicates that the network registration is successful, and the mobile terminal is converted from a non-service state to a service state; if the network side does not allow the mobile terminal to access, returning rejection/error information to the mobile terminal, which indicates that the network registration fails.
S305, if the network registration is successful, the modem records the current position information. Then step S306 may be performed; step S308 may also be performed in parallel.
Specifically, the location information represents an identifier of a logical location planned in advance in the mobile communication network, for example, the location information includes a cell identifier or a location area code.
And S306, whether the position information changes or not.
Specifically, the modem periodically acquires the location information, and when the currently acquired location information changes from the location information acquired last time, S307 is executed, otherwise S306 is continuously executed. For example, the location information is a cell identifier, and the mobile terminal moves from one cell to another cell to indicate that the location information changes; the position information is a position area code, and the mobile terminal moves from one position area to another position area to indicate that the position information changes. The period of the modem acquiring the location information is not limited in the present invention, and can be set according to actual requirements.
S307, the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks and resets the modem at the same time.
And S308, whether the abnormal reason of the position updating failure is reported or not.
Specifically, if the abnormal reason of the location update failure is reported, S301 is executed; after the abnormal reason of the location update failure is reported, the user can adjust or repair according to the abnormal reason, and then continue to jump to S301 to detect the abnormality by the modem, and if the modem still detects the location update failure, continue to execute the subsequent steps of S302 and the like. Otherwise, S309 is executed.
S309, obtaining abnormal reasons and logs of the position updating failure.
S310, reporting the abnormal reason, the current position information and the log to a network side and/or a user.
Specifically, the modem reports the abnormal reason, the current position information and the log to the network side, wherein the information can be reported to the network side through a wifi hot spot under the condition that the mobile terminal is connected with the wifi hot spot, so as to save the flow. Or the modem can also display the abnormal reason on a display screen of the mobile terminal for the user to check.
After the information is reported, the process may also jump to step S301, where the modem detects the abnormality, and if the modem still detects the location update failure, the process continues to execute the subsequent steps such as step S302.
Through a circulation mode, the problem of location updating failure can be solved, when the problem is solved, the modem can not detect the location updating failure any more, and the terminal can restore normal work.
When the embodiment of the invention is implemented, when the modem receives the information that the modem detects the failure of position updating, the currently used protocol stack is closed, other protocol stacks except the currently used protocol stack are selected from a plurality of supported protocol stacks, the other protocol stacks are opened and the other protocol stacks are used for registering the network, when the network is successfully registered, the current position information is recorded, and when the position is changed, the on-off state of the default protocol stack is recovered or the modem is reset. Therefore, when the modem can not normally communicate, the modem is quickly detected, and the modem automatically restores the normal communication by switching other protocol stacks to carry out network registration, so that the problem of overlong time consumption caused by forced restart of the mobile terminal or location update is avoided, and the time for restoring network failure is reduced.
Referring to fig. 4, a schematic structural diagram of a modem provided in an embodiment of the present invention is shown, where in the embodiment of the present invention, the modem 4 includes: a detection module 401, a determination module 402, a selection module 403, a registration module 404, and a recording module 405.
A detecting module 401, configured to detect that the location update fails.
A determining module 402, configured to obtain a first protocol stack currently used by the modem.
A selecting module 403, configured to close the first protocol stack and select a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
A registering module 404, configured to start the second protocol stack, and perform network registration using the second protocol stack.
The recording module 405 is configured to record current location information if the network registration is successful.
The embodiments of the present invention and the first method embodiment are based on the same concept, and the technical effects brought by the embodiments are also the same, and for the specific principle, reference is made to the description of the first method embodiment, which is not repeated herein.
Optionally, the modem further includes:
and the recovery module is used for recovering the switch state of the default protocol stack in the supported multiple protocol stacks or recovering the switch state of the default protocol stack in the supported multiple protocol stacks and simultaneously resetting the modem when the network registration fails or after the network registration succeeds and the position changes.
Optionally, the modem further includes:
a reporting module, configured to obtain an abnormal reason and a log of the location update failure if the abnormal reason of the location update failure is not reported; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
Optionally, the reporting module is configured to:
and scanning surrounding wifi hotspots, and after establishing communication connection with the wifi hotspots, reporting the abnormal reason, the current position information and the log to a network side through the wifi hotspots establishing communication connection.
The second and third embodiments of the method and the embodiment of the method of the invention are based on the same concept, and the technical effects brought by the second and third embodiments are also the same.
Referring to fig. 5, it is another schematic structural diagram of a modem according to an embodiment of the present invention, in this implementation, the modem is used to implement the method for processing network communication function abnormality described in fig. 1, the modem includes a CPU501, a memory 502, and a communication interface 503, the number of CPUs 501 in the modem may be one or more, and fig. 5 takes one CPU as an example. In some embodiments of the present invention, the CPU501, the memory 502 and the communication interface 503 may be connected by a bus or other means, and fig. 5 illustrates the bus connection as an example.
Wherein, the memory 502 stores a set of program codes, and the CPU501 is configured to call the program codes stored in the memory 502, and is configured to perform the following operations:
detecting a location update failure;
acquiring a first protocol stack currently used by the modem;
closing the first protocol stack and selecting a second protocol stack other than the first protocol stack from a plurality of protocol stacks supported by the modem;
starting the second protocol stack, and using the second protocol stack to perform network registration;
and if the network registration is successful, recording the current position information.
In some embodiments of the present invention, CPU501 is further configured to perform:
and if the network registration fails, recovering the on-off state of the default protocol stack in the plurality of supported protocol stacks or recovering the on-off state of the default protocol stack in the plurality of supported protocol stacks and simultaneously resetting the modem.
In some embodiments of the present invention, after the CPU501 executes the recording of the current location information if the network registration is successful, the CPU is further configured to execute:
when the position changes, the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks and simultaneously resets the modem.
In some embodiments of the present invention, CPU501 is further configured to perform:
if the abnormal reason of the position updating failure is not reported, acquiring the abnormal reason and the log of the position updating failure;
and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
In some embodiments of the present invention, the CPU501 performs the reporting of the abnormality cause, the current location information, and the log to the network side, including:
and scanning surrounding wifi hotspots, and after establishing communication connection with the wifi hotspots, reporting the abnormal reason, the current position information and the log to a network side through the wifi hotspots establishing communication connection.
The embodiment of the invention also provides a mobile terminal comprising the modem, and the mobile terminal comprises but is not limited to a carrier
Figure GDA0002828126500000141
Or other operating system, such as a mobile phone. Other mobile terminals are also possible, such as a laptop or tablet computer or desktop computer with a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a mobile terminal including a display and a touch-sensitive surface is presented. It should be understood, however, that the mobile terminal may include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.
Mobile terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disc editing application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications executable on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the mobile terminal may be adjusted and/or varied from one application to the next and/or within the corresponding application. In this way, a common physical architecture of the mobile terminal (such as a touch-sensitive surface) may support various applications with a user interface that is intuitive and clear to the user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for processing network communication function abnormity is characterized by comprising the following steps:
the modem detects a location update failure;
the modem acquires a first protocol stack currently used by the modem;
the modem closes the first protocol stack and selects a second protocol stack other than the first protocol stack from a plurality of protocol stacks supported by the modem;
the modem starts the second protocol stack and uses the second protocol stack to perform network registration;
if the network registration is successful, the modem records the current position information;
if the network registration fails, the modem recovers the switch state of a default protocol stack in the supported multiple protocol stacks and resets the modem at the same time, and after the modem is reset, the default protocol stack is used for network registration.
2. The method of claim 1, wherein after the modem records the current location information if the network registration is successful, the method further comprises:
when the position changes, the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks or the modem restores the switch state of the default protocol stack in the plurality of supported protocol stacks and simultaneously resets the modem.
3. The method of any of claims 1-2, further comprising:
if the abnormal reason of the position updating failure is not reported, the modem acquires the abnormal reason and the log of the position updating failure;
and the modem reports the abnormal reason, the current position information and the log to a network side and/or a user.
4. The method of claim 3, wherein the modem reporting the cause of the anomaly, the current location information, and a log to a network side, comprises:
and after surrounding wifi hotspots are scanned and communication connection is established with the wifi hotspots, the abnormal reason, the current position information and the log are reported to a network side by the modem through the wifi hotspots establishing communication connection.
5. A modem, comprising:
a detection module for detecting a location update failure;
the determining module is used for acquiring a first protocol stack currently used by the modem;
a selection module, configured to close the first protocol stack and select a second protocol stack other than the first protocol stack from a plurality of protocol stacks supported by the modem;
the registration module is used for starting the second protocol stack and using the second protocol stack to perform network registration;
the recording module is used for recording the current position information if the network registration is successful;
and the recovery module is used for recovering the on-off state of a default protocol stack in the supported multiple protocol stacks and simultaneously resetting the modem when the network registration fails, and using the default protocol stack to perform the network registration after the modem is reset.
6. The modem of claim 5, further comprising:
the recovery module is further configured to recover the switch state of the default protocol stack in the supported multiple protocol stacks or recover the switch state of the default protocol stack in the supported multiple protocol stacks and simultaneously reset the modem when the network registration is successful and the location changes.
7. The modem of claim 5 or 6, further comprising:
a reporting module, configured to obtain an abnormal reason and a log of the location update failure if the abnormal reason of the location update failure is not reported; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
8. The modem of claim 7, wherein the reporting module is specifically configured to:
and scanning surrounding wifi hotspots, and after establishing communication connection with the wifi hotspots, reporting the abnormal reason, the current position information and the log to a network side through the wifi hotspots establishing communication connection.
9. A mobile terminal, characterized in that it comprises a modem according to any of claims 5-8.
10. A storage medium having stored therein program instructions which, when executed by a modem, implement the method of any one of claims 1 to 4.
CN201810360779.6A 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal Expired - Fee Related CN108307417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810360779.6A CN108307417B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810360779.6A CN108307417B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal
CN201510827873.4A CN105490838B (en) 2015-11-24 2015-11-24 Processing method, modem and the mobile terminal of network communicating function exception

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510827873.4A Division CN105490838B (en) 2015-11-24 2015-11-24 Processing method, modem and the mobile terminal of network communicating function exception

Publications (2)

Publication Number Publication Date
CN108307417A CN108307417A (en) 2018-07-20
CN108307417B true CN108307417B (en) 2021-04-09

Family

ID=55677582

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810360779.6A Expired - Fee Related CN108307417B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal
CN201510827873.4A Active CN105490838B (en) 2015-11-24 2015-11-24 Processing method, modem and the mobile terminal of network communicating function exception

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510827873.4A Active CN105490838B (en) 2015-11-24 2015-11-24 Processing method, modem and the mobile terminal of network communicating function exception

Country Status (1)

Country Link
CN (2) CN108307417B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543477B (en) * 2019-09-23 2022-04-22 北京小米移动软件有限公司 Method, device, terminal and storage medium for sending measurement report
CN114048063A (en) * 2021-09-28 2022-02-15 北京控制工程研究所 Method and system for processing cutting machine or reset fault in driving-off process of Mars vehicle
CN117812549A (en) * 2024-02-29 2024-04-02 荣耀终端有限公司 Communication method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984795B (en) * 2012-11-19 2016-08-03 华为技术有限公司 The method realizing initiative report of position register information for terminal
KR102008842B1 (en) * 2012-11-22 2019-08-08 삼성전자주식회사 Apparatus and method for selecting network in communication system
CN104469901B (en) * 2013-09-17 2018-09-07 华为终端(东莞)有限公司 The method and device of data processing
CN103747504A (en) * 2014-01-24 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Communicator and communication method
CN104994565A (en) * 2015-06-11 2015-10-21 惠州Tcl移动通信有限公司 Method and system for quickly starting WIFI based on Cell ID

Also Published As

Publication number Publication date
CN105490838A (en) 2016-04-13
CN105490838B (en) 2018-06-29
CN108307417A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN105376773B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105357053B (en) Processing method, application processor and the user terminal of network communicating function exception
CN106686638A (en) Network communication function abnormality processing method and network communication function abnormality processing device
CN105357049B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376776A (en) Processing method of network communication function abnormity, application processor and mobile terminal
CN108601018B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN108738054B (en) Processing method for network communication function abnormity, modem, mobile terminal and storage medium
CN105338663A (en) Method for treating network communication function abnormity, modem and mobile terminal
CN105376113A (en) Processing method of network communication function abnormity, modem and mobile terminal
CN105407461A (en) Processing method for network communication function abnormality, application processor and mobile terminal
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN108684054B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105491604A (en) Network communication function abnormality processing method, modulator-demodulator and user terminal
CN108282804B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105376775A (en) Processing method of network communication function abnormity, application processor and mobile terminal
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN108462973B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105491608B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376774B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105376873B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105517029A (en) Processing method for network communication function abnormity, application processor, and mobile terminal
CN105491605A (en) Network communication function abnormality processing method, modulator-demodulator and mobile terminal
CN105357704B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105472648A (en) Network communication function abnormity processing method, modem and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210409

CF01 Termination of patent right due to non-payment of annual fee