CN108419258B - 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
CN108419258B
CN108419258B CN201810123001.3A CN201810123001A CN108419258B CN 108419258 B CN108419258 B CN 108419258B CN 201810123001 A CN201810123001 A CN 201810123001A CN 108419258 B CN108419258 B CN 108419258B
Authority
CN
China
Prior art keywords
modem
protocol stack
mobile terminal
abnormal
unit
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
CN201810123001.3A
Other languages
Chinese (zh)
Other versions
CN108419258A (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 CN201810123001.3A priority Critical patent/CN108419258B/en
Publication of CN108419258A publication Critical patent/CN108419258A/en
Application granted granted Critical
Publication of CN108419258B publication Critical patent/CN108419258B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a method for processing network communication function abnormity, a modem and a mobile terminal. Wherein, the method comprises the following steps: when the modem is detected to be abnormal, restarting the modem, if the modem is still not recovered to be normal, closing the currently used first protocol stack by the modem, selecting a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem, simultaneously starting the second protocol stack, performing network registration again by using the second protocol stack, and recording the position information of the mobile terminal when the network registration is successful. Therefore, when the modem cannot normally communicate, the abnormal reason is quickly found through restarting, and when the modem is not normally restarted, the modem automatically tries to recover to normal by switching other protocol stacks to carry out network registration, so that the time for recovering network faults is reduced, and the processing efficiency of the network communication function abnormity is improved.

Description

Processing method for network communication function abnormity, modem and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method for processing network communication function abnormity, a modem and a mobile terminal.
Background
At present, the types of communication networks supported by mobile terminals such as mobile phones are increasing, for example: one mobile phone simultaneously supports 2G, 3G and 4G communication networks of different operators, so that the inconvenience of replacing the mobile phone can be eliminated. With the rapid development of the mobile internet, mobile data services have an absolute weight, and thus, the role and position of a modem in a mobile terminal have become increasingly important. The modem is mainly used for converting data to be transmitted into radio frequency signals, 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.
In practice it has been found that due to the complexity of the communication network environment, mobile terminals often need to be handed over between different types of communication networks. And an abnormality often occurs during the switching process of the communication network, so that the mobile terminal cannot normally perform networking communication. In order to solve the problem of being incapable of networking communication, the currently adopted solution is as follows: when the mobile terminal moves to a new position area, a position updating request is sent to the network server, and the network server reconfigures the mobile terminal so as to recover the configuration parameters of the modem; or after the user finds that the networking communication can not be carried out for a long time, the forced restart of the mobile terminal is carried out manually or the configuration parameters of the modem are set. However, the above two methods are used to solve the problem of network anomaly, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention discloses a processing method for network communication function abnormity, a modem and a mobile terminal, which can solve the problem of low efficiency of manually recovering a network communication function under the condition that the network communication function is abnormal and network communication cannot be realized in the prior art.
The embodiment of the invention discloses a method for processing network exception, which comprises the following steps:
when detecting that a modem of a mobile terminal is abnormal, restarting the modem by the modem;
when the modem does not recover to be normal, the modem closes a first protocol stack which is currently used, and selects a second protocol stack except 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 again;
and when the network registration is successful, the modem records the position information of the mobile terminal.
As a possible implementation manner, after the modem records the location information of the mobile terminal when the network registration is successful, the method further includes:
the modem judges whether the position information of the mobile terminal is updated;
if yes, the modem restores the on-off state of a default protocol stack in the plurality of protocol stacks.
As another possible embodiment, the method further includes:
when the modem does not recover to be normal, the modem sets the abnormality of the first protocol stack as an abnormality reason;
and when the modem returns to normal, the modem sets the abnormal common module as an abnormal reason and records the position information of the mobile terminal.
As another possible implementation, the method further includes:
and the modem reports the abnormal reason, the position information of the mobile terminal and log information recorded by the modem to a network server and/or displays the abnormal reason.
As another possible implementation manner, the reporting, by the modem, the cause of the abnormality, the location information of the mobile terminal, and log information recorded by the modem to a network server and/or displaying the cause of the abnormality includes:
when the mobile terminal is detected to be connected to a WiFi hotspot, the modem sends the abnormal reason, the position information of the mobile terminal and log information recorded by the modem to a network server through the WiFi hotspot and/or displays the abnormal reason.
Correspondingly, the embodiment of the invention discloses a modem, which comprises:
the restarting unit is used for restarting the modem when the modem is detected to be abnormal;
a shutdown unit, configured to shutdown a currently used first protocol stack when the modem is not recovered to normal after the restart unit restarts the modem;
a selecting unit, configured to select a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem;
a registration unit, configured to start the second protocol stack and perform network registration again by using the second protocol stack;
and the recording unit is used for recording the position information of the mobile terminal when the network registration is successful.
As a possible implementation, the modem further includes:
a judging unit, configured to judge whether the location information of the mobile terminal is updated after the recording unit records the location information of the mobile terminal;
and the restoring unit is used for restoring the switching state of the default protocol stack in the plurality of protocol stacks when the judging unit judges that the position information of the mobile terminal is updated.
As another possible implementation, the modem further includes:
the processing unit is used for setting the first protocol stack exception as the exception reason of the modem when the modem does not recover to normal after the modem is restarted by the restarting unit, or setting the common module exception as the exception reason of the modem when the modem recovers to normal after the modem is restarted by the restarting unit;
the recording unit is further configured to record location information of the mobile terminal when the modem returns to normal after the restarting unit restarts the modem.
As another possible implementation, the modem further includes:
and the reporting unit is used for reporting the abnormal reason of the modem, the position information of the mobile terminal and the log information recorded by the modem to a network server and/or displaying the abnormal reason.
The embodiment of the invention discloses a mobile terminal which comprises the modem.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the modem detects the self abnormality, the modem is restarted, if the modem is still not recovered to be normal after being restarted, the first protocol stack which is currently used is closed, a second protocol stack except the first protocol stack is selected from a plurality of protocol stacks supported by the modem, the second protocol stack is opened at the same time, network registration is carried out again by using the second protocol stack, and when the network registration is successful, the position information of the mobile terminal is recorded. Therefore, when the modem cannot normally communicate, the abnormal reason is quickly found through restarting, and when the modem is not normally restarted, the modem automatically tries to recover to normal by switching other protocol stacks to carry out network registration, so that the problem of overlong time consumption caused by manually and forcibly restarting the mobile terminal or updating the position is avoided, the time for recovering the network fault is shortened, and the processing efficiency of the network abnormity is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for processing network communication function abnormality according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for processing network communication function abnormality according to the embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for processing network communication function abnormality according to the 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 a schematic structural diagram of another modem disclosed in the 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.
The embodiment of the invention discloses a method for processing network communication function abnormity, a modem and a mobile terminal, which can improve the processing efficiency when the network communication function is abnormal.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for processing network communication function abnormality according to an embodiment of the present invention. As shown in fig. 1, the method for processing network communication function abnormality may include the following steps:
s101, when the abnormal condition of the modem of the mobile terminal is detected, the modem restarts the modem.
In the embodiment of the invention, the modem is used for converting baseband signals into radio frequency signals, converting the radio frequency signals into the baseband signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor and the like; the modem supports multiple protocol stacks. The modem may detect itself as abnormal or other devices of the mobile terminal (e.g., application processor, etc.) may detect whether the modem is abnormal. The cause of the modem exception may be an exception of a protocol stack in the modem, or an exception of a common module except the protocol stack in the modem, and the embodiment of the present invention is not limited. When the modem is abnormal, the mobile terminal can not process data normally, which results in that the user can not access the network.
Therefore, when the modem of the mobile terminal is detected to be abnormal, the modem may be restarted first, and the cause of the abnormality may be determined by detecting whether the modem is restored to normal after the restart. The mobile terminal may include, but is not limited to, a terminal capable of performing data services, such as a smart phone, a tablet computer, a palm computer, and an intelligent wearable device.
S102, when the modem is not recovered to be normal, the modem closes the first protocol stack which is currently used, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks which are supported by the modem.
In the embodiment of the present invention, the protocol stack represents a sum of Multiple protocols corresponding to a certain Communication System, the protocol stack may include, but is not limited to, a Global System for Mobile Communication (GSM) protocol stack, an Enhanced Data Rate for GSM Evolution (EDGE) protocol stack, a High Speed Downlink Packet Access (HSPDA) protocol stack, a Time Division-Synchronous Code Division Multiple Access (TD-SCDMA) protocol stack, a Time Division Duplex long Term Evolution (TDD-Duplex Long Term Evolution (LTE) protocol stack, a Frequency Division Duplex long Term Evolution (FDD-LTE) protocol stack, and the like, and each Communication System may include Multiple sub-protocols below, for example: the TD-LTE protocol stack includes 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, and an NAS protocol stack, and the details of the embodiments of the present invention are not repeated herein. If the modem is still not normally recovered after restarting, it may be that the currently used first protocol stack is abnormal, and therefore, the modem will shut down 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.
In the embodiment of the invention, the exception of the first protocol stack may cause memory access errors, network registration failures and the like, so that the modem can select the second protocol stack from other protocol stacks. The policy for the modem to select the second protocol stack 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 determining the second protocol stack by using other strategies, which is not limited in the embodiment of the present invention.
S103, the modem starts the second protocol stack and uses the second protocol stack to perform network registration again.
In the embodiment of the present invention, after the first protocol stack is closed, the mobile terminal is converted from the connection state to the idle state, and therefore, the modem may open the selected second protocol stack and perform network registration using the second protocol stack. For example, the LTE network registration process is: 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 out-of-service state to an in-service state; if the network side does not allow the mobile terminal to access, returning refusal or error information to the mobile terminal, which indicates that the network registration fails.
And S104, when the network registration is successful, the modem records the position information of the mobile terminal.
In the embodiment of the present invention, 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. If the modem successfully registers the network using the second protocol stack, the current location information of the mobile terminal is recorded. And if the network registration fails, the modem can reselect the protocol stack for network registration.
It can be seen that, in the method described in fig. 1, when the modem of the mobile terminal is detected to be abnormal, the modem is restarted, and if the modem is still not normal after being restarted, the modem closes the currently used first protocol stack, selects the second protocol stack except the first protocol stack from the multiple protocol stacks supported by the modem, simultaneously opens the second protocol stack, and performs network registration again using the second protocol stack, and when the network registration is successful, records the location information of the mobile terminal. Therefore, when the modem cannot normally communicate, the abnormal reason is quickly found through restarting, and when the modem is not normally restarted, the modem automatically tries to recover to normal by switching other protocol stacks to carry out network registration, so that the problem of overlong time consumption caused by manually and forcibly restarting the mobile terminal or updating the position is avoided, the time for recovering network faults is shortened, and the processing efficiency of the network communication function abnormity is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for handling network communication function abnormality according to an embodiment of the present invention. As shown in fig. 2, the method for processing network communication function abnormality may include the following steps:
s201, when the modem of the mobile terminal is detected to be abnormal, the modem restarts the modem.
In the embodiment of the invention, the modem is used for converting baseband signals into radio frequency signals, converting the radio frequency signals into the baseband signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor and the like; the modem supports multiple protocol stacks. The modem may detect itself as abnormal or other devices of the mobile terminal (e.g., application processor, etc.) may detect whether the modem is abnormal. The cause of the modem exception may be an exception of a protocol stack in the modem, or an exception of a common module except the protocol stack in the modem, and the embodiment of the present invention is not limited. When the modem is abnormal, the mobile terminal can not process data normally, which results in that the user can not access the network.
Therefore, when the modem of the mobile terminal is detected to be abnormal, the modem may be restarted first, and the cause of the abnormality may be determined by detecting whether the modem is restored to normal after the restart.
S202, when the modem does not return to normal, the modem closes the first protocol stack which is currently used, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks which are supported by the modem.
In the embodiment of the present invention, a protocol stack indicates a sum of multiple protocols corresponding to a certain communication system, the protocol stack may include, but is not limited to, a GSM protocol stack, an EDGE protocol stack, a HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack, etc., and the protocol stack of each communication system may further include multiple sub-protocol stacks below the protocol stack, for example: the TD-LTE protocol stack includes 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, and an NAS protocol stack, and the details of the embodiments of the present invention are not repeated herein. If the modem is still not normally recovered after restarting, it may be that the currently used first protocol stack is abnormal, and therefore, the modem will shut down 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.
In the embodiment of the invention, the exception of the first protocol stack may cause memory access errors, network registration failures and the like, so that the modem can select the second protocol stack from other protocol stacks. The policy for the modem to select the second protocol stack 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 determining the second protocol stack by using other strategies, which is not limited in the embodiment of the present invention.
Specifically, before the modem closes the first protocol stack currently used, the first protocol stack currently used may be obtained first, and the first protocol stack currently used may be obtained by querying a status flag bit indicating the protocol stack, where for example, a flag bit of 1 indicates that the corresponding protocol stack is in an open state, and a flag bit of 0 indicates that the corresponding protocol stack is in a closed state. After acquiring the currently used first protocol stack, the modem may change the flag bit of the first protocol stack to 0, thereby closing the first protocol stack.
S203, the modem starts the second protocol stack and uses the second protocol stack to perform network registration again.
In the embodiment of the present invention, after the first protocol stack is closed, the mobile terminal is converted from the connection state to the idle state, and therefore, the modem may open the selected second protocol stack and perform network registration using the second protocol stack. For example, the LTE network registration process is: 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 out-of-service state to an in-service state; if the network side does not allow the mobile terminal to access, returning refusal or error information to the mobile terminal, which indicates that the network registration fails.
And S204, when the network registration is successful, the modem records the position information of the mobile terminal.
In the embodiment of the present invention, 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. If the modem successfully registers the network using the second protocol stack, the current location information of the mobile terminal is recorded. And if the network registration fails, the modem can reselect the protocol stack for network registration, such as selecting a default protocol stack in a plurality of protocol stacks supported by the modem for network registration.
S205, the modem judges whether the position information of the mobile terminal is updated, if yes, step S206 is executed; if not, continue to step S205.
In the embodiment of the invention, after the modem records the position information of the mobile terminal, the mobile terminal can detect the position information in real time and send the position information to the modem, and then the modem can judge whether the position information of the mobile terminal and the position information recorded before are updated or not. If the state is updated, the modem can respectively restore a plurality of protocol stacks supported by the modem to the state before the abnormality; if not, the mobile terminal continues to detect its own location information.
S206, the modem restores the on-off state of the default protocol stack in the plurality of protocol stacks.
In the embodiment of the invention, after the modem closes the currently used first protocol stack and uses the second protocol stack to successfully perform network registration, if the position information of the mobile terminal is updated, the modem can recover the on-off state of the default protocol stack according to the known on-off state of the default protocol stack 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 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 on-off state of the default protocol stack is recovered, the modem uses the default protocol stack to perform network registration, and after the network registration is successful, the modem uses the default protocol stack to perform work.
Further, the modem may also recover the on-off state of the default protocol stack after the network registration of the second protocol stack fails, and perform the network registration using the default protocol stack.
It can be seen that, in the method described in fig. 2, when the modem of the mobile terminal is detected to be abnormal, the modem is restarted, and if the modem is still not normal after being restarted, the modem closes the currently used first protocol stack, selects the second protocol stack except the first protocol stack from the plurality of protocol stacks supported by the modem, simultaneously opens the second protocol stack, and performs network registration again using the second protocol stack, and when the network registration is successful, records the location information of the mobile terminal. Therefore, when the modem cannot normally communicate, the abnormal reason is quickly found through restarting, when the modem is not normally restarted, the modem automatically tries to recover to normal by switching other protocol stacks to carry out network registration, and the switching state of the default protocol stack is recovered after the position information of the mobile terminal is changed, so that the problem of overlong time consumption caused by manually and forcibly restarting the mobile terminal or updating the position is avoided, the time for recovering network faults is shortened, and the processing efficiency of network communication function abnormity is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for processing network communication function abnormality according to another embodiment of the present invention. As shown in fig. 3, the method for processing network communication function abnormality may include the following steps:
s301, when detecting abnormal modem of mobile terminal, the modem restarts the modem.
In the embodiment of the invention, the modem is used for converting baseband signals into radio frequency signals, converting the radio frequency signals into the baseband signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor and the like; the modem supports multiple protocol stacks. The modem may detect itself as abnormal or other devices of the mobile terminal (e.g., application processor, etc.) may detect whether the modem is abnormal. The cause of the modem exception may be an exception of a protocol stack in the modem, or an exception of a common module except the protocol stack in the modem, and the embodiment of the present invention is not limited. When the modem is abnormal, the mobile terminal can not process data normally, which results in that the user can not access the network.
Therefore, when the modem of the mobile terminal is detected to be abnormal, the modem may be restarted first, and the cause of the abnormality may be determined by detecting whether the modem is restored to normal after the restart.
S302, the modem judges whether to recover to normal, if so, the step S303 is executed; if not, go to step S306.
In the embodiment of the invention, after the modem is restarted, whether the modem is recovered to be normal or not is judged, if the modem is recovered to be normal, the first protocol stack used currently is obtained, and the first protocol stack is closed; and if the normal state is not recovered, recording the position information of the mobile terminal.
And S303, when the modem does not recover to be normal, the modem closes the currently used first protocol stack, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem.
In the embodiment of the present invention, a protocol stack indicates a sum of multiple protocols corresponding to a certain communication system, the protocol stack may include, but is not limited to, a GSM protocol stack, an EDGE protocol stack, a HSPDA protocol stack, a TD-SCDMA protocol stack, a TDD-LTE protocol stack, an FDD-LTE protocol stack, etc., and the protocol stack of each communication system may further include multiple sub-protocol stacks below the protocol stack, for example: the TD-LTE protocol stack includes 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, and an NAS protocol stack, and the details of the embodiments of the present invention are not repeated herein. If the modem is still not normally recovered after restarting, it may be that the currently used first protocol stack is abnormal, and therefore, the modem will shut down 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.
In the embodiment of the invention, the exception of the first protocol stack may cause memory access errors, network registration failures and the like, so that the modem can select the second protocol stack from other protocol stacks. The policy for the modem to select the second protocol stack 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 determining the second protocol stack by using other strategies, which is not limited in the embodiment of the present invention.
As a possible implementation manner, after the modem is restarted, if the modem does not recover to normal, the first protocol stack exception is indicated, and therefore, the modem sets the first protocol stack exception as the exception reason of the modem.
S304, the modem starts the second protocol stack and uses the second protocol stack to perform network registration again.
In the embodiment of the present invention, after the first protocol stack is closed, the mobile terminal is converted from the connection state to the idle state, and therefore, the modem may open the selected second protocol stack and perform network registration using the second protocol stack. For example, the LTE network registration process is: 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 out-of-service state to an in-service state; if the network side does not allow the mobile terminal to access, returning refusal or error information to the mobile terminal, which indicates that the network registration fails.
S305, the modem judges whether the network registration is successful, if so, the step S306 is executed; if not, go to step S303.
In the embodiment of the invention, after the modem uses the second protocol stack to perform network registration, whether the network registration is successful or not is judged, if so, the position information of the mobile terminal is recorded, and if not, the protocol stack can be reselected and selected to perform the network registration, for example, a default protocol stack in a plurality of protocol stacks supported by the modem is selected to perform the network registration.
S306, the modem records the position information of the mobile terminal.
In the embodiment of the invention, after the modem is restarted, if the modem is recovered to be normal, the common module of the modem is indicated to be abnormal, and therefore, the modem sets the common abnormality as the abnormal reason of the modem. The common module refers to other common modules except for a protocol stack, such as a module of an interface between a modem and an application processor, and the communication function of the whole modem is abnormal due to the abnormal common module, so that the mobile terminal cannot surf the internet.
Further, if the modem successfully performs network registration using the second protocol stack, the modem also records the location information of the mobile terminal. And judging whether the position information of the mobile terminal is updated in real time, and if so, recovering the on-off state of the default protocol stack.
S307, the modem judges whether the abnormal reason of the modem is reported, if so, the process is ended; if not, go to step S308.
In the embodiment of the invention, the abnormal reason can be represented by the reason code, different abnormal reasons correspond to different reason codes, and the abnormal reason can be represented by a text description mode. If the abnormal reason is not reported, reporting the abnormal reason, the position information of the mobile terminal and the working log information of the modem to a network server; if the abnormal reason is reported, the modem will continue to detect whether itself is abnormal, and end the current abnormal processing operation.
It should be noted that, after recovering the abnormal record of the location information of the mobile terminal after restarting the modem, it can be determined whether the abnormal reason of the modem has been reported; or after the position information of the mobile terminal is updated and the switch state of the default protocol stack is recovered, whether the abnormal reason of the modem is reported or not can be judged.
S308, the modem reports the abnormal reason, the position information of the mobile terminal and the log information recorded by the modem to a network server and/or displays the abnormal reason, and the process is ended.
In the embodiment of the invention, the working log information of the modem is recorded in the working process of the modem. When the abnormal reason is judged not to be reported by the modem, the abnormal reason, the position information of the mobile terminal and the log information recorded by the modem are reported to the network server. Wherein, the log information represents the operation information of the modem in the working process, and the operation information comprises: operation instruction, operation time and return result.
Specifically, the specific way for reporting the abnormal reason, the location information of the mobile terminal, and the log information recorded by the modem to the network server and/or displaying the abnormal reason by the modem may be:
and when the mobile terminal is detected to be connected to the WiFi hotspot, the abnormal reason, the position information of the mobile terminal and the log information recorded by the modem are sent to a network server through the WiFi hotspot and/or the abnormal reason is displayed.
That is to say, when the mobile terminal is connected to the WiFi hotspot, the modem can report the abnormality cause, the location information of the mobile terminal, and the log information recorded by the modem to the network server through the WiFi hotspot, so as to save traffic. The modem can also display the abnormal reason on a display interface of the mobile terminal for the user to view.
It can be seen that, in the method described in fig. 3, when the modem of the mobile terminal is detected to be abnormal, the modem is restarted, and if the modem is still not normal after being restarted, the modem closes the currently used first protocol stack, selects the second protocol stack except the first protocol stack from the plurality of protocol stacks supported by the modem, simultaneously opens the second protocol stack, and performs network registration again using the second protocol stack, and when the network registration is successful, records the location information of the mobile terminal. Therefore, when the modem cannot normally communicate, the abnormal reason is quickly found through restarting, when the modem is not normally restarted, the modem automatically tries to recover to normal by switching other protocol stacks to carry out network registration, and the switching state of the default protocol stack is recovered after the position information of the mobile terminal is changed, so that the problem of overlong time consumption caused by manually and forcibly restarting the mobile terminal or updating the position is avoided, the time for recovering network faults is shortened, and the processing efficiency of network communication function abnormity is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a modem according to an embodiment of the present invention. The modem 400 shown in fig. 4 may be applied to a mobile terminal capable of performing data services, such as a smart phone, a tablet computer, a palmtop computer, and an intelligent wearable device. As shown in fig. 4, the modem 400 may include the following elements:
a restarting unit 401 for restarting the modem 400 when detecting that the modem 400 is abnormal.
A shutdown unit 402, configured to shutdown a currently used first protocol stack when the modem 400 is not recovered to be normal after the restarting unit 401 restarts the modem 400.
An selecting unit 403 is configured to select a second protocol stack, which is different from the first protocol stack, from the plurality of protocol stacks supported by the modem 400.
A registering unit 404, configured to open the second protocol stack and perform network registration again using the second protocol stack.
A recording unit 405, configured to record location information of the mobile terminal when the network registration is successful.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another modem according to an embodiment of the present invention. The modem 400 shown in fig. 5 is optimized based on the modem 400 shown in fig. 4. As shown in fig. 5, the modem 400 may further include the following units:
a determining unit 406, configured to determine whether the location information of the mobile terminal is updated after the recording unit 405 records the location information of the mobile terminal.
A restoring unit 407, configured to restore the on/off state of a default protocol stack in the multiple protocol stacks when the determining unit 406 determines that the location information of the mobile terminal is updated.
As a possible implementation manner, when the registration unit 404 fails to register the network using the second protocol stack, the recovery unit 407 may also recover the switch state of a default protocol stack in the plurality of protocol stacks.
As another possible implementation, the modem 400 may further include a processing unit 408 and a reporting unit 409, where:
a processing unit 408, configured to set the first protocol stack exception as the exception cause of the modem 400 when the modem 400 is not recovered to be normal after the restarting unit 401 restarts the modem 400, or set the common module exception of the modem as the exception cause of the modem 400 when the modem 400 is recovered to be normal after the restarting unit 401 restarts the modem 400.
The recording unit 405 is further configured to record the location information of the mobile terminal when the modem 400 is recovered to be normal after the restarting unit 401 restarts the modem 400.
A reporting unit 409, configured to report the abnormal reason, the location information of the mobile terminal, and the log information recorded by the modem 400 to a network server and/or display the abnormal reason.
Specifically, the specific way for reporting the abnormal reason, the location information of the mobile terminal, and the log information recorded by the modem 400 to the network server and/or displaying the abnormal reason by the reporting unit 409 may be:
when it is detected that the mobile terminal is connected to the WiFi hotspot, the abnormality cause, the location information of the mobile terminal, and the log information recorded by the modem 400 are transmitted to the network server through the WiFi hotspot and/or displayed.
It can be seen that, in the modems described in fig. 4 and 5, when the modem of the mobile terminal is detected to be abnormal, the modem is restarted, and if the modem is still not normal after being restarted, the modem closes the currently used first protocol stack, selects the second protocol stack except the first protocol stack from the multiple protocol stacks supported by the modem, simultaneously opens the second protocol stack, and performs network registration again using the second protocol stack, and when the network registration is successful, records the location information of the mobile terminal. Therefore, when the modem cannot normally communicate, the abnormal reason is quickly found through restarting, when the modem is not normally restarted, the modem automatically tries to recover to normal by switching other protocol stacks to carry out network registration, and the switching state of the default protocol stack is recovered after the position information of the mobile terminal is changed, so that the problem of overlong time consumption caused by manually and forcibly restarting the mobile terminal or updating the position is avoided, the time for recovering network faults is shortened, and the processing efficiency of network communication function abnormity is improved.
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.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (9)

1. A method for processing network communication function abnormity is characterized by comprising the following steps:
when detecting that a modem of a mobile terminal is abnormal, restarting the modem by the modem, and performing network registration by using a first protocol stack currently used by the modem after restarting the modem;
when the modem is still not recovered to be normal after restarting, the modem closes a first protocol stack which is currently used, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks which are supported by the modem; the modem starts the second protocol stack and uses the second protocol stack to perform network registration again; when the network registration is successful, the modem records the position information of the mobile terminal;
wherein, after the modem records the location information of the mobile terminal when the network registration is successful, the method further comprises:
the modem judges whether the position information of the mobile terminal is updated; if yes, the modem restores the on-off state of a default protocol stack in the plurality of protocol stacks.
2. The method of claim 1, further comprising: when the modem is still not recovered to be normal after restarting, the modem sets the abnormality of the first protocol stack as an abnormality reason; and when the modem returns to normal, the modem sets the abnormal common module as an abnormal reason and records the position information of the mobile terminal.
3. The method of claim 2, further comprising:
and the modem reports the abnormal reason, the position information of the mobile terminal and log information recorded by the modem to a network server and/or displays the abnormal reason.
4. The method according to claim 3, wherein the reporting and/or displaying, by the modem, the cause of the abnormality, the location information of the mobile terminal, and log information recorded by the modem to a network server comprises:
when the mobile terminal is detected to be connected to a WiFi hotspot, the modem sends the abnormal reason, the position information of the mobile terminal and log information recorded by the modem to a network server through the WiFi hotspot and/or displays the abnormal reason.
5. A modem for use in a mobile terminal, comprising:
the restarting unit is used for restarting the modem when the modem is detected to be abnormal, and using a first protocol stack currently used by the modem to perform network registration after the modem is restarted;
a shutdown unit, configured to shutdown a currently used first protocol stack when the modem is not recovered to normal after the restart unit restarts the modem;
a selecting unit, configured to select a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem;
a registration unit, configured to start the second protocol stack and perform network registration again by using the second protocol stack;
the recording unit is used for recording the position information of the mobile terminal when the network registration is successful;
wherein the modem further comprises:
a judging unit, configured to judge whether the location information of the mobile terminal is updated after the recording unit records the location information of the mobile terminal;
and the restoring unit is used for restoring the switching state of the default protocol stack in the plurality of protocol stacks when the judging unit judges that the position information of the mobile terminal is updated.
6. The modem of claim 5, further comprising:
the processing unit is used for setting the first protocol stack exception as the exception reason of the modem when the modem does not recover to normal after the modem is restarted by the restarting unit, or setting the common module exception as the exception reason of the modem when the modem recovers to normal after the modem is restarted by the restarting unit;
the recording unit is further configured to record location information of the mobile terminal when the modem returns to normal after the restarting unit restarts the modem.
7. The modem of claim 6, further comprising:
and the reporting unit is used for reporting the abnormal reason of the modem, the position information of the mobile terminal and the log information recorded by the modem to a network server and/or displaying the abnormal reason.
8. A mobile terminal, characterized in that it comprises a modem according to any of claims 5 to 7.
9. A computer storage medium, characterized in that it stores a computer program for causing a modem of a mobile terminal to perform the method of any one of claims 1 to 4.
CN201810123001.3A 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal Active CN108419258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810123001.3A CN108419258B (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
CN201810123001.3A CN108419258B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal
CN201510830460.1A CN105517030B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, modem and mobile terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510830460.1A Division CN105517030B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, modem and mobile terminal

Publications (2)

Publication Number Publication Date
CN108419258A CN108419258A (en) 2018-08-17
CN108419258B true CN108419258B (en) 2021-06-01

Family

ID=55724590

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810123001.3A Active CN108419258B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, modem and mobile terminal
CN201510830460.1A Active CN105517030B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, modem and mobile terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510830460.1A Active CN105517030B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, modem and mobile terminal

Country Status (1)

Country Link
CN (2) CN108419258B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130763A (en) * 2016-06-24 2016-11-16 平安科技(深圳)有限公司 Server cluster and be applicable to the database resource group method for handover control of this cluster
CN109634778B (en) * 2018-11-16 2024-01-26 歌尔股份有限公司 Method and device for restoring factory settings and electronic equipment
CN110264716A (en) * 2019-06-25 2019-09-20 徐海连 A kind of intelligent transportation system and application method based on Internet of Things
CN111405546B (en) * 2020-03-03 2023-12-08 Oppo广东移动通信有限公司 Call abnormity processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777539A (en) * 2012-10-22 2014-05-07 北京国通创安报警网络技术有限公司 System self-repairing controller
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system
CN104469901A (en) * 2013-09-17 2015-03-25 华为终端有限公司 Method and device for data processing
CN104657251A (en) * 2015-02-04 2015-05-27 广东小天才科技有限公司 Method and device for monitoring use state of electronic equipment
CN104994565A (en) * 2015-06-11 2015-10-21 惠州Tcl移动通信有限公司 Method and system for quickly starting WIFI based on Cell ID

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8064403B2 (en) * 2007-08-17 2011-11-22 Research In Motion Limited Mobility mechanism for service continuity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777539A (en) * 2012-10-22 2014-05-07 北京国通创安报警网络技术有限公司 System self-repairing controller
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system
CN104469901A (en) * 2013-09-17 2015-03-25 华为终端有限公司 Method and device for data processing
CN104657251A (en) * 2015-02-04 2015-05-27 广东小天才科技有限公司 Method and device for monitoring use state of electronic equipment
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
CN108419258A (en) 2018-08-17
CN105517030A (en) 2016-04-20
CN105517030B (en) 2018-03-02

Similar Documents

Publication Publication Date Title
CN108419258B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376785A (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105376773A (en) Network communication function anomaly processing method, application processor and mobile terminal
CN106686638A (en) Network communication function abnormality processing method and network communication function abnormality processing device
CN108601018B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN106686637A (en) Processing method of network communication function abnormities and processing device
CN105376776A (en) Processing method of network communication function abnormity, application processor and mobile terminal
CN105357049B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN106488491A (en) The abnormal processing method and processing device of network communicating function
CN108738054B (en) Processing method for network communication function abnormity, modem, mobile terminal and storage medium
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376113A (en) Processing method of network communication function abnormity, modem and mobile terminal
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105407461A (en) Processing method for network communication function abnormality, application processor and mobile terminal
CN105338663A (en) Method for treating network communication function abnormity, modem and mobile terminal
CN105376775B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN108282804B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN108684054B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108599987B (en) Processing method for network communication function abnormity, application processor and user terminal
CN108683525B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105515824A (en) Processing method for network communication function abnormity and modem
CN108462973B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376778A (en) Processing method of network communication function abnormity and mobile terminal
CN105376774B (en) Processing method, modem 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: 523860 No. 18 Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

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

GR01 Patent grant
GR01 Patent grant