WO2017113686A1 - 一种终端联网状态控制方法及装置 - Google Patents

一种终端联网状态控制方法及装置 Download PDF

Info

Publication number
WO2017113686A1
WO2017113686A1 PCT/CN2016/088524 CN2016088524W WO2017113686A1 WO 2017113686 A1 WO2017113686 A1 WO 2017113686A1 CN 2016088524 W CN2016088524 W CN 2016088524W WO 2017113686 A1 WO2017113686 A1 WO 2017113686A1
Authority
WO
WIPO (PCT)
Prior art keywords
flow
remaining
traffic
remaining traffic
exceeds
Prior art date
Application number
PCT/CN2016/088524
Other languages
English (en)
French (fr)
Inventor
王慧松
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
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 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/243,597 priority Critical patent/US20170195206A1/en
Publication of WO2017113686A1 publication Critical patent/WO2017113686A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/062Generation of reports related to network traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • H04L47/266Stopping or restarting the source, e.g. X-on or X-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Definitions

  • the present invention relates to the field of intelligent terminal control, and in particular, to a terminal networking state control method and apparatus.
  • Smart terminals such as smart phones and tablets need to pay a certain communication fee when accessing the network of service providers.
  • GSM Global System for Mobile Communication
  • the current charging rules commonly used by operators are: providing fixed traffic to users every month, and agreeing with the user on monthly subscription fees. If the total usage flow of the user does not exceed the above fixed traffic during the month, the monthly fee will be charged. If the total usage of the user exceeds the above fixed traffic during the month, the excess will be charged according to the additional charging standard. Under normal circumstances, the monthly fee standard can save communication costs for users. Therefore, users need to monitor the traffic usage of their own terminals, and try not to exceed the fixed traffic during the month.
  • the technical problem to be solved by the present invention is to overcome the defect that the residual traffic monitoring of the terminal network state control mode in the prior art is inaccurate and thus erroneously control the terminal networking state.
  • the present invention provides a terminal networking state control method, including the steps of: acquiring total remaining traffic and time information corresponding to the total remaining traffic information; determining a monitoring period according to the time information; The real-time calculation and judging whether the actual usage flow of the terminal exceeds the total remaining traffic; when the calculated actual usage traffic exceeds the remaining traffic, the control terminal disconnects the network.
  • the total remaining traffic includes a first remaining traffic and a second remaining traffic
  • the monitoring period includes a first monitoring period and a second monitoring period, wherein the first monitoring period does not coincide with the second monitoring period .
  • the real-time determining whether the calculated actual usage flow exceeds the total remaining traffic includes: calculating, during the first monitoring period, determining whether the first actual usage flow exceeds the first remaining traffic; When the first actual use flow rate exceeds the first remaining flow rate, it is determined that the calculated actual use flow rate exceeds the total remaining flow rate; when the first actual use flow rate does not exceed the first remaining flow rate, Calculating and determining whether the second actual usage flow exceeds the second remaining traffic during the second monitoring period; when the second actual usage flow exceeds the second remaining traffic, determining whether the exceeded second actual usage flow exceeds the current The first remaining flow rate; when the exceeded second actual usage flow exceeds the current first remaining flow, it is determined that the calculated actual used flow exceeds the total remaining flow.
  • the acquiring the remaining traffic and the predetermined usage time corresponding to the remaining traffic information includes: sending a remaining traffic statistics request to the server; receiving the remaining traffic fed back by the server and time information corresponding to the remaining traffic; Obtaining a calibration flow input by the user; calculating a total remaining flow according to the remaining flow fed back by the server and the calibration flow.
  • the present invention further provides a terminal networking state control apparatus, comprising: an obtaining unit, configured to acquire total remaining traffic and time information corresponding to the total remaining traffic information; and a determining unit, configured to determine, according to the time information, a monitoring unit, configured to calculate and determine in real time whether the actual usage flow of the terminal exceeds the total remaining traffic in the monitoring period; and an execution unit, configured to: when the calculated actual usage flow exceeds the remaining traffic, The control terminal disconnects from the network.
  • a terminal networking state control apparatus comprising: an obtaining unit, configured to acquire total remaining traffic and time information corresponding to the total remaining traffic information; and a determining unit, configured to determine, according to the time information, a monitoring unit, configured to calculate and determine in real time whether the actual usage flow of the terminal exceeds the total remaining traffic in the monitoring period; and an execution unit, configured to: when the calculated actual usage flow exceeds the remaining traffic, The control terminal disconnects from the network.
  • the total remaining traffic includes a first remaining traffic and a second remaining traffic
  • the monitoring period includes a first monitoring period and a second monitoring period, wherein the first monitoring period does not coincide with the second monitoring period .
  • the determining unit includes: a first determining unit, configured to calculate and determine, in the first monitoring period, whether the first actual usage flow exceeds the first remaining traffic; the first determining unit is configured to When the first actual usage flow exceeds the first remaining flow, it is determined that the calculated actual usage flow exceeds the total remaining flow; and the second determining unit is configured to: when the first actual usage flow does not exceed the first And calculating, by the second monitoring period, whether the second actual usage flow exceeds the second remaining traffic, and the third determining unit, configured to: when the second actual usage flow exceeds the second remaining When the flow rate is determined, it is determined whether the exceeded second actual use flow rate exceeds the current first remaining flow rate; and the second determining unit is configured to determine the calculated actual use when the exceeded second actual use flow rate exceeds the current first remaining flow rate The flow exceeds the total remaining flow.
  • a first determining unit configured to calculate and determine, in the first monitoring period, whether the first actual usage flow exceeds the first remaining traffic
  • the first determining unit is configured to When the first actual usage flow
  • the obtaining unit includes: a sending unit, configured to send a remaining traffic statistics request to the server; and a receiving unit, configured to receive remaining traffic fed back by the server and time information corresponding to the remaining traffic; And obtaining a calibration flow input by the user; and a calibration unit, configured to calculate a total remaining flow according to the remaining flow fed back by the server and the calibration flow.
  • the present invention further provides a terminal networking state control apparatus, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory when When multiple processors are executing, do the following: Get the total remaining Remaining traffic and time information corresponding to the total remaining traffic information; determining a monitoring period according to the time information; calculating and determining, in the monitoring period, whether the actual usage flow of the terminal exceeds the total remaining traffic; When the actual used traffic exceeds the remaining traffic, the control terminal disconnects from the network.
  • the total remaining traffic includes a first remaining traffic and a second remaining traffic
  • the monitoring period including a first monitoring period and a second monitoring period, wherein the first monitoring period and the second The monitoring period does not coincide.
  • the device wherein the real-time determining whether the calculated actual usage flow exceeds the total remaining traffic comprises: calculating and determining, in the first monitoring period, whether the first actual usage flow exceeds the first remaining a flow rate; when the first actual use flow rate exceeds the first remaining flow rate, determining that the calculated actual use flow rate exceeds the total remaining flow rate; when the first actual use flow rate does not exceed the first remaining flow rate Calculating and determining whether the second actual usage flow exceeds the second remaining traffic during the second monitoring period; and determining that the second actual usage is exceeded when the second actual usage flow exceeds the second remaining flow Whether the flow exceeds the current first remaining flow; when the exceeded second actual usage flow exceeds the current first remaining flow, it is determined that the calculated actual used flow exceeds the total remaining flow.
  • the device wherein the acquiring the remaining traffic and the predetermined usage time corresponding to the remaining traffic information comprises: sending a remaining traffic statistics request to the server; receiving the remaining traffic fed back by the server, and corresponding to the remaining traffic Time information;
  • the terminal networking state control method provided by the invention is particularly suitable for monitoring time-sharing traffic, and the total monitoring time period can be determined by total remaining traffic and time information, and then the actual use of the terminal can be calculated in real time in different monitoring time periods.
  • Time-sharing traffic, and real-time judgment whether the calculated traffic used by each time-sharing exceeds the total remaining traffic, thereby accurately determining the traffic usage of the user, thereby correctly controlling the networking state of the terminal, and utilizing the technical solution of the present invention Effectively avoid users over-using various time-sharing traffic, thereby saving communication costs for users.
  • FIG. 1 is a flowchart of a terminal networking state control method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a terminal networking state control method according to Embodiment 2 of the present invention.
  • FIG. 3 is a structural diagram of a terminal networking state control apparatus according to Embodiment 3 of the present invention.
  • FIG. 4 is a structural diagram of a terminal networking state control apparatus having a processor according to Embodiment 4 of the present invention
  • FIG. 5 is a structural diagram of a terminal networking state control apparatus having two processors according to Embodiment 4 of the present invention.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • the present invention provides a terminal networking state control method, which can be executed in an intelligent communication terminal, wherein the networking state can be a connection state between the terminal and a GSM (Global System for Mobile Communication) network, as shown in FIG.
  • the method includes the following steps:
  • the traffic is a special term in the network information technology field
  • the mobile traffic refers to traffic data generated by the mobile phone, and the software is opened by using a mobile phone or the Internet is performed.
  • traffic refers to the value of this data, and the unit includes B, KB, MB, GB, and so on.
  • time-sharing traffic means that users can enjoy different residual traffic in different time periods.
  • time-sharing traffic in addition to the traffic size, it must include time information corresponding thereto. There are various ways to obtain the remaining traffic information and time information, such as direct input by the user, or it is feasible for the terminal to query the service party.
  • the total remaining traffic includes multiple situations, for example, there may be only one remaining traffic, the value is 1 GB, the time information is 23:00-8:00; or it may be two traffic at the same time, the first traffic is 500MB, time information is 00:00-24:00, the second traffic is 1GB, and the time information is 23:00-8:00.
  • the present embodiment first describes a case where there is only one remaining flow rate as an example. Assume that the current remaining traffic is 1GB, time information is 23:00-8:00.
  • determining a monitoring period according to the time information, and the determined monitoring period may be 23:00-8:00 every day;
  • the traffic consumption of all applications can be calculated by accessing the traffic statistics file of each application, for Windows system, IOS.
  • Other mobile terminal operating systems, such as systems also include application traffic statistics interfaces or files, and are therefore feasible for various terminal operating systems.
  • Some applications may use traffic automatically at any time, so the process of measuring the application's traffic usage is a real-time dynamic process that performs statistics and judgments in real time during the above time period.
  • the control terminal disconnects the network, for example, may send an instruction to disconnect the connection with the GSM network to the mobile communication module of the terminal.
  • the terminal networking state control method provided by the invention is particularly suitable for monitoring time-sharing traffic, and each monitoring period can be determined by the total remaining traffic and time information of the terminal, and then the actual use of the terminal can be calculated in real time in different monitoring periods. Time-sharing traffic, and real-time judgment whether the calculated traffic used by each time-sharing exceeds the total remaining traffic, thereby accurately determining the traffic usage of the user, thereby correctly controlling the networking state of the terminal, and utilizing the technical solution of the present invention Effectively avoid users over-using various time-sharing traffic, thereby saving communication costs for users.
  • step S1 may include the following sub-steps:
  • the server may be an operator service terminal that provides network operation services, and the content of the statistical request is multiple, and the specific requirement needs to be set according to the query instruction specified by the operator.
  • the carrier server usually feeds back the user's remaining traffic in the form of text messages and Types (including time-sharing traffic, normal traffic, etc.), traffic information and time information can be extracted from such text information during actual application.
  • the calibration flow is also a value, which is usually the flow obtained by the user through a special channel, and the flow is difficult to be counted through the above steps S11 and S12, for example, the user can determine that the user has obtained Some extra traffic, or temporarily cancel some of the original traffic;
  • the above preferred solution can automatically obtain the remaining traffic of the user by sending a statistical instruction to the server, and can accept the user's autonomous calibration operation to correct the remaining traffic fed back by the server, and the resulting total remaining traffic is more accurate, thereby making the determination. It is more accurate to use the result of whether the flow exceeds the total remaining flow.
  • the embodiment of the present invention provides a terminal networking state control method.
  • the difference from the previous embodiment is that the total remaining traffic in this embodiment includes a first remaining traffic and a second remaining traffic, and the monitoring period includes a first monitoring period. And a second monitoring period, wherein the first monitoring period and the second monitoring period do not coincide.
  • This embodiment is particularly applicable to users who have both normal traffic and idle traffic.
  • the first traffic of the above two traffic is 500 MB
  • the time information is 00:00-24:00
  • the second traffic is 1 GB.
  • Information is from 23:00-8:00.
  • the first type of traffic may be referred to as normal traffic
  • the second traffic may be referred to as idle traffic.
  • the charging rules of the service provider it is known that after 8:00-23:00, after normal traffic is exhausted, an excess is generated. For traffic, there will be an additional charge; while in 23:00-8:00, the idle traffic is exhausted, but in the case of normal traffic, it is counted as normal traffic, only in normal traffic and display traffic. Additional charges will apply if you do.
  • the established monitoring period is not necessarily equal to the above time information.
  • the second monitoring period and the time information are equal to 23:00-8:00, but the first monitoring period should be the second monitoring period. Complementary to 08:00-23:00.
  • the method may include the following steps:
  • S1 obtaining total remaining traffic and time information corresponding to the total remaining traffic information, specifically obtaining two sets of information, where the first group is the first remaining traffic 500 MB, 00:00-24:00; the second remaining traffic is 1GB, 23:00-8:00.
  • the above two kinds of remaining traffic and time information can be obtained from the server side of the server, and both can be manually calibrated by the user.
  • the monitoring period is determined according to the time information. Specifically, the first monitoring period is determined according to the time information of the first remaining traffic (08:00-23:00), and the second monitoring period is determined according to the time information of the second remaining traffic. 23:00-8:00).
  • step S3 may specifically include the following sub-steps:
  • step S31 Calculate and determine whether the first actual usage flow exceeds the first remaining traffic during the first monitoring period, that is, determine whether the traffic value used by the terminal at 08:00-23:00 exceeds 500 MB, and if exceeded, Indicates that the user has used up the first remaining traffic in the first time period, so step S34 is performed, otherwise step S32 is performed;
  • step S32 Calculate and determine, in the second monitoring period, whether the second actual usage flow exceeds the second remaining traffic. Assume that the terminal uses the traffic value of 300MB from 08:00 to 23:00 (the first remaining traffic has become 200MB), and then enters the second monitoring period, and then judges that the terminal is used at 23:00-08:00. Whether the flow value exceeds 1 GB, if yes, step S33 is performed, otherwise the calculation and monitoring are continued;
  • Step S34 determining that the calculated actual usage flow exceeds the total remaining traffic, that is, determining that the traffic used by the terminal at 23:00-8:00 exceeds the second remaining traffic, and the excess is greater than the current first remaining traffic, and then Step S4 is performed.
  • the above preferred solution monitors and judges the normal traffic and idle time traffic owned by the user respectively. Through different judgment strategies adopted in different monitoring periods, the actual usage of the two traffic flows can be accurately determined, and then The use of the two types of traffic controls the networking state of the terminal, thereby making it more effective to prevent users from overusing various time-sharing traffic.
  • the embodiment of the invention provides a terminal networking state control device. As shown in FIG. 3, the device includes:
  • the obtaining unit 31 is configured to acquire total remaining traffic and time information corresponding to the total remaining traffic information.
  • a determining unit 32 configured to determine a monitoring period according to the time information
  • the determining unit 33 is configured to calculate and determine, in the monitoring period, whether the actual usage flow of the terminal exceeds the total remaining traffic in real time;
  • the executing unit 34 is configured to: when the calculated actual usage flow exceeds the remaining traffic, control the terminal to disconnect from the network.
  • the terminal networking state control device provided by the invention is particularly suitable for monitoring time-sharing traffic, and the total monitoring time period can be determined by the total remaining traffic and time information of the terminal, and then the actual use of the terminal can be calculated in real time in different monitoring time periods. Time-sharing traffic, and real-time judgment whether the calculated traffic used by each time-sharing exceeds the total remaining traffic, thereby accurately determining the traffic usage of the user, thereby correctly controlling the networking state of the terminal, and utilizing the present
  • the technical solution can effectively avoid the user's excessive use of various time-sharing traffic, thereby saving communication costs for users.
  • the total remaining traffic includes a first remaining traffic and a second remaining traffic
  • the monitoring period includes a first monitoring period and a second monitoring period, wherein the first monitoring period does not coincide with the second monitoring period .
  • the determining unit 33 includes:
  • a first determining unit configured to calculate, during the first monitoring period, whether the first actual usage flow exceeds the first remaining traffic
  • a first determining unit configured to determine, when the first actual used flow rate exceeds the first remaining flow rate, that the calculated actual used flow rate exceeds the total remaining flow rate
  • a second determining unit configured to calculate, during the second monitoring period, whether the second actual usage flow exceeds the second remaining traffic when the first actual usage flow does not exceed the first remaining traffic
  • a third determining unit configured to determine, when the second actual usage flow exceeds the second remaining traffic, whether the exceeded second actual usage flow exceeds the current first remaining traffic
  • the second determining unit is configured to determine that the calculated actual used flow rate exceeds the total remaining flow rate when the exceeded second actual use flow rate exceeds the current first remaining flow rate.
  • the above preferred solution monitors and judges the normal traffic and idle time traffic owned by the user respectively. Through different judgment strategies adopted in different monitoring periods, the actual usage of the two traffic flows can be accurately determined, and then The use of the two types of traffic controls the networking state of the terminal, thereby making it more effective to prevent users from overusing various time-sharing traffic.
  • the obtaining unit 31 includes:
  • a sending unit configured to send a remaining traffic statistics request to the server
  • a receiving unit configured to receive remaining traffic fed back by the server and time information corresponding to the remaining traffic
  • a calibration unit configured to calculate a total remaining flow according to the remaining flow fed back by the server and the calibration flow.
  • the above preferred solution can automatically obtain the remaining traffic of the user by sending a statistical instruction to the server, and can accept the user's autonomous calibration operation to correct the remaining traffic fed back by the server, and the resulting total remaining traffic is more accurate, thereby making the determination. It is more accurate to use the result of whether the flow exceeds the total remaining flow.
  • the present invention further provides a terminal networking state control apparatus, comprising: one or more processors 200; a memory 100; one or more programs, the one or more programs being stored in the memory 100, when When the one or more processors 200 are executed, the following operations are performed: acquiring total remaining traffic and time information corresponding to the total remaining traffic information; determining a monitoring period according to the time information; calculating and performing real-time calculation in the monitoring period Determining whether the actual usage flow of the terminal exceeds the total remaining traffic; when the calculated actual usage traffic exceeds the remaining traffic, the control terminal disconnects the network.
  • a processor 200 may be included, and as shown in FIG. 4, two processors 200 may be included.
  • the total remaining traffic includes a first remaining traffic and a second remaining traffic
  • the monitoring period includes a first monitoring period and a second monitoring period, wherein the first monitoring period is The second monitoring period does not coincide.
  • the real-time determination whether the calculated actual usage flow exceeds the total remaining traffic includes: calculating, during the first monitoring period, determining whether the first actual usage flow exceeds Determining a first remaining flow; determining that the calculated actual usage flow exceeds the total remaining flow when the first actual usage flow exceeds the first remaining flow; and when the first actual usage flow does not exceed the first Calculating and determining whether the second actual usage flow exceeds the second remaining traffic during the second monitoring period; and determining that the second actual usage flow exceeds the second remaining flow when the second monitoring period exceeds Whether the second actual use flow exceeds the current first remaining flow; when the exceeded second actual use flow exceeds the current first remaining flow, it is determined that the calculated actual used flow exceeds the total remaining flow.
  • the acquiring the remaining traffic and the predetermined usage time corresponding to the remaining traffic information includes: sending a remaining traffic statistics request to the server; Receiving remaining traffic feedback by the server and time information corresponding to the remaining traffic;
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明提供一种终端联网状态控制方法及装置,所述方法包括如下步骤:获取总剩余流量以及与所述总剩余流量信息对应的时间信息;根据所述时间信息确定监控时段;在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。

Description

一种终端联网状态控制方法及装置
交叉引用
本申请要求在2015年12月31日提交中国专利局、申请号为201511032610.0、发明名称为“一种终端联网状态控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及智能终端控制领域,具体涉及一种终端联网状态控制方法及装置。
背景技术
诸如智能手机、平板电脑等智能终端接入服务商的网络时均需要支付一定的通信费用。特别是智能手机接入GSM(Global System for Mobile Communication,全球移动通信系统)网络时,目前运营商通常采用的计费规则为:每个月为用户提供固定流量,并与用户约定包月费用,如果用户当月内总使用流量不超过上述固定流量,则按包月费用标准收费,如果用户当月内总使用流量超过上述固定流量,则超出部分按照另外的收费标准收费。通常情况下,包月费用标准可以为用户节约通信成本,因此用户需要监控自己终端的流量使用情况,尽量不超过月内固定流量。
随着终端应用程序的不断发展,应用程序的功能越来越丰富,大多数应用程序都会进行通信操作,例如下载更新数据等,这些操作很可能不受用户的主观控制,只要在终端联网的状态下即自动进行通信,由此很可能使通信流量难受控制,进而增加用户的通信成本。目前,已有一些用于监控流量的应用程序,可以协助用户监控终端的流量使用情况,并根据监控情况控制终端的联网状态。但现有的监控方式只根据用户输入的剩余流量 全时段地对终端进行监控,未考虑到某些固定流量是有时段限制的,因此在监控过程中很可能错误地判断剩余流量的情况,由此造成剩余流量监控不准确,最终错误地控制终端的联网状态。
发明内容
因此,本发明要解决的技术问题在于克服现有技术中的终端联网状态控制方式的剩余流量监控不准确并由此错误地控制终端联网状态的缺陷。
有鉴于此,本发明提供一种终端联网状态控制方法,包括如下步骤:获取总剩余流量以及与所述总剩余流量信息对应的时间信息;根据所述时间信息确定监控时段;在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
优选地,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
优选地,所述实时判断计算出的实际使用流量是否超过所述总剩余流量,包括:在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
优选地,所述获取剩余流量以及与所述剩余流量信息对应的预定使用时间,包括:向服务器发送剩余流量统计请求;接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;获取用户输入的校准流量;根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
相应地,本发明还提供一种终端联网状态控制装置,包括:获取单元,用于获取总剩余流量以及与所述总剩余流量信息对应的时间信息;确定单元,用于根据所述时间信息确定监控时段;判断单元,用于在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;执行单元,用于当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
优选地,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
优选地,所述判断单元包括:第一判断单元,用于在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;第一判定单元,用于当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;第二判断单元,用于当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;第三判断单元,用于当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;第二判定单元,用于当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
优选地,所述获取单元包括:发送单元,用于向服务器发送剩余流量统计请求;接收单元,用于接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;输入单元,用于获取用户输入的校准流量;校准单元,用于根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
本发明又提供了一种终端联网状态控制装置,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时,进行如下操作:获取总剩 余流量以及与所述总剩余流量信息对应的时间信息;根据所述时间信息确定监控时段;在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
所述的装置,其中,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
所述的装置,其中,所述实时判断计算出的实际使用流量是否超过所述总剩余流量,包括:在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
所述的装置,其中,所述获取剩余流量以及与所述剩余流量信息对应的预定使用时间,包括:向服务器发送剩余流量统计请求;接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;
获取用户输入的校准流量;根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
本发明提供的终端联网状态控制方法即装置特别适用于对分时流量进行监控,通过总剩余流量以及时间信息可以确定各个监控时段,然后可以在不同的监控时段内实时计算终端的实际使用各种分时流量,并实时判断计算出的各个分时使用的流量是否超过总剩余流量,由此可以准确地判断用户的流量使用情况,进而可以正确地控制终端的联网状态,利用本发明技术方案可有效避免用户超量使用各种分时流量,进而为用户节约通信成本。
附图说明
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为根据本发明实施例1的终端联网状态控制方法的流程图;
图2为根据本发明实施例2的终端联网状态控制方法的流程图;
图3为根据本发明实施例3的终端联网状态控制装置的结构图;
图4为根据本发明实施例4的具有一个处理器的终端联网状态控制装置的结构图;
图5为根据本发明实施例4的具有二个处理器的终端联网状态控制装置的结构图;
具体实施方式
下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第 三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,还可以是两个元件内部的连通,可以是无线连接,也可以是有线连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。
此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
实施例1
本发明提供一种终端联网状态控制方法,该方法可以在智能通信终端中执行,其中的联网状态可以是终端与GSM(Global System for Mobile Communication,全球移动通信系统)网络的连接状态,如图1所示,该方法包括如下步骤:
S1,获取总剩余流量以及与所述总剩余流量信息对应的时间信息,本发明所述流量是网络信息技术领域专用词,手机流量是指手机上网产生的流量数据,用手机打开软件或进行互联网操作时,会和服务器之间交换数据,流量就是指这数据的值,单位包括B、KB、MB、GB等。众所周知,所谓“分时流量”是指用户在不同的时段内可享有不同的剩余流量,对于分时流量而言,除了流量大小以外还必然包括与之对应的时间信息。获取剩余流量信息和时间信息的方式有多种,例如由用户直接输入,或者由终端向服务方查询都是可行的。
所述总剩余流量包括多种情况,例如可以是只有一种剩余流量,其值为1GB、时间信息是23:00-8:00;或者也可以是同时具有两种流量,第一种流量为500MB、时间信息是00:00-24:00,第二种流量为1GB、时间信息是23:00-8:00。为了对本发明的技术方案进行清楚地描述,本实施例首先以只有一种剩余流量的情况为例进行说明。假设当前获取到剩余流量为 1GB、时间信息是23:00-8:00。
S2,根据所述时间信息确定监控时段,所确定的监控时段可以为每天的23:00-8:00;
S3,在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量,即在上述时段内实时判断各个应用程序所使用的流量是否超过500MB,若超过则执行步骤S5,否则持续统计并判断。其中,计算应用程序使用流量的方法有多种,例如对于基于安卓系统的终端而言,可以通过访问每个应用程序的流量统计文件来计算出所有应用程序的流量消耗情况,对于Windows系统、IOS系统等其他移动终端操作系统,也同样包括应用程序的流量统计接口或文件,因此对于各种终端操作系统都是可行的。某些应用程序随时可能自动使用流量,因此统计应用程序的流量使用情况的过程是一种实时的动态过程,即在上述时段内实时执行统计和判断操作。
S4,当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络,例如可以向终端的移动通信模块发送断开与GSM网络连接的指令。
本发明提供的终端联网状态控制方法特别适用于对分时流量进行监控,通过终端的总剩余流量以及时间信息可以确定各个监控时段,然后可以在不同的监控时段内实时计算终端的实际使用各种分时流量,并实时判断计算出的各个分时使用的流量是否超过总剩余流量,由此可以准确地判断用户的流量使用情况,进而可以正确地控制终端的联网状态,利用本发明技术方案可有效避免用户超量使用各种分时流量,进而为用户节约通信成本。
作为一个优选的实施方式,上述步骤S1可以包括如下子步骤:
S11,向服务器发送剩余流量统计请求,该服务器可以是提供网络运营服务的运营商服务端,统计请求的内容有多种,具体需要根据运营商规定的查询指令进行设定。
S12,接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息。运营商服务器通常会以文字信息的形式反馈用户的剩余流量情况和 种类(包括分时类流量、普通流量等),实际应用时可以在此类文字信息中提取到流量信息和时间信息。
S13,获取用户输入的校准流量,校准流量同样为一个数值,通常是用户通过某种特殊渠道得到的流量,这种流量很难通过上述步骤S11和S12统计到,例如用户本人可以确定获取到了某些额外流量,或者临时取消了原有的某种流量;
S14,根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量,对于额外获取的校准流量,可以与服务器反馈的流量相加得到最终的总流量;对于临时取消的校准流量,可以与服务器反馈的流量相减得到最终的总流量。
上述优选方案可通过向服务器发送统计指令,自动获取到用户的剩余流量,并且可接受用户的自主校准操作,以对服务器反馈的剩余流量进行校正,最终得到的总剩余流量更加准确,进而使判定使用流量是否超过总剩余流量的结果更加准确。
实施例2
本发明实施例提供一种终端联网状态控制方法,与前一实施例不同的是,本实施例中的总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
本实施例特别适用于同时拥有正常流量和闲时流量的用户,例如上述两种流量中的第一种流量为500MB、时间信息是00:00-24:00,第二种流量为1GB、时间信息是23:00-8:00。上述第一种流量可称为正常流量,第二种流量可称为闲时流量,根据服务商的计费规则可知:在08:00-23:00内,用尽正常流量后又产生了超出流量,则会额外收取费用;而在23:00-8:00内,用尽了闲时流量,但还有正常流量的情况下,则会计入正常流量,只有在正常流量和显示流量均用尽的情况下才会额外收取费用。
由此可以确定,制定的监控时段并不一定等于上述时间信息,对于上述情况,第二监控时段与时间信息相等为23:00-8:00,但第一监控时段则应当与第二监控时段互补为08:00-23:00。
对于上述情况,本方法可以包括如下步骤:
S1,获取总剩余流量以及与所述总剩余流量信息对应的时间信息,具体可以获取到两组信息,第一组为第一剩余流量500MB、00:00-24:00;第二剩余流量是1GB,23:00-8:00。与前一实施例原理相似,上述两种剩余流量和时间信息均可以从服务方的服务器端获取,并且也均可以由用户进行人为校准操作。
S2,根据所述时间信息确定监控时段,具体可以根据第一剩余流量的时间信息确定第一监控时段(08:00-23:00)、根据第二剩余流量的时间信息确定第二监控时段(23:00-8:00)。
作为一个优选的实施方式,上述步骤S3具体可以包括如下子步骤:
S31,在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量,即判断终端在08:00-23:00使用掉的流量值是否超过500MB,若超过,则表示用户在第一时段内已经用尽第一剩余流量,因此执行步骤S34,否则执行步骤S32;
S32,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量。假设终端在08:00-23:00使用掉的流量值为300MB(此时第一剩余流量已变为200MB),随后进入第二监控时段,则判断终端在23:00-08:00使用掉的流量值是否超过1GB,若超过则执行步骤S33,否则继续计算并监控;
S33,判断超出的第二实际使用流量是否超过当前的第一剩余流量,假设终端在23:00-08:00使用掉的流量值为1.4GB,超出的实际使用流量为0.4GB=400MB。虽然用户在第二时段内已经用尽第二剩余流量(1GB),但根据服务商的计费规则可知,如果此时第一剩余流量还未用尽,则可以从当前的第一剩余流量中进行扣除,因此可以直至超出的第二实际使用流量超过当前的第一剩余流量才执行步骤S34;如上所述,由于超出的第二实际使 用流量为400MB,而当前的第一剩余流量为200MB,因此执行步骤S34。
S34,判定计算出的实际使用流量超过所述总剩余流量,即判断终端在23:00-8:00使用掉的流量超过了第二剩余流量,且超出部分大于当前的第一剩余流量,随后执行步骤S4。
S4,当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
上述优选方案针对用户所拥有的正常流量和闲时流量分别进行监控和判断,通过在不同的监控时段内采用的不同判断策略,可以准确地判断出用户对两种流量的实际使用情况,然后根据对两种流量的使用情况控制终端的联网状态,由此可更加有效地避免用户超量使用各种分时流量。
实施例3
本发明实施例提供一种终端联网状态控制装置,如图3所示该装置包括:
获取单元31,用于获取总剩余流量以及与所述总剩余流量信息对应的时间信息;
确定单元32,用于根据所述时间信息确定监控时段;
判断单元33,用于在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;
执行单元34,用于当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
本发明提供的终端联网状态控制装置特别适用于对分时流量进行监控,通过终端的总剩余流量以及时间信息可以确定各个监控时段,然后可以在不同的监控时段内实时计算终端的实际使用各种分时流量,并实时判断计算出的各个分时使用的流量是否超过总剩余流量,由此可以准确地判断用户的流量使用情况,进而可以正确地控制终端的联网状态,利用本发 明技术方案可有效避免用户超量使用各种分时流量,进而为用户节约通信成本。
优选地,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
优选地,所述判断单元33包括:
第一判断单元,用于在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;
第一判定单元,用于当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;
第二判断单元,用于当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;
第三判断单元,用于当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;
第二判定单元,用于当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
上述优选方案针对用户所拥有的正常流量和闲时流量分别进行监控和判断,通过在不同的监控时段内采用的不同判断策略,可以准确地判断出用户对两种流量的实际使用情况,然后根据对两种流量的使用情况控制终端的联网状态,由此可更加有效地避免用户超量使用各种分时流量。
优选地,所述获取单元31包括:
发送单元,用于向服务器发送剩余流量统计请求;
接收单元,用于接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;
输入单元,用于获取用户输入的校准流量;
校准单元,用于根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
上述优选方案可通过向服务器发送统计指令,自动获取到用户的剩余流量,并且可接受用户的自主校准操作,以对服务器反馈的剩余流量进行校正,最终得到的总剩余流量更加准确,进而使判定使用流量是否超过总剩余流量的结果更加准确。
实施例4
本发明又提供了一种终端联网状态控制装置,包括:一个或者多个处理器200;存储器100;一个或者多个程序,所述一个或者多个程序存储在所述存储器100中,当被所述一个或者多个处理器200执行时,进行如下操作:获取总剩余流量以及与所述总剩余流量信息对应的时间信息;根据所述时间信息确定监控时段;在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。具体为如图3所示可以包括一个处理器200,如图4所示可以包括二个处理器200。
本实施例的所述装置,优选为,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
本实施例的所述装置,优选为,所述实时判断计算出的实际使用流量是否超过所述总剩余流量,包括:在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
本实施例的所述装置,优选为,所述获取剩余流量以及与所述剩余流量信息对应的预定使用时间,包括:向服务器发送剩余流量统计请求;接 收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;
获取用户输入的校准流量;根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。

Claims (12)

  1. 一种终端联网状态控制方法,其特征在于,包括如下步骤:
    获取总剩余流量以及与所述总剩余流量信息对应的时间信息;
    根据所述时间信息确定监控时段;
    在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;
    当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
  2. 根据权利要求1所述的方法,其特征在于,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
  3. 根据权利要求2所述的方法,其特征在于,所述实时判断计算出的实际使用流量是否超过所述总剩余流量,包括:
    在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;
    当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;
    当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;
    当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;
    当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述获取剩余流量以及与所述剩余流量信息对应的预定使用时间,包括:
    向服务器发送剩余流量统计请求;
    接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;
    获取用户输入的校准流量;
    根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
  5. 一种终端联网状态控制装置,其特征在于,包括:
    获取单元,用于获取总剩余流量以及与所述总剩余流量信息对应的时间信息;
    确定单元,用于根据所述时间信息确定监控时段;
    判断单元,用于在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;
    执行单元,用于当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
  6. 根据权利要求5所述的装置,其特征在于,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
  7. 根据权利要求6所述的装置,其特征在于,所述判断单元包括:
    第一判断单元,用于在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;
    第一判定单元,用于当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;
    第二判断单元,用于当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述 第二剩余流量;
    第三判断单元,用于当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;
    第二判定单元,用于当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
  8. 根据权利要求5-7中任一项所述的装置,其特征在于,所述获取单元包括:
    发送单元,用于向服务器发送剩余流量统计请求;
    接收单元,用于接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;
    输入单元,用于获取用户输入的校准流量;
    校准单元,用于根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
  9. 一种终端联网状态控制装置,其特征在于,包括:
    一个或者多个处理器;
    存储器;
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时,进行如下操作:
    获取总剩余流量以及与所述总剩余流量信息对应的时间信息;
    根据所述时间信息确定监控时段;
    在所述监控时段内实时计算并判断终端的实际使用流量是否超过所述总剩余流量;
    当计算出的实际使用流量超过所述剩余流量时,控制终端断开网络。
  10. 根据权利要求9所述的装置,其特征在于,所述总剩余流量包括第一剩余流量和第二剩余流量,所述监控时段包括第一监控时段和第二监控时段,其中所述第一监控时段与所述第二监控时段不重合。
  11. 根据权利要求10所述的装置,其特征在于,所述实时判断计算出的实际使用流量是否超过所述总剩余流量,包括:
    在所述第一监控时段内计算并判断第一实际使用流量是否超过所述第一剩余流量;
    当所述第一实际使用流量超过所述第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量;
    当所述第一实际使用流量未超过所述第一剩余流量时,在所述第二监控时段内计算并判断第二实际使用流量是否超过所述第二剩余流量;
    当所述第二实际使用流量超过所述第二剩余流量时,判断超出的第二实际使用流量是否超过当前的第一剩余流量;
    当超出的第二实际使用流量超过当前的第一剩余流量时,判定计算出的实际使用流量超过所述总剩余流量。
  12. 根据权利要求9-11中任一项所述的装置,其特征在于,所述获取剩余流量以及与所述剩余流量信息对应的预定使用时间,包括:
    向服务器发送剩余流量统计请求;
    接收所述服务器反馈的剩余流量以及与所述剩余流量对应的时间信息;
    获取用户输入的校准流量;
    根据所述服务器反馈的剩余流量和所述校准流量计算得到总剩余流量。
PCT/CN2016/088524 2015-12-31 2016-07-05 一种终端联网状态控制方法及装置 WO2017113686A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/243,597 US20170195206A1 (en) 2015-12-31 2016-08-22 Method and electronic device for controlling networking state of terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511032610.0A CN105898727A (zh) 2015-12-31 2015-12-31 一种终端联网状态控制方法及装置
CN201511032610.0 2015-12-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/243,597 Continuation US20170195206A1 (en) 2015-12-31 2016-08-22 Method and electronic device for controlling networking state of terminal

Publications (1)

Publication Number Publication Date
WO2017113686A1 true WO2017113686A1 (zh) 2017-07-06

Family

ID=57002318

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088524 WO2017113686A1 (zh) 2015-12-31 2016-07-05 一种终端联网状态控制方法及装置

Country Status (3)

Country Link
US (1) US20170195206A1 (zh)
CN (1) CN105898727A (zh)
WO (1) WO2017113686A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819700B (zh) * 2016-09-13 2021-07-27 法法汽车(中国)有限公司 一种终端设备的网络流量控制方法及装置
CN110019087B (zh) * 2017-11-09 2022-04-12 北京京东尚科信息技术有限公司 数据处理方法及其系统
CN108540950B (zh) * 2018-02-27 2021-01-12 北京安云世纪科技有限公司 双卡终端的流量管理方法、装置及移动终端
CN109617852B (zh) * 2018-03-29 2020-10-13 腾讯科技(深圳)有限公司 基于流量分析的防网络沉迷方法和装置
CN108924819A (zh) * 2018-07-16 2018-11-30 佛山长意云信息技术有限公司 一种移动数据管理方法、装置、计算机设备及存储介质
CN109818820A (zh) * 2018-12-21 2019-05-28 上海瑞家信息技术有限公司 流量数据监控方法、装置、电子设备及存储介质
CN111757429B (zh) * 2019-03-26 2023-04-28 成都鼎桥通信技术有限公司 一种降低终端功耗的方法、装置和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854649A (zh) * 2010-05-20 2010-10-06 中兴通讯股份有限公司 移动终端、监控移动终端上网数据流量的方法及装置
CN104349365A (zh) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 移动终端的数据流量监测方法和系统
CN104349340A (zh) * 2013-07-29 2015-02-11 腾讯科技(深圳)有限公司 移动终端的上网流量监控方法及装置
CN104967573A (zh) * 2015-06-04 2015-10-07 努比亚技术有限公司 一种数据流量的监控方法及终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014187258A1 (zh) * 2013-10-23 2014-11-27 中兴通讯股份有限公司 流量控制方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854649A (zh) * 2010-05-20 2010-10-06 中兴通讯股份有限公司 移动终端、监控移动终端上网数据流量的方法及装置
CN104349340A (zh) * 2013-07-29 2015-02-11 腾讯科技(深圳)有限公司 移动终端的上网流量监控方法及装置
CN104349365A (zh) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 移动终端的数据流量监测方法和系统
CN104967573A (zh) * 2015-06-04 2015-10-07 努比亚技术有限公司 一种数据流量的监控方法及终端

Also Published As

Publication number Publication date
CN105898727A (zh) 2016-08-24
US20170195206A1 (en) 2017-07-06

Similar Documents

Publication Publication Date Title
WO2017113686A1 (zh) 一种终端联网状态控制方法及装置
US20180144417A1 (en) Recharge method and recharge device
US9641346B2 (en) Method and apparatus for performing charging control to application-layer data
JP6511520B2 (ja) 下層ネットワークとのサービス層課金相関の方法および装置
US10743252B2 (en) Method for identifying access point and hotspot and terminal
EP2922340B1 (en) Method and apparatus for controlling pcc rule in preload mode
WO2014039336A1 (en) Device backups and updates in view of data usage statistics
KR20140009171A (ko) 사용자 통지를 제공하는 시스템 및 방법
EP3282729B1 (en) Policy and charging execution function device and method, online charging device and method
US20170006451A1 (en) System and method for providing toll-free application data access
US9402003B2 (en) Data allocation for pre-paid group data plans
EP3087724B1 (en) Server, electronic device, computer programs and methods to push toll-free applications to a user device
US10257366B2 (en) Method, system and apparatus for managing communication sessions using joint storage
US9647946B2 (en) Controlling data access and rate in a network
US20150039481A1 (en) Service utilization browser plug-in
WO2022001475A1 (zh) 一种应用访问处理的方法、装置、终端和存储介质
WO2017107563A1 (zh) 进出区域监控的处理方法及装置
WO2017000692A1 (zh) 消费配额的获取、发送及交互方法,pcrf、ocs及交互系统
US10609224B2 (en) Method and system for dynamically allocating operator specific billing rules for data exchange by an application on a user equipment
CN105376071B (zh) 实现后向QoS保障与内容计费的方法、系统与PCRF
MX2020010548A (es) Sistemas y metodos de abastecimiento y recuperacion para suscriptores de telefonos celulares.
WO2016206179A1 (zh) 一种VoLTE通话流量提示方法及装置
CN112529505A (zh) 违规刷单检测方法、装置及可读存储介质
OA18993A (en) Providing toll-free application data access.
OA18992A (en) Method to push toll-free applications to a user device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16880487

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16880487

Country of ref document: EP

Kind code of ref document: A1