CN108599987B - Processing method for network communication function abnormity, application processor and user terminal - Google Patents

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

Info

Publication number
CN108599987B
CN108599987B CN201810224325.6A CN201810224325A CN108599987B CN 108599987 B CN108599987 B CN 108599987B CN 201810224325 A CN201810224325 A CN 201810224325A CN 108599987 B CN108599987 B CN 108599987B
Authority
CN
China
Prior art keywords
protocol stack
application processor
modem
state
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810224325.6A
Other languages
Chinese (zh)
Other versions
CN108599987A (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 CN201810224325.6A priority Critical patent/CN108599987B/en
Publication of CN108599987A publication Critical patent/CN108599987A/en
Application granted granted Critical
Publication of CN108599987B publication Critical patent/CN108599987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • 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)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for processing network communication function abnormity, which comprises the following steps: the application processor receives an abnormal indication message sent by the modem when detecting the abnormal state of the protocol stack; the application processor closes a first protocol stack causing protocol stack state exception; the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem; and if the second protocol stack is successfully registered, the application processor records the current position information. The embodiment of the invention also provides an application processor and a user terminal. The embodiment of the invention can quickly detect and recover the abnormity of the network communication function.

Description

Processing method for network communication function abnormity, application processor and user terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for processing network communication function abnormality, an application processor, and a user terminal.
Background
With the increasing proportion of data services in the high-speed development of the mobile internet, the role and position of a modem in a smart phone become increasingly important, and the modem is used for converting data to be transmitted into radio frequency signals and converting the radio frequency signals into data to be processed, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor, and the like. In the using process of the smart phone, the smart phone may switch between different communication systems (such as 2G, 3G, and 4G communication systems), and an abnormality may often occur in the switching process of the communication systems, so that the smart phone cannot perform normal networking communication, for example, the state of a protocol stack is abnormal. At present, the solutions for solving the problem of networking communication failure due to abnormality include: when the smart phone moves to a new position area, a position updating notice is sent to the network side equipment, and the network side equipment reconfigures the smart phone again 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 user terminal is manually restarted and recovered or configuration parameters of the modem are set. Both of these two schemes consume too long time, which affects user experience.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method for processing network communication function abnormality, a modem, and a user terminal, which are used to solve the problem that time consumption for manually recovering a network communication function is too long when a network communication function is abnormal and network communication cannot be performed in the prior art.
In order to solve the foregoing technical problem, a first aspect of an embodiment of the present invention provides a method for processing a network communication function exception, where the method includes:
the application processor receives an abnormal indication message sent by the modem when detecting the abnormal state of the protocol stack;
the application processor closes a first protocol stack causing protocol stack state exception;
the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem;
and if the second protocol stack is successfully registered, the application processor records the current position information.
With reference to the first aspect of the embodiment of the present invention, in a first possible implementation manner of the first aspect, the method further includes:
if the second protocol stack registration fails, the application processor restores the default protocol stack switch states in the plurality of protocol stacks supported by the modem or the application processor restores the default protocol stack switch states in the plurality of protocol stacks supported by the modem and simultaneously resets the modem.
With reference to the first aspect or the first possible implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner of the first aspect, after the recording, by the application processor, the current location information if the second protocol stack is successfully registered, the method further includes:
if the position changes, the application processor restores the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem or the application processor restores the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem and resets the modem at the same time.
With reference to the first aspect of the embodiment of the present invention, in a third possible implementation manner of the first aspect, the method further includes:
if the protocol stack state abnormity reason is not reported, the application processor acquires the protocol stack state abnormity reason and a log;
and the application processor reports the abnormal reason, the current position information and the log to a network side and/or a user.
With reference to the third possible implementation manner of the first aspect of the embodiment of the present invention, in a fourth possible implementation manner of the first aspect, the reporting, by the application processor, the abnormal cause, the current location information, and the log to a network side and/or a user includes:
and the application processor reports the abnormal reason of the protocol stack state, the log and the current position information to network side equipment through a wireless fidelity (WiFi) network.
A second aspect of an embodiment of the present invention provides an application processor, including:
the receiving module is used for receiving an abnormal indication message sent by the modem when the modem detects that the state of the protocol stack is abnormal;
the closing module is used for closing the first protocol stack causing the protocol stack state abnormity;
a registration module, configured to start a second protocol stack and perform network registration using the second protocol stack, where the second protocol stack is a protocol stack, except for the first protocol stack, in a plurality of protocol stacks supported by the modem;
and the recording module is used for recording the current position information if the second protocol stack is successfully registered.
With reference to the second aspect of the embodiment of the present invention, in a first possible implementation manner of the second aspect, the application processor further includes:
a recovery module, configured to, when the second protocol stack registration fails; and when the second protocol stack is successfully registered and the position is changed, restoring the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem or restoring the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem and simultaneously resetting the modem.
With reference to the second aspect of the embodiment of the present invention, in a second possible implementation manner of the second aspect, the application processor further includes:
the reporting module is used for obtaining the reason and the log of the protocol stack state abnormity without reporting the reason of the protocol stack state abnormity; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
With reference to the second possible implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect, the reporting unit is specifically configured to:
and reporting the abnormal reason of the protocol stack state, the log and the current position information to network side equipment through a wireless fidelity WiFi network.
A third aspect of an embodiment of the present invention provides a user terminal, including any one of the application processors described above.
The embodiment of the invention has the following beneficial effects:
the application processor receives an abnormal indication message sent by the modem when detecting the abnormal state of the protocol stack; the application processor closes a first protocol stack causing protocol stack state exception; the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem; and if the second protocol stack is successfully registered, the application processor records the current position information. Therefore, when the modem cannot work normally due to abnormal state of the protocol stack, the modem automatically tries to recover to normal in a network registration mode, the problem of overlong time consumption caused by manual forced restart of the mobile phone or position updating is avoided, and the time for recovering network failures is shortened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for processing network communication function abnormality according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for processing network communication function abnormality according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for processing network communication function abnormality according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application processor according to a first embodiment of the present invention;
fig. 5 is a schematic structural diagram of an application processor according to a second embodiment of the present invention.
Detailed Description
The technical problem to be solved by the embodiments of the present invention is to provide a method for processing network communication function abnormality, a modem, and a user terminal, which are used to solve the problem that time consumption for manually recovering a network communication function is too long when a network communication function is abnormal and network communication cannot be performed in the prior art.
In order to make the technical solutions of the present invention better understood, 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 following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The user terminal to which the invention relates may be, for example, any or all of a smart phone, a wearable device (personal hub), a personal or mobile multimedia player, a Personal Digital Assistant (PDA), a laptop computer, a tablet computer, a smartbook, a palmtop computer and similar personal electronic devices, which may include a network interface, a processor, a memory, an audio processing circuit, a microphone, a camera, a flash light, and may include an audio amplifier, which may be internal or external, and a speaker unit connected to the audio amplifier.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for handling network communication function abnormality according to a first embodiment of the present invention. As shown in fig. 1, a method for processing a network communication function abnormality according to an embodiment of the present invention may include steps S101 to S104:
s101, the application processor receives an abnormal indication message sent by the modem when the modem detects that the state of the protocol stack is abnormal.
In the embodiment of the present invention, the application Processor is fully called a multimedia application Processor (MAP for short), and is an important component in a smart phone, where the application Processor is generally an independent chip from a baseband Processor, and is used for expanding an audio/video function and a very large scale integrated circuit of a dedicated interface on the basis of a low power consumption CPU. The modem is used for converting baseband signals into radio frequency signals, converting radio frequency signals into baseband signals, processing signaling of an Access Stratum (AS) and a non-access stratum (NAS), interfacing with an AP processor, and the like, and can support various protocol stacks. The abnormal state of the protocol stack means that a detection result of the current state context does not accord with a pre-expected result in the communication process, for example, when only an uplink data packet is detected in a period of time and no downlink data packet exists, the abnormal state of the protocol stack is considered (namely, an uplink and a downlink are not communicated); or, a User Equipment (UE) intelligent algorithm judges that the protocol stack is abnormal in operation according to the phenomenon of abnormal state; or, the communication process between the UE and the network side device is affected by the uncertain factor, and the UE is out of synchronization; and so on. When the modem detects that the state of the protocol stack is abnormal, the modem crashes and cannot process data normally, so that the UE cannot surf the internet. The protocol stack represents a sum of a plurality of protocols corresponding to a certain communication system. Optionally, 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 Long term Evolution (TDD-LTE) protocol stack, a Frequency Division duplex Long term Evolution (FDD-LTE) protocol stack, and the like, and the protocol stack includes Multiple sub-protocol stacks below each Communication system protocol stack, which is not described herein again. The modem determines a first protocol stack currently used when detecting a memory access error.
It should be noted that the modem may be integrated inside the application processor, or may be a chip independent from the application processor, and the present invention is not limited thereto.
S102, the application processor closes the first protocol stack causing the protocol stack state exception.
In the embodiment of the invention, some protocol stack state abnormity phenomena are common and easy to process, some protocol stack state abnormity phenomena are rare and difficult to process, and the difficult-to-process protocol stack state abnormity phenomena are released regardless of the further deterioration of the protocol stack error which can be caused and are difficult to control. To prevent protocol stack state exceptions from recurring or further deteriorating, the application processor needs to shut down the first protocol stack causing the protocol stack state exception.
S103, the application processor starts a second protocol stack, and performs network registration by using the second protocol stack, wherein the second protocol stack is a protocol stack other than the first protocol stack in a plurality of protocol stacks supported by the modem.
In the embodiment of the present invention, after the first protocol stack is closed, the UE is converted from the connection state to the idle state, the application processor selects the second protocol stack, the second protocol stack is a protocol stack other than the first protocol stack in the plurality of protocol stacks supported by the modem, and the application processor opens the second protocol stack and performs network registration using the second protocol stack. Optionally, a specific implementation manner of the network registration may be: the UE initiates an attach request (attach request) to the network side equipment, if the network side equipment allows the UE to access, an attach response (attach response) is returned to the UE, which indicates that the network registration is successful, and the UE is converted from an idle state to a connection state; and if the network side equipment does not allow the UE to access, returning error information to the UE, which indicates that the network registration fails. Optionally, 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 protocol stack supported by the modem, 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; alternatively, other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
And S104, if the second protocol stack is successfully registered, the application processor records the current position information.
Optionally, the location information indicates a logical location of the UE in the mobile communication network, and the location information may be a cell identifier, an area location code, a location tracking area, or the like, which is not limited in the present invention. If the network registration using the second protocol stack is successful, the application processor records the current location information.
It can be seen that, in the embodiment of the present invention, the application processor receives an exception indication message sent by the modem when detecting that the state of the protocol stack is abnormal; the application processor closes a first protocol stack causing protocol stack state exception; the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem; and if the second protocol stack is successfully registered, the application processor records the current position information. Therefore, when the abnormal state of the protocol stack causes the abnormal communication of the modem, the abnormal state of the protocol stack is quickly detected, and the communication of the modem is automatically recovered to be normal by switching other protocol stacks to perform network registration, so that the problem of overlong time consumption caused by manually and forcibly restarting a mobile phone or updating a position is avoided, and the time for recovering a network fault is shortened.
Optionally, the method for processing the network communication function abnormality shown in fig. 1 further includes:
if the second protocol stack registration fails, the application processor restores default protocol stack switch states in a plurality of protocol stacks supported by the modem or resets the modem simultaneously.
Optionally, after the application processor records the current location information if the second protocol stack is successfully registered, the method for processing the network communication function exception shown in fig. 1 further includes:
and if the position is changed, the modem restores the default protocol stack switch state in a plurality of protocol stacks supported by the modem or resets the modem simultaneously.
Optionally, the method for processing the network communication function abnormality shown in fig. 1 further includes:
if the protocol stack state abnormity reason is not reported, the application processor acquires the protocol stack state abnormity reason and a log; and the application processor reports the abnormal reason, the current position information and the log to a network side and/or a user.
Optionally, the reporting, by the application processor, the abnormal cause, the current location information, and the log to a network side includes: and the application processor reports the abnormal reason of the protocol stack state, the log and the current position information to network side equipment through a wireless fidelity (WiFi) network.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for handling network communication function abnormality according to a second embodiment of the present invention. As shown in fig. 2, a method for processing a network communication function abnormality according to an embodiment of the present invention may include steps S201 to S212:
s201, whether the modem detects the protocol stack state abnormity.
If yes, go to step S202.
If not, step S201 is executed.
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 abnormal state of the protocol stack means that a detection result of the current state context does not accord with a pre-expected result in the communication process, for example, when only an uplink data packet is detected within a period of time but no downlink data packet exists, the abnormal state of the protocol stack is considered (namely, an uplink and a downlink are not communicated); or the UE intelligent algorithm judges that the protocol stack is abnormal in operation according to the abnormal state phenomenon; or, the communication process between the UE and the network side device is affected by the uncertain factor, and the UE is out of synchronization; the abnormal reasons of the protocol stack state can be divided into a plurality of types, the same protocol stack state abnormality can be caused by different abnormal reasons, the specific abnormal reason positioning can be determined by any known means, and the invention is not limited.
S202, the modem instructs the application processor to process the exception.
Optionally, the specific implementation manner of the modem instructing the application processor to process the exception is as follows: the modem sends an exception indication message to the application processor, and the application processor receives the exception indication message to indicate that the modem detects the protocol stack state exception, and at the moment, the application processor needs to process the exception. The format of the exception indication message is not limited in the present invention, and may be implemented by using an extension field in an existing message or by constructing a new message.
S203, the application processor closes the first protocol stack causing the protocol stack state exception.
If the modem uses the first protocol stack to generate the protocol stack state exception, in order to prevent the protocol stack state exception from repeatedly generating or further deteriorating, the application processor needs to close the first protocol stack. Optionally, the specific implementation manner of the first protocol stack that causes the protocol stack state exception when the application processor is closed is as follows: the application processor queries a status flag bit indicating a protocol stack in the modem to acquire a first protocol stack currently used (for example, the status flag bit is 1 to indicate that the corresponding protocol stack is in an open state, and the status flag bit is 0 to indicate that the corresponding protocol stack is in a closed state), and the application processor sets the status flag bit of the first protocol stack to 0 to close the first protocol stack.
And S204, the application processor starts a second protocol stack, and performs network registration by using the second protocol stack, wherein the second protocol stack is a protocol stack other than the first protocol stack in a plurality of protocol stacks supported by the modem.
In the embodiment of the present invention, after the first protocol stack is closed, the UE is converted from the connection state to the idle state, the application processor selects the second protocol stack, the second protocol stack is a protocol stack other than the first protocol stack in the plurality of protocol stacks supported by the modem, and the application processor opens the second protocol stack and performs network registration using the second protocol stack. Optionally, a specific implementation manner of the network registration may be: the UE initiates an attach request (attach request) to the network side equipment, if the network side equipment allows the UE to access, an attach response (attach response) is returned to the UE, which indicates that the network registration is successful, and the UE is converted from an idle state to a connection state; and if the network side equipment does not allow the UE to access, returning error information to the UE, which indicates that the network registration fails. Optionally, 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 protocol stack supported by the modem, 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; alternatively, other strategies may be used to determine the second protocol stack, and the invention is not limited in this respect.
S205, the application processor judges whether the network registration is successful.
If yes, go to step S206.
If not, go to step S207.
S206, the application processor records the current position information. Then, step S209 is executed, and the parallel process of step S208 is started.
Optionally, the location information represents an identity of a pre-planned logical location in the mobile communication network, for example, the location information includes a cell identity or a location area code, etc.
S207, the application processor restores the default protocol stack switch state in a plurality of protocol stacks supported by the modem or the application processor restores the default protocol stack switch state in the plurality of protocol stacks supported by the modem and resets the modem at the same time.
Wherein, the priority of a plurality of protocol stacks supported by the modem is divided into high and low. Optionally, the priority level of each protocol stack supported by the modem may be preset, for example, the priority level of each protocol stack supported by the modem may be set when the modem leaves a factory; or, in the process that the modem is configured in the UE and initialized, the priority level of each protocol stack supported by the modem may be set according to the network connection and the network signal strength when the UE uses each protocol stack; and so on. Optionally, the priority level of each protocol stack supported by the modem may be flexibly adjusted, for example, the priority level may be set according to the network connection and the network signal strength when the UE uses each protocol stack in a certain location area; or, the priority level of each protocol stack may be set according to the sequence of the common network communication system of the UE; and so on. It should be noted that the higher the priority level of a certain protocol stack is, the better network connection or stronger network signal can be obtained by the UE based on the protocol stack. The protocol stack with the highest priority in the modem is generally called a default protocol stack, and the application processor generally uses the protocol stacks to realize network registration and network use of the UE according to the order of priority from high to low.
Because the UE has the characteristics of mobility and platform update, when the UE moves in location or performs platform update, its current attribute changes, and its network connection condition may also change, for example: the UE may make a network connection at location a based on the second protocol stack, however, when the UE moves from location a to location B, the network connection may not be made based on the second protocol stack; similarly, the UE may not be able to connect to the network in location a based on the first protocol stack, but may connect to the network in location B. Therefore, the application processor uses the second protocol stack to unsuccessfully register on the network, and the application processor restores the default protocol stack switch state or the modem restores the default protocol stack switch state according to the default protocol stack switch state and simultaneously performs reset operation on the modem. It is understood that the default protocol stack here may be the first protocol stack or other protocol stacks other than the first protocol stack. It should be noted that, if the default protocol stack in this embodiment is the first protocol stack (i.e. the protocol stack that has been closed and causes the exception to the state of the protocol stack), this step is equivalent to restarting the first protocol stack. Therefore, after the first protocol stack is restarted, the current attribute of the UE is changed, so that the UE can resume the network use based on normal network registration of the restarted first protocol stack.
S208, the application processor detects whether the position information changes.
If yes, go to step S207.
If not, go to step S208.
Optionally, the application processor periodically acquires the location information, and when the currently acquired location information changes compared with the location information acquired last time, step S207 is executed, otherwise, the location information continues to be acquired. For example, the location information is a cell identity, and the UE moves from one cell to another cell to indicate that the location information changes; for another example, the location information is a location area code, and the UE moves from one location area to another location area, indicating that the location 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.
S209, the application processor judges whether the abnormal reason of the protocol stack state is reported.
If yes, go to step S212.
If not, go to step S210.
Optionally, the reason for the protocol stack state exception may be represented by a reason code, different exception reasons correspond to different reason codes, and the exception reason may be represented by a text description mode.
S210, the application processor acquires the abnormal reason and the log of the protocol stack state.
In the embodiment of the present invention, the log represents operation information of detecting a protocol stack state by a modem, and the operation information includes: operation instruction, operation time and return result.
S211, the application processor reports the abnormal reason, the current position information and the log to a network side and/or a user.
Optionally, the specific implementation of reporting the exception cause, the current location information, and the log to the network side device by the application processor may be: reporting to network side equipment through a wireless fidelity (WiFi) network; or the application processor can also display the abnormal reason on a display screen of the UE for the user to view.
And S212, the application processor processes the exception ending.
It can be seen that, in the embodiment of the present invention, the application processor receives an exception indication message sent by the modem when detecting that the state of the protocol stack is abnormal; the application processor closes a first protocol stack causing protocol stack state exception; the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem; and if the second protocol stack is successfully registered, the application processor records the current position information. Therefore, when the modem cannot work normally due to abnormal state of the protocol stack, the modem is recovered to be normal through a network registration mode, the problem of overlong time consumption caused by manual forced restart of a mobile phone or position updating is avoided, and the time for recovering network faults is shortened.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for handling network communication function abnormality according to a third embodiment of the present invention. As shown in fig. 3, a method for processing a network communication function exception according to an embodiment of the present invention may include steps S301 to S310:
s301, whether the application processor detects the protocol stack state abnormity.
If yes, go to step S302.
If not, step S301 is executed.
And S302, the modem instructs the application processor to process the exception.
Optionally, the specific implementation manner of the modem instructing the application processor to process the exception is as follows: the modem sends an exception indication message to the application processor, and the application processor receives the exception indication message to indicate that the modem detects the protocol stack state exception, and at the moment, the application processor needs to process the exception. The format of the exception indication message is not limited in the present invention, and may be implemented by using an extension field in an existing message or by constructing a new message.
S303, the application processor closes the first protocol stack causing the protocol stack state exception.
And S304, the application processor starts a second protocol stack, and performs network registration by using the second protocol stack, wherein the second protocol stack is a protocol stack other than the first protocol stack in a plurality of protocol stacks supported by the modem.
S305, if the network registration is successful, the application processor records the current position information.
S306, the application processor detects whether the position information changes.
If yes, go to step S307.
If not, go to step S306.
S307, the application processor restores the default protocol stack switch state in a plurality of protocol stacks supported by the modem or the application processor restores the default protocol stack switch state in the plurality of protocol stacks supported by the modem and resets the modem at the same time.
S308, the application processor judges whether the abnormal reason of the protocol stack state is reported or not.
Optionally, if the reason for the abnormal state of the protocol stack is reported, step S301 is executed; after the cause of the abnormal state of the protocol stack is reported, the user can adjust or repair the abnormal state according to the cause of the abnormal state, and then the user continues to jump to the step S301 to detect the abnormal state by the modem, and if the abnormal state of the protocol stack is still detected by the modem, the user continues to execute the subsequent steps such as the step S301. Otherwise, step S309 is performed.
S309, the application processor obtains the abnormal reason and the log of the protocol stack state.
S310, the application processor reports the abnormal reason, the current position information and the log to a network side and/or a user.
After the information is reported, the process may also jump to step S301, where the application processor detects an exception, and if the application processor still detects an exception in the state of the protocol stack, the process continues to execute subsequent steps such as step S302.
Through a circulation mode, the problem of protocol stack state abnormity can be solved, after the problem is solved, the application processor can not detect the protocol stack state abnormity any more, and the UE can restore normal work.
It should be noted that, in the embodiment, please refer to the relevant descriptions of steps S201 to S2012 in the method for processing a network communication function abnormality disclosed in the second embodiment of the present invention and the relevant descriptions of steps S101 to S104 in the method for processing a network communication function abnormality disclosed in the first embodiment of the present invention, and no further description is given here.
It can be seen that, in the embodiment of the present invention, the application processor receives an exception indication message sent by the modem when detecting that the state of the protocol stack is abnormal; the application processor closes a first protocol stack causing protocol stack state exception; the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem; and if the second protocol stack is successfully registered, the application processor records the current position information. Therefore, when the modem cannot work normally due to abnormal state of the protocol stack, the modem is recovered to be normal through a network registration mode, the problem of overlong time consumption caused by manual forced restart of a mobile phone or position updating is avoided, and the time for recovering network faults is shortened.
Referring to fig. 4, a schematic structural diagram of an application processor 400 according to an embodiment of the present invention is shown, in which the modem includes: a receiving module 401, a closing module 402, a registering module 403 and a recording module 404.
A receiving module 401, configured to receive an exception indication message sent by the modem when detecting that the protocol stack status is abnormal.
A closing module 402, configured to close the first protocol stack causing the protocol stack state exception.
A registering module 403, configured to start a second protocol stack, and perform network registration using the second protocol stack, where the second protocol stack is a protocol stack, except for the first protocol stack, in a plurality of protocol stacks supported by the modem.
A recording module 404, configured to record current location information if the second protocol stack is successfully registered.
Optionally, the application processor shown in fig. 4 further includes:
a recovery module, configured to, when the second protocol stack registration fails; and when the second protocol stack is successfully registered and the position is changed, restoring the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem or restoring the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem and simultaneously resetting the modem.
Optionally, the application processor shown in fig. 4 further includes:
the reporting module is used for obtaining the reason and the log of the protocol stack state abnormity without reporting the reason of the protocol stack state abnormity; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
Optionally, the reporting module is specifically configured to:
and reporting the abnormal reason of the protocol stack state, the log and the current position information to network side equipment through a wireless fidelity WiFi network.
It can be understood that the functions of the functional modules of the application processor 400 in this embodiment may be specifically implemented according to the method in the method embodiment, and the specific implementation process may refer to the related description of the method embodiment, which is not described herein again.
It can be seen that, in the embodiment of the present invention, the receiving module 401 receives an abnormal indication message sent by the modem when detecting that the state of the protocol stack is abnormal; the closing module 402 closes the first protocol stack causing the protocol stack state exception; the registration module 403 starts a second protocol stack, and performs network registration using the second protocol stack, where the second protocol stack is a protocol stack other than the first protocol stack in a plurality of protocol stacks supported by the modem; the recording module 404 records the current location information if the second protocol stack is successfully registered. Therefore, when the modem cannot work normally due to abnormal state of the protocol stack, the modem is recovered to be normal through a network registration mode, the problem of overlong time consumption caused by manual forced restart of a mobile phone or position updating is avoided, and the time for recovering network faults is shortened.
Referring to fig. 5, a schematic structural diagram of an application processor 500 according to an embodiment of the present invention is shown, in this implementation, the application processor is used to implement the method for processing network communication function abnormality shown in fig. 1, and the application processor includes a CPU _ modem501, a memory 502, a baseband processor 503, a communication interface/CPU _ AP504 (note: in case of a modem single chip, this is a communication interface 504 for performing a communication interface with an AP processor outside the chip, in case of a modem and an AP integrated on one chip, this is the CPU _ AP504, i.e., no communication interface is needed), and a baseband radio frequency interface 505, the number of the CPU _ modem501 in the application processor may be one or more, and fig. 5 takes a CPU as an example (note: the CPU described here may also be replaced by a DSP digital signal processor). In some embodiments of the invention, the CPU _ modem501, memory 502, baseband processing 503, communication interface/CPU _ ap504, and baseband radio frequency interface 505 may be connected by a bus or other means, such as the bus connection in fig. 5.
Wherein the memory 502 stores a set of program codes and the CPU _ modem501 is configured to call the program codes stored in the memory 502 for performing the following operations:
receiving an abnormal indication message sent by a modem when detecting that the state of a protocol stack is abnormal;
closing a first protocol stack causing protocol stack state abnormity;
starting a second protocol stack, and performing network registration by using the second protocol stack, wherein the second protocol stack is a protocol stack other than the first protocol stack in a plurality of protocol stacks supported by the modem;
and if the second protocol stack is successfully registered, recording the current position information.
In some embodiments of the invention, the CPU _ modem501 is further configured to perform:
if the second protocol stack registration fails, restoring the switch states of the default protocol stacks in the plurality of protocol stacks supported by the modem or restoring the switch states of the default protocol stacks in the plurality of protocol stacks supported by the modem and simultaneously resetting the modem.
In some embodiments of the present invention, the CPU _ modem501, after recording the current location information if the second protocol stack registration is successful, is further configured to:
and if the position is changed, restoring the default protocol stack switch state in a plurality of protocol stacks supported by the modem or simultaneously resetting the modem.
The baseband processing 503 is configured to process a baseband signal and interact with other parts through a bus;
wherein, block diagram "communication interface/CPU _ AP" 504, for the case of a modem single chip, this block diagram 504 is a communication interface without a CPU _ AP, the communication interface 504 being an interface for communicating with an AP processor external to the modem chip; for the case where the modem and ap are integrated on a single chip, this block 504 is a CPU _ ap without a communication interface, the CPU _ modem communicating with the CPU _ ap via a bus without other communication interfaces;
the baseband rf interface 505 is configured to interface with an rf external to the modem chip.
In some embodiments of the invention, the CPU _ modem501 is further configured to perform:
if the abnormal reason of the protocol stack state is not reported, acquiring the abnormal reason of the protocol stack state and a log; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
In some embodiments of the present invention, the reporting, by the CPU _ modem501, the exception cause, the current location information, and the log to the network side and/or the user includes:
and reporting the abnormal reason of the protocol stack state, the log and the current position information to network side equipment through a wireless fidelity WiFi network.
It can be understood that the functions of the functional modules of the application processor 500 in this embodiment may be specifically implemented according to the method in the method embodiment, and the specific implementation process may refer to the related description of the method embodiment, which is not described herein again.
It can be seen that, in the embodiment of the present invention, the application processor receives an exception indication message sent by the modem when detecting that the state of the protocol stack is abnormal; the application processor closes a first protocol stack causing protocol stack state exception; the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem; and if the second protocol stack is successfully registered, the application processor records the current position information. Therefore, when the modem cannot work normally due to abnormal state of the protocol stack, the modem is recovered to be normal through a network registration mode, the problem of overlong time consumption caused by manual forced restart of a mobile phone or position updating is avoided, and the time for recovering network faults is shortened.
The embodiment of the invention also provides the UE comprising the application processor, and the UE comprisesBut not limited to, mounting
Figure GDA0002194563800000151
Or other operating system, such as a mobile phone. Other UEs are also possible, such as a laptop or tablet computer or desktop computer with a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a UE is presented that includes a display and a touch-sensitive surface. However, it should be understood that the UE may include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.
The UE typically supports a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disc editing application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications executable on the UE may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the UE may be adjusted and/or varied from one application to the next and/or within the corresponding application. In this way, a common physical architecture of the UE (such as a touch-sensitive surface) may support various applications with a user interface that is intuitive and clear to the user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (7)

1. A method for processing network communication function abnormity is characterized by comprising the following steps:
the application processor receives an abnormal indication message sent by the modem when detecting the abnormal state of the protocol stack;
the application processor closes a first protocol stack causing protocol stack state exception;
the application processor starts a second protocol stack, and uses the second protocol stack to perform network registration, wherein the second protocol stack is a protocol stack except the first protocol stack in a plurality of protocol stacks supported by the modem;
if the second protocol stack is successfully registered, the application processor records the current position information;
if the second protocol stack registration fails, the application processor recovers the default protocol stack switch state in the plurality of supported protocol stacks and resets the modem at the same time, and network registration is performed by using the default protocol stack.
2. The method of claim 1, wherein after the application processor records current location information if the second protocol stack registration is successful, the method further comprises:
if the position changes, the application processor restores the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem or the application processor restores the switch state of the default protocol stack in the plurality of protocol stacks supported by the modem and resets the modem at the same time.
3. The method of claim 1, further comprising:
if the protocol stack state abnormity reason is not reported, the application processor acquires the protocol stack state abnormity reason and a log;
and the application processor reports the abnormal reason, the current position information and the log to a network side and/or a user.
4. An application processor, comprising:
the receiving module is used for receiving an abnormal indication message sent by the modem when the modem detects that the state of the protocol stack is abnormal;
the closing module is used for closing the first protocol stack causing the protocol stack state abnormity;
a registration module, configured to start a second protocol stack and perform network registration using the second protocol stack, where the second protocol stack is a protocol stack, except for the first protocol stack, in a plurality of protocol stacks supported by the modem;
the recording module is used for recording the current position information if the second protocol stack is successfully registered;
a recovery module, configured to, when the second protocol stack registration fails; when the second protocol stack is successfully registered and the position is changed, restoring the switch state of the default protocol stack in the supported multiple protocol stacks and simultaneously resetting the modem;
and the registration module is also used for performing network registration by using a default protocol stack after the modem is reset.
5. The application processor of claim 4, further comprising:
the reporting module is used for obtaining the reason and the log of the protocol stack state abnormity without reporting the reason of the protocol stack state abnormity; and reporting the abnormal reason, the current position information and the log to a network side and/or a user.
6. A user terminal, characterized in that it comprises an application processor according to any of claims 4-5.
7. A storage medium storing program instructions which, when executed by a processor, implement the method of any one of claims 1 to 3.
CN201810224325.6A 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and user terminal Active CN108599987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810224325.6A CN108599987B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and user terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810224325.6A CN108599987B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and user terminal
CN201510824824.5A CN105392130B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and user terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510824824.5A Division CN105392130B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and user terminal

Publications (2)

Publication Number Publication Date
CN108599987A CN108599987A (en) 2018-09-28
CN108599987B true CN108599987B (en) 2020-02-07

Family

ID=55423872

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810224325.6A Active CN108599987B (en) 2015-11-24 2015-11-24 Processing method for network communication function abnormity, application processor and user terminal
CN201510824824.5A Active CN105392130B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and user terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510824824.5A Active CN105392130B (en) 2015-11-24 2015-11-24 Network communicating function abnormal processing method, application processor and user terminal

Country Status (1)

Country Link
CN (2) CN108599987B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108599987B (en) * 2015-11-24 2020-02-07 Oppo广东移动通信有限公司 Processing method for network communication function abnormity, application processor and user terminal
CN113259165B (en) * 2021-05-26 2022-12-06 中国电子信息产业集团有限公司第六研究所 Airport refueling management system and management method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010078255A1 (en) * 2008-12-29 2010-07-08 Interdigital Patent Holdings, Inc. Method and apparatus for tracking area update procedure and eps bearer contexts representation
CN101977410A (en) * 2010-10-20 2011-02-16 中兴通讯股份有限公司 Method and device for dual-network and dual-standby terminal to perform communication
CN102611750A (en) * 2012-03-15 2012-07-25 中兴通讯股份有限公司 Double-protocol-stack accessing method and system
KR102008842B1 (en) * 2012-11-22 2019-08-08 삼성전자주식회사 Apparatus and method for selecting network in communication system
CN103516546A (en) * 2013-08-19 2014-01-15 北京佳讯飞鸿电气股份有限公司 IP terminal device management system and method for double-center networking
CN108599987B (en) * 2015-11-24 2020-02-07 Oppo广东移动通信有限公司 Processing method for network communication function abnormity, application processor and user terminal

Also Published As

Publication number Publication date
CN105392130A (en) 2016-03-09
CN108599987A (en) 2018-09-28
CN105392130B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
WO2018107891A1 (en) Network-communication function exception processing method, application processor, and computer storage medium
CN103838648A (en) Terminal and data backup method
CN106686638A (en) Network communication function abnormality processing method and network communication function abnormality processing device
CN105357049B (en) Processing method, application processor and the mobile terminal of network communicating function exception
WO2018107894A1 (en) Network communication function abnormality processing method and processing device, application processor, modem, and computer storage medium
CN108599986A (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105407461B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376113B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN108599987B (en) Processing method for network communication function abnormity, application processor and user terminal
CN108419258B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108282804B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105376775B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN108683661B (en) Processing method for network communication function abnormity, modem and user terminal
CN108462973B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN108684054B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376774B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105357704B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN111459528B (en) Frequency band upgrading method, system, storage medium and mobile terminal
CN105491605A (en) Network communication function abnormality processing method, modulator-demodulator and mobile terminal
CN105376779A (en) Processing method of network communication function abnormity, application processor and mobile terminal
CN105491608A (en) Processing method for network communication function exception, application processor and mobile terminal
CN105491609B (en) Network communicating function abnormal processing method, modem and mobile terminal

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant