CN108347740B - Processing method for network communication function abnormity and application processor - Google Patents

Processing method for network communication function abnormity and application processor Download PDF

Info

Publication number
CN108347740B
CN108347740B CN201810311652.5A CN201810311652A CN108347740B CN 108347740 B CN108347740 B CN 108347740B CN 201810311652 A CN201810311652 A CN 201810311652A CN 108347740 B CN108347740 B CN 108347740B
Authority
CN
China
Prior art keywords
modem
protocol stack
application processor
mobile terminal
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810311652.5A
Other languages
Chinese (zh)
Other versions
CN108347740A (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 CN201810311652.5A priority Critical patent/CN108347740B/en
Publication of CN108347740A publication Critical patent/CN108347740A/en
Application granted granted Critical
Publication of CN108347740B publication Critical patent/CN108347740B/en
Expired - Fee Related 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

Landscapes

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

Abstract

The embodiment of the invention discloses a method for processing network communication function abnormity and an application processor, wherein the method comprises the following steps: when receiving an abnormal indication message sent by a modem in the mobile terminal, an application processor in the mobile terminal detects whether a public module in the modem is abnormal or not; if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the application processor starts a second protocol stack and uses the second protocol stack to perform network registration again; and when the network registration is successful, the application processor records the current position information of the mobile terminal. Therefore, by implementing the embodiment of the invention, when the modem is abnormal, the application processor can quickly restore the modem to be normal by switching other protocol stacks to carry out network registration, thereby quickly solving the problem of abnormal network communication function.

Description

Processing method for network communication function abnormity and application processor
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for processing network communication function abnormality and an application processor.
Background
With the development of communication technology, the role and status of modems in mobile terminals such as mobile phones are becoming more and more important. The modem is used for converting data to be transmitted into radio frequency signals, converting received radio frequency signals into data to be processed, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with the AP processor and the like. However, as the types of communication networks supported by the mobile terminal are more and more, and the environment of the communication networks is more and more complicated, the modem of the mobile terminal is often abnormal during the switching process of the communication networks, which results in abnormal network communication function, i.e. the mobile terminal cannot normally perform network communication. The current solution adopted for solving the problem of different network communication functions is as follows: when the mobile terminal moves to a new position area, a position updating request is sent to the network side, and the network side reconfigures the mobile terminal again to recover the configuration parameters of the modem; or the user manually performs forced restart on the modem of the mobile terminal, and restores or sets the configuration parameters of the modem. However, both schemes consume too long time, and the abnormal network communication function cannot be solved quickly.
Disclosure of Invention
The embodiment of the invention discloses a processing method of network communication function abnormity and an application processor, which can rapidly solve the problem of network communication function abnormity.
The first aspect of the embodiment of the invention discloses a method for processing network communication function abnormity, which comprises the following steps:
when receiving an abnormal indication message sent by a modem in a mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal or not, wherein the abnormal indication message is used for indicating that the modem is abnormal;
if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem;
the application processor starts the second protocol stack and uses the second protocol stack to perform network registration again;
and when the network registration is successful, the application processor records the current position information of the mobile terminal.
In a first possible implementation manner of the first aspect of the embodiment of the present invention, after the application processor records the current location information of the mobile terminal, the method further includes:
the application processor detects whether the position information of the mobile terminal is changed;
if yes, the application processor restores the default protocol stack switch state in the plurality of supported protocol stacks or the application processor restores the default protocol stack switch state in the plurality of supported protocol stacks and simultaneously resets the modem.
In a second possible implementation manner of the first aspect of the embodiment of the present invention, after the detecting, by the application processor, that a common module in the modem is normal, the method further includes:
and the application processor sets the first protocol stack exception as the exception reason of the modem and records the exception reason.
With reference to the second possible implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
the application processor judges whether the abnormal reason is reported or not;
and if the abnormal reason is not reported, the application processor reports the recorded abnormal reason, the position information of the mobile terminal and log information to the network side and/or displays the abnormal reason.
With reference to the third possible implementation manner of the first aspect of the present invention, in a fourth possible implementation manner of the first aspect of the present invention, the reporting, by the application processor, the recorded cause of the abnormality, the location information of the mobile terminal, and the log information to the network side includes:
and the application processor scans surrounding wifi hotspots and reports the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side through the wifi hotspots which establish communication connection after establishing communication connection with the wifi hotspots.
A second aspect of the embodiments of the present invention discloses an application processor, including:
the mobile terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a public module in a modem is abnormal or not when receiving an abnormal indication message sent by the modem in the mobile terminal, and the abnormal indication message is used for indicating the abnormality of the modem;
a closing module, configured to close a first protocol stack currently used by the modem when the detection module detects that a common module in the modem is normal, and select a second protocol stack, other than the first protocol stack, from multiple protocol stacks supported by the modem;
the starting module is used for starting the second protocol stack and using the second protocol stack to perform network registration again;
and the recording module is used for recording the current position information of the mobile terminal when the network registration is successful.
In a first possible implementation manner of the second aspect of the embodiment of the present invention, the application processor further includes: a recovery module, wherein:
the detection module is further configured to detect whether the position information of the mobile terminal changes after the recording module records the current position information of the mobile terminal;
the recovery module is configured to recover the default protocol stack switch states in the supported multiple protocol stacks or recover the default protocol stack switch states in the supported multiple protocol stacks and simultaneously reset the modem when the detection module detects that the location information of the mobile terminal changes.
In a second possible implementation manner of the second aspect of the embodiment of the present invention, the recording module is further configured to set the first protocol stack exception as an exception cause of the modem after the detecting module detects that a common module in the modem is normal, and record the exception cause.
With reference to the second possible implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect of the embodiment of the present invention, the application processor further includes:
the judging module is used for judging whether the abnormal reason is reported or not;
and the reporting module is used for reporting the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side and/or displaying the abnormal reason when the judging module judges that the abnormal reason is not reported.
With reference to the third possible implementation manner of the second aspect of the present invention, in a fourth possible implementation manner of the second aspect of the present invention, the reporting module reports the recorded cause of the abnormality, the location information of the mobile terminal, and the log information to the network side specifically includes:
and the reporting module scans surrounding wifi hotspots and reports the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side through the wifi hotspots which establish communication connection after establishing communication connection with the wifi hotspots.
In the embodiment of the invention, when receiving an abnormal indication message sent by a modem in the mobile terminal, an application processor in the mobile terminal detects whether a public module in the modem is abnormal or not; if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the application processor starts a second protocol stack and uses the second protocol stack to perform network registration again; and when the network registration is successful, the application processor records the current position information of the mobile terminal. Therefore, by implementing the embodiment of the invention, when the modem is abnormal, the application processor can quickly restore the modem to be normal by switching other protocol stacks to carry out network registration, thereby quickly solving the problem of abnormal network communication function.
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 embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to 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 flow chart 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 an application processor according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another application processor according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another application processor 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 some, not all, embodiments of the present invention. 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 processing method of network communication function abnormity and an application processor, which can rapidly solve the problem of network communication function abnormity. The following are detailed below.
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 receiving an abnormal indication message sent by a modem in the mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal.
In the embodiment of the present invention, the Application Processor is fully referred to as MAP (Multimedia Application Processor, MAP for short), and is a very large scale integrated circuit for extending audio and video functions and dedicated interfaces on the basis of a low power consumption CPU, and is an important component in a mobile terminal (such as a smart phone, a palm computer, a notebook computer, etc.), and the Application Processor and the baseband Processor are generally two independent chips. A Modem (Modem) is located in a mobile terminal (e.g., a smart phone, a palm pc, a notebook computer, etc.), and the Modem is used to convert a baseband signal into a radio frequency signal, convert a radio frequency signal into a baseband signal, process signaling of an Access Stratum (AS) and a non-access stratum (NAS), interface with an AP processor, and the like. The modem includes a common module for configuring configuration parameters in the modem and a protocol stack. The protocol stack represents a sum of a plurality of protocols corresponding to a certain communication system, for example: the protocol stack includes a Global System for Mobile communications (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-LTE) protocol stack, a Frequency Division Duplex Long Term Evolution (FDD) protocol stack, and the like, and a plurality of sub-stack protocols are further included below each Communication System protocol stack, which is not repeated here.
In the embodiment of the invention, the modem abnormity can comprise protocol stack abnormity and public module abnormity, and when the modem is abnormal, the modem cannot normally process data, so that a user cannot surf the internet.
In the embodiment of the present invention, the abnormality indication message is used to indicate that the modem is abnormal. When the application processor receives an abnormality indication message transmitted from the modem, the application processor detects whether a common module in the modem is abnormal. If the application processor detects an anomaly in the common module within the modem, the application processor optionally restarts the modem to resolve the anomaly in the common module. If the application processor detects that the common module in the modem is normal, it indicates that the cause of the abnormality of the modem is abnormal in the protocol stack, and step S102 is executed.
S102, the application processor closes a first protocol stack currently used by the modem, 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 invention, when a public module in the modem is normal, the application processor determines that a protocol stack in the modem is abnormal, and the first protocol stack is a protocol stack causing the abnormality of the modem. The application processor needs to shut down the first protocol stack to prevent the first protocol stack from continuing to cause an exception to the modem, and selects a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem. The policy for the application processor 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 other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
S103, the application processor starts a second protocol stack and performs network registration again by using the second protocol stack.
In the embodiment of the present invention, specifically, after the application processor closes the first protocol stack, the mobile terminal is converted from the connection state to the idle state, and the application processor opens the selected second protocol stack and performs network registration using the second protocol stack. The network registration process comprises the following steps: 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 S104, when the network registration is successful, the application processor records the current position information of the mobile terminal.
In this embodiment of the present invention, 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 Identity (CID), a Location Area Code (LAC), a Location tracking Area, or the like. And if the application processor successfully registers the network by using the second protocol stack, the application processor records the current position information of the mobile terminal.
In this embodiment of the present invention, optionally, when the network registration fails, the application processor recovers the switch state of a default protocol stack in the plurality of protocol stacks supported by the modem or recovers the switch state of a default protocol stack in the plurality of protocol stacks supported by the modem, and resets the modem. Specifically, the default protocol stack is a preset protocol stack, and the default protocol stack is one of a plurality of protocol stacks supported by the modem. 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 multiple regions in a certain area, respectively. If the second protocol stack fails to register the network, the application processor starts a preset default protocol stack and resets the modem, and after the reset operation, the modem works by using the default protocol stack.
In the method depicted in fig. 1, upon receiving an abnormality indication message transmitted from a modem in a mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal; if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the application processor starts a second protocol stack and uses the second protocol stack to perform network registration again; and when the network registration is successful, the application processor records the current position information of the mobile terminal. Therefore, by implementing the embodiment of the invention, when the modem is abnormal, the application processor can quickly restore the modem to be normal by switching other protocol stacks to carry out network registration, thereby quickly solving the problem of abnormal network communication function.
Referring to fig. 2, fig. 2 is a schematic 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 receiving an abnormal indication message sent by a modem in the mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal.
In the embodiment of the invention, the modem abnormity can comprise protocol stack abnormity and public module abnormity, and when the modem is abnormal, the modem cannot normally process data, so that a user cannot surf the internet.
In the embodiment of the present invention, the abnormality indication message is used to indicate that the modem is abnormal. When the application processor receives an abnormality indication message transmitted from the modem, the application processor detects whether a common module in the modem is abnormal. If the application processor detects an anomaly in the common module within the modem, the application processor optionally restarts the modem to resolve the anomaly in the common module. If the application processor detects that the common module in the modem is normal, it indicates that the abnormality of the modem is due to the abnormal protocol stack, and then step S202 is executed.
S202, the application processor closes a first protocol stack currently used by the modem, 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 invention, when a public module in the modem is normal, the application processor determines that a protocol stack in the modem is abnormal, and the first protocol stack is a protocol stack causing the abnormality of the modem. The application processor needs to shut down the first protocol stack to prevent the first protocol stack from continuing to cause an exception to the modem, and selects a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem. The policy for the application processor 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 other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
S203, the application processor starts a second protocol stack and uses the second protocol stack to perform network registration again.
In the embodiment of the present invention, specifically, after the application processor closes the first protocol stack, the mobile terminal is converted from the connection state to the idle state, and the application processor opens the selected second protocol stack and performs network registration using the second protocol stack. The network registration process comprises the following steps: 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 S204, when the network registration is successful, the application processor records the current position information of the mobile terminal.
In this embodiment of the present invention, 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 Identity (CID), a Location Area Code (LAC), a Location tracking Area, or the like. And if the application processor successfully registers the network by using the second protocol stack, the application processor records the current position information of the mobile terminal.
S205, the application processor detects whether the position information of the mobile terminal is changed.
Specifically, after recording the current position information of the mobile terminal, the application processor periodically acquires the position information of the mobile terminal and compares the periodically acquired position information with the recorded position information; when the periodically acquired position information changes compared with the recorded position information, step S206 is executed, otherwise, the position information continues to be acquired. 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 application processor acquiring the position information is not limited in the present invention, and can be set according to actual requirements.
S206, the application processor recovers the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem or recovers the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem and simultaneously resets the modem.
In the embodiment of the invention, when the position information acquired periodically changes compared with the recorded position information, the application processor restores the default protocol stack switch state or restores the default protocol stack switch state according to the known default protocol stack switch state in advance and simultaneously resets the modem. The default protocol stack is a preset protocol stack in a plurality of protocol stacks supported by the modem. 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 multiple regions in a certain area, respectively. After the reset operation is carried out, the application processor uses the default protocol stack to carry out network registration, and after the network registration is successful, the application processor uses the default protocol stack to work.
In the method depicted in fig. 2, upon receiving an abnormality indication message transmitted from a modem in a mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal; if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the application processor starts a second protocol stack and uses the second protocol stack to perform network registration again; and when the network registration is successful, the application processor records the current position information of the mobile terminal. Therefore, by implementing the embodiment of the invention, when the modem is abnormal, the application processor can quickly restore the modem to be normal by switching other protocol stacks to carry out network registration, thereby quickly solving the problem of abnormal network communication function.
Referring to fig. 3, fig. 3 is a flowchart illustrating another method for handling network communication function abnormality according to an 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 receiving an abnormal indication message sent by a modem in the mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal.
In the embodiment of the invention, the modem abnormity can comprise protocol stack abnormity and public module abnormity, and when the modem is abnormal, the modem cannot normally process data, so that a user cannot surf the internet.
In the embodiment of the present invention, the abnormality indication message is used to indicate that the modem is abnormal. When the application processor receives an abnormality indication message transmitted from the modem, the application processor detects whether a common module in the modem is abnormal. If the application processor detects an anomaly in the common module within the modem, the application processor optionally restarts the modem to resolve the anomaly in the common module. If the application processor detects that the common module in the modem is normal, it indicates that the abnormality of the modem is due to the abnormal protocol stack, and then step S302 is executed.
S302, the application processor closes the first protocol stack currently used by the modem, 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 invention, when a public module in the modem is normal, the application processor determines that a protocol stack in the modem is abnormal, and the first protocol stack is a protocol stack causing the abnormality of the modem. The application processor needs to shut down the first protocol stack to prevent the first protocol stack from continuing to cause an exception to the modem, and selects a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem. The policy for the application processor 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 other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
And S303, the application processor starts a second protocol stack and performs network registration again by using the second protocol stack.
In the embodiment of the present invention, specifically, after the application processor closes the first protocol stack, the mobile terminal is converted from the connection state to the idle state, and the application processor opens the selected second protocol stack and performs network registration using the second protocol stack. The network registration process comprises the following steps: 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.
S304, when the network registration is successful, the application processor records the current position information of the mobile terminal.
In this embodiment of the present invention, 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 Identity (CID), a Location Area Code (LAC), a Location tracking Area, or the like. And if the application processor successfully registers the network by using the second protocol stack, the application processor records the current position information of the mobile terminal.
S305, the application processor sets the first protocol stack exception as the exception reason of the modem and records the exception reason.
In the embodiment of the invention, after the application processor detects that the public module in the modem is normal, the application processor sets the first protocol stack exception as the exception reason of the modem and records the exception reason.
S306, the application processor judges whether the abnormal reason is reported.
Specifically, the abnormal reason of the first protocol stack abnormality may be represented by a reason code, different abnormal reasons correspond to different reason codes, and the abnormal reason may be represented by a text description mode, and if the abnormal reason of the first protocol stack abnormality is not reported, S307 is executed.
And S307, the application processor reports the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side and/or displays the abnormal reason.
In the embodiment of the invention, if the application processor judges that the abnormal reason of the first protocol stack abnormality is not reported, the application processor reports the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side so that an engineer can make an abnormality solution according to the reported information. Specifically, the application processor can report the information to the network side through the wifi hotspot under the condition that the mobile terminal is connected with the wifi hotspot, so as to save the flow. Or the application processor can also display the abnormal reason on a display screen of the mobile terminal for the user to check.
In the method depicted in fig. 3, upon receiving an abnormality indication message transmitted from a modem in the mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal; if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the application processor starts a second protocol stack and uses the second protocol stack to perform network registration again; and when the network registration is successful, the application processor records the current position information of the mobile terminal. Therefore, by implementing the embodiment of the invention, when the modem is abnormal, the application processor can quickly restore the modem to be normal by switching other protocol stacks to carry out network registration, thereby quickly solving the problem of abnormal network communication function.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an application processor according to an embodiment of the present invention. The application processor shown in fig. 4 may include a detection module 401, a closing module 402, an opening module 403, and a recording module 404. Wherein:
a detecting module 401, configured to detect whether a common module in a modem in a mobile terminal is abnormal or not when an abnormal indication message sent by the modem in the mobile terminal is received, where the abnormal indication message is used to indicate that the modem is abnormal.
In the embodiment of the present invention, the Application Processor is fully referred to as MAP (Multimedia Application Processor, MAP for short), and is a very large scale integrated circuit for extending audio and video functions and dedicated interfaces on the basis of a low power consumption CPU, and is an important component in a mobile terminal (such as a smart phone, a palm computer, a notebook computer, etc.), and the Application Processor and the baseband Processor are generally two independent chips. A Modem (Modem) is located in a mobile terminal (e.g., a smart phone, a palm pc, a notebook computer, etc.), and the Modem is used to convert a baseband signal into a radio frequency signal, convert a radio frequency signal into a baseband signal, process signaling of an Access Stratum (AS) and a non-access stratum (NAS), interface with an AP processor, and the like. The modem includes a common module for configuring configuration parameters in the modem and a protocol stack. The protocol stack represents a sum of a plurality of protocols corresponding to a certain communication system, for example: the protocol stack includes a Global System for Mobile communications (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-LTE) protocol stack, a Frequency Division Duplex Long Term Evolution (FDD) protocol stack, and the like, and a plurality of sub-stack protocols are further included below each Communication System protocol stack, which is not repeated here.
In the embodiment of the invention, the modem abnormity can comprise protocol stack abnormity and public module abnormity, and when the modem is abnormal, the modem cannot normally process data, so that a user cannot surf the internet.
In the embodiment of the present invention, the abnormality indication message is used to indicate that the modem is abnormal. When the application processor receives an abnormality indication message sent by the modem, the detection module 401 detects whether a common module in the modem is abnormal. If the detection module 401 detects an anomaly of the common module in the modem, then optionally, the application processor restarts the modem to resolve the anomaly of the common module. If the detecting module 401 detects that the common module in the modem is normal, which indicates that the cause of the abnormality of the modem is that the protocol stack is abnormal, the closing module 402 closes the first protocol stack currently used by the modem, and selects a second protocol stack other than the first protocol stack from the plurality of protocol stacks supported by the modem. The policy for the shutdown module 402 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 other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
A closing module 402, configured to close a first protocol stack currently used by the modem when the detection module 401 detects that a common module in the modem is normal, and select a second protocol stack, other than the first protocol stack, from multiple protocol stacks supported by the modem.
In the embodiment of the invention, when the public module in the modem is normal, the protocol stack abnormality in the modem is indicated, and the first protocol stack is the protocol stack causing the modem abnormality. The shutdown module 402 shuts down the first protocol stack to prevent the first protocol stack from continuing to cause an exception to the modem, and the shutdown module 402 selects a second protocol stack, other than the first protocol stack, from a plurality of protocol stacks supported by the modem.
And an opening module 403, configured to open the second protocol stack, and perform network registration again using the second protocol stack.
In this embodiment of the present invention, specifically, after the closing module 402 closes the first protocol stack, the mobile terminal is converted from the connection state to the idle state, and the opening module 403 opens the selected second protocol stack, and performs network registration using the second protocol stack. The network registration process comprises the following steps: 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.
A recording module 404, configured to record current location information of the mobile terminal when the network registration is successful.
In this embodiment of the present invention, 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 Identity (CID), a Location Area Code (LAC), a Location tracking Area, or the like. If the starting module 403 successfully registers the network using the second protocol stack, the recording module 404 records the current location information of the mobile terminal.
In this embodiment of the present invention, optionally, when the network registration fails, the application processor recovers the switch state of a default protocol stack in the plurality of protocol stacks supported by the modem or recovers the switch state of a default protocol stack in the plurality of protocol stacks supported by the modem, and resets the modem. Specifically, the default protocol stack is a preset protocol stack, and the default protocol stack is one of a plurality of protocol stacks supported by the modem. 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 multiple regions in a certain area, respectively. If the second protocol stack fails to register the network, the application processor starts a preset default protocol stack and resets the modem, and after the reset operation, the modem works by using the default protocol stack.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another application processor according to an embodiment of the disclosure. The application processor shown in fig. 5 is optimized by the application processor shown in fig. 4. In contrast to the application processor shown in fig. 4, the application processor shown in fig. 5 may include a restoration module 405 in addition to all the modules of the application processor shown in fig. 4. Wherein:
the detecting module 401 is further configured to detect whether the location information of the mobile terminal changes after the recording module records the current location information of the mobile terminal.
Specifically, after the recording module 404 records the current location information of the mobile terminal, the detecting module 401 periodically acquires the location information of the mobile terminal and compares the periodically acquired location information with the recorded location information; when the periodically acquired location information changes compared to the recorded location information, the recovery module 405 acquires an initial switching state corresponding to each of a plurality of protocol stacks supported by the modem before the modem is abnormal, and adjusts a current switching state corresponding to each of the plurality of protocol stacks to the initial switching state, otherwise, the detection module 401 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 detection module 401 acquiring the position information is not limited in the present invention, and may be set according to actual requirements.
A restoring module 405, configured to restore a switch state of a default protocol stack in a plurality of protocol stacks supported by the modem or restore a switch state of a default protocol stack in a plurality of protocol stacks supported by the modem and simultaneously reset the modem when the detecting module 401 detects that the location information of the mobile terminal changes.
In this embodiment of the present invention, the recovery module 405 recovers the default protocol stack switch state or recovers the default protocol stack switch state according to a known default protocol stack switch state in advance, and simultaneously resets the modem. The default protocol stack is a preset protocol stack in a plurality of protocol stacks supported by the modem. 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 multiple regions in a certain area, respectively. After the reset operation is carried out, the application processor uses the default protocol stack to carry out network registration, and after the network registration is successful, the application processor uses the default protocol stack to work.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another application processor according to an embodiment of the disclosure. The application processor shown in fig. 6 is optimized by the application processor shown in fig. 4. Compared with the application processor shown in fig. 4, the application processor shown in fig. 6 may include a determination module 406 and a reporting module 407 in addition to all modules of the application processor shown in fig. 4. Wherein:
the recording module 404 is further configured to set the first protocol stack exception as an exception cause of the modem after the detecting module 401 detects that the common module in the modem is normal, and record the exception cause.
The determining module 406 is configured to determine whether the abnormal reason recorded by the recording module 404 is reported.
A reporting module 407, configured to report the recorded abnormal reason, the location information of the mobile terminal, and the log information to the network side and/or display the abnormal reason when the determining module 406 determines that the abnormal reason is not reported.
In the embodiment of the present invention, specifically, the reporting module 407 may report the information to the network side through the wifi hotspot when the mobile terminal is connected to the wifi hotspot, so as to save traffic.
In the application processors described in fig. 4 to 6, when receiving an abnormal indication message sent by a modem in the mobile terminal, a detection module detects whether a common module in the modem is abnormal; if the public module in the modem is normal, the closing module closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem; the starting module starts a second protocol stack and performs network registration again by using the second protocol stack; and when the network registration is successful, the recording module records the current position information of the mobile terminal. Therefore, by implementing the embodiment of the invention, when the modem is abnormal, the application processor can quickly restore the modem to be normal by switching other protocol stacks to carry out network registration, thereby quickly solving the problem of abnormal network communication function.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the user terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing describes in detail a method for processing network communication function abnormality and an application processor disclosed in the embodiments of the present invention, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the foregoing embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A method for processing network communication function abnormity is characterized in that the method comprises the following steps:
when receiving an abnormal indication message sent by a modem in a mobile terminal, an application processor in the mobile terminal detects whether a common module in the modem is abnormal or not, wherein the abnormal indication message is used for indicating that the modem is abnormal;
if the public module in the modem is normal, the application processor closes a first protocol stack currently used by the modem, and selects a second protocol stack except the first protocol stack from a plurality of protocol stacks supported by the modem;
the application processor starts the second protocol stack and uses the second protocol stack to perform network registration again;
when the network registration is successful, the application processor records the current position information of the mobile terminal;
when the network registration fails, the on-off state of a default protocol stack in a plurality of protocol stacks supported by the modem is recovered, the modem is reset, and after the modem is reset, the default protocol stack is used for network registration.
2. The method of claim 1, wherein after the application processor records current location information of the mobile terminal, the method further comprises:
the application processor detects whether the position information of the mobile terminal is changed;
if yes, the application processor restores the default protocol stack switch state in the plurality of supported protocol stacks or the application processor restores the default protocol stack switch state in the plurality of supported protocol stacks and simultaneously resets the modem.
3. The method of claim 1, wherein after the application processor detects that a common module within the modem is normal, the method further comprises:
and the application processor sets the first protocol stack exception as the exception reason of the modem and records the exception reason.
4. The method of claim 3, further comprising:
the application processor judges whether the abnormal reason is reported or not;
and if the abnormal reason is not reported, the application processor reports the recorded abnormal reason, the position information of the mobile terminal and log information to a network side and/or displays the abnormal reason.
5. The method according to claim 4, wherein the reporting, by the application processor, the recorded cause of the abnormality, the location information of the mobile terminal, and the log information to the network side includes:
and the application processor scans surrounding wifi hotspots and reports the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side through the wifi hotspots which establish communication connection after establishing communication connection with the wifi hotspots.
6. An application processor, comprising:
the mobile terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a public module in a modem is abnormal or not when receiving an abnormal indication message sent by the modem in the mobile terminal, and the abnormal indication message is used for indicating the abnormality of the modem;
a closing module, configured to close a first protocol stack currently used by the modem when the detection module detects that a common module in the modem is normal, and select a second protocol stack, other than the first protocol stack, from multiple protocol stacks supported by the modem;
the starting module is used for starting the second protocol stack and using the second protocol stack to perform network registration again;
the recording module is used for recording the current position information of the mobile terminal when the network registration is successful;
a module for recovering the switch state of a default protocol stack in a plurality of protocol stacks supported by the modem and resetting the modem when the network registration fails;
means for performing network registration using the default protocol stack after a reset operation on the modem.
7. The application processor of claim 6, further comprising: a recovery module, wherein:
the detection module is further configured to detect whether the position information of the mobile terminal changes after the recording module records the current position information of the mobile terminal;
the recovery module is configured to recover the default protocol stack switch states in the supported multiple protocol stacks or recover the default protocol stack switch states in the supported multiple protocol stacks and simultaneously reset the modem when the detection module detects that the location information of the mobile terminal changes.
8. The application processor of claim 6,
the recording module is further configured to set the first protocol stack exception as an exception cause of the modem after the detection module detects that a common module in the modem is normal, and record the exception cause.
9. The application processor of claim 8, further comprising:
the judging module is used for judging whether the abnormal reason is reported or not;
and the reporting module is used for reporting the recorded abnormal reason, the position information of the mobile terminal and the log information to a network side and/or displaying the abnormal reason when the judging module judges that the abnormal reason is not reported.
10. The application processor of claim 9, wherein the reporting module reports the recorded abnormal cause, the location information of the mobile terminal, and the log information to the network side in a specific manner:
and the reporting module scans surrounding wifi hotspots and reports the recorded abnormal reason, the position information of the mobile terminal and the log information to the network side through the wifi hotspots which establish communication connection after establishing communication connection with the wifi hotspots.
11. A mobile terminal comprising an application processor according to any of claims 6 to 10.
12. A storage medium having stored therein program instructions which, when executed by an application processor, implement the method of any one of claims 1 to 5.
CN201810311652.5A 2015-11-24 2015-11-24 Processing method for network communication function abnormity and application processor Expired - Fee Related CN108347740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810311652.5A CN108347740B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity and application processor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810311652.5A CN108347740B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity and application processor
CN201510829770.1A CN105376787B (en) 2015-11-24 2015-11-24 A kind of processing method and application processor of network communicating function exception

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510829770.1A Division CN105376787B (en) 2015-11-24 2015-11-24 A kind of processing method and application processor of network communicating function exception

Publications (2)

Publication Number Publication Date
CN108347740A CN108347740A (en) 2018-07-31
CN108347740B true CN108347740B (en) 2021-04-09

Family

ID=55378496

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810311652.5A Expired - Fee Related CN108347740B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity and application processor
CN201510829770.1A Active CN105376787B (en) 2015-11-24 2015-11-24 A kind of processing method and application processor of network communicating function exception

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510829770.1A Active CN105376787B (en) 2015-11-24 2015-11-24 A kind of processing method and application processor of network communicating function exception

Country Status (1)

Country Link
CN (2) CN108347740B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106255142B (en) * 2016-09-05 2019-10-29 努比亚技术有限公司 A kind of mobile terminal and its exception information report method
EP3586561B1 (en) * 2017-02-21 2020-12-09 Telefonaktiebolaget LM Ericsson (publ) Method and devices for dual connectivity between a dual protocol stack user equipment and two baseband units of a radio access telecommunications network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode (including long term evolution (LTE) mode) application method and device of mobile terminal
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370586B2 (en) * 1998-10-30 2002-04-09 Intel Corporation Monitoring of an electronic device with a system management controller
CN101102317B (en) * 2007-06-29 2010-09-29 中兴通讯股份有限公司 Multi-protocol stack connection device and method
CN101409887A (en) * 2008-01-22 2009-04-15 深圳国人通信有限公司 Method for resolving wireless modem shamming dead
CN101572899A (en) * 2009-05-31 2009-11-04 中兴通讯股份有限公司 Switching device based on multi-system network and method thereof
CN103582039B (en) * 2012-08-02 2017-12-15 中兴通讯股份有限公司 Mobile phone AT command handling methods and equipment when losing covering and standard switching

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
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
CN103841615A (en) * 2012-11-22 2014-06-04 三星电子株式会社 Apparatus and method for selecting network in communication system

Also Published As

Publication number Publication date
CN108347740A (en) 2018-07-31
CN105376787A (en) 2016-03-02
CN105376787B (en) 2018-06-29

Similar Documents

Publication Publication Date Title
WO2018107891A1 (en) Network-communication function exception processing method, application processor, and computer storage medium
CN105376773A (en) Network communication function anomaly processing method, application processor and mobile terminal
WO2018107893A1 (en) Network-communication function exception processing method, application processor, and computer storage medium
WO2018107894A1 (en) Network communication function abnormality processing method and processing device, application processor, modem, and computer storage medium
CN105376785A (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN108601018B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105357049B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376776A (en) Processing method of network communication function abnormity, application processor and mobile terminal
CN108419258B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN105407461A (en) Processing method for network communication function abnormality, application processor and mobile terminal
CN105376113A (en) Processing method of network communication function abnormity, modem and mobile terminal
CN105376775B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN108282804B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN108307417B (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
CN108684054B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108462973B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105515824A (en) Processing method for network communication function abnormity and modem
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
CN105491605A (en) Network communication function abnormality processing method, modulator-demodulator and mobile terminal
CN108683661B (en) Processing method for network communication function abnormity, modem and user terminal
CN105491608A (en) Processing method for network communication function exception, application processor and mobile terminal

Legal Events

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

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

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

Address before: No.18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

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

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

Granted publication date: 20210409

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