CN105491605A - Network communication function abnormality processing method, modulator-demodulator and mobile terminal - Google Patents

Network communication function abnormality processing method, modulator-demodulator and mobile terminal Download PDF

Info

Publication number
CN105491605A
CN105491605A CN201510824894.0A CN201510824894A CN105491605A CN 105491605 A CN105491605 A CN 105491605A CN 201510824894 A CN201510824894 A CN 201510824894A CN 105491605 A CN105491605 A CN 105491605A
Authority
CN
China
Prior art keywords
protocol stack
modem
mobile terminal
protocol
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.)
Granted
Application number
CN201510824894.0A
Other languages
Chinese (zh)
Other versions
CN105491605B (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 CN201510824894.0A priority Critical patent/CN105491605B/en
Publication of CN105491605A publication Critical patent/CN105491605A/en
Application granted granted Critical
Publication of CN105491605B publication Critical patent/CN105491605B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

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

Abstract

本发明实施例提供了一种网络通信功能异常处理方法、调制解调器及移动终端,所述方法包括:当移动终端的调制解调器检测到当前使用的第一协议栈异常时,所述调制解调器判断预设时长内所述第一协议栈异常的次数是否达到预设数值;若所述预设时长内所述第一协议栈异常的次数达到所述预设数值,则所述调制解调器关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈;所述调制解调器开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册;在网络注册成功时,所述调制解调器记录所述移动终端的位置信息。通过本发明实施例可以提高网络通信功能异常时的处理效率。

An embodiment of the present invention provides a method for handling abnormalities in network communication functions, a modem, and a mobile terminal. The method includes: when the modem of the mobile terminal detects that the first protocol stack currently in use is abnormal, the modem determines whether the first protocol stack in use is abnormal within a preset time period. Whether the number of abnormalities of the first protocol stack reaches a preset value; if the number of abnormalities of the first protocol stack within the preset time period reaches the preset value, the modem closes the first protocol stack, And select a second protocol stack other than the first protocol stack from a plurality of protocol stacks supported by the modem; the modem starts the second protocol stack, and uses the second protocol stack to re-enable the network Registration: when the network registration is successful, the modem records the location information of the mobile terminal. The embodiment of the present invention can improve the processing efficiency when the network communication function is abnormal.

Description

一种网络通信功能异常处理方法、调制解调器及移动终端A method for processing abnormality of network communication function, modem and mobile terminal

技术领域technical field

本发明涉及通信技术领域,具体涉及一种网络通信功能异常处理方法、调制解调器及移动终端。The invention relates to the technical field of communication, in particular to a method for processing abnormalities in network communication functions, a modem and a mobile terminal.

背景技术Background technique

目前,手机等移动终端所支持的通信网络的网络类型越来越多,例如:一部手机同时支持不同运营商的2G、3G和4G的通信网络,可以省去更换手机的不便。而随着移动互联网的高速发展,移动数据业务占据绝对的比重,因此,移动终端中的调制解调器的作用和地位也日益重要。其中,调制解调器主要用于将待发送数据转换为射频信号、将射频信号转换为待处理数据、处理接入层(英文:accessstratum,缩写:AS)和非接入层(英文:non-accessstratum,缩写:NAS)的信令以及与应用处理器(英文:applicationprocessor,缩写:AP)进行接口等。At present, there are more and more network types of communication networks supported by mobile terminals such as mobile phones. For example, a mobile phone supports 2G, 3G and 4G communication networks of different operators at the same time, which can save the inconvenience of changing mobile phones. With the rapid development of the mobile Internet, mobile data services occupy an absolute proportion. Therefore, the role and status of the modem in the mobile terminal is becoming increasingly important. Among them, the modem is mainly used to convert data to be sent into radio frequency signals, convert radio frequency signals into data to be processed, and process access stratum (English: accessstratum, abbreviation: AS) and non-access stratum (English: non-accessstratum, abbreviation : NAS) signaling and an interface with an application processor (English: application processor, abbreviated: AP).

在实践中发现,由于移动终端所处的网络环境十分复杂,因此,常常需要在不同类型的通信网络之间进行切换,而在通信网络的切换过程中经常会发生异常,从而导致用户终端无法正常连网通信,例如协议栈状态异常。为了解决无法连网通信的问题,目前常采用的解决方案是:在用户终端移动到新的位置区域时,向网络服务器发起位置更新请求,网络服务器从而重新对用户终端进行配置,以恢复调制解调器的配置参数;或用户发现长时间不能连网通信后,手动对移动终端进行强制重启恢复或设置调制解调器的配置参数。但是,采用上述两种方案耗费的时间均过长,用户难以忍受。In practice, it is found that because the network environment where the mobile terminal is located is very complex, it is often necessary to switch between different types of communication networks, and abnormalities often occur during the switching process of the communication network, resulting in the failure of the user terminal Network communication, for example, the status of the protocol stack is abnormal. In order to solve the problem of being unable to connect to the network, the solution commonly used at present is: when the user terminal moves to a new location area, it initiates a location update request to the network server, and the network server reconfigures the user terminal to restore the modem Configuration parameters; or after the user finds that he cannot communicate with the network for a long time, he manually restarts the mobile terminal for recovery or sets the configuration parameters of the modem. However, the time consumed by the above two solutions is too long, which is unbearable for users.

发明内容Contents of the invention

本发明实施例提供了一种网络通信功能异常处理方法、调制解调器及移动终端,可以解决现有技术中网络通信功能发生异常无法连网通信的情况下,手动恢复网络通信功能耗时过长的问题。The embodiment of the present invention provides a network communication function abnormality processing method, a modem and a mobile terminal, which can solve the problem in the prior art that it takes too long to manually restore the network communication function when the network communication function is abnormal and cannot be connected to the network. .

本发明实施例第一方面提供了一种网络通信功能异常处理方法,包括:The first aspect of the embodiments of the present invention provides a method for handling abnormalities in network communication functions, including:

当移动终端的调制解调器检测到当前使用的第一协议栈异常时,所述调制解调器判断预设时长内所述第一协议栈异常的次数是否达到预设数值;When the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within a preset time length reaches a preset value;

若所述预设时长内所述第一协议栈异常的次数达到所述预设数值,则所述调制解调器关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈;If the number of abnormalities of the first protocol stack within the preset duration reaches the preset value, the modem closes the first protocol stack, and selects all but one protocol stack from the multiple protocol stacks supported by the modem. A second protocol stack other than the first protocol stack;

所述调制解调器开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册;The modem starts the second protocol stack, and uses the second protocol stack to perform network registration again;

在网络注册成功时,所述调制解调器记录所述移动终端的位置信息。When the network registration is successful, the modem records the location information of the mobile terminal.

可选的,还包括:Optionally, also include:

在网络注册失败时,所述调制解调器恢复所述多个协议栈中默认协议栈的开关状态或所述调制解调器恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。When the network registration fails, the modem restores the switch state of the default protocol stack among the multiple protocol stacks or the modem restores the switch state of the default protocol stack among the multiple protocol stacks and resets the modem at the same time.

可选的,所述在网络注册成功时,所述调制解调器记录所述移动终端的位置信息之后,还包括:Optionally, after the modem records the location information of the mobile terminal when the network registration is successful, it further includes:

当所述位置信息发生变化时,所述调制解调器恢复所述多个协议栈中默认协议栈的开关状态或所述调制解调器恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。When the location information changes, the modem restores the switch state of the default protocol stack in the multiple protocol stacks or the modem restores the switch state of the default protocol stack in the multiple protocol stacks and resets the modem at the same time .

可选的,还包括:Optionally, also include:

所述调制解调器将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。The modem reports the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server.

可选的,还包括:Optionally, also include:

若所述预设时长内所述第一协议栈异常的次数未达到所述预设数值,则所述调制解调器复位所述调制解调器。If the number of abnormalities of the first protocol stack within the preset time period does not reach the preset value, the modem resets the modem.

本发明实施例第二方面提供了一种调制解调器,包括:The second aspect of the embodiment of the present invention provides a modem, including:

检测模块,用于检测移动终端的调制解调器当前使用的第一协议栈是否异常;A detection module, configured to detect whether the first protocol stack currently used by the modem of the mobile terminal is abnormal;

判断模块,用于当所述检测模块检测到所述第一协议栈异常时,判断预设时长内所述第一协议栈异常的次数是否达到预设数值;A judging module, configured to judge whether the number of abnormalities of the first protocol stack within a preset time period reaches a preset value when the detection module detects that the first protocol stack is abnormal;

选取模块,用于在所述判断模块判断出所述预设时长内所述第一协议栈异常的次数达到所述预设数值时,关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈;A selection module, configured to shut down the first protocol stack when the judging module judges that the number of abnormalities of the first protocol stack within the preset duration reaches the preset value, and select from the modem supported Selecting a second protocol stack other than the first protocol stack from multiple protocol stacks;

注册模块,用于开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册;A registration module, configured to enable the second protocol stack, and use the second protocol stack to perform network registration again;

记录模块,用于在所述注册模块网络注册成功时,记录所述移动终端的位置信息。A recording module, configured to record the location information of the mobile terminal when the network registration by the registration module is successful.

可选的,还包括:Optionally, also include:

第一处理模块,用于在所述注册模块网络注册失败时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。The first processing module is used to restore the switch state of the default protocol stack in the plurality of protocol stacks or restore the switch state of the default protocol stack in the plurality of protocol stacks and reset all the protocol stacks at the same time when the network registration of the registration module fails. described modem.

可选的,还包括:Optionally, also include:

第二处理模块,用于在所述记录模块在所述注册模块网络注册成功时,记录所述移动终端的位置信息之后,当所述位置信息发生变化时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。The second processing module is used to restore the default in the plurality of protocol stacks when the location information of the mobile terminal changes after the recording module records the location information of the mobile terminal when the network registration of the registration module is successful. switch state of the protocol stack or restore the default protocol stack switch state among the plurality of protocol stacks and reset the modem at the same time.

可选的,还包括:Optionally, also include:

上报模块,用于将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。A reporting module, configured to report the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server.

可选的,还包括:Optionally, also include:

复位模块,用于在所述判断模块判断出所述预设时长内所述第一协议栈异常的次数未达到所述预设数值时,复位所述调制解调器。A reset module, configured to reset the modem when the judging module judges that the number of abnormalities of the first protocol stack within the preset time period has not reached the preset value.

本发明实施例第三方面提供了一种移动终端,包括上述第二方面任一项所述的调制解调器。A third aspect of the embodiments of the present invention provides a mobile terminal, including the modem described in any one of the foregoing second aspects.

本发明实施例中,当移动终端的调制解调器检测到当前使用的第一协议栈异常时,该调制解调器判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则该调制解调器关闭该第一协议栈,并开启该调制解调器支持的多个协议栈中除该第一协议栈之外的第二协议栈,进而使用该第二协议栈注册网络,在网络注册成功时记录该移动终端当前的位置信息,可以通过切换其它协议栈进行网络注册的方式使调制解调器自动尝试恢复正常,避免手动强制重启移动终端或位置变化造成的耗时过长的问题,提高了网络通信功能异常时的处理效率。In the embodiment of the present invention, when the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if so, the modem Close the first protocol stack, and open the second protocol stack other than the first protocol stack among the multiple protocol stacks supported by the modem, and then use the second protocol stack to register with the network, and record the mobile when the network registration is successful For the current location information of the terminal, the modem can automatically try to return to normal by switching other protocol stacks for network registration, avoiding the time-consuming problem caused by manually restarting the mobile terminal or changing the location, and improving the network communication function abnormality. Processing efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的一种网络通信功能异常处理方法的第一实施例流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a method for handling abnormalities in network communication functions provided by an embodiment of the present invention;

图2是本发明实施例提供的一种网络通信功能异常处理方法的第二实施例流程示意图;FIG. 2 is a schematic flow chart of a second embodiment of a method for handling abnormalities in network communication functions provided by an embodiment of the present invention;

图3是本发明实施例提供的一种网络通信功能异常处理方法的第三实施例流程示意图;FIG. 3 is a schematic flowchart of a third embodiment of a method for handling abnormalities in network communication functions provided by an embodiment of the present invention;

图4是本发明实施例提供的一种调制解调器的第一实施例结构示意图;FIG. 4 is a schematic structural diagram of a first embodiment of a modem provided by an embodiment of the present invention;

图5是本发明实施例提供的一种调制解调器的第二实施例结构示意图。Fig. 5 is a schematic structural diagram of a second embodiment of a modem provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

请参阅图1,为本发明实施例提供的一种网络通信功能异常处理方法的第一实施例流程示意图。本实施例中所描述的网络通信功能异常处理方法,包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a first embodiment of a method for handling abnormalities in network communication functions provided by an embodiment of the present invention. The method for handling the abnormality of the network communication function described in this embodiment includes the following steps:

S101、当移动终端的调制解调器检测到当前使用的第一协议栈异常时,所述调制解调器判断预设时长内所述第一协议栈异常的次数是否达到预设数值,若是,则执行步骤S102。S101. When the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within a preset time period reaches a preset value, and if so, execute step S102.

其中,调制解调器用于将基带信号转换为射频信号、将射频信号转换为基带信号、处理接入层AS和非接入层NAS的信令以及与AP处理器进行接口等。调制解调器可支持多种协议栈,协议栈表示某个通信制式对应的多种协议的总和,例如:协议栈包括GSM协议栈、EDGE协议栈、HSPDA协议栈、TD-SCDMA协议栈、TDD-LTE协议栈、FDD-LTE协议栈等,各个通信制式协议栈下面又包括多个子协议栈,此处不再赘述。Wherein, the modem is used to convert the baseband signal into a radio frequency signal, convert the radio frequency signal into a baseband signal, process the signaling of the access layer AS and the non-access layer NAS, and interface with the AP processor, etc. The modem can support multiple protocol stacks, and the protocol stack represents the sum of multiple protocols corresponding to a certain communication standard, for example: the protocol stack includes the GSM protocol stack, the EDGE protocol stack, the HSPDA protocol stack, the TD-SCDMA protocol stack, and the TDD-LTE protocol stack, FDD-LTE protocol stack, etc., each communication standard protocol stack includes multiple sub-protocol stacks, which will not be repeated here.

其中,协议栈异常指的是在通信过程中对当前的状态上下文的检测结果与预先期望的结果不相符合,例如当检测到一段时间内只有上行数据包但没有任何下行数据包则认为协议栈状态异常(即上下行链路不通);移动终端智能算法根据状态异常的现象判断出协议栈运行出现了异常,或移动终端与网络侧的通信过程受到不确定因素的影响而出现失步的情况,有的状态异常现象是常见的并易于处理的,有的状态异常是罕见并难以处理的,对于难以处理的状态异常现象放任不管可能导致协议栈异常进一步恶化而难以控制。Among them, the abnormality of the protocol stack refers to the fact that the detection result of the current state context during the communication process does not conform to the expected result. The status is abnormal (that is, the uplink and downlink links are blocked); the intelligent algorithm of the mobile terminal judges that the operation of the protocol stack is abnormal according to the phenomenon of abnormal status, or the communication process between the mobile terminal and the network side is affected by uncertain factors and there is a situation of out-of-synchronization , some state abnormalities are common and easy to handle, and some state abnormalities are rare and difficult to handle. Leaving unhandled state abnormalities that are difficult to handle may lead to further deterioration of protocol stack abnormalities and are difficult to control.

S102、所述调制解调器关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈。S102. The modem disables the first protocol stack, and selects a second protocol stack other than the first protocol stack from multiple protocol stacks supported by the modem.

具体的,调制解调器检测到当前使用的第一协议栈异常时,判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则调制解调器关闭该第一协议栈,防止该第一协议栈异常反复发生。然后,调制解调器从支持的多个协议栈中选择一个除该第一协议栈之外的第二协议栈,其中,调制解调器选择的策略可以是:选择比第一协议栈低一级的协议栈作为第二协议栈;或测量周围各个协议栈对应的小区信号的信号强度,将信号强度最大的协议栈作为第二协议栈;或选择比第一协议栈高一级的协议栈作为第二协议栈;或采用其他的策略确定第二协议栈,本发明不作限制。Specifically, when the modem detects that the currently used first protocol stack is abnormal, it judges whether the number of abnormalities of the first protocol stack in the preset time period reaches a preset value, and if so, the modem closes the first protocol stack to prevent the first protocol stack A protocol stack exception occurs repeatedly. Then, the modem selects a second protocol stack other than the first protocol stack from a plurality of supported protocol stacks, wherein the strategy selected by the modem may be: select a protocol stack one level lower than the first protocol stack as the second protocol stack Two protocol stacks; or measure the signal strength of the cell signals corresponding to the surrounding protocol stacks, and use the protocol stack with the largest signal strength as the second protocol stack; or select a protocol stack one level higher than the first protocol stack as the second protocol stack; Or use other strategies to determine the second protocol stack, which is not limited in the present invention.

S103、所述调制解调器开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册。S103. The modem starts the second protocol stack, and uses the second protocol stack to perform network registration again.

具体实现中,关闭第一协议栈后,移动终端由有服务态转换为无服务态,调制解调器开启选择的第二协议栈,使用第二协议栈进行网络注册,例如LTE网络注册的过程为:移动终端向网络侧发起附着请求(英文:attachrequest),若网络侧允许移动终端接入,则网络侧向移动终端返回附着响应(英文:attachaccept),表示网络注册成功,移动终端由无服务态转换为有服务态;若网络侧不允许移动终端接入,则网络侧向移动终端返回拒绝/错误信息,表示网络注册失败。In the specific implementation, after closing the first protocol stack, the mobile terminal is converted from the service state to the non-service state, and the modem turns on the selected second protocol stack, and uses the second protocol stack to perform network registration. For example, the process of LTE network registration is: The terminal initiates an attach request (English: attachrequest) to the network side. If the network side allows the mobile terminal to access, the network side returns an attach response (English: attachaccept) to the mobile terminal, indicating that the network registration is successful, and the mobile terminal changes from the no-service state to There is a service state; if the network side does not allow the mobile terminal to access, the network side returns a rejection/error message to the mobile terminal, indicating that the network registration failed.

S104、在网络注册成功时,所述调制解调器记录所述移动终端的位置信息。S104. When the network registration is successful, the modem records the location information of the mobile terminal.

其中,位置信息表示移动终端在移动通信网络中的逻辑位置,位置信息可以是小区标识或区域位置码或位置跟踪区域等,本发明实施例不做限定。如果调制解调器使用第二协议栈注册网络成功,则调制解调器记录移动终端当前的位置信息。Wherein, the location information indicates the logical location of the mobile terminal in the mobile communication network, and the location information may be a cell identifier, an area location code, or a location tracking area, etc., which are not limited in this embodiment of the present invention. If the modem successfully registers with the network using the second protocol stack, the modem records the current location information of the mobile terminal.

S105、在网络注册失败时,所述调制解调器恢复所述多个协议栈中默认协议栈的开关状态或所述调制解调器恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。S105. When the network registration fails, the modem restores the switch state of the default protocol stack in the multiple protocol stacks or the modem restores the switch state of the default protocol stack in the multiple protocol stacks and resets the modem at the same time.

具体的,调制解调器使用第二协议栈未成功注册上网络,调制解调器根据预先已知的默认协议栈的开关状态,恢复该默认协议栈的开关状态,或者调制解调器根据预先已知的默认协议栈的开关状态,恢复该默认协议栈的开关状态并同时对调制解调器进行复位操作。该默认协议栈为调制解调器支持的多个协议栈中的一个预先设置的协议栈,此处可以针对所有地区设置同一个默认的协议栈作为调制解调器初始选择使用的协议栈,也可以针对单个地区或处于某一区域的多个地区分别设置不同的默认协议栈,本发明实施例不作任何限定。进行复位操作后,调制解调器使用该默认协议栈进行网络注册,网络注册成功后,使用该默认协议栈进行工作。Specifically, the modem fails to register on the network using the second protocol stack, and the modem restores the switch state of the default protocol stack according to the switch state of the default protocol stack known in advance, or the modem restores the switch state of the default protocol stack according to the switch state of the default protocol stack known in advance. , restore the switch state of the default protocol stack and reset the modem at the same time. The default protocol stack is a pre-set protocol stack among the multiple protocol stacks supported by the modem. Here, the same default protocol stack can be set for all regions as the protocol stack initially selected by the modem, or for a single region or Different default protocol stacks are set in multiple areas of a certain area, which is not limited in this embodiment of the present invention. After the reset operation, the modem uses the default protocol stack for network registration. After the network registration is successful, the modem uses the default protocol stack for work.

本发明实施例中,当移动终端的调制解调器检测到当前使用的第一协议栈异常时,该调制解调器判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则该调制解调器关闭该第一协议栈,并开启该调制解调器支持的多个协议栈中除该第一协议栈之外的第二协议栈,进而使用该第二协议栈注册网络,在网络注册成功时记录该移动终端当前的位置信息,在网络注册失败时,该调制解调器恢复该多个协议栈中默认协议栈的开关状态,或者同时复位该调制解调器,可以通过切换其它协议栈进行网络注册的方式使调制解调器自动尝试恢复正常,避免手动强制重启移动终端或位置变化造成的耗时过长的问题,提高了网络通信功能异常时的处理效率。In the embodiment of the present invention, when the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if so, the modem Close the first protocol stack, and open the second protocol stack other than the first protocol stack among the multiple protocol stacks supported by the modem, and then use the second protocol stack to register with the network, and record the mobile when the network registration is successful The current location information of the terminal. When the network registration fails, the modem restores the switch state of the default protocol stack among the multiple protocol stacks, or resets the modem at the same time. The modem can automatically try to recover by switching other protocol stacks for network registration. Normal, to avoid the time-consuming problem caused by manual forced restart of the mobile terminal or location change, and improve the processing efficiency when the network communication function is abnormal.

请参阅图2,为本发明实施例提供的一种网络通信功能异常处理方法的第二实施例流程示意图。本实施例中所描述的网络通信功能异常处理方法,包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of a second embodiment of a method for handling abnormalities in network communication functions provided by an embodiment of the present invention. The method for handling the abnormality of the network communication function described in this embodiment includes the following steps:

S201、当移动终端的调制解调器检测到当前使用的第一协议栈异常时,所述调制解调器判断预设时长内所述第一协议栈异常的次数是否达到预设数值,若是,则执行步骤S202;若否,则执行步骤S208。S201. When the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if so, execute step S202; if If not, execute step S208.

其中,协议栈表示某个通信制式对应的多种协议栈的总和,例如:协议栈包括GSM协议栈、EDGE协议栈、HSPDA协议栈、TD-SCDMA协议栈、TDD-LTE协议栈、FDD-LTE协议栈等,各个通信制式协议栈下面又包括多个子协议栈,例如:TD-LTE协议栈又包括物理层协议栈、介质访问控制层MAC协议栈、无线链路控制RLC协议栈、RRC协议栈、PDCP协议栈和NAS协议栈等。此处不再赘述。Among them, the protocol stack represents the sum of various protocol stacks corresponding to a certain communication standard, for example: the protocol stack includes GSM protocol stack, EDGE protocol stack, HSPDA protocol stack, TD-SCDMA protocol stack, TDD-LTE protocol stack, FDD-LTE Protocol stack, etc. Each communication standard protocol stack includes multiple sub-protocol stacks, for example: TD-LTE protocol stack includes physical layer protocol stack, medium access control layer MAC protocol stack, radio link control RLC protocol stack, RRC protocol stack , PDCP protocol stack and NAS protocol stack, etc. I won't repeat them here.

S202、所述调制解调器关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈。S202. The modem disables the first protocol stack, and selects a second protocol stack other than the first protocol stack from multiple protocol stacks supported by the modem.

具体的,调制解调器检测到当前使用的第一协议栈异常时,判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则调制解调器关闭该第一协议栈,防止该第一协议栈异常反复发生。然后,调制解调器从支持的多个协议栈中选择一个除该第一协议栈之外的第二协议栈,其中,调制解调器选择的策略可以是:选择比第一协议栈低一级的协议栈作为第二协议栈;或测量周围各个协议栈对应的小区信号的信号强度,将信号强度最大的协议栈作为第二协议栈;或选择比第一协议栈高一级的协议栈作为第二协议栈;或采用其他的策略确定第二协议栈,本发明不作限制。Specifically, when the modem detects that the currently used first protocol stack is abnormal, it judges whether the number of abnormalities of the first protocol stack in the preset time period reaches a preset value, and if so, the modem closes the first protocol stack to prevent the first protocol stack A protocol stack exception occurs repeatedly. Then, the modem selects a second protocol stack other than the first protocol stack from a plurality of supported protocol stacks, wherein the strategy selected by the modem may be: select a protocol stack one level lower than the first protocol stack as the second protocol stack Two protocol stacks; or measure the signal strength of the cell signals corresponding to the surrounding protocol stacks, and use the protocol stack with the largest signal strength as the second protocol stack; or select a protocol stack one level higher than the first protocol stack as the second protocol stack; Or use other strategies to determine the second protocol stack, which is not limited in the present invention.

S203、所述调制解调器开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册。S203. The modem enables the second protocol stack, and uses the second protocol stack to perform network registration again.

具体实现中,关闭第一协议栈后,移动终端由有服务态转换为无服务态,调制解调器开启选择的第二协议栈,使用第二协议栈进行网络注册,例如LTE网络注册的过程为:移动终端向网络侧发起附着请求(英文:attachrequest),若网络侧允许移动终端接入,则网络侧向移动终端返回附着响应(英文:attachaccept),表示网络注册成功,移动终端由无服务态转换为有服务态;若网络侧不允许移动终端接入,则网络侧向移动终端返回拒绝/错误信息,表示网络注册失败。In the specific implementation, after closing the first protocol stack, the mobile terminal is converted from the service state to the non-service state, and the modem turns on the selected second protocol stack, and uses the second protocol stack to perform network registration. For example, the process of LTE network registration is: The terminal initiates an attach request (English: attachrequest) to the network side. If the network side allows the mobile terminal to access, the network side returns an attach response (English: attachaccept) to the mobile terminal, indicating that the network registration is successful, and the mobile terminal changes from the no-service state to There is a service state; if the network side does not allow the mobile terminal to access, the network side returns a rejection/error message to the mobile terminal, indicating that the network registration failed.

S204、所述调制解调器判断网络注册是否成功,若是,则执行步骤S205;若否,则执行步骤S207。S204. The modem judges whether the network registration is successful, if yes, execute step S205; if not, execute step S207.

S205、所述调制解调器记录所述移动终端的位置信息。S205. The modem records the location information of the mobile terminal.

具体的,位置信息表示移动通信网络中预先规划的逻辑位置的标识,例如,位置信息包括小区标识或位置区域码等。Specifically, the location information represents an identifier of a pre-planned logical location in the mobile communication network, for example, the location information includes a cell identifier or a location area code, and the like.

S206、所述调制解调器判断所述移动终端的位置信息是否发生变化,若是,则执行步骤S207;若否,则继续执行步骤S206。S206. The modem judges whether the location information of the mobile terminal changes, if yes, execute step S207; if not, continue to execute step S206.

具体的,调制解调器周期性的获取位置信息,在当前获取的位置信息和上一次获取的位置信息相比发生变化时,执行步骤S207,否则继续判断所述移动终端的位置信息是否发生变化。例如,位置信息为小区标识,移动终端由一个小区移动到另一小区,表示位置信息发生变化;位置信息为位置区域码,移动终端由一个位置区域移动到另一个位置区域,表明位置信息发生变化。调制解调器获取位置信息的周期本发明实施例不做限定,可以根据实际需求进行设置。Specifically, the modem periodically acquires location information, and when the currently acquired location information changes compared with the last acquired location information, step S207 is executed; otherwise, continue to determine whether the location information of the mobile terminal has changed. For example, the location information is the cell identifier, and the mobile terminal moves from one cell to another, indicating that the location information changes; the location information is the location area code, and the mobile terminal moves from one location area to another, indicating that the location information changes . The period for the modem to acquire location information is not limited in this embodiment of the present invention, and may be set according to actual needs.

S207、所述调制解调器恢复所述多个协议栈中默认协议栈的开关状态或所述调制解调器恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。S207. The modem restores the on/off state of the default protocol stack in the multiple protocol stacks or the modem restores the on/off state of the default protocol stack in the multiple protocol stacks and resets the modem at the same time.

具体的,调制解调器根据预先已知的默认协议栈的开关状态,恢复该默认协议栈的开关状态或同时复位所述调制解调器,或者调制解调器根据预先已知的默认协议栈的开关状态,恢复该默认协议栈的开关状态并。其中,该默认协议栈为调制解调器支持的多个协议栈中的一个预先设置的协议栈,此处可以针对所有地区设置同一个默认的协议栈作为调制解调器初始选择使用的协议栈,也可以针对单个地区或处于某一区域的多个地区分别设置不同的默认协议栈,本发明实施例不作任何限定。Specifically, the modem restores the switch state of the default protocol stack according to the switch state of the default protocol stack known in advance or resets the modem at the same time, or the modem restores the default protocol stack according to the switch state of the default protocol stack known in advance switch state and. Wherein, the default protocol stack is a preset protocol stack among the multiple protocol stacks supported by the modem. Here, the same default protocol stack can be set for all regions as the protocol stack initially selected by the modem, or for a single region Or different default protocol stacks are set in multiple regions in a certain region, which is not limited in this embodiment of the present invention.

S208、所述调制解调器复位所述调制解调器。S208. The modem resets the modem.

本发明实施例中,当移动终端的调制解调器检测到当前使用的第一协议栈异常时,该调制解调器判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果不是,则该调制解调器复位;如果是,则该调制解调器关闭该第一协议栈,并开启该调制解调器支持的多个协议栈中除该第一协议栈之外的第二协议栈,进而使用该第二协议栈注册网络,在网络注册成功时记录该移动终端当前的位置信息,并在该位置信息发生变化时恢复该多个协议栈中默认协议栈的开关状态或同时复位所述调制解调器,可以通过切换其它协议栈进行网络注册的方式使调制解调器自动尝试恢复正常,避免手动强制重启移动终端或位置变化造成的耗时过长的问题,提高了网络通信功能异常时的处理效率。In the embodiment of the present invention, when the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if not, the modem reset; if yes, then the modem closes the first protocol stack, and opens a second protocol stack other than the first protocol stack in multiple protocol stacks supported by the modem, and then uses the second protocol stack to register with the network, Record the current location information of the mobile terminal when the network registration is successful, and restore the switch state of the default protocol stack in the multiple protocol stacks or reset the modem at the same time when the location information changes, and the network can be implemented by switching other protocol stacks The registration method enables the modem to automatically try to return to normal, avoiding the time-consuming problem caused by manual forced restart of the mobile terminal or location change, and improves the processing efficiency when the network communication function is abnormal.

请参阅图3,为本发明实施例提供的一种网络通信功能异常处理方法的第三实施例流程示意图。本实施例中所描述的网络通信功能异常处理方法,包括以下步骤:Please refer to FIG. 3 , which is a schematic flowchart of a third embodiment of a method for handling abnormalities in network communication functions provided by an embodiment of the present invention. The method for handling the abnormality of the network communication function described in this embodiment includes the following steps:

S301、当移动终端的调制解调器检测到当前使用的第一协议栈异常时,所述调制解调器判断预设时长内所述第一协议栈异常的次数是否达到预设数值,若是,则执行步骤S302;若否,则执行步骤S306。S301. When the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if so, execute step S302; if If not, execute step S306.

其中,协议栈表示某个通信制式对应的多种协议栈的总和,例如:协议栈包括GSM协议栈、EDGE协议栈、HSPDA协议栈、TD-SCDMA协议栈、TDD-LTE协议栈、FDD-LTE协议栈等,各个通信制式协议栈下面又包括多个子协议栈,例如:TD-LTE协议栈又包括物理层协议栈、介质访问控制层MAC协议栈、无线链路控制RLC协议栈、RRC协议栈、PDCP协议栈和NAS协议栈等。此处不再赘述。Among them, the protocol stack represents the sum of various protocol stacks corresponding to a certain communication standard, for example: the protocol stack includes GSM protocol stack, EDGE protocol stack, HSPDA protocol stack, TD-SCDMA protocol stack, TDD-LTE protocol stack, FDD-LTE Protocol stack, etc. Each communication standard protocol stack includes multiple sub-protocol stacks, for example: TD-LTE protocol stack includes physical layer protocol stack, medium access control layer MAC protocol stack, radio link control RLC protocol stack, RRC protocol stack , PDCP protocol stack and NAS protocol stack, etc. I won't repeat them here.

S302、所述调制解调器关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈。S302. The modem disables the first protocol stack, and selects a second protocol stack other than the first protocol stack from multiple protocol stacks supported by the modem.

具体的,调制解调器检测到当前使用的第一协议栈异常时,判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则调制解调器关闭该第一协议栈,防止该第一协议栈异常反复发生。然后,调制解调器从支持的多个协议栈中选择一个除该第一协议栈之外的第二协议栈,其中,调制解调器选择的策略可以是:选择比第一协议栈低一级的协议栈作为第二协议栈;或测量周围各个协议栈对应的小区信号的信号强度,将信号强度最大的协议栈作为第二协议栈;或选择比第一协议栈高一级的协议栈作为第二协议栈;或采用其他的策略确定第二协议栈,本发明不作限制。Specifically, when the modem detects that the currently used first protocol stack is abnormal, it judges whether the number of abnormalities of the first protocol stack in the preset time period reaches a preset value, and if so, the modem closes the first protocol stack to prevent the first protocol stack A protocol stack exception occurs repeatedly. Then, the modem selects a second protocol stack other than the first protocol stack from a plurality of supported protocol stacks, wherein the strategy selected by the modem may be: select a protocol stack one level lower than the first protocol stack as the second protocol stack Two protocol stacks; or measure the signal strength of the cell signals corresponding to the surrounding protocol stacks, and use the protocol stack with the largest signal strength as the second protocol stack; or select a protocol stack one level higher than the first protocol stack as the second protocol stack; Or use other strategies to determine the second protocol stack, which is not limited in the present invention.

S303、所述调制解调器开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册。S303. The modem enables the second protocol stack, and uses the second protocol stack to perform network registration again.

具体实现中,关闭第一协议栈后,移动终端由有服务态转换为无服务态,调制解调器开启选择的第二协议栈,使用第二协议栈进行网络注册,例如LTE网络注册的过程为:移动终端向网络侧发起附着请求(英文:attachrequest),若网络侧允许移动终端接入,则网络侧向移动终端返回附着响应(英文:attachaccept),表示网络注册成功,移动终端由无服务态转换为有服务态;若网络侧不允许移动终端接入,则网络侧向移动终端返回拒绝/错误信息,表示网络注册失败。In the specific implementation, after closing the first protocol stack, the mobile terminal is converted from the service state to the non-service state, and the modem turns on the selected second protocol stack, and uses the second protocol stack to perform network registration. For example, the process of LTE network registration is: The terminal initiates an attach request (English: attachrequest) to the network side. If the network side allows the mobile terminal to access, the network side returns an attach response (English: attachaccept) to the mobile terminal, indicating that the network registration is successful, and the mobile terminal changes from the no-service state to There is a service state; if the network side does not allow the mobile terminal to access, the network side returns a rejection/error message to the mobile terminal, indicating that the network registration failed.

S304、在网络注册成功时,所述调制解调器记录所述移动终端的位置信息。S304. When the network registration is successful, the modem records the location information of the mobile terminal.

具体的,位置信息表示移动通信网络中预先规划的逻辑位置的标识,例如,位置信息包括小区标识或位置区域码等。Specifically, the location information represents an identifier of a pre-planned logical location in the mobile communication network, for example, the location information includes a cell identifier or a location area code, and the like.

S305、所述调制解调器将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。S305. The modem reports the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server.

其中,日志信息表示调制解调器操作该多个协议栈的操作信息,操作信息包括:操作指令、操作时间和返回结果。Wherein, the log information represents the operation information of the modem operating the multiple protocol stacks, and the operation information includes: operation instruction, operation time and return result.

具体的,调制解调器将异常原因(即该第一协议栈异常)、移动终端的位置信息和日志上报给服务器(即网络侧),其中,可以在移动终端连接上无线保真Wi-Fi热点的情况下,将上述信息上报给网络侧,以节省流量,或者该调制解调器也可以将异常原因显示在移动终端的显示屏上,供用户查看。Specifically, the modem reports the cause of the abnormality (i.e., the first protocol stack is abnormal), the location information and the log of the mobile terminal to the server (i.e., the network side), wherein, when the mobile terminal is connected to a wireless fidelity Wi-Fi hotspot Next, the above information is reported to the network side to save traffic, or the modem can also display the cause of the abnormality on the display screen of the mobile terminal for the user to view.

S306、所述调制解调器复位所述调制解调器。S306. The modem resets the modem.

本发明实施例中,当移动终端的调制解调器检测到当前使用的第一协议栈异常时,该调制解调器判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果不是,则该调制解调器复位;如果是,则该调制解调器关闭该第一协议栈,并开启该调制解调器支持的多个协议栈中除该第一协议栈之外的第二协议栈,进而使用该第二协议栈注册网络,在网络注册成功时记录该移动终端当前的位置信息,该调制解调器还可将该第一协议栈异常、该移动终端的位置信息以及该调制解调器记录的日志信息上报给服务器,可以通过切换其它协议栈进行网络注册的方式使调制解调器自动尝试恢复正常,避免手动强制重启移动终端或位置变化造成的耗时过长的问题,提高了网络通信功能异常时的处理效率。In the embodiment of the present invention, when the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if not, the modem reset; if yes, then the modem closes the first protocol stack, and opens a second protocol stack other than the first protocol stack in multiple protocol stacks supported by the modem, and then uses the second protocol stack to register with the network, When the network registration is successful, the current location information of the mobile terminal is recorded, and the modem can also report the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server, which can be performed by switching other protocol stacks. The way of network registration enables the modem to automatically try to return to normal, avoiding the time-consuming problem caused by manual forced restart of the mobile terminal or location change, and improves the processing efficiency when the network communication function is abnormal.

请参阅图4,为本发明实施例提供的一种调制解调器的第一实施例结构示意图。本实施例中所描述的调制解调器,包括:检测模块401、判断模块402、选取模块403、注册模块404和记录模块405,其中:Please refer to FIG. 4 , which is a schematic structural diagram of a first embodiment of a modem provided by an embodiment of the present invention. The modem described in this embodiment includes: a detection module 401, a judgment module 402, a selection module 403, a registration module 404 and a recording module 405, wherein:

检测模块401,用于检测移动终端的调制解调器当前使用的第一协议栈是否异常。The detection module 401 is configured to detect whether the first protocol stack currently used by the modem of the mobile terminal is abnormal.

判断模块402,用于当所述检测模块检测到所述第一协议栈异常时,判断预设时长内所述第一协议栈异常的次数是否达到预设数值。The judging module 402 is configured to judge whether the number of abnormalities of the first protocol stack within a preset time period reaches a preset value when the detection module detects that the first protocol stack is abnormal.

选取模块403,用于在所述判断模块判断出所述预设时长内所述第一协议栈异常的次数达到所述预设数值时,关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈。The selection module 403 is configured to close the first protocol stack when the judging module judges that the number of abnormalities of the first protocol stack within the preset time period reaches the preset value, and receive support from the modem Select a second protocol stack other than the first protocol stack from the multiple protocol stacks.

注册模块404,用于开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册。The registration module 404 is configured to enable the second protocol stack, and use the second protocol stack to perform network registration again.

记录模块405,用于在所述注册模块网络注册成功时,记录所述移动终端的位置信息。The recording module 405 is configured to record the location information of the mobile terminal when the network registration by the registration module is successful.

在一些可行的实施方式中,所述调制解调器还包括:In some feasible implementation manners, the modem also includes:

第一处理模块,用于在所述注册模块网络注册失败时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。The first processing module is used to restore the switch state of the default protocol stack in the plurality of protocol stacks or restore the switch state of the default protocol stack in the plurality of protocol stacks and reset all the protocol stacks at the same time when the network registration of the registration module fails. described modem.

在一些可行的实施方式中,所述调制解调器还包括:In some feasible implementation manners, the modem also includes:

第二处理模块,用于在所述记录模块在所述注册模块网络注册成功时,记录所述移动终端的位置信息之后,当所述位置信息发生变化时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。The second processing module is used to restore the default in the plurality of protocol stacks when the location information of the mobile terminal changes after the recording module records the location information of the mobile terminal when the network registration of the registration module is successful. switch state of the protocol stack or restore the default protocol stack switch state among the plurality of protocol stacks and reset the modem at the same time.

在一些可行的实施方式中,所述调制解调器还包括:In some feasible implementation manners, the modem also includes:

上报模块,用于将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。A reporting module, configured to report the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server.

在一些可行的实施方式中,所述调制解调器还包括:In some feasible implementation manners, the modem also includes:

复位模块,用于在所述判断模块判断出所述预设时长内所述第一协议栈异常的次数未达到所述预设数值时,复位所述调制解调器。A reset module, configured to reset the modem when the judging module judges that the number of abnormalities of the first protocol stack within the preset time period has not reached the preset value.

需要说明的是,本发明实施例的调制解调器的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It should be noted that the functions of each functional module of the modem in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here.

本发明实施例中,当移动终端的调制解调器检测到当前使用的第一协议栈异常时,该调制解调器判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则该调制解调器关闭该第一协议栈,并开启该调制解调器支持的多个协议栈中除该第一协议栈之外的第二协议栈,进而使用该第二协议栈注册网络,在网络注册成功时记录该移动终端当前的位置信息,在网络注册失败时,该调制解调器恢复该多个协议栈中默认协议栈的开关状态,或者同时复位该调制解调器,可以通过切换其它协议栈进行网络注册的方式使调制解调器自动尝试恢复正常,避免手动强制重启移动终端或位置变化造成的耗时过长的问题,提高了网络通信功能异常时的处理效率。In the embodiment of the present invention, when the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if so, the modem Close the first protocol stack, and open the second protocol stack other than the first protocol stack among the multiple protocol stacks supported by the modem, and then use the second protocol stack to register with the network, and record the mobile when the network registration is successful The current location information of the terminal. When the network registration fails, the modem restores the switch state of the default protocol stack among the multiple protocol stacks, or resets the modem at the same time. The modem can automatically try to recover by switching other protocol stacks for network registration. Normal, to avoid the time-consuming problem caused by manual forced restart of the mobile terminal or location change, and improve the processing efficiency when the network communication function is abnormal.

请参阅图5,为本发明实施例提供的一种调制解调器的第二实施例结构示意图。本实施例中所描述的调制解调器,包括:CPU501、存储器502和通信接口503,CPU501的数量可以是一个或多个,图5以一个CPU为例,上述CPU501、存储器502和通信接口503可通过总线504或其他方式连接,图5中以总线连接为例。Please refer to FIG. 5 , which is a schematic structural diagram of a second embodiment of a modem provided by an embodiment of the present invention. The modem described in this embodiment includes: CPU501, memory 502 and communication interface 503, the quantity of CPU501 can be one or more, Fig. 5 takes a CPU as an example, above-mentioned CPU501, memory 502 and communication interface 503 can pass bus 504 or other methods, and the bus connection is taken as an example in Figure 5.

其中,上述存储器502中存储一组程序代码,且上述CPU501用于调用上述存储器502中存储的程序代码,用于执行以下操作:Wherein, a group of program codes are stored in the memory 502, and the CPU 501 is used to call the program codes stored in the memory 502 to perform the following operations:

当检测到当前使用的第一协议栈异常时,判断预设时长内所述第一协议栈异常的次数是否达到预设数值。When an abnormality of the first protocol stack currently used is detected, it is judged whether the number of abnormalities of the first protocol stack within a preset time period reaches a preset value.

若所述预设时长内所述第一协议栈异常的次数达到所述预设数值,则关闭所述第一协议栈,并从调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈。If the number of abnormalities of the first protocol stack within the preset duration reaches the preset value, then close the first protocol stack, and select the first protocol stack from multiple protocol stacks supported by the modem Outside the second protocol stack.

开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册。Start the second protocol stack, and use the second protocol stack to perform network registration again.

在网络注册成功时,记录所述移动终端的位置信息。When the network registration is successful, record the location information of the mobile terminal.

在一些可行的实施方式中,上述CPU501还用于执行:In some feasible implementation manners, the above-mentioned CPU501 is also used to execute:

在网络注册失败时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。When the network registration fails, restore the switch state of the default protocol stack in the multiple protocol stacks or restore the switch state of the default protocol stack in the multiple protocol stacks and reset the modem at the same time.

在一些可行的实施方式中,上述CPU501还用于执行:In some feasible implementation manners, the above-mentioned CPU501 is also used to execute:

在网络注册成功时,记录所述移动终端的位置信息之后,当所述位置信息发生变化时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。When the network registration is successful, after recording the location information of the mobile terminal, when the location information changes, restore the switch state of the default protocol stack in the multiple protocol stacks or restore the default protocol stack in the multiple protocol stacks protocol stack switch state and simultaneously resets the modem.

在一些可行的实施方式中,上述CPU501还用于执行:In some feasible implementation manners, the above-mentioned CPU501 is also used to execute:

将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。Reporting the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server.

在一些可行的实施方式中,上述CPU501还用于执行:In some feasible implementation manners, the above-mentioned CPU501 is also used to execute:

若所述预设时长内所述第一协议栈异常的次数未达到所述预设数值,则复位所述调制解调器。If the number of abnormalities of the first protocol stack within the preset time period does not reach the preset value, then reset the modem.

本发明实施例中,当移动终端的调制解调器检测到当前使用的第一协议栈异常时,该调制解调器判断预设时长内该第一协议栈异常的次数是否达到预设数值,如果是,则该调制解调器关闭该第一协议栈,并开启该调制解调器支持的多个协议栈中除该第一协议栈之外的第二协议栈,进而使用该第二协议栈注册网络,在网络注册成功时记录该移动终端当前的位置信息,在网络注册失败时,该调制解调器恢复该多个协议栈中默认协议栈的开关状态,或者同时复位该调制解调器,可以通过切换其它协议栈进行网络注册的方式使调制解调器自动尝试恢复正常,避免手动强制重启移动终端或位置变化造成的耗时过长的问题,提高了网络通信功能异常时的处理效率。In the embodiment of the present invention, when the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within the preset duration reaches a preset value, and if so, the modem Close the first protocol stack, and open the second protocol stack other than the first protocol stack among the multiple protocol stacks supported by the modem, and then use the second protocol stack to register with the network, and record the mobile when the network registration is successful The current location information of the terminal. When the network registration fails, the modem restores the switch state of the default protocol stack among the multiple protocol stacks, or resets the modem at the same time. The modem can automatically try to recover by switching other protocol stacks for network registration. Normal, to avoid the time-consuming problem caused by manual forced restart of the mobile terminal or location change, and improve the processing efficiency when the network communication function is abnormal.

本发明实施例还提供了一种包括上述调制解调器的移动终端,移动终端包括但不限于搭载或者其它操作系统的移动终端,诸如移动电话。也可以是其它移动终端,诸如具有触敏表面(例如,触摸屏显示器和/或触控板)的膝上型计算机或平板电脑或台式计算机。The embodiment of the present invention also provides a mobile terminal including the above-mentioned modem, and the mobile terminal includes but is not limited to carrying Or mobile terminals with other operating systems, such as mobile phones. Other mobile terminals are also possible, such as laptops or tablets or desktop computers with touch-sensitive surfaces (eg, touch screen displays and/or touchpads).

在下面的讨论中,介绍了一种包括显示器和触敏表面的移动终端。然而应当理解,移动终端可以包括一个或多个其他物理用户接口设备,诸如物理键盘、鼠标和/或操作杆。In the following discussion, a mobile terminal including a display and a touch-sensitive surface is presented. It should be understood, however, that a mobile terminal may include one or more other physical user interface devices, such as a physical keyboard, mouse and/or joystick.

移动终端通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。Mobile terminals typically support multiple applications, such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, gaming applications , phone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music players applications, and/or digital video player applications.

可在移动终端上执行的各种应用程序可使用至少一个共用的物理用户接口设备,诸如触敏表面。触敏表面的一种或多种功能以及显示在移动终端上的相应信息可从一种应用程序调整和/或变化至下一种应用程序和/或在相应应用程序内被调整和/或变化。这样,移动终端的共用物理架构(诸如触敏表面)可利用对于用户而言直观清楚的用户界面来支持各种应用程序。The various applications executable on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the mobile terminal may be adjusted and/or varied from one application to the next and/or within a corresponding application . In this way, the common physical architecture of the mobile terminal, such as a touch-sensitive surface, can support various applications with a user interface that is intuitive and clear to the user.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)或随机存取存储器(RandomAccessMemory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM for short).

以上对本发明实施例所提供的一种网络通信功能异常处理方法、调制解调器及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to a method for handling abnormal network communication functions, a modem, and a mobile terminal provided by the embodiments of the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only It is used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this The content of the description should not be construed as limiting the present invention.

Claims (11)

1.一种网络通信功能异常处理方法,其特征在于,包括:1. A network communication function abnormal processing method, characterized in that, comprising: 当移动终端的调制解调器检测到当前使用的第一协议栈异常时,所述调制解调器判断预设时长内所述第一协议栈异常的次数是否达到预设数值;When the modem of the mobile terminal detects that the currently used first protocol stack is abnormal, the modem judges whether the number of abnormalities of the first protocol stack within a preset time length reaches a preset value; 若所述预设时长内所述第一协议栈异常的次数达到所述预设数值,则所述调制解调器关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈;If the number of abnormalities of the first protocol stack within the preset duration reaches the preset value, the modem closes the first protocol stack, and selects all but one protocol stack from the multiple protocol stacks supported by the modem. A second protocol stack other than the first protocol stack; 所述调制解调器开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册;The modem starts the second protocol stack, and uses the second protocol stack to perform network registration again; 在网络注册成功时,所述调制解调器记录所述移动终端的位置信息。When the network registration is successful, the modem records the location information of the mobile terminal. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 在网络注册失败时,所述调制解调器恢复所述多个协议栈中默认协议栈的开关状态或所述调制解调器恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。When the network registration fails, the modem restores the switch state of the default protocol stack among the multiple protocol stacks or the modem restores the switch state of the default protocol stack among the multiple protocol stacks and resets the modem at the same time. 3.根据权利要求1所述的方法,其特征在于,所述在网络注册成功时,所述调制解调器记录所述移动终端的位置信息之后,还包括:3. The method according to claim 1, characterized in that, after the modem records the location information of the mobile terminal when the network registration is successful, further comprising: 当所述位置信息发生变化时,所述调制解调器恢复所述多个协议栈中默认协议栈的开关状态或所述调制解调器恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。When the location information changes, the modem restores the switch state of the default protocol stack in the multiple protocol stacks or the modem restores the switch state of the default protocol stack in the multiple protocol stacks and resets the modem at the same time . 4.根据权利要求1~3中任一项所述的方法,其特征在于,还包括:4. The method according to any one of claims 1 to 3, further comprising: 所述调制解调器将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。The modem reports the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method according to claim 1, further comprising: 若所述预设时长内所述第一协议栈异常的次数未达到所述预设数值,则所述调制解调器复位所述调制解调器。If the number of abnormalities of the first protocol stack within the preset time period does not reach the preset value, the modem resets the modem. 6.一种调制解调器,其特征在于,包括:6. A modem, characterized in that, comprising: 检测模块,用于检测移动终端的调制解调器当前使用的第一协议栈是否异常;A detection module, configured to detect whether the first protocol stack currently used by the modem of the mobile terminal is abnormal; 判断模块,用于当所述检测模块检测到所述第一协议栈异常时,判断预设时长内所述第一协议栈异常的次数是否达到预设数值;A judging module, configured to judge whether the number of abnormalities of the first protocol stack within a preset time period reaches a preset value when the detection module detects that the first protocol stack is abnormal; 选取模块,用于在所述判断模块判断出所述预设时长内所述第一协议栈异常的次数达到所述预设数值时,关闭所述第一协议栈,并从所述调制解调器支持的多个协议栈中选取除所述第一协议栈之外的第二协议栈;A selection module, configured to shut down the first protocol stack when the judging module judges that the number of abnormalities of the first protocol stack within the preset duration reaches the preset value, and select from the modem supported Selecting a second protocol stack other than the first protocol stack from multiple protocol stacks; 注册模块,用于开启所述第二协议栈,并使用所述第二协议栈重新进行网络注册;A registration module, configured to enable the second protocol stack, and use the second protocol stack to perform network registration again; 记录模块,用于在所述注册模块网络注册成功时,记录所述移动终端的位置信息。A recording module, configured to record the location information of the mobile terminal when the network registration by the registration module is successful. 7.根据权利要求6所述的调制解调器,其特征在于,还包括:7. The modem according to claim 6, further comprising: 第一处理模块,用于在所述注册模块网络注册失败时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。The first processing module is used to restore the switch state of the default protocol stack in the plurality of protocol stacks or restore the switch state of the default protocol stack in the plurality of protocol stacks and reset all the protocol stacks at the same time when the network registration of the registration module fails. described modem. 8.根据权利要求6所述的调制解调器,其特征在于,还包括:8. The modem according to claim 6, further comprising: 第二处理模块,用于在所述记录模块在所述注册模块网络注册成功时,记录所述移动终端的位置信息之后,当所述位置信息发生变化时,恢复所述多个协议栈中默认协议栈的开关状态或恢复所述多个协议栈中的默认协议栈开关状态并同时复位所述调制解调器。The second processing module is used to restore the default in the plurality of protocol stacks when the location information of the mobile terminal changes after the recording module records the location information of the mobile terminal when the network registration of the registration module is successful. switch state of the protocol stack or restore the default protocol stack switch state among the plurality of protocol stacks and reset the modem at the same time. 9.根据权利要求6~8中任一项所述的调制解调器,其特征在于,还包括:9. The modem according to any one of claims 6 to 8, further comprising: 上报模块,用于将所述第一协议栈异常、所述移动终端的位置信息以及所述调制解调器记录的日志信息上报给服务器。A reporting module, configured to report the abnormality of the first protocol stack, the location information of the mobile terminal, and the log information recorded by the modem to the server. 10.根据权利要求6所述的调制解调器,其特征在于,还包括:10. The modem according to claim 6, further comprising: 复位模块,用于在所述判断模块判断出所述预设时长内所述第一协议栈异常的次数未达到所述预设数值时,复位所述调制解调器。A reset module, configured to reset the modem when the judging module judges that the number of abnormalities of the first protocol stack within the preset time period has not reached the preset value. 11.一种移动终端,其特征在于,包括如权利要求6~10中任一项所述的调制解调器。11. A mobile terminal, comprising the modem according to any one of claims 6-10.
CN201510824894.0A 2015-11-24 2015-11-24 A kind of network communicating function abnormality eliminating method, modem and mobile terminal Expired - Fee Related CN105491605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510824894.0A CN105491605B (en) 2015-11-24 2015-11-24 A kind of network communicating function abnormality eliminating method, modem and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510824894.0A CN105491605B (en) 2015-11-24 2015-11-24 A kind of network communicating function abnormality eliminating method, modem and mobile terminal

Publications (2)

Publication Number Publication Date
CN105491605A true CN105491605A (en) 2016-04-13
CN105491605B CN105491605B (en) 2018-07-06

Family

ID=55678236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510824894.0A Expired - Fee Related CN105491605B (en) 2015-11-24 2015-11-24 A kind of network communicating function abnormality eliminating method, modem and mobile terminal

Country Status (1)

Country Link
CN (1) CN105491605B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982450A (en) * 2017-05-27 2017-07-25 奇酷互联网络科技(深圳)有限公司 Communication abnormality processing method, device and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode application method and device of mobile terminal including LTE mode
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
CN104902524A (en) * 2014-03-06 2015-09-09 中兴通讯股份有限公司 Method for terminal to automatically switch data link and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413529A (en) * 2011-11-28 2012-04-11 青岛海信移动通信技术股份有限公司 Multi-mode application method and device of mobile terminal including LTE mode
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
CN104902524A (en) * 2014-03-06 2015-09-09 中兴通讯股份有限公司 Method for terminal to automatically switch data link and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982450A (en) * 2017-05-27 2017-07-25 奇酷互联网络科技(深圳)有限公司 Communication abnormality processing method, device and mobile terminal
CN106982450B (en) * 2017-05-27 2020-10-30 奇酷互联网络科技(深圳)有限公司 Communication exception handling method and device and mobile terminal

Also Published As

Publication number Publication date
CN105491605B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN105376773A (en) Network communication function anomaly processing method, application processor and mobile terminal
CN105376785B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376776B (en) Network communicating function abnormal processing method, application processor and mobile terminal
CN106686638A (en) Method and device for processing abnormality of network communication function
CN106488491A (en) Method and device for processing abnormality of network communication function
CN105357049B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105338663B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105517030B (en) Network communicating function abnormal processing method, modem and mobile terminal
CN105376775B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105490838B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105376784B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105376774B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105491605B (en) A kind of network communicating function abnormality eliminating method, modem and mobile terminal
CN105376783B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105376789B (en) Network communicating function abnormal processing method, modem and mobile terminal
CN105376873B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN105517029B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105515824A (en) Processing method for network communication function abnormity and modem
CN105376779A (en) Processing method of network communication function abnormity, application processor and mobile terminal
CN105491608B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105472648B (en) Network communicating function abnormal processing method, modem and mobile terminal
CN105357704B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN105491607B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN105357705B (en) Processing method, application processor and the mobile terminal of network communicating function exception

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

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

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

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

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

Granted publication date: 20180706