+

CN107071859B - Network connection processing method, device and terminal - Google Patents

Network connection processing method, device and terminal Download PDF

Info

Publication number
CN107071859B
CN107071859B CN201710296366.1A CN201710296366A CN107071859B CN 107071859 B CN107071859 B CN 107071859B CN 201710296366 A CN201710296366 A CN 201710296366A CN 107071859 B CN107071859 B CN 107071859B
Authority
CN
China
Prior art keywords
terminal
base station
network environment
enter
restricted mode
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
CN201710296366.1A
Other languages
Chinese (zh)
Other versions
CN107071859A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710296366.1A priority Critical patent/CN107071859B/en
Publication of CN107071859A publication Critical patent/CN107071859A/en
Application granted granted Critical
Publication of CN107071859B publication Critical patent/CN107071859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is leader and terminal is follower
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本公开是关于一种网络连接处理方法、装置及终端,其中,该方法包括:检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。

The present disclosure relates to a network connection processing method, device, and terminal, wherein the method includes: detecting the network environment where the terminal is currently located; judging whether to enter a restricted mode according to the current network environment, wherein the restricted mode indicates that the terminal is restricted from removing Functions other than the outgoing call function; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

Description

网络连接处理方法、装置及终端Network connection processing method, device and terminal

技术领域technical field

本公开涉及终端技术领域,尤其涉及网络连接处理方法、装置及终端。The present disclosure relates to the technical field of terminals, and in particular, to a network connection processing method, device and terminal.

背景技术Background technique

随着终端技术领域的发展,终端已经被广泛的应用到人们的生活和工作中。用户可以使用终端进行呼叫、或者接收其他用户的呼叫,或者使用终端进行紧急呼叫,或者使用终端中的各类应用程序,或者使用终端的计时、指南针等等功能。With the development of the terminal technology field, the terminal has been widely used in people's life and work. Users can use the terminal to make calls, or receive calls from other users, or use the terminal to make emergency calls, or use various applications in the terminal, or use the terminal's timing, compass and other functions.

相关技术中,用户在使用终端的时候,终端的电量会随着使用的增加而被消耗。当随着终端的消耗到一定程度的时候,终端会自动进入到省电模式,在省电模式下终端会降低终端的亮度,以达到节约此时的终端电量的目的。In related technologies, when a user uses a terminal, the power of the terminal will be consumed as the use increases. When the consumption of the terminal reaches a certain level, the terminal will automatically enter the power saving mode. In the power saving mode, the terminal will reduce the brightness of the terminal to achieve the purpose of saving the power of the terminal at this time.

然而相关技术中,终端只能在电量消耗到一定程度的时候去降低终端的亮度等,去节约终端的电量。而在终端处于网络状态较差的网络环境的时候,此时用户需要去节约终端的电量,从而用户可以较长时间的去使用终端,或者使用终端的其他紧急功能,对于这种状况,相关技术中尚未提出一种解决方案。However, in the related art, the terminal can only reduce the brightness of the terminal when the power consumption reaches a certain level, so as to save the power of the terminal. When the terminal is in a network environment with poor network status, the user needs to save the power of the terminal at this time, so that the user can use the terminal for a longer period of time, or use other emergency functions of the terminal. For this situation, related technology A solution has not been proposed yet.

发明内容Contents of the invention

为克服相关技术中存在的终端处于网络状态较差的网络环境的时候,如何去节约终端的电量的问题,本公开提供一种网络连接处理方法、装置及终端。In order to overcome the problem of how to save the power of the terminal when the terminal is in a network environment with poor network status in the related art, the present disclosure provides a network connection processing method, device and terminal.

根据本公开实施例的第一方面,提供一种网络连接处理方法,包括:According to a first aspect of an embodiment of the present disclosure, a network connection processing method is provided, including:

检测终端当前所处的网络环境;Detect the current network environment of the terminal;

根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;According to the current network environment, determine whether to enter a restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the outgoing call function;

若确定进入限制模式,则断开终端与基站的网络连接。If it is determined to enter the restricted mode, the network connection between the terminal and the base station is disconnected.

进一步地,在所述若确定进入限制模式,则断开终端与基站的网络连接之后,还包括:Further, after disconnecting the network connection between the terminal and the base station if it is determined to enter the restricted mode, the method further includes:

接收用户发送的呼出请求;Receive the outgoing request sent by the user;

根据所述呼出请求,打开所述终端与所述基站之间的网络连接,以使所述终端与所述基站之间进行网络连接;Opening the network connection between the terminal and the base station according to the outgoing call request, so that the network connection between the terminal and the base station is established;

将所述呼出请求发送给所述基站,以使所述基站根据所述呼出请求完成所述用户的呼叫之后返回完成通信消息;sending the call out request to the base station, so that the base station returns a communication completion message after completing the user's call according to the call out request;

接收所述完成通信消息,再次进入所述限制模式。After receiving the communication completion message, enter the restriction mode again.

进一步地,在所述若确定进入限制模式,则断开终端与基站的网络连接之前,还包括:Further, before disconnecting the network connection between the terminal and the base station if it is determined to enter the restricted mode, the method further includes:

向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人;Sending a setup list to the base station, wherein the setup list includes at least one contact, so that when the base station receives an incoming call request from a contact in the setup list, it generates an incoming call according to the incoming call request History records, wherein the incoming call history records include contacts who called the terminal;

相应的,在所述若确定进入限制模式,则断开终端与基站的网络连接之后,还包括:Correspondingly, after disconnecting the network connection between the terminal and the base station if it is determined to enter the restricted mode, the method further includes:

在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。When the terminal is connected to the base station, the incoming call history record stored in the base station is acquired.

进一步地,所述向所述基站发送设置名单,包括:Further, the sending the setting list to the base station includes:

接收用户输入的所述设置名单,并将所述设置名单发送给所述基站;receiving the setting list input by the user, and sending the setting list to the base station;

或者,or,

获取通话记录,根据通话记录中的通话次数排名为前N位的联系人,生成所述设置名单,并将所述设置名单发送给所述基站;其中,N为正整数。Obtaining the call records, generating the setting list for the top N contacts according to the number of calls in the call records, and sending the setting list to the base station; wherein, N is a positive integer.

进一步地,所述在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录,包括:Further, the acquiring the incoming call history record stored in the base station when the terminal is connected to the base station includes:

在所述终端与所述基站进行网络连接时,向所述基站发送历史记录获取请求,以使所述基站返回所述呼入历史记录;When the terminal is connected to the base station, sending a history record acquisition request to the base station, so that the base station returns the incoming call history record;

或者,or,

根据预设时间间隔定期的建立所述终端与所述基站的网络连接,接收所述基站自动发送的所述呼入历史记录。regularly establishing a network connection between the terminal and the base station according to a preset time interval, and receiving the incoming call history record automatically sent by the base station.

进一步地,所述根据所述当前网络环境,判断是否进入限制模式,包括:Further, the judging whether to enter the restricted mode according to the current network environment includes:

判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment;

若确定为网络环境差的状态,则确定进入限制模式。If it is determined that the network environment is poor, it is determined to enter the restricted mode.

进一步地,所述根据所述当前网络环境,判断是否进入限制模式,包括:Further, the judging whether to enter the restricted mode according to the current network environment includes:

判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment;

若确定为网络环境差的状态,则显示提示信息,以提示用户是否进入所述限制模式;If it is determined that the network environment is in a poor state, then display a prompt message to prompt the user whether to enter the restricted mode;

接收所述用户发送的确认信息,根据所述确认信息确定进入所述限制模式。receiving confirmation information sent by the user, and determining to enter the restricted mode according to the confirmation information.

进一步地,所述根据所述当前网络环境,判断是否进入限制模式,包括:Further, the judging whether to enter the restricted mode according to the current network environment includes:

获取所述终端的当前电量;Obtain the current power of the terminal;

判断所述当前电量是否小于等于预设电量,且所述当前网络环境是否为网络环境差的状态;judging whether the current power is less than or equal to a preset power, and whether the current network environment is in a state of poor network environment;

若确定所述当前电量小于等于预设电量、且所述当前网络环境为网络环境差的状态,则确定进入限制模式。If it is determined that the current power is less than or equal to the preset power and the current network environment is in a state of poor network environment, then it is determined to enter the restriction mode.

本公开的实施例提供的技术方案可以包括以下有益效果:通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: By detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the calling function. Function; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

根据本公开实施例的第二方面,提供一种网络连接处理装置,包括:According to a second aspect of an embodiment of the present disclosure, a network connection processing device is provided, including:

检测模块,被配置为检测终端当前所处的网络环境;a detection module configured to detect the network environment where the terminal is currently located;

判断模块,被配置为根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;The judging module is configured to judge whether to enter a restricted mode according to the current network environment, wherein the restricted mode means restricting the terminal to perform various functions except the outgoing call function;

限制模块,被配置为若确定进入限制模式,则断开终端与基站的网络连接。The restriction module is configured to disconnect the network connection between the terminal and the base station if it is determined to enter the restriction mode.

进一步地,所述装置,还包括:Further, the device also includes:

第一接收模块,被配置为在所述限制模块断开终端与基站的网络连接之后,接收用户发送的呼出请求;The first receiving module is configured to receive an outgoing call request sent by the user after the restriction module disconnects the network connection between the terminal and the base station;

连接模块,被配置为根据所述呼出请求,打开所述终端与所述基站之间的网络连接,以使所述终端与所述基站之间进行网络连接;A connection module configured to open a network connection between the terminal and the base station according to the outgoing call request, so as to enable a network connection between the terminal and the base station;

第一发送模块,被配置为将所述呼出请求发送给所述基站,以使所述基站根据所述呼出请求完成所述用户的呼叫之后返回完成通信消息;The first sending module is configured to send the call out request to the base station, so that the base station returns a communication completion message after completing the user's call according to the call out request;

第二接收模块,被配置为接收所述完成通信消息,再次进入所述限制模式。The second receiving module is configured to receive the communication completion message and enter the restriction mode again.

进一步地,所述装置,还包括:Further, the device also includes:

第二发送模块,被配置为在所述限制模块断开终端与基站的网络连接之前,向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人;The second sending module is configured to send a setting list to the base station before the restriction module disconnects the network connection between the terminal and the base station, wherein the setting list includes at least one contact person, so that the base station can When an incoming call request from a contact in the set list is received, an incoming call history record is generated according to the incoming call request, wherein the incoming call history record includes a contact who called the terminal;

相应的,所述装置,还包括:Correspondingly, the device also includes:

获取模块,被配置为在所述限制模块断开终端与基站的网络连接之后,在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。The obtaining module is configured to obtain the incoming call history record stored in the base station when the terminal connects to the base station after the restriction module disconnects the network connection between the terminal and the base station.

进一步地,所述第二发送模块,被具体配置为:Further, the second sending module is specifically configured as:

接收用户输入的所述设置名单,并将所述设置名单发送给所述基站;receiving the setting list input by the user, and sending the setting list to the base station;

或者,or,

获取通话记录,根据通话记录中的通话次数排名为前N位的联系人,生成所述设置名单,并将所述设置名单发送给所述基站;其中,N为正整数。Obtaining the call records, generating the setting list for the top N contacts according to the number of calls in the call records, and sending the setting list to the base station; wherein, N is a positive integer.

进一步地,所述获取模块,被具体配置为:Further, the acquisition module is specifically configured as:

在所述终端与所述基站进行网络连接时,向所述基站发送历史记录获取请求,以使所述基站返回所述呼入历史记录;When the terminal is connected to the base station, sending a history record acquisition request to the base station, so that the base station returns the incoming call history record;

或者,or,

根据预设时间间隔定期的建立所述终端与所述基站的网络连接,接收所述基站自动发送的所述呼入历史记录。regularly establishing a network connection between the terminal and the base station according to a preset time interval, and receiving the incoming call history record automatically sent by the base station.

进一步地,所述判断模块,被具体配置为:Further, the judging module is specifically configured as:

判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment;

若确定为网络环境差的状态,则确定进入限制模式。If it is determined that the network environment is poor, it is determined to enter the restricted mode.

进一步地,所述判断模块,被具体配置为:Further, the judging module is specifically configured as:

判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment;

若确定为网络环境差的状态,则显示提示信息,以提示用户是否进入所述限制模式;If it is determined that the network environment is in a poor state, then display a prompt message to prompt the user whether to enter the restricted mode;

接收所述用户发送的确认信息,根据所述确认信息确定进入所述限制模式。receiving confirmation information sent by the user, and determining to enter the restricted mode according to the confirmation information.

进一步地,所述判断模块,被具体配置为:Further, the judging module is specifically configured as:

获取所述终端的当前电量;Obtain the current power of the terminal;

判断所述当前电量是否小于等于预设电量,且所述当前网络环境是否为网络环境差的状态;judging whether the current power is less than or equal to a preset power, and whether the current network environment is in a state of poor network environment;

若确定所述当前电量小于等于预设电量、且所述当前网络环境为网络环境差的状态,则确定进入限制模式。If it is determined that the current power is less than or equal to the preset power and the current network environment is in a state of poor network environment, then it is determined to enter the restriction mode.

本公开的实施例提供的技术方案可以包括以下有益效果:通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: By detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the calling function. Function; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

根据本公开实施例的第三方面,提供一种终端,包括:According to a third aspect of the embodiments of the present disclosure, a terminal is provided, including:

处理器,以及用于存储处理器可执行指令的存储器;a processor, and memory for storing instructions executable by the processor;

其中,所述处理器被配置为:检测终端当前所处的网络环境;根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。Wherein, the processor is configured to: detect the network environment where the terminal is currently located; judge whether to enter a restricted mode according to the current network environment, wherein the restricted mode means that the terminal is restricted from performing various functions except the outgoing call function. Function; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station.

本公开的实施例提供的技术方案可以包括以下有益效果:通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: By detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the calling function. Function; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的一种网络连接处理方法实施例一的流程图;Fig. 1 is a flow chart of Embodiment 1 of a network connection processing method shown according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种网络连接处理方法实施例二的流程图;Fig. 2 is a flow chart of Embodiment 2 of a network connection processing method according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种网络连接处理装置实施例三的框图;Fig. 3 is a block diagram of a third embodiment of a network connection processing device according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种网络连接处理装置实施例四的框图;Fig. 4 is a block diagram of Embodiment 4 of an apparatus for network connection processing according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种终端的实体的框图;Fig. 5 is a block diagram of an entity of a terminal according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种终端设备800的框图。Fig. 6 is a block diagram showing a terminal device 800 according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

图1是根据一示例性实施例示出的一种网络连接处理方法实施例一的流程图,如图1所示,该方法用于终端中,该终端包括移动终端、个人终端等等,例如触屏手机、平板电脑、个人电脑等,该方法包括以下步骤。Fig. 1 is a flowchart of Embodiment 1 of a network connection processing method according to an exemplary embodiment. As shown in Fig. 1, the method is used in a terminal, the terminal includes a mobile terminal, a personal terminal, etc. screen mobile phone, tablet computer, personal computer, etc., the method includes the following steps.

在步骤S11中,检测终端当前所处的网络环境。In step S11, the current network environment of the terminal is detected.

在本步骤中,在终端的使用过程中,用户可能会携带终端抵达网络环境较差的地方,例如旅游到了大山上,或出门拜访住在偏僻地方的亲戚朋友。在这种情况下,用户需要终端保持终端电量充足,或者可以增加续航,避免遇到终端快没电还需快到了打电话联系他人的情况。从而,在本发明中,终端可以实时的检测终端当前所处的网络环境是怎样的。In this step, during the use of the terminal, the user may take the terminal to a place with a poor network environment, such as traveling to a mountain, or going out to visit relatives and friends living in remote places. In this case, the user needs the terminal to keep the terminal with sufficient power, or to increase the battery life, so as to avoid the situation that the terminal is almost out of battery and needs to call to contact others when it is almost time. Therefore, in the present invention, the terminal can detect in real time what the current network environment of the terminal is like.

在步骤S12中,根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能。In step S12, according to the current network environment, it is judged whether to enter a restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the outgoing call function.

其中,步骤S12具有三种实现方式:Wherein, step S12 has three implementations:

第一种实现方式:判断所述当前网络环境是否为网络环境差的状态;若确定为网络环境差的状态,则确定进入限制模式。A first implementation manner: judging whether the current network environment is in a state of poor network environment; if determined to be in a state of poor network environment, determine to enter a restricted mode.

第二种实现方式:判断所述当前网络环境是否为网络环境差的状态;若确定为网络环境差的状态,则显示提示信息,以提示用户是否进入所述限制模式;接收所述用户发送的确认信息,根据所述确认信息确定进入所述限制模式。The second implementation mode: judging whether the current network environment is in a state of poor network environment; if it is determined to be in a state of poor network environment, then display a prompt message to prompt the user whether to enter the restricted mode; receive the message sent by the user Confirmation information, determining to enter the restricted mode according to the confirmation information.

第三种实现方式:获取所述终端的当前电量;判断所述当前电量是否小于等于预设电量,且所述当前网络环境是否为网络环境差的状态;若确定所述当前电量小于等于预设电量、且所述当前网络环境为网络环境差的状态,则确定进入限制模式。The third implementation method: obtain the current power of the terminal; determine whether the current power is less than or equal to the preset power, and whether the current network environment is in a state of poor network environment; if it is determined that the current power is less than or equal to the preset power, and the current network environment is in a state of poor network environment, then determine to enter the restricted mode.

在本步骤中,终端可以依据当前网络环境的状态,去判断当前网络环境的优劣,进而判断是否自动调整终端进入到一个限制模式。在本发明中,该限制模式指的是,限制终端进行除去呼出功能以外的各功能,该限制模式是一种“(限制呼入)只能呼出模式”,终端可以接收用户的呼叫请求,然后去进行相应的操作,但是终端的其他均关闭了。In this step, the terminal can judge whether the current network environment is good or bad according to the state of the current network environment, and then judge whether to automatically adjust the terminal to enter a restricted mode. In the present invention, the restricted mode refers to restricting the terminal to perform functions other than the call-out function. The restricted mode is a "(restricted call-in) only call-out mode", and the terminal can receive the user's call request, and then To perform the corresponding operation, but everything else in the terminal is closed.

本步骤中,提供了三种实施方式。第一种实施方式为,终端实时的判断当前网络环境是否为网络环境差的状态,一旦终端确定当前的网络环境为网络环境差的状态,则终端自动的确定进入到该限制模式。第二种实施方式为,终端实时的判断当前网络环境是否为网络环境差的状态,一旦终端确定当前的网络环境为网络环境差的状态,终端可以显示一个交互界面上,在该交互界面上显示一个提示信息,例如“请确认是否进入到限制模式”,让用户来选择是否让终端进入到限制模式;用户在该交互界面上选择“进入到限制模式”,进而终端就可以接收到用户发送的确认进入到限制模式的确认信息;然后,终端就可以进入到限制模式了。第三种实施方式为,终端实时的判断当前网络环境是否为网络环境差的状态,同时终端可以获取到终端的当前电量;终端对于终端所处的网络环境、以及终端电量同时进行判定,判断当前网络环境是否为网络环境差的状态、同时终端的当前电量是否小于等于预设电量,这个预设电量可以是用户设置的、也可以是终端自动设置的;一旦终端确定当前网络环境为网络环境差的状态、且终端的当前电量小于等于预设电量,终端就可以自动的进入到限制模式了,或者,一旦终端确定当前网络环境为网络环境差的状态、且终端的当前电量小于等于预设电量,终端也可以显示一个交互界面,在该交互界面上显示一个提示信息,让用户来选择是否让终端进入到限制模式,用户在该交互界面上选择“进入到限制模式”,进而终端就可以接收到用户发送的确认进入到限制模式的确认信息,然后终端就可以进入到限制模式了。In this step, three implementation manners are provided. The first embodiment is that the terminal judges in real time whether the current network environment is in a state of poor network environment, and once the terminal determines that the current network environment is in a state of poor network environment, the terminal automatically determines to enter the restricted mode. The second implementation mode is that the terminal judges in real time whether the current network environment is in a state of poor network environment. Once the terminal determines that the current network environment is in a state of poor network environment, the terminal can display an interactive interface on which to display A prompt message, such as "Please confirm whether to enter the restricted mode", allows the user to choose whether to allow the terminal to enter the restricted mode; the user selects "Enter the restricted mode" on the interactive interface, and then the terminal can receive the message sent by the user Confirm the confirmation message of entering the restricted mode; then, the terminal can enter the restricted mode. The third implementation mode is that the terminal judges in real time whether the current network environment is in a bad network environment, and at the same time, the terminal can obtain the current power of the terminal; Whether the network environment is in a poor network environment, and whether the current power of the terminal is less than or equal to the preset power, which can be set by the user or automatically by the terminal; once the terminal determines that the current network environment is poor state, and the current power of the terminal is less than or equal to the preset power, the terminal can automatically enter the restricted mode, or, once the terminal determines that the current network environment is in a state of poor network environment, and the current power of the terminal is less than or equal to the preset power , the terminal can also display an interactive interface, display a prompt message on the interactive interface, allowing the user to choose whether to let the terminal enter the restricted mode, the user selects "enter restricted mode" on the interactive interface, and then the terminal can receive After receiving the confirmation message sent by the user to confirm entering the restricted mode, the terminal can then enter the restricted mode.

在步骤S13中,若确定进入限制模式,则断开终端与基站的网络连接。In step S13, if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station.

在本步骤中,终端一旦确认需要进入到限制模式,则终端就向与该终端连接基站发送一个状态信息,在该状态信息中包括了终端的状态,即终端需要进入到限制模式的状态;然后,终端关闭通信网络,就断开了终端与基站的网络连接。In this step, once the terminal confirms that it needs to enter the restricted mode, the terminal sends a status message to the base station connected to the terminal, in which the status information includes the status of the terminal, that is, the status that the terminal needs to enter the restricted mode; and then , the terminal turns off the communication network, and the network connection between the terminal and the base station is disconnected.

本实施例通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。In this embodiment, by detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode indicates that the terminal is restricted from performing functions other than the call-out function; if it is determined to enter the restricted mode, then disconnect the terminal Network connection to the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

在上述图1所示的实施例的基础上,图2是根据一示例性实施例示出的一种网络连接处理方法实施例二的流程图,如图2所示,在步骤S13之前,还包括:On the basis of the embodiment shown in FIG. 1 above, FIG. 2 is a flow chart of Embodiment 2 of a network connection processing method according to an exemplary embodiment. As shown in FIG. 2 , before step S13, it also includes :

在步骤S21中,向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人。In step S21, send the setting list to the base station, wherein the setting list includes at least one contact, so that when the base station receives an incoming call request from a contact in the setting list, according to the call The incoming request generates an incoming call history record, wherein the incoming call history record includes a contact who called the terminal.

其中,向所述基站发送设置名单的方式有两种:Wherein, there are two ways to send the setting list to the base station:

第一种实现方式:接收用户输入的所述设置名单,并将所述设置名单发送给所述基站。A first implementation manner: receiving the setting list input by the user, and sending the setting list to the base station.

第二种实现方式:获取通话记录,根据通话记录中的通话次数排名为前N位的联系人,生成所述设置名单,并将所述设置名单发送给所述基站;其中,N为正整数。The second implementation method: obtain the call record, generate the setting list according to the number of calls in the call record and rank the top N contacts, and send the setting list to the base station; wherein, N is a positive integer .

在本步骤中,在终端断开与基站的连接之前,用户可以在终端中选择出多个联系人,去组成一个设置名单;或者,在终端断开与基站的连接之前,终端获取终端中保存的通话记录,根据通话记录中的通话次数,对通话记录中的联系人进行排名,得到排名为前N位的联系人,进而终端依据这到排名前N位的联系人生成一个设置名单。同时,终端可以在设置名单中,针对不同的联系人,设置自动回复预置留言、或短信。In this step, before the terminal disconnects from the base station, the user can select multiple contacts in the terminal to form a setting list; or, before the terminal disconnects from the base station, the terminal obtains the contacts stored in the terminal. According to the number of calls in the call record, the contacts in the call record are ranked to obtain the top N contacts, and then the terminal generates a setting list based on the top N contacts. At the same time, the terminal can set automatic reply to preset messages or text messages for different contacts in the setting list.

然后,终端就可以将该设置名单发送给基站。基站接收并保存该终端发送的设置名单。Then, the terminal can send the setting list to the base station. The base station receives and saves the setting list sent by the terminal.

在该终端进入到了限制模式的过程中,其他终端有可能会向该终端发起呼叫,此时,基站会接收到其他终端发送的呼入请求,然后,终端判断其他终端是否是设置名单中的联系人,若是,则终端可以根据设置名单中的联系人发起的呼入请求生成一个呼入历史记录。或者,在该终端进入到了限制模式的过程中,其他终端有可能会向该终端发起呼叫,基站将所有呼叫该终端的其他终端的呼入请求,都放入呼入历史记录中。When the terminal enters the restricted mode, other terminals may initiate a call to the terminal. At this time, the base station will receive the call-in request sent by other terminals, and then the terminal will determine whether other terminals are contacts in the set list. If so, the terminal can generate an incoming call history record according to the incoming call request initiated by the contacts in the set list. Or, when the terminal enters the restricted mode, other terminals may initiate a call to the terminal, and the base station puts all incoming call requests of other terminals calling the terminal into the incoming call history record.

与步骤S21相对应着,在步骤S13之后,还包括:Corresponding to step S21, after step S13, it also includes:

在步骤S22中,在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。In step S22, when the terminal is connected to the base station, the incoming call history record stored in the base station is acquired.

其中,步骤S22具有两种实现方式:Wherein, step S22 has two implementations:

第一种实现方式:在所述终端与所述基站进行网络连接时,向所述基站发送历史记录获取请求,以使所述基站返回所述呼入历史记录。A first implementation manner: when the terminal is connected to the base station, a history record acquisition request is sent to the base station, so that the base station returns the incoming call history record.

第二种实现方式:根据预设时间间隔定期的建立所述终端与所述基站的网络连接,接收所述基站自动发送的所述呼入历史记录。A second implementation manner: periodically establish a network connection between the terminal and the base station according to a preset time interval, and receive the incoming call history record automatically sent by the base station.

在本步骤中,在终端不再处于限制模式的时候,此时,终端会打开通信网络,进而终端与基站进行网络连接,然后,终端可以向基站发送一个历史记录获取请求;由于在基站中保存了该终端处于限制模式时候的呼入历史记录,进而,基站可以将该呼入历史记录发送给终端,终端显示该呼入历史记录,使得用户查看在限制模式的期间有哪些联系人呼叫了自己。In this step, when the terminal is no longer in the restricted mode, at this time, the terminal will open the communication network, and then the terminal will connect to the base station, and then the terminal can send a historical record acquisition request to the base station; The incoming call history record when the terminal is in the restricted mode, and then the base station can send the incoming call history record to the terminal, and the terminal displays the incoming call history record, so that the user can check which contacts have called him during the restricted mode .

或者,在终端进入限制模式之前,终端设置一个获取呼入历史记录的时间间隔,进而终端在该时间间隔发生的时候,打开通信网络,进而建立起终端与基站的网络连接,此时基站检测到终端与其连接了,基站就可以自动的将保存的呼入历史记录发送给终端;使得终端显示该呼入历史记录,使得用户查看在限制模式的期间有哪些联系人呼叫了自己。Or, before the terminal enters the restricted mode, the terminal sets a time interval for obtaining incoming call history records, and then the terminal opens the communication network when the time interval occurs, and then establishes a network connection between the terminal and the base station, and the base station detects When the terminal is connected to it, the base station can automatically send the stored incoming call history to the terminal; the terminal displays the incoming call history, allowing the user to check which contacts have called him during the restricted mode.

举例来说,在终端进入限制模式之前,终端将一个获取历史记录的时间发送给基站,例如,终端可以在呼出结束时、或者呼出开始时、或者关闭限制模式的时候,去获取基站中保存的历史记录,这个获取历史记录的时间可以由用户选择。然后,基站根据该获取历史记录的时间,在这一时间点打开通信网络,进而建立起终端与基站的网络连接,此时基站检测到终端与其连接了,基站就可以自动的将保存的呼入历史记录发送给终端。For example, before the terminal enters the restricted mode, the terminal sends a time to obtain the history record to the base station. For example, the terminal can obtain the history record stored in the base station at the end of the outgoing call, or at the beginning of the outgoing call, or when the restricted mode is turned off. History, the time to get the history can be selected by the user. Then, the base station opens the communication network at this time point according to the time of obtaining the history record, and then establishes the network connection between the terminal and the base station. The history is sent to the terminal.

本实施例提供的方法,在步骤S13之后,还包括:The method provided in this embodiment, after step S13, further includes:

在步骤S23中,接收用户发送的呼出请求;根据所述呼出请求,打开所述终端与所述基站之间的网络连接,以使所述终端与所述基站之间进行网络连接。In step S23, a call out request sent by the user is received; according to the call out request, the network connection between the terminal and the base station is opened, so that the terminal and the base station are connected through a network.

在本步骤中,在终端进入限制模式的期间,终端可以接收用户发起的呼出请求,此时用户具有打出电话的需求。此时,终端就需要依据该呼出请求,打开通信网络,进而使得终端与基站进行网络连接。In this step, when the terminal enters the restricted mode, the terminal may receive an outgoing call request initiated by the user, and at this time the user has a need to make an outgoing call. At this time, the terminal needs to open the communication network according to the outgoing call request, and then make the terminal connect to the base station through the network.

在步骤S24中,将所述呼出请求发送给所述基站,以使所述基站根据所述呼出请求完成所述用户的呼叫之后返回完成通信消息。In step S24, the outgoing call request is sent to the base station, so that the base station returns a communication completion message after completing the user's call according to the outgoing call request.

在本步骤中,在终端与基站进行网络连接之后,终端将该呼出请求发送给基站,基站就可以将该呼出请求发送给相应的其他终端,使得终端与其他终端进行通信,完成当前用户的用户。在完成用户的呼叫之后,基站生成一个完成通信消息的消息,然后,基站将该完成通信消息发送给终端。In this step, after the terminal and the base station are connected to the network, the terminal sends the call out request to the base station, and the base station can send the call out request to other corresponding terminals, so that the terminal communicates with other terminals to complete the current user's user . After the user's call is completed, the base station generates a communication completion message, and then the base station sends the communication completion message to the terminal.

在步骤S25中,接收所述完成通信消息,再次进入所述限制模式。In step S25, the communication completion message is received, and the restricted mode is entered again.

在本步骤中,终端在接收到基站发送的完成通信消息之后,就可以确认当前用户完成了呼出,然后,终端再次自动进入到限制模式,再次限制终端进行除去呼出功能以外的各功能。In this step, after the terminal receives the communication completion message sent by the base station, it can confirm that the current user has completed the outgoing call, and then the terminal automatically enters the restricted mode again, and again restricts the terminal to perform various functions except the outgoing call function.

本实施例通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接;接收呼出请求,打开终端与基站之间的网络连接,以使终端与基站之间进行网络连接之后,再次进入限制模式。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验;用户可以在限制模式期间,进行呼出请求。并且,在终端进入限制模式之前,可以向基站发送设置名单,使得基站在接收到设置名单中的联系人的呼入请求时根据呼入请求生成呼入历史记录,并在合适的时候基站向终端返回该呼入历史记录;使得用户可以查看到在限制模式的期间有哪些联系人呼叫了自己。In this embodiment, by detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode indicates that the terminal is restricted from performing functions other than the call-out function; if it is determined to enter the restricted mode, then disconnect the terminal Network connection with the base station; receiving an outgoing call request, opening the network connection between the terminal and the base station, so that after the network connection between the terminal and the base station, the terminal enters the restricted mode again. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience; the user can make outgoing calls during the restricted mode. In addition, before the terminal enters the restricted mode, it can send the set list to the base station, so that the base station generates an incoming call history record according to the incoming call request when receiving an incoming call request from a contact in the set list, and when appropriate, the base station sends the terminal a set list. Return the incoming call history; so that the user can check which contacts have called him during the restricted mode.

图3是根据一示例性实施例示出的一种网络连接处理装置实施例三的框图。参照图3,该装置包括:Fig. 3 is a block diagram of Embodiment 3 of an apparatus for network connection processing according to an exemplary embodiment. Referring to Figure 3, the device includes:

检测模块31,被配置为检测终端当前所处的网络环境;The detection module 31 is configured to detect the network environment where the terminal is currently located;

判断模块32,被配置为根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;The judging module 32 is configured to judge whether to enter a restricted mode according to the current network environment, wherein the restricted mode means restricting the terminal to perform various functions except the outgoing call function;

限制模块33,被配置为若确定进入限制模式,则断开终端与基站的网络连接。The restriction module 33 is configured to disconnect the network connection between the terminal and the base station if it is determined to enter the restriction mode.

其中,所述判断模块32,被具体配置为:Wherein, the judgment module 32 is specifically configured as:

判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment;

若确定为网络环境差的状态,则确定进入限制模式。If it is determined that the network environment is poor, it is determined to enter the restricted mode.

或者,所述判断模块32,被具体配置为:Or, the judging module 32 is specifically configured as:

判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment;

若确定为网络环境差的状态,则显示提示信息,以提示用户是否进入所述限制模式;If it is determined that the network environment is in a poor state, then display a prompt message to prompt the user whether to enter the restricted mode;

接收所述用户发送的确认信息,根据所述确认信息确定进入所述限制模式。receiving confirmation information sent by the user, and determining to enter the restricted mode according to the confirmation information.

或者,所述判断模块32,被具体配置为:Or, the judging module 32 is specifically configured as:

获取所述终端的当前电量;Obtain the current power of the terminal;

判断所述当前电量是否小于等于预设电量,且所述当前网络环境是否为网络环境差的状态;judging whether the current power is less than or equal to a preset power, and whether the current network environment is in a state of poor network environment;

若确定所述当前电量小于等于预设电量、且所述当前网络环境为网络环境差的状态,则确定进入限制模式。If it is determined that the current power is less than or equal to the preset power and the current network environment is in a state of poor network environment, then it is determined to enter the restriction mode.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例一中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiments, the specific manner in which each module executes operations has been described in detail in Embodiment 1 of the method, and will not be described in detail here.

本实施例通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。In this embodiment, by detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode indicates that the terminal is restricted from performing functions other than the call-out function; if it is determined to enter the restricted mode, then disconnect the terminal Network connection to the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

在上述图3所示的实施例的基础上,图4是根据一示例性实施例示出的一种网络连接处理装置实施例四的框图。参照图4,所述装置,还包括:On the basis of the above embodiment shown in FIG. 3 , FIG. 4 is a block diagram of Embodiment 4 of an apparatus for network connection processing according to an exemplary embodiment. With reference to Fig. 4, described device also includes:

第一接收模块41,被配置为在所述限制模块33断开终端与基站的网络连接之后,接收用户发送的呼出请求;The first receiving module 41 is configured to receive an outgoing call request sent by the user after the restriction module 33 disconnects the network connection between the terminal and the base station;

连接模块42,被配置为根据所述呼出请求,打开所述终端与所述基站之间的网络连接,以使所述终端与所述基站之间进行网络连接;The connection module 42 is configured to open the network connection between the terminal and the base station according to the outgoing call request, so that the network connection between the terminal and the base station is established;

第一发送模块43,被配置为将所述呼出请求发送给所述基站,以使所述基站根据所述呼出请求完成所述用户的呼叫之后返回完成通信消息;The first sending module 43 is configured to send the call-out request to the base station, so that the base station returns a communication completion message after completing the user's call according to the call-out request;

第二接收模块44,被配置为接收所述完成通信消息,再次进入所述限制模式。The second receiving module 44 is configured to receive the communication completion message and enter the restriction mode again.

所述装置,还包括:The device also includes:

第二发送模块45,被配置为在所述限制模块33断开终端与基站的网络连接之前,向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人;The second sending module 45 is configured to send a setting list to the base station before the restriction module 33 disconnects the network connection between the terminal and the base station, wherein the setting list includes at least one contact, so that the When receiving an incoming call request from a contact in the set list, the base station generates an incoming call history record according to the incoming call request, wherein the incoming call history record includes the contact person who called the terminal;

相应的,所述装置,还包括:Correspondingly, the device also includes:

获取模块46,被配置为在所述限制模块33断开终端与基站的网络连接之后,在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。The obtaining module 46 is configured to obtain the incoming call history record stored in the base station when the terminal connects to the base station after the restriction module 33 disconnects the network connection between the terminal and the base station.

其中,所述第二发送模块45,被具体配置为:Wherein, the second sending module 45 is specifically configured as:

接收用户输入的所述设置名单,并将所述设置名单发送给所述基站;receiving the setting list input by the user, and sending the setting list to the base station;

或者,or,

获取通话记录,根据通话记录中的通话次数排名为前N位的联系人,生成所述设置名单,并将所述设置名单发送给所述基站;其中,N为正整数。Obtaining the call records, generating the setting list for the top N contacts according to the number of calls in the call records, and sending the setting list to the base station; wherein, N is a positive integer.

所述获取模块46,被具体配置为:The acquiring module 46 is specifically configured as:

在所述终端与所述基站进行网络连接时,向所述基站发送历史记录获取请求,以使所述基站返回所述呼入历史记录;When the terminal is connected to the base station, sending a history record acquisition request to the base station, so that the base station returns the incoming call history record;

或者,or,

根据预设时间间隔定期的建立所述终端与所述基站的网络连接,接收所述基站自动发送的所述呼入历史记录。regularly establishing a network connection between the terminal and the base station according to a preset time interval, and receiving the incoming call history record automatically sent by the base station.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例二中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiment, the specific manner in which each module executes operations has been described in detail in Embodiment 2 of the method, and will not be described in detail here.

本实施例通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接;接收呼出请求,打开终端与基站之间的网络连接,以使终端与基站之间进行网络连接之后,再次进入限制模式。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验;用户可以在限制模式期间,进行呼出请求。并且,在终端进入限制模式之前,可以向基站发送设置名单,使得基站在接收到设置名单中的联系人的呼入请求时根据呼入请求生成呼入历史记录,并在合适的时候基站向终端返回该呼入历史记录;使得用户可以查看到在限制模式的期间有哪些联系人呼叫了自己。In this embodiment, by detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode indicates that the terminal is restricted from performing functions other than the call-out function; if it is determined to enter the restricted mode, then disconnect the terminal Network connection with the base station; receiving an outgoing call request, opening the network connection between the terminal and the base station, so that after the network connection between the terminal and the base station, the terminal enters the restricted mode again. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience; the user can make outgoing calls during the restricted mode. In addition, before the terminal enters the restricted mode, it can send the set list to the base station, so that the base station generates an incoming call history record according to the incoming call request when receiving an incoming call request from a contact in the set list, and sends the terminal to the terminal when appropriate. Return the incoming call history; so that the user can check which contacts have called him during the restricted mode.

图5是根据一示例性实施例示出的一种终端的实体的框图。参照图5,该终端可以具体实现为:处理器51,以及被配置为存储处理器可执行指令的存储器52;Fig. 5 is a block diagram showing entities of a terminal according to an exemplary embodiment. Referring to FIG. 5, the terminal may be specifically implemented as: a processor 51, and a memory 52 configured to store instructions executable by the processor;

其中,所述处理器51被配置为:检测终端当前所处的网络环境;根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。Wherein, the processor 51 is configured to: detect the network environment where the terminal is currently located; judge whether to enter a restricted mode according to the current network environment, wherein the restricted mode means that the terminal is restricted from performing functions other than calling out functions. Various functions; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station.

在上述实施例中,应理解,该处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。SIM卡也称为用户身份识别卡、智能卡,数字移动电话机必须装上此卡方能使用。即在电脑芯片上存储了数字移动电话客户的信息,加密的密钥以及用户的电话簿等内容。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the foregoing embodiments, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and may also be other general-purpose processors, digital signal processors (English: DigitalSignal Processor, referred to as: DSP) , Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., and the aforementioned memory can be a read-only memory (English: read-only memory, abbreviated: ROM), random access memory (English: : random access memory, referred to as: RAM), flash memory, hard disk or solid state disk. SIM card is also known as subscriber identification card, smart card, digital mobile phone must be equipped with this card before it can be used. That is, the information of the digital mobile phone customer, the encrypted key and the user's phone book are stored on the computer chip. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

关于上述实施例中的终端,其中各个模块执行操作的具体方式已经在有关该方法和装置的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the terminal in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments of the method and apparatus, and will not be described in detail here.

本实施例通过检测终端当前所处的网络环境;根据当前网络环境,判断是否进入限制模式,其中,限制模式表征限制终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接。从而,在终端处于网络状态较差的网络环境的时候,终端可以进入到一个限制模式,去断开与基站的网络连接,进而节约终端的电量,使得用户可以较长时间的去使用终端,或者使得用户可以使用终端的其他紧急功能,提高用户体验。In this embodiment, by detecting the network environment where the terminal is currently located; according to the current network environment, it is judged whether to enter the restricted mode, wherein the restricted mode indicates that the terminal is restricted from performing functions other than the call-out function; if it is determined to enter the restricted mode, then disconnect the terminal Network connection to the base station. Therefore, when the terminal is in a network environment with poor network status, the terminal can enter a restricted mode to disconnect the network connection with the base station, thereby saving the power of the terminal, so that the user can use the terminal for a longer period of time, or This enables the user to use other emergency functions of the terminal to improve user experience.

图6是根据一示例性实施例示出的一种终端设备800的框图。例如,终端设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 6 is a block diagram showing a terminal device 800 according to an exemplary embodiment. For example, the terminal device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图6,终端设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to FIG. 6 , terminal device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.

处理组件802通常控制终端设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the terminal device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

存储器804被配置为存储各种类型的数据以支持在终端设备800的操作。这些数据的示例包括用于在终端设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the terminal device 800 . Examples of such data include instructions for any application or method operating on the terminal device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件806为终端设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为终端设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the terminal device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for end device 800 .

多媒体组件808包括在所述终端设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当终端设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the terminal device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the terminal device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当终端设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive an external audio signal when the terminal device 800 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为终端设备800提供各个方面的状态评估。例如,传感器组件814可以检测到终端设备800的打开/关闭状态,组件的相对定位,例如所述组件为终端设备800的显示器和小键盘,传感器组件814还可以检测终端设备800或终端设备800一个组件的位置改变,用户与终端设备800接触的存在或不存在,终端设备800方位或加速/减速和终端设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing status assessment of various aspects of the terminal device 800 . For example, the sensor component 814 can detect the opening/closing state of the terminal device 800, the relative positioning of the components, for example, the components are the display and the keypad of the terminal device 800, and the sensor component 814 can also detect the terminal device 800 or a terminal device 800 Changes in the positions of components, presence or absence of user contact with the terminal device 800 , orientation or acceleration/deceleration of the terminal device 800 and temperature changes of the terminal device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件816被配置为便于终端设备800和其他设备之间有线或无线方式的通信。终端设备800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communications between the terminal device 800 and other devices. The terminal device 800 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,终端设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, terminal device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由终端设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by the processor 820 of the terminal device 800 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种及网络连接处理方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute a network connection processing method, the method comprising:

检测终端当前所处的网络环境;Detect the current network environment of the terminal;

根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;According to the current network environment, determine whether to enter a restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the outgoing call function;

若确定进入限制模式,则断开终端与基站的网络连接。If it is determined to enter the restricted mode, the network connection between the terminal and the base station is disconnected.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (15)

1.一种网络连接处理方法,其特征在于,包括:1. A network connection processing method, characterized in that, comprising: 检测终端当前所处的网络环境;Detect the current network environment of the terminal; 根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;According to the current network environment, determine whether to enter a restricted mode, wherein the restricted mode means that the terminal is restricted from performing various functions except the outgoing call function; 若确定进入限制模式,则断开终端与基站的网络连接;If it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station; 在所述若确定进入限制模式,则断开终端与基站的网络连接之前,还包括:Before disconnecting the network connection between the terminal and the base station if it is determined to enter the restricted mode, it also includes: 向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人;Sending a setup list to the base station, wherein the setup list includes at least one contact, so that when the base station receives an incoming call request from a contact in the setup list, it generates an incoming call according to the incoming call request History records, wherein the incoming call history records include contacts who called the terminal; 相应的,在所述若确定进入限制模式,则断开终端与基站的网络连接之后,还包括:Correspondingly, after disconnecting the network connection between the terminal and the base station if it is determined to enter the restricted mode, the method further includes: 在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。When the terminal is connected to the base station, the incoming call history record stored in the base station is acquired. 2.根据权利要求1所述的方法,其特征在于,在所述若确定进入限制模式,则断开终端与基站的网络连接之后,还包括:2. The method according to claim 1, characterized in that after disconnecting the network connection between the terminal and the base station if it is determined to enter the restricted mode, further comprising: 接收用户发送的呼出请求;Receive the outgoing request sent by the user; 根据所述呼出请求,打开所述终端与所述基站之间的网络连接,以使所述终端与所述基站之间进行网络连接;Opening the network connection between the terminal and the base station according to the outgoing call request, so that the network connection between the terminal and the base station is established; 将所述呼出请求发送给所述基站,以使所述基站根据所述呼出请求完成所述用户的呼叫之后返回完成通信消息;sending the call out request to the base station, so that the base station returns a communication completion message after completing the user's call according to the call out request; 接收所述完成通信消息,再次进入所述限制模式。After receiving the communication completion message, enter the restriction mode again. 3.根据权利要求1所述的方法,其特征在于,所述向所述基站发送设置名单,包括:3. The method according to claim 1, wherein the sending the setting list to the base station comprises: 接收用户输入的所述设置名单,并将所述设置名单发送给所述基站;receiving the setting list input by the user, and sending the setting list to the base station; 或者,or, 获取通话记录,根据通话记录中的通话次数排名为前N位的联系人,生成所述设置名单,并将所述设置名单发送给所述基站;其中,N为正整数。Obtaining the call records, generating the setting list for the top N contacts according to the number of calls in the call records, and sending the setting list to the base station; wherein, N is a positive integer. 4.根据权利要求1所述的方法,其特征在于,所述在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录,包括:4. The method according to claim 1, wherein when the terminal is connected to the base station, obtaining the incoming call history record stored in the base station comprises: 在所述终端与所述基站进行网络连接时,向所述基站发送历史记录获取请求,以使所述基站返回所述呼入历史记录;When the terminal is connected to the base station, sending a history record acquisition request to the base station, so that the base station returns the incoming call history record; 或者,or, 根据预设时间间隔定期的建立所述终端与所述基站的网络连接,接收所述基站自动发送的所述呼入历史记录。regularly establishing a network connection between the terminal and the base station according to a preset time interval, and receiving the incoming call history record automatically sent by the base station. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述当前网络环境,判断是否进入限制模式,包括:5. The method according to any one of claims 1-4, wherein the determining whether to enter the restricted mode according to the current network environment comprises: 判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment; 若确定为网络环境差的状态,则确定进入限制模式。If it is determined that the network environment is poor, it is determined to enter the restricted mode. 6.根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述当前网络环境,判断是否进入限制模式,包括:6. The method according to any one of claims 1-4, wherein the determining whether to enter the restricted mode according to the current network environment comprises: 判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment; 若确定为网络环境差的状态,则显示提示信息,以提示用户是否进入所述限制模式;If it is determined that the network environment is in a poor state, then display a prompt message to prompt the user whether to enter the restricted mode; 接收所述用户发送的确认信息,根据所述确认信息确定进入所述限制模式。receiving confirmation information sent by the user, and determining to enter the restricted mode according to the confirmation information. 7.根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述当前网络环境,判断是否进入限制模式,包括:7. The method according to any one of claims 1-4, wherein the determining whether to enter the restricted mode according to the current network environment comprises: 获取所述终端的当前电量;Obtain the current power of the terminal; 判断所述当前电量是否小于等于预设电量,且所述当前网络环境是否为网络环境差的状态;judging whether the current power is less than or equal to a preset power, and whether the current network environment is in a state of poor network environment; 若确定所述当前电量小于等于预设电量、且所述当前网络环境为网络环境差的状态,则确定进入限制模式。If it is determined that the current power is less than or equal to the preset power and the current network environment is in a state of poor network environment, then it is determined to enter the restriction mode. 8.一种网络连接处理装置,其特征在于,包括:8. A network connection processing device, comprising: 检测模块,被配置为检测终端当前所处的网络环境;a detection module configured to detect the network environment where the terminal is currently located; 判断模块,被配置为根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;The judging module is configured to judge whether to enter a restricted mode according to the current network environment, wherein the restricted mode means restricting the terminal to perform various functions except the outgoing call function; 限制模块,被配置为若确定进入限制模式,则断开终端与基站的网络连接;The restriction module is configured to disconnect the network connection between the terminal and the base station if it is determined to enter the restriction mode; 所述装置,还包括:第二发送模块,被配置为在所述限制模块断开终端与基站的网络连接之前,向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人;The device further includes: a second sending module configured to send a setting list to the base station before the restriction module disconnects the network connection between the terminal and the base station, wherein the setting list includes at least one contact person so that when the base station receives an incoming call request from a contact in the set list, it generates an incoming call history record according to the incoming call request, wherein the incoming call history record includes the contact who called the terminal people; 相应的,所述装置,还包括:Correspondingly, the device also includes: 获取模块,被配置为在所述限制模块断开终端与基站的网络连接之后,在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。The obtaining module is configured to obtain the incoming call history record stored in the base station when the terminal connects to the base station after the restriction module disconnects the network connection between the terminal and the base station. 9.根据权利要求8所述的装置,其特征在于,所述装置,还包括:9. The device according to claim 8, wherein the device further comprises: 第一接收模块,被配置为在所述限制模块断开终端与基站的网络连接之后,接收用户发送的呼出请求;The first receiving module is configured to receive an outgoing call request sent by the user after the restriction module disconnects the network connection between the terminal and the base station; 连接模块,被配置为根据所述呼出请求,打开所述终端与所述基站之间的网络连接,以使所述终端与所述基站之间进行网络连接;A connection module configured to open a network connection between the terminal and the base station according to the outgoing call request, so as to enable a network connection between the terminal and the base station; 第一发送模块,被配置为将所述呼出请求发送给所述基站,以使所述基站根据所述呼出请求完成所述用户的呼叫之后返回完成通信消息;The first sending module is configured to send the call out request to the base station, so that the base station returns a communication completion message after completing the user's call according to the call out request; 第二接收模块,被配置为接收所述完成通信消息,再次进入所述限制模式。The second receiving module is configured to receive the communication completion message and enter the restriction mode again. 10.根据权利要求8所述的装置,其特征在于,所述第二发送模块,被具体配置为:10. The device according to claim 8, wherein the second sending module is specifically configured as: 接收用户输入的所述设置名单,并将所述设置名单发送给所述基站;receiving the setting list input by the user, and sending the setting list to the base station; 或者,or, 获取通话记录,根据通话记录中的通话次数排名为前N位的联系人,生成所述设置名单,并将所述设置名单发送给所述基站;其中,N为正整数。Obtaining the call records, generating the setting list for the top N contacts according to the number of calls in the call records, and sending the setting list to the base station; wherein, N is a positive integer. 11.根据权利要求8所述的装置,其特征在于,所述获取模块,被具体配置为:11. The device according to claim 8, wherein the acquisition module is specifically configured as: 在所述终端与所述基站进行网络连接时,向所述基站发送历史记录获取请求,以使所述基站返回所述呼入历史记录;When the terminal is connected to the base station, sending a history record acquisition request to the base station, so that the base station returns the incoming call history record; 或者,or, 根据预设时间间隔定期的建立所述终端与所述基站的网络连接,接收所述基站自动发送的所述呼入历史记录。regularly establishing a network connection between the terminal and the base station according to a preset time interval, and receiving the incoming call history record automatically sent by the base station. 12.根据权利要求8-11任一项所述的装置,其特征在于,所述判断模块,被具体配置为:12. The device according to any one of claims 8-11, wherein the judging module is specifically configured as: 判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment; 若确定为网络环境差的状态,则确定进入限制模式。If it is determined that the network environment is poor, it is determined to enter the restricted mode. 13.根据权利要求8-11任一项所述的装置,其特征在于,所述判断模块,被具体配置为:13. The device according to any one of claims 8-11, wherein the judging module is specifically configured as: 判断所述当前网络环境是否为网络环境差的状态;Judging whether the current network environment is in a state of poor network environment; 若确定为网络环境差的状态,则显示提示信息,以提示用户是否进入所述限制模式;If it is determined that the network environment is in a poor state, then display a prompt message to prompt the user whether to enter the restricted mode; 接收所述用户发送的确认信息,根据所述确认信息确定进入所述限制模式。receiving confirmation information sent by the user, and determining to enter the restricted mode according to the confirmation information. 14.根据权利要求8-11任一项所述的装置,其特征在于,所述判断模块,被具体配置为:14. The device according to any one of claims 8-11, wherein the judging module is specifically configured as: 获取所述终端的当前电量;Obtain the current power of the terminal; 判断所述当前电量是否小于等于预设电量,且所述当前网络环境是否为网络环境差的状态;judging whether the current power is less than or equal to a preset power, and whether the current network environment is in a state of poor network environment; 若确定所述当前电量小于等于预设电量、且所述当前网络环境为网络环境差的状态,则确定进入限制模式。If it is determined that the current power is less than or equal to the preset power and the current network environment is in a state of poor network environment, then it is determined to enter the restriction mode. 15.一种终端,其特征在于,包括:15. A terminal, characterized in that it comprises: 处理器,以及用于存储处理器可执行指令的存储器;a processor, and memory for storing instructions executable by the processor; 其中,所述处理器被配置为:检测终端当前所处的网络环境;根据所述当前网络环境,判断是否进入限制模式,其中,所述限制模式表征限制所述终端进行除去呼出功能以外的各功能;若确定进入限制模式,则断开终端与基站的网络连接;Wherein, the processor is configured to: detect the network environment where the terminal is currently located; judge whether to enter a restricted mode according to the current network environment, wherein the restricted mode means that the terminal is restricted from performing various functions except the outgoing call function. function; if it is determined to enter the restricted mode, disconnect the network connection between the terminal and the base station; 所述处理器还被配置为在所述限制模块断开终端与基站的网络连接之前,向所述基站发送设置名单,其中,所述设置名单中包括至少一个联系人,以使所述基站在接收到所述设置名单中的联系人的呼入请求时,根据呼入请求生成呼入历史记录,其中,所述呼入历史记录中包括呼叫了所述终端的联系人;在所述限制模块断开终端与基站的网络连接之后,在所述终端与所述基站进行网络连接时,获取所述基站中存储的所述呼入历史记录。The processor is further configured to send a setting list to the base station before the restriction module disconnects the network connection between the terminal and the base station, wherein the setting list includes at least one contact person, so that the base station can When an incoming call request from a contact in the set list is received, an incoming call history record is generated according to the incoming call request, wherein the incoming call history record includes the contact person who called the terminal; in the restriction module After disconnecting the network connection between the terminal and the base station, when the terminal is connected to the base station, the incoming call history record stored in the base station is acquired.
CN201710296366.1A 2017-04-28 2017-04-28 Network connection processing method, device and terminal Active CN107071859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710296366.1A CN107071859B (en) 2017-04-28 2017-04-28 Network connection processing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710296366.1A CN107071859B (en) 2017-04-28 2017-04-28 Network connection processing method, device and terminal

Publications (2)

Publication Number Publication Date
CN107071859A CN107071859A (en) 2017-08-18
CN107071859B true CN107071859B (en) 2019-11-15

Family

ID=59603901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710296366.1A Active CN107071859B (en) 2017-04-28 2017-04-28 Network connection processing method, device and terminal

Country Status (1)

Country Link
CN (1) CN107071859B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413143B (en) * 2018-09-10 2021-10-08 金卡智能集团股份有限公司 Low-power-consumption timing remote communication method for Internet of things instrument
CN110913424B (en) * 2019-11-14 2022-04-22 华为技术有限公司 Network connection control method and device, terminal, and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186226A (en) * 2010-12-23 2011-09-14 上海华勤通讯技术有限公司 Mobile phone for self-adapting communication environment and energy-saving method thereof
CN102196081A (en) * 2010-03-02 2011-09-21 乐金电子(中国)研究开发中心有限公司 Call connection method and device for mobile terminal in sleep mode
CN104717375A (en) * 2013-12-16 2015-06-17 中国移动通信集团公司 Method and device for saving electricity for terminal
CN106550129A (en) * 2016-10-31 2017-03-29 北京小米移动软件有限公司 Communication means, device and mobile terminal under battery saving mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196081A (en) * 2010-03-02 2011-09-21 乐金电子(中国)研究开发中心有限公司 Call connection method and device for mobile terminal in sleep mode
CN102186226A (en) * 2010-12-23 2011-09-14 上海华勤通讯技术有限公司 Mobile phone for self-adapting communication environment and energy-saving method thereof
CN104717375A (en) * 2013-12-16 2015-06-17 中国移动通信集团公司 Method and device for saving electricity for terminal
CN106550129A (en) * 2016-10-31 2017-03-29 北京小米移动软件有限公司 Communication means, device and mobile terminal under battery saving mode

Also Published As

Publication number Publication date
CN107071859A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN105704766B (en) Control method and device for dual-card mobile terminal
CN106028375A (en) Prompt method, device and terminal equipment for network switching
CN106231089A (en) Call optimization method and device
CN107846730A (en) Call transferring method and device
CN106407079A (en) Mobile terminal charging prompting method, device and equipment
CN106231137A (en) Processing method and processing device based on electricity
CN106714125B (en) Method and device for setting call forwarding number
CN110383891A (en) Network switching resource determining method and network switching resource configuration method
CN106412481B (en) Reminding method, device and terminal based on VoLTE video calling
CN106293737A (en) The treating method and apparatus of notification message
CN106230066A (en) Charge prompting method and apparatus
CN106293706A (en) Event-prompting method, device and terminal
CN106357610B (en) Communication means and device
CN107071859B (en) Network connection processing method, device and terminal
CN106299515A (en) Charging method and device
CN106535147B (en) Communication signal processing method and device
CN109040651A (en) The method and device of video communication
CN107864460A (en) Call transferring method, device and equipment
CN111541922A (en) Method, device and storage medium for inputting information on display interface
CN106792636A (en) terminal control method and device
CN106506808A (en) Method and device for prompting communication messages
CN107846481A (en) account management method and device
CN106686263A (en) Communication processing method and device
CN107203315A (en) Processing method, device and the terminal of click event
CN106331277A (en) Call processing method and device

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
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载