CN108684054B - 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
CN108684054B
CN108684054B CN201810350010.6A CN201810350010A CN108684054B CN 108684054 B CN108684054 B CN 108684054B CN 201810350010 A CN201810350010 A CN 201810350010A CN 108684054 B CN108684054 B CN 108684054B
Authority
CN
China
Prior art keywords
protocol stack
modem
registration
network
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810350010.6A
Other languages
Chinese (zh)
Other versions
CN108684054A (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 CN201810350010.6A priority Critical patent/CN108684054B/en
Publication of CN108684054A publication Critical patent/CN108684054A/en
Application granted granted Critical
Publication of CN108684054B publication Critical patent/CN108684054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/04Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events

Abstract

The embodiment of the invention discloses a method for processing network communication function abnormity, which comprises the following steps: after detecting that the protocol stack registration is rejected, the modem judges whether the abnormal condition that the protocol stack registration is rejected for a set number of times occurs within set time, and if the judgment result is yes, a first protocol stack currently used by the modem is obtained; 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 an abnormality often occurs during the switching of the communication systems, so that the mobile phone cannot normally perform network communication, for example, protocol stack registration is rejected. 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 realized for a long time, the forced restart recovery is carried out on the mobile terminal manually or the configuration parameters of the modem are set. 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 that protocol stack registration is rejected;
the modem judges whether the abnormal condition that the protocol stack registration of the set times is rejected occurs within the set time;
if the judgment result is yes, 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 manner of the first aspect, in a second possible implementation manner, 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 of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the method further includes:
if the protocol stack registration rejected abnormal reason is not reported, the modem acquires the protocol stack registration rejected abnormal reason and a log;
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:
the detection module is used for detecting that the protocol stack registration is rejected;
the judging module is used for judging whether the protocol stack registration refused abnormal condition of the set times occurs within the set time;
a determining module, configured to, if the determination result is yes, obtain 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, if the rejected exception cause of the protocol stack registration is not reported, obtain the rejected exception cause of the protocol stack registration and a log; 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 modem closes the protocol stack currently used by the modem when detecting that the protocol stack registration is rejected, selects other protocol stacks except the protocol stack currently used from a plurality of protocol stacks supported by the modem, opens the other protocol stacks and registers the network by using the other protocol stacks, and records the current position information when successfully registering the network. 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 protocol stack registration is rejected.
S102, the modem judges whether the abnormal condition that the protocol stack registration of the set times is rejected occurs within the set time, if yes, the process goes to S103; otherwise, proceed to S101.
The reason for determining whether the protocol stack registration is rejected within the set time is to determine the stability of the abnormal condition detected by the modem.
S103, if the judgment result is yes, 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. For some network reasons, a legal User Equipment (UE) registration network is sometimes rejected by the network to cause no service, and the User must manually restart the network and retry the registration again, which generally includes network authentication procedure failure, subscription problem between operators during international roaming, and the like. For example: after the UE sends an Attach Request (Attach Request or LAU) message, an Attach Reject (Attach Reject) message sent by the network is received before the timer T3410 times out, where the Attach Reject message carries a reason why the network rejects the UE attachment, for example, illegal UE (illegal me), EPS service not allowed (EPS service not allowed), PLMN not allowed (PLMN not allowed), Tracking area not allowed (Tracking area not allowed), EPS service not allowed, and the like. When the UE receives the attach reject, the UE enters an Out of Service (OOS) state. 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 upon detecting rejection of protocol stack registration.
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.
S104, 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 which causes the registration of the protocol stack to be rejected, and the modem needs to close the first protocol stack to prevent the registration of the protocol stack 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 S105, 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 is switched from the connection state to the idle state, the modem opens the selected second protocol stack, and performs network registration by using the second protocol stack, where the 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 response) 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 S106, 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, the modem detects that the registration of the protocol stack is rejected, closes the protocol stack currently used by the modem, selects other protocol stacks except the protocol stack currently used from a plurality of protocol stacks supported by the modem, opens the other protocol stacks and registers the network by using the other protocol stacks, and records the current position information when the network is successfully registered. 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 protocol stack registration is rejected.
S202, the modem judges whether the abnormal condition that the protocol stack registration of the set times is rejected occurs within the set time, if so, the process goes to S204; otherwise proceed to S203.
S203, resetting the modem.
Judging whether the protocol stack registration refused abnormal condition of the set times occurs in the set time, in order to determine the stability of the abnormal condition detected by the modem; and resetting the modem, and detecting whether the abnormal condition that the protocol stack registration is rejected is detected again.
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. Due to some network reasons, the legal UE user registration network is sometimes rejected by the network to cause no service, and the user must manually restart and retry registration, which generally includes network authentication procedure failure, subscription problem between operators during international roaming, and the like. For example: after the UE sends an Attach Request (Attach Request or LAU) message, an Attach Reject (Attach Reject) message sent by the network is received before the timer T3410 times out, where the Attach Reject message carries a reason why the network rejects the UE attachment, for example, illegal UE (illegal me), EPS service not allowed (EPS service not allowed), PLMN not allowed (PLMN not allowed), Tracking area not allowed (Tracking area not allowed), EPS service not allowed, and the like. When the UE receives the attach reject, the UE enters an Out of Service (OOS) state. When protocol stack registration rejection occurs, the UE will enter a no network service state. The modem may detect that protocol stack registration is denied.
S204, 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.
S205, 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 protocol stack registration rejection, thereby causing modem exception, and the modem needs to close the first protocol stack to prevent the protocol stack registration rejection problem 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.
S206, 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 is switched from the connection state to the idle 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: initiating an attach request (attach request) to a network side by the mobile terminal, if the network side allows the mobile terminal to access, returning an attach response (attach accept) to the mobile terminal, indicating that the network registration is successful, and converting the mobile terminal from an out-of-service state to an in-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.
And S207, whether the network registration is successful or not.
Specifically, if the modem successfully registers to the network using the second protocol stack, S208 is executed, and if the modem does not successfully register to the network using the second protocol stack, S209 is executed.
And S208, 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.
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.
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 S210, 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, S211 is executed, otherwise, the modem continues to acquire the location information. 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.
S211, 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.
S212, whether the rejected abnormal reason of the protocol stack registration is reported or not is judged.
Specifically, if the rejected abnormal reason of the protocol stack registration is reported, S215 is executed; otherwise, S213 is executed.
S213, obtaining the exception reason and the log of the rejected protocol stack registration.
S214, 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 S208 is executed, S210 and S212 may be executed in parallel.
S215, the modem processes the exception and ends.
When the embodiment of the invention is implemented, the modem detects that the protocol stack registration is rejected, closes the currently used protocol stack, selects other protocol stacks except the currently used protocol stack from a plurality of supported protocol stacks, opens other protocol stacks and uses other protocol stacks to register the network, records the current position information when successfully registering the network, and restores the on-off state of the default protocol stack or resets the modem when the position is changed or the network is failed to register. 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 protocol stack registration is rejected.
S302, the modem judges whether the abnormal condition that the protocol stack registration of the set times is rejected occurs within the set time, if so, the process goes to S304; otherwise proceed to S303.
S303, resetting the modem.
Judging whether the protocol stack registration refused abnormal condition of the set times occurs in the set time, in order to determine the stability of the abnormal condition detected by the modem; and resetting the modem, and detecting whether the abnormal condition that the protocol stack registration is rejected is detected again.
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. Due to some network reasons, the legal UE user registration network is sometimes rejected by the network to cause no service, and the user must manually restart and retry registration, which generally includes network authentication procedure failure, subscription problem between operators during international roaming, and the like. For example: after the UE sends the attach request message, the attach reject message sent by the network is received before the timer T3410 times out, where the attach reject message carries the reason why the network rejects the UE to attach, for example, an illegal UE, an EPS service is not allowed, a PLMN is not allowed, a tracking area is not allowed, an EPS service is not allowed, and the like. And entering a non-service state after the UE receives the attachment rejection. When protocol stack registration rejection occurs, the UE will enter a no network service state. The modem may detect that protocol stack registration is denied.
S304, 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.
S305, 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 protocol stack registration rejection, thereby causing modem exception, and the modem needs to close the first protocol stack to prevent the protocol stack registration rejection problem 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.
S306, 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 is switched from the connection state to the idle state, the modem opens the selected second protocol stack, and performs network registration by using the second protocol stack, where the 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.
And S307, if the network registration is successful, the modem records the current position information. Then step S308 may be performed; step S310 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 S308, 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 location information acquired last time, S307 is executed, otherwise, the modem continues to acquire the location information. 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.
S309, 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 adjusting demodulator at the same time.
And S310, whether the rejected abnormal reason of the protocol stack registration is reported or not.
Specifically, if the rejected abnormal reason of the protocol stack registration is reported, S301 is executed; after the exception cause that the protocol stack registration is rejected has been reported, the user can adjust or repair the exception cause according to the exception cause, and then continue to jump to S301 to detect the exception by the modem, and if the modem still detects that the protocol stack registration is rejected, continue to execute subsequent steps such as S302. Otherwise, S311 is performed.
S311, obtaining the exception reason and the log of the rejected protocol stack registration.
S312, 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 an anomaly, and if the modem still detects that the protocol stack registration is rejected, the process continues to perform subsequent steps such as S302.
Through a circulation mode, the solution of the rejected protocol stack registration problem can be ensured, after the problem is solved, the modem can not detect that the protocol stack registration is rejected, 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 that the protocol stack registration is rejected, 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, 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: the device comprises a detection module 401, a judgment module 402, a determination module 403, a selection module 404, a registration module 405 and a recording module 406.
A detecting module 401, configured to detect that protocol stack registration is rejected.
The determining module 402 is configured to determine whether an abnormal condition that protocol stack registration is rejected for a set number of times occurs within a set time.
A determining module 403, configured to, if the determination result is yes, obtain a first protocol stack currently used by the modem.
A selecting module 404, 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.
A registering module 405, configured to start the second protocol stack, and perform network registration using the second protocol stack.
The recording module 406 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, if the rejected exception cause of the protocol stack registration is not reported, obtain the rejected exception cause of the protocol stack registration and a log; 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 503 and a communication interface 502, 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 503 and the communication interface 502 may be connected by a bus or other means, and fig. 5 illustrates the bus connection as an example.
Wherein, a set of program codes is stored in the memory 503, and the CPU501 is configured to call the program codes stored in the memory 503, and is configured to perform the following operations:
detecting that protocol stack registration is rejected;
judging whether the protocol stack registration refused abnormal condition of the set times occurs within the set time;
if the judgment result is yes, 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:
if the judgment result is negative, resetting the modem.
In some embodiments of the present invention, CPU501 is further configured to perform:
and if the network registration fails, recovering the switch state of the default protocol stack in the plurality of supported protocol stacks or recovering the switch 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 rejected abnormal reason of the protocol stack registration is not reported, acquiring the rejected abnormal reason and a log of the protocol stack registration;
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 BDA0001633138770000141
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 (9)

1. A method for processing network communication function abnormity is characterized by comprising the following steps:
the modem detects that protocol stack registration is rejected;
the modem judges whether the abnormal condition that the protocol stack registration of the set times is rejected occurs within the set time;
if the judgment result is yes, 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, resets the modem at the same time, and uses the default protocol stack to perform the 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 protocol stack registration rejected abnormal reason is not reported, the modem acquires the protocol stack registration rejected abnormal reason and a log;
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:
the detection module is used for detecting that the protocol stack registration is rejected;
the judging module is used for judging whether the protocol stack registration refused abnormal condition of the set times occurs within the set time;
a determining module, configured to, if the determination result is yes, obtain 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;
a recovery module, configured to recover, if network registration fails, an on-off state of a default protocol stack in the multiple supported protocol stacks and reset the modem at the same time;
the registration module is further configured to perform network registration using a default protocol stack after the recovery module recovers the switch state of the default protocol stack in the supported multiple protocol stacks and resets the modem at the same time.
6. The modem of claim 5, further comprising:
a reporting module, configured to, if the rejected exception cause of the protocol stack registration is not reported, obtain the rejected exception cause of the protocol stack registration and a log; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
7. The modem of claim 6, 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.
8. A mobile terminal, characterized in that it comprises a modem according to any of claims 5-7.
9. A storage medium in which program instructions are stored, which program instructions, when executed by a computer, implement the method of any one of claims 1 to 4.
CN201810350010.6A 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal Active CN108684054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810350010.6A CN108684054B (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
CN201510828304.1A CN105376783B (en) 2015-11-24 2015-11-24 Processing method, modem and the mobile terminal of network communicating function exception
CN201810350010.6A CN108684054B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510828304.1A Division CN105376783B (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
CN108684054A CN108684054A (en) 2018-10-19
CN108684054B true CN108684054B (en) 2021-05-28

Family

ID=55378492

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510828304.1A Active CN105376783B (en) 2015-11-24 2015-11-24 Processing method, modem and the mobile terminal of network communicating function exception
CN201810350010.6A Active CN108684054B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510828304.1A Active CN105376783B (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) CN105376783B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277800A (en) * 2017-07-05 2017-10-20 宇龙计算机通信科技(深圳)有限公司 Note net processing method and electronic equipment
CN113810937B (en) * 2020-10-22 2022-08-23 荣耀终端有限公司 Method, device, storage medium and chip for processing network registration exception

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100165941A1 (en) * 2006-06-28 2010-07-01 Samsung Electronics Co., Ltd. Method and system for peak scheduling in a wireless network
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal
CN103582039A (en) * 2012-08-02 2014-02-12 中兴通讯股份有限公司 Mobile phone AT command processing method and equipment in process of coverage loss and system switching
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system
CN104081826A (en) * 2012-03-16 2014-10-01 Lg电子株式会社 Method and apparatus for processing NAS signaling request in wireless communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100165941A1 (en) * 2006-06-28 2010-07-01 Samsung Electronics Co., Ltd. Method and system for peak scheduling in a wireless network
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal
CN104081826A (en) * 2012-03-16 2014-10-01 Lg电子株式会社 Method and apparatus for processing NAS signaling request in wireless communication system
CN103582039A (en) * 2012-08-02 2014-02-12 中兴通讯股份有限公司 Mobile phone AT command processing method and equipment in process of coverage loss and system switching
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system

Also Published As

Publication number Publication date
CN105376783B (en) 2018-06-29
CN108684054A (en) 2018-10-19
CN105376783A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN105376773B (en) Processing method, application processor and the mobile terminal of network communicating function exception
WO2018107895A1 (en) Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium
WO2018107892A1 (en) Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium
CN105357053A (en) Network communication functional abnormity processing method, application processor and user terminal
CN105376776A (en) Processing method of network communication function abnormity, application processor and mobile terminal
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
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
CN108684054B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105338663A (en) Method for treating network communication function abnormity, modem and mobile terminal
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105376113A (en) Processing method of 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
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
CN105376873B (en) Processing method, modem and the mobile terminal of network communicating function exception
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
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
CN105472648A (en) Network communication function abnormity processing method, modem and mobile terminal
CN105357705B (en) Processing method, application processor and the mobile terminal of network communicating function exception

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
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.

GR01 Patent grant
GR01 Patent grant