[go: up one dir, main page]

CN104936221B - Method and device for monitoring data flow in mobile terminal - Google Patents

Method and device for monitoring data flow in mobile terminal Download PDF

Info

Publication number
CN104936221B
CN104936221B CN201510303436.2A CN201510303436A CN104936221B CN 104936221 B CN104936221 B CN 104936221B CN 201510303436 A CN201510303436 A CN 201510303436A CN 104936221 B CN104936221 B CN 104936221B
Authority
CN
China
Prior art keywords
base station
mobile terminal
data traffic
affiliated area
area
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
CN201510303436.2A
Other languages
Chinese (zh)
Other versions
CN104936221A (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 360 Zhiling Technology Co ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510303436.2A priority Critical patent/CN104936221B/en
Publication of CN104936221A publication Critical patent/CN104936221A/en
Application granted granted Critical
Publication of CN104936221B publication Critical patent/CN104936221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses the method and device of a kind of data in mobile terminal flow monitoring, method comprises determining that the affiliated area of mobile terminal, downloading the base station position information file that described affiliated area is corresponding, described base station position information file includes the base station IDs in corresponding region;When adding up data traffic used by mobile terminal, the base station position information file downloaded is searched mobile terminal base station therefor ID;When finding mobile terminal base station therefor ID, it is determined that the newly-increased data traffic of statistics is local data flow;When not finding mobile terminal base station therefor ID, base station therefor ID is sent to server, so that the base station position information file that regional in the server is corresponding to be inquired about base station therefor ID, judge that newly-increased data traffic is other places data traffic or local data flow according to Query Result.The present invention achieves and can distinguish local data flow and other places data traffic, increases the beneficial effect of the accuracy of data traffic monitoring.

Description

移动终端中数据流量监测的方法及装置Method and device for monitoring data flow in mobile terminal

技术领域technical field

本发明涉及通信技术领域,具体涉及一种移动终端中数据流量监测的方法及装置。The invention relates to the field of communication technology, in particular to a method and device for monitoring data flow in a mobile terminal.

背景技术Background technique

随着移动通信技术的发展,人们越来越普遍地使用移动终端的数据业务来获得更多的信息,这些数据业务的使用都是需要消耗数据流量的,在资费结算时根据数据流量的使用情况进行结算。用户需要及时了解当前使用的数据流量。运营商会划分不同的计费区域,例如按省级行政区域划分计费区域,用户在本省内使用数据业务按一种方式进行资费结算,用户漫游到省外使用数据业务,按另一种方式进行资费结算。此外,用户的流量套餐中本地与外地的数据流量额度也不相同。然而,现有技术的数据流量监测方法中都没有区分数据流量的使用区域,因此,无法满足用户对数据流量监测的要求。With the development of mobile communication technology, it is more and more common for people to use the data services of mobile terminals to obtain more information. The use of these data services requires the consumption of data traffic. proceed to checkout. Users need to keep abreast of the currently used data traffic. Operators will divide different billing areas, such as dividing billing areas according to provincial administrative regions. Users use data services in the province to settle charges in one way, and users roaming outside the province to use data services use another method. Tariff settlement. In addition, the local and non-local data traffic quotas in the user's traffic package are also different. However, none of the data traffic monitoring methods in the prior art distinguishes the use area of the data traffic, and therefore cannot meet the user's requirements for data traffic monitoring.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的移动终端中数据流量监测的方法和相应的移动终端中数据流量监测的装置。In view of the above problems, the present invention is proposed to provide a method for monitoring data traffic in a mobile terminal and a corresponding device for monitoring data traffic in a mobile terminal that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种移动终端中数据流量监测的方法,包括:According to one aspect of the present invention, a method for monitoring data traffic in a mobile terminal is provided, including:

确定移动终端的所属区域,下载所述所属区域对应的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;Determine the area to which the mobile terminal belongs, download the base station location information file corresponding to the area to which the mobile terminal belongs, and include the base station ID in the corresponding area in the base station location information file;

在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID;When counting the data traffic used by the mobile terminal, search for the ID of the base station used by the mobile terminal in the downloaded base station location information file;

当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量;When the base station ID used by the mobile terminal is found, it is determined that the newly added data traffic counted is local data traffic;

当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。When the base station ID used by the mobile terminal is not found, the used base station ID is sent to the server to query the used base station ID in the base station location information file corresponding to each area in the server, and judge whether the newly added data flow is foreign data flow or local data traffic.

可选地,所述当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,具体包括:Optionally, when the base station ID used by the mobile terminal is not found, the base station ID used is sent to the server to query the base station ID used in the base station location information file corresponding to each area in the server, specifically including:

当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量;When the base station ID used by the mobile terminal is not found in the downloaded base station location information file, record the base station ID used by the mobile terminal and the corresponding new data flow;

将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。Send the recorded base station ID within the preset time length to the server, so as to query in the base station location information file corresponding to each area in the server.

可选地,所述根据查询结果判断新增数据流量是外地数据流量还是本地数据流量,具体包括:Optionally, the determining whether the newly added data traffic is foreign data traffic or local data traffic according to the query result specifically includes:

当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定所述新增数据流量为本地数据流量;When it is determined according to the query result that the area to which the base station used by the mobile terminal is located in the same charging area as the area to which the mobile terminal belongs, it is determined that the newly added data traffic is local data traffic;

当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定所述新增数据流量为外地数据流量。When it is determined according to the query result that the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different charging areas, it is determined that the newly added data traffic is out-of-region data traffic.

可选地,所述确定移动终端的所属区域,具体包括:根据移动终端所用电话号码确定移动终端的所属区域。Optionally, the determining the area to which the mobile terminal belongs specifically includes: determining the area to which the mobile terminal belongs according to the phone number used by the mobile terminal.

可选地,所述确定移动终端的所属区域,具体包括:根据安装流量统计应用时移动终端的地理位置信息确定移动终端的所属区域。Optionally, the determining the area to which the mobile terminal belongs specifically includes: determining the area to which the mobile terminal belongs according to geographical location information of the mobile terminal when the traffic statistics application is installed.

可选地,所述方法还包括:当判定新增数据流量为外地数据流量时,显示漫游到外地的提醒信息。Optionally, the method further includes: when it is determined that the newly added data traffic is out-of-region data traffic, displaying a reminder message of roaming to out-of-region.

可选地,所述方法还包括:Optionally, the method also includes:

将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况;Distinguish the traffic usage in the traffic package into local data traffic usage and out-of-region data traffic usage;

根据统计得出的移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和/或剩余流量额度。According to the local data traffic and non-local data traffic used in the mobile terminal obtained from the statistics, for the local data traffic usage and the non-local data traffic usage, respectively calculate the usage percentage of the traffic quota and/or the remaining traffic quota.

可选地,所述方法还包括:Optionally, the method also includes:

当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和/或剩余流量额度;When the area to which the base station used by the mobile terminal is located in the same billing area as the area to which the mobile terminal belongs, display the traffic quota usage percentage and/or remaining traffic quota of the local data traffic usage;

当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。When the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different billing areas, the traffic quota usage percentage and/or the remaining traffic quota of the data traffic usage in other places are displayed.

依据本发明的一个方面,提供了一种移动终端中数据流量监测的方法,包括:According to one aspect of the present invention, a method for monitoring data traffic in a mobile terminal is provided, including:

根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;Classifying the base stations according to the area to which the base station belongs, generating a base station location information file corresponding to each area, the base station location information file including the base station ID in the corresponding area;

接收到移动终端下载请求后,将下载请求中区域对应的基站位置信息文件发送该移动终端,以使移动终端在统计所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,并在查找到所用基站ID时,判定统计的新增数据流量为本地数据流量;After receiving the mobile terminal download request, the base station location information file corresponding to the area in the download request is sent to the mobile terminal, so that the mobile terminal searches the base station location information file for the mobile terminal when counting the used data traffic. And when the ID of the base station used is found, it is determined that the newly added data traffic counted is local data traffic;

接收到移动终端查询请求后,在各个区域对应的基站位置信息文件中查询查询请求中基站ID,将查询结果发送给移动终端,以使移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。After receiving the mobile terminal query request, query the base station ID in the query request in the base station location information file corresponding to each area, and send the query result to the mobile terminal, so that the mobile terminal can judge whether the newly added data traffic is foreign data traffic or local data traffic.

可选地,,所述根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,具体包括:Optionally, the classifying the base stations according to the area to which the base stations belong, and generating the base station location information files corresponding to each area specifically includes:

根据基站地理位置信息确定基站所属区域;Determine the area to which the base station belongs according to the geographic location information of the base station;

记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。Record the base station ID in each area, and generate the base station location information file corresponding to the area.

可选地,所述基站地理位置信息包括:基站地址信息和基站经纬度信息,所述根据基站地理位置信息确定基站所属区域,具体包括:Optionally, the base station geographic location information includes: base station address information and base station latitude and longitude information, and the determining the area to which the base station belongs according to the base station geographic location information specifically includes:

根据基站地址信息确定基站所属区域;Determine the area to which the base station belongs according to the address information of the base station;

当根据基站地址信息未确定出基站所属区域时,根据基站经纬度信息在地图中查询所述基站,根据查询结果确定基站所属区域。When the area to which the base station belongs is not determined according to the address information of the base station, the base station is queried in the map according to the longitude and latitude information of the base station, and the area to which the base station belongs is determined according to the query result.

依据本发明的一个方面,提供了一种移动终端中数据流量监测的装置,包括:According to one aspect of the present invention, a device for monitoring data traffic in a mobile terminal is provided, including:

下载模块,适于确定移动终端的所属区域,下载所述所属区域对应的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;The download module is adapted to determine the area to which the mobile terminal belongs, and download the base station location information file corresponding to the area to which the mobile terminal belongs, and the base station location information file includes the base station ID in the corresponding area;

查找模块,适于在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID;The search module is suitable for searching the ID of the base station used by the mobile terminal in the downloaded base station location information file when counting the data traffic used by the mobile terminal;

第一判定模块,适于当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量;The first determination module is adapted to determine that the newly added data traffic counted by the mobile terminal is local data traffic when the base station ID used by the mobile terminal is found;

第二判定模块,适于当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。The second judging module is adapted to send the used base station ID to the server when the base station ID used by the mobile terminal is not found, so as to query the used base station ID in the base station location information files corresponding to each area in the server, and judge the new ID according to the query result. Whether the data traffic is foreign data traffic or local data traffic.

可选地,所述第二判定模块,具体包括:Optionally, the second determination module specifically includes:

记录子模块,适于当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量;The recording submodule is suitable for recording the base station ID used by the mobile terminal and the corresponding new data flow when the base station ID used by the mobile terminal is not found in the downloaded base station location information file;

发送子模块,适于将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。The sending sub-module is adapted to send the recorded base station ID within the preset time length to the server, so as to query in the base station location information file corresponding to each area in the server.

可选地,,所述第二判定模块,具体包括:Optionally, the second determination module specifically includes:

第一判定子模块,适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定所述新增数据流量为本地数据流量;The first determining submodule is adapted to determine that the newly added data traffic is local data traffic when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs and the area to which the mobile terminal belongs are located in the same billing area;

第二判定子模块,适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定所述新增数据流量为外地数据流量。The second determining submodule is adapted to determine that the newly added data traffic is foreign data traffic when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs is located in a different charging area from the area to which the mobile terminal belongs.

可选地,,所述下载模块,具体适于根据移动终端所用电话号码确定移动终端的所属区域。Optionally, the download module is specifically adapted to determine the area to which the mobile terminal belongs according to the phone number used by the mobile terminal.

可选地,,所述下载模块,具体适于根据安装流量统计应用时移动终端的地理位置信息确定移动终端的所属区域。Optionally, the download module is specifically adapted to determine the area to which the mobile terminal belongs according to the geographic location information of the mobile terminal when the traffic statistics application is installed.

可选地,,所述装置还包括:显示模块,适于当判定新增数据流量为外地数据流量时,显示漫游到外地的提醒信息。Optionally, the device further includes: a display module adapted to display a reminder message of roaming to a foreign place when it is determined that the newly added data traffic is foreign data traffic.

可选地,,所述装置还包括:计算模块,适于将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况;根据统计得出的移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和/或剩余流量额度。Optionally, the device further includes: a calculation module, adapted to distinguish the traffic usage in the traffic package into local data traffic usage and foreign data traffic usage; the local data used in the mobile terminal obtained according to the statistics Traffic and foreign data traffic, for local data traffic usage and non-local data traffic usage, respectively calculate the traffic quota usage percentage and/or remaining traffic quota.

可选地,,所述装置还包括:显示模块,适于当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和/或剩余流量额度;当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。Optionally, the device further includes: a display module, adapted to display the traffic quota usage percentage and/or the local data traffic usage when the area to which the base station used by the mobile terminal belongs and the area to which the mobile terminal belongs are in the same billing area Or the remaining traffic quota; when the area to which the base station used by the mobile terminal is located in a different billing area from the area to which the mobile terminal belongs, display the traffic quota usage percentage and/or the remaining traffic quota of the data traffic usage in other places.

依据本发明的一个方面,提供了一种移动终端中数据流量监测的装置,包括:According to one aspect of the present invention, a device for monitoring data traffic in a mobile terminal is provided, including:

生成模块,适于根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;The generation module is adapted to classify the base stations according to the area to which the base station belongs, and generate a base station location information file corresponding to each area, and the base station location information file includes the base station ID in the corresponding area;

传输模块,适于接收到移动终端下载请求后,将下载请求中区域对应的基站位置信息文件发送该移动终端,以使移动终端在统计所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,并在查找到所用基站ID时,判定统计的新增数据流量为本地数据流量;The transmission module is adapted to send the base station location information file corresponding to the area in the download request to the mobile terminal after receiving the download request from the mobile terminal, so that the mobile terminal can search for the mobile station in the downloaded base station location information file when counting the data traffic used. The ID of the base station used by the terminal, and when the ID of the base station used is found, it is determined that the newly added data traffic counted is local data traffic;

查询模块,适于接收到移动终端查询请求后,在各个区域对应的的基站位置信息文件中查询查询请求中基站ID,将查询结果发送给移动终端,以使移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。The query module is adapted to query the base station ID in the query request in the base station location information file corresponding to each area after receiving the query request from the mobile terminal, and send the query result to the mobile terminal, so that the mobile terminal can judge the newly added data according to the query result Whether the traffic is foreign data traffic or local data traffic.

可选地,,所述生成模块,具体包括:Optionally, the generating module specifically includes:

确定子模块,适于根据基站地理位置信息确定基站所属区域;The determining submodule is suitable for determining the area to which the base station belongs according to the geographic location information of the base station;

生成子模块,适于记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。The generation sub-module is suitable for recording base station IDs in each area, and generating a base station position information file corresponding to the area.

可选地,,所述基站地理位置信息包括:基站地址信息和基站经纬度信息,所述确定子模块,具体适于根据基站地址信息确定基站所属区域;当根据基站地址信息未确定出基站所属区域时,根据基站经纬度信息在地图中查询所述基站,根据查询结果确定基站所属区域。Optionally, the geographic location information of the base station includes: base station address information and base station latitude and longitude information, and the determination submodule is specifically adapted to determine the area to which the base station belongs according to the base station address information; when the area to which the base station belongs is not determined according to the base station address information , the base station is queried on the map according to the latitude and longitude information of the base station, and the area to which the base station belongs is determined according to the query result.

根据本发明的技术方案,可以确定移动终端的所属区域,下载所属区域对应的基站位置信息文件,在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量,当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。由此解决了,数据流量监测中无法区分本地数据流量和外地数据流量的问题,取得了能够区分本地数据流量和外地数据流量,增加数据流量监测的精确性,更好的满足用户对数据流量监测的需求,提高用户满意度的有益效果。According to the technical solution of the present invention, the area to which the mobile terminal belongs can be determined, the base station location information file corresponding to the area to which the mobile terminal belongs can be downloaded, and when the data traffic used by the mobile terminal is counted, the ID of the base station used by the mobile terminal can be found in the downloaded base station location information file. When the ID of the base station used by the mobile terminal is found, it is determined that the newly added data traffic counted is local data traffic. When the ID of the base station used by the mobile terminal is not found, the ID of the base station used is sent to the server, so that the location of the base station corresponding to each area in the server Query the base station ID used in the information file, and judge whether the newly added data traffic is out-of-town data traffic or local data traffic according to the query results. This solves the problem of being unable to distinguish between local data traffic and foreign data traffic in data traffic monitoring, achieves the ability to distinguish local data traffic and foreign data traffic, increases the accuracy of data traffic monitoring, and better meets the needs of users for data traffic monitoring. The beneficial effect of improving user satisfaction.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的移动终端中数据流量监测的方法的流程图;FIG. 1 shows a flowchart of a method for monitoring data traffic in a mobile terminal according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的到服务器中查询基站ID的流程图;Fig. 2 shows a flow chart of querying the base station ID in the server according to one embodiment of the present invention;

图3示出了根据本发明一个实施例的根据查询结果区分外地数据流量和本地数据流量的流程图;FIG. 3 shows a flow chart of distinguishing foreign data traffic and local data traffic according to query results according to an embodiment of the present invention;

图4示出了根据本发明一个实施例的区分外地数据流量和本地数据流量对数据流量使用情况进行计算的流程图Fig. 4 shows a flow chart for calculating data traffic usage by distinguishing between foreign data traffic and local data traffic according to an embodiment of the present invention

图5示出了根据本发明一个实施例的显示数据流量使用情况的流程图;Fig. 5 shows a flow chart of displaying data traffic usage according to an embodiment of the present invention;

图6A示出了根据本发明一个实施例的显示监测的本地数据流量使用情况的界面的示意图;Fig. 6A shows a schematic diagram of an interface displaying monitored local data traffic usage according to an embodiment of the present invention;

图6B示出了根据本发明一个实施例的显示监测的外地数据流量使用情况的界面的示意图;Fig. 6B shows a schematic diagram of an interface displaying monitored usage of external data traffic according to an embodiment of the present invention;

图7示出了根据本发明一个实施例的移动终端中数据流量监测的方法的流程图;FIG. 7 shows a flowchart of a method for monitoring data traffic in a mobile terminal according to an embodiment of the present invention;

图8示出了根据本发明一个实施例的移动终端中数据流量监测的方法的流程图;FIG. 8 shows a flowchart of a method for monitoring data traffic in a mobile terminal according to an embodiment of the present invention;

图9示出了根据本发明一个实施例的移动终端中数据流量监测的装置的结构图;FIG. 9 shows a structural diagram of a device for monitoring data traffic in a mobile terminal according to an embodiment of the present invention;

图10示出了根据本发明一个实施例的移动终端中数据流量监测的装置的结构图;以及FIG. 10 shows a structural diagram of a device for monitoring data traffic in a mobile terminal according to an embodiment of the present invention; and

图11示出了根据本发明一个实施例的移动终端中数据流量监测的装置的结构图。Fig. 11 shows a structural diagram of an apparatus for monitoring data traffic in a mobile terminal according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

图1示出了根据本发明一个实施例的移动终端中数据流量监测的方法的流程图。该方法适于各种移动终端,例如手机、平板电脑等。如图1所示,该方法包括如下步骤S110-S140。Fig. 1 shows a flowchart of a method for monitoring data traffic in a mobile terminal according to an embodiment of the present invention. The method is suitable for various mobile terminals, such as mobile phones, tablet computers and the like. As shown in Fig. 1, the method includes the following steps S110-S140.

在步骤S110中,确定移动终端的所属区域,下载所属区域对应的基站位置信息文件。In step S110, the area to which the mobile terminal belongs is determined, and a base station location information file corresponding to the area to which the mobile terminal belongs is downloaded.

基站位置信息文件中包括对应区域中的基站ID。The base station location information file includes the ID of the base station in the corresponding area.

其中,所述确定移动终端的所属区域可包括:根据移动终端所用电话号码确定移动终端的所属区域。Wherein, the determining the area to which the mobile terminal belongs may include: determining the area to which the mobile terminal belongs according to the phone number used by the mobile terminal.

举例而言,可以将移动终端中使用的电话号码在服务器的号码信息文件中查询,号码信息文件中包括各个区域所用号码段,确定出移动终端中所用电话号码所属号码段后,确定移动终端中使用的电话号码属于该号码段对应的区域。例如,以行政区县为单位,号码信息文件中包括各个行政区县号码段,在号码信息文件中查询移动终端所用的电话号码,确定该电话号码所属号码段,进而得出电话号码属于该号码段对应的区县。For example, the phone number used in the mobile terminal can be queried in the number information file of the server. The number information file includes the number segment used in each area. After determining the number segment of the phone number used in the mobile terminal, determine the number segment in the mobile terminal The phone number used belongs to the region corresponding to the number segment. For example, taking administrative districts and counties as the unit, the number information file includes the number segments of each administrative district and county. In the number information file, the phone number used by the mobile terminal is queried to determine the number segment to which the phone number belongs, and then obtain the corresponding number segment that the phone number belongs to. districts and counties.

其中,所述确定移动终端的所属区域也可包括:根据安装流量统计应用时移动终端的地理位置信息确定移动终端的所属区域。Wherein, the determining the area to which the mobile terminal belongs may also include: determining the area to which the mobile terminal belongs according to the geographic location information of the mobile terminal when the traffic statistics application is installed.

举例而言,当用户在移动终端中安装流量统计应用时,通过GPS获得移动终端的经纬度,在服务器的地图中查找该经纬度,确定出移动终端所在的区域,将该区域确定为移动终端的所属区域。For example, when a user installs a traffic statistics application in a mobile terminal, the longitude and latitude of the mobile terminal are obtained through GPS, the longitude and latitude are searched in the map of the server, the area where the mobile terminal is located is determined, and the area is determined as the mobile terminal belongs to. area.

确定移动终端的所属区域的方式不限于上述两种,可以采用其他方式确定移动终端所属区域,例如,在用户安装流量统计应用时,显示输入框,提示用户输入移动终端所属区域,根据用户输入的信息确定移动终端所属区域。The method of determining the region to which the mobile terminal belongs is not limited to the above two methods, and other methods may be used to determine the region to which the mobile terminal belongs. For example, when the user installs a traffic statistics application, an input box is displayed to prompt the user to enter the region to which the mobile terminal belongs. The information identifies the region to which the mobile terminal belongs.

在一实施例中,服务器获取基站地理位置信息,基站地理位置信息中包括基站ID、基站经纬度信息和基站的地址信息。服务器根据基站的地址信息和经纬度信息确定基站所属区域,记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。如此,服务器中存储有各个区域对应的基站位置信息文件。例如,服务器中存储有各个区县对应的基站位置信息文件。移动终端向服务器发送下载请求,下载请求中包括移动终端所属区域。服务器接收到下载请求后,将下载请求中移动终端所属区域对应的基站位置信息文件发送给移动终端,移动终端接收所属区域对应的基站位置信息文件。In an embodiment, the server acquires the geographic location information of the base station, and the geographic location information of the base station includes the ID of the base station, the latitude and longitude information of the base station, and the address information of the base station. The server determines the area to which the base station belongs according to the address information and latitude and longitude information of the base station, records the ID of the base station in each area, and generates a base station location information file corresponding to the area. In this way, the base station location information files corresponding to each area are stored in the server. For example, base station location information files corresponding to various districts and counties are stored in the server. The mobile terminal sends a download request to the server, and the download request includes the area to which the mobile terminal belongs. After receiving the download request, the server sends the base station location information file corresponding to the area to which the mobile terminal belongs in the download request to the mobile terminal, and the mobile terminal receives the base station location information file corresponding to the area to which the mobile terminal belongs.

在步骤S120中,在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID。In step S120, when counting the data traffic used by the mobile terminal, the ID of the base station used by the mobile terminal is searched in the downloaded base station location information file.

举例而言,在进行数据流量监测时,对移动终端中所用数据流量进行轮询统计,相邻两次轮询时获得的数据流量的差额为统计出的新增数据流量。在每次轮询时,通过解析移动终端接收的数据包,确定轮询时移动终端所用基站ID。在下载的基站位置信息文件中查找该基站ID。如果查找到,表明移动终端仍然在本地使用数据业务;如果没有查找到,则需要进一步确定移动终端是在本地还已经漫游到外地。For example, when performing data flow monitoring, the data flow used in the mobile terminal is polled and counted, and the difference between the data flows obtained during two adjacent polls is the calculated new data flow. At each polling, the ID of the base station used by the mobile terminal is determined by analyzing the data packet received by the mobile terminal. Find the base station ID in the downloaded base station location information file. If it is found, it indicates that the mobile terminal is still using the data service locally; if it is not found, it needs to further determine whether the mobile terminal is in the local area or has roamed to other places.

在步骤S130中,当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量。In step S130, when the ID of the base station used by the mobile terminal is found, it is determined that the added data traffic counted is local data traffic.

举例而言,如果在下载的基站位置信息文件中查找到移动终端所用基站ID,则判定本次轮询到的新增数据流量为本地数据流量。For example, if the ID of the base station used by the mobile terminal is found in the downloaded base station location information file, it is determined that the newly added data traffic polled this time is local data traffic.

在步骤S140中,当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。In step S140, when the base station ID used by the mobile terminal is not found, the base station ID used is sent to the server to query the base station ID used in the base station location information file corresponding to each area in the server, and judge the newly added data flow according to the query result Is it foreign data traffic or local data traffic.

举例而言,如果在下载的基站位置信息文件中没有查找到移动终端所用基站ID,这可能是因为移动终端已经漫游到外地或者移动终端所用基站为本地新增基站,在这种情况下,移动终端将所用基站ID发送给服务器,服务器在各个区域对应的基站位置信息文件中查询所用基站ID,移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。For example, if the ID of the base station used by the mobile terminal is not found in the downloaded base station location information file, it may be because the mobile terminal has roamed to other places or the base station used by the mobile terminal is a newly added base station locally. In this case, the mobile terminal The terminal sends the used base station ID to the server, and the server queries the used base station ID in the base station location information files corresponding to each area, and the mobile terminal judges whether the newly added data traffic is foreign data traffic or local data traffic according to the query results.

在一实施例中,如图2所示,所述当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,具体包括如下步骤S142和步骤S144。In one embodiment, as shown in Figure 2, when the base station ID used by the mobile terminal is not found, the base station ID used is sent to the server, so as to query the base station ID used in the base station location information file corresponding to each area in the server , specifically including the following steps S142 and S144.

在步骤S142中,当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量。In step S142, when the base station ID used by the mobile terminal is not found in the downloaded base station location information file, record the base station ID used by the mobile terminal and the corresponding newly added data flow.

在步骤S144中,将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。In step S144, send the recorded base station ID within the preset time length to the server, so as to search in the base station location information file corresponding to each area in the server.

因为移动终端向服务器发送的数据包都会有数据包头,将一定时长内的基站ID集中发送给服务器,与单独发送基站ID给服务器相比,能够减少发送数据包数量,进而节约发送所用数据流量。Because the data packets sent by the mobile terminal to the server will have a data packet header, and the base station IDs within a certain period of time are sent to the server collectively, compared with sending the base station ID to the server separately, the number of data packets sent can be reduced, thereby saving the data traffic used for sending.

在一实施例中,如图3所示,所述根据查询结果判断新增数据流量是外地数据流量还是本地数据流量,具体包括如下步骤S146和步骤S148。In one embodiment, as shown in FIG. 3 , the determining whether the newly added data traffic is foreign data traffic or local data traffic according to the query result specifically includes the following steps S146 and S148.

在步骤S146中,当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定新增数据流量为本地数据流量。In step S146, when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs is in the same charging area as the area to which the mobile terminal belongs, it is determined that the newly added data traffic is local data traffic.

在步骤S148中,当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定新增数据流量为外地数据流量。In step S148, when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs is located in a different charging area from the area to which the mobile terminal belongs, it is determined that the newly added data traffic is foreign data traffic.

举例而言,移动终端从服务器接收到查询结果,如果查询结果中移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,例如,两者都位于同一个省,则判定新增数据流量为本地数据流量。如果查询结果中移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,例如,两者都位于不同的两个省,则判定新增数据流量为外地数据流量。For example, when the mobile terminal receives the query result from the server, if the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs in the query result are located in the same billing area, for example, both are located in the same province, it is determined to add Data traffic is local data traffic. If the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different charging areas in the query result, for example, both are located in two different provinces, then it is determined that the newly added data traffic is out-of-region data traffic.

在一实施例中,当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,将所用基站ID添加到移动终端本地的基站位置信息文件中。In one embodiment, when it is determined according to the query result that the area to which the base station used by the mobile terminal is located in the same charging area as the area to which the mobile terminal belongs, the ID of the used base station is added to the local base station location information file of the mobile terminal.

如此,移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域,将该基站ID添加到移动终端本地基站位置信息文件中。如此,当移动终端下次再使用该基站时,可以直接从本地的基站位置信息文件中查询到该基站的基站ID,避免到服务器中进行基站查询,节约所用数据流量。In this way, the area to which the base station used by the mobile terminal is located in the same billing area as the area to which the mobile terminal belongs, the base station ID is added to the local base station location information file of the mobile terminal. In this way, when the mobile terminal uses the base station next time, it can directly query the base station ID of the base station from the local base station location information file, avoiding base station query in the server and saving data traffic.

在一实施例中,所述方法还包括:当判定新增数据流量为外地数据流量时,显示漫游到外地的提醒信息。当确定移动终端当前所用基站ID为外地基站时,在用户界面中弹出提示信息“当前处于外地漫游状态,请确定是否继续使用数据业务”。此外,还可以在用户界面中添加数据业务断开按钮,当检测到数据业务断开按钮被点击后,将移动终端中数据业务连接断开。In an embodiment, the method further includes: when it is determined that the newly added data traffic is out-of-region data traffic, displaying a reminder message of roaming to out-of-region. When it is determined that the base station ID currently used by the mobile terminal is a foreign base station, a prompt message "currently roaming in a foreign country, please determine whether to continue to use the data service" pops up in the user interface. In addition, a data service disconnect button may also be added in the user interface, and when it is detected that the data service disconnect button is clicked, the data service connection in the mobile terminal is disconnected.

如此,能够在移动终端处于外地漫游状态时,对用户进行提醒,避免用户无意中使用过多漫游数据业务,增加通信费用。In this way, the user can be reminded when the mobile terminal is roaming in other places, so as to prevent the user from inadvertently using too many roaming data services and increasing communication costs.

在一实施例中,如图4所示,所述方法还包括:In one embodiment, as shown in Figure 4, the method further includes:

步骤S410,将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况。In step S410, the traffic usage in the traffic package is divided into local data traffic usage and out-of-region data traffic usage.

步骤S420,根据移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和/或剩余流量额度。Step S420, according to the local data traffic and the foreign data traffic used in the mobile terminal, calculate the usage percentage of the traffic quota and/or the remaining traffic quota for the usage of the local data traffic and the usage of the foreign data traffic.

举例而言,用户套餐中,本地数据流量额度为500M/月;外地数据流量额度为15M/月,数据流量监测中区分移动终端中使用的本地数据流量和外地数据流量,例如,移动终端中使用的本地数据流量为100M,移动终端中使用的外地数据流量为5M,则分别计算出:本地流量额度使用百分比为20%,本地剩余流量额度为400M;外地流量额度使用百分比为33%,外地剩余流量额度为10M。For example, in the user package, the local data traffic quota is 500M/month; the non-local data traffic quota is 15M/month. In the data traffic monitoring, the local data traffic used in the mobile terminal and the non-local data traffic are distinguished. For example, the mobile terminal uses The local data traffic of the mobile terminal is 100M, and the non-local data traffic used in the mobile terminal is 5M, then it is calculated respectively: the usage percentage of the local traffic quota is 20%, and the remaining local traffic quota is 400M; the usage percentage of the non-local traffic quota is 33%, and the remaining The traffic quota is 10M.

在一实施例中,如图5所示,所述方法还包括:In one embodiment, as shown in Figure 5, the method further includes:

步骤S510,当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。Step S510, when the area to which the base station used by the mobile terminal is located in the same billing area as the area to which the mobile terminal belongs, display the traffic quota usage percentage and/or remaining traffic quota of the local data traffic usage.

如图6A所示,当移动终端在本地使用数据业务时,采用流量球的方式显示监测的本地数据流量使用情况。As shown in FIG. 6A , when the mobile terminal uses the data service locally, the monitored local data traffic usage is displayed in the form of a traffic ball.

步骤S520,当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。Step S520, when the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different billing areas, display the traffic quota usage percentage and/or remaining traffic quota of the data traffic usage in other places.

如图6B所示,当移动终端在漫游到外地使用数据业务时,采用流量球的方式显示监测的外地数据流量使用情况。As shown in FIG. 6B , when the mobile terminal roams to another place to use the data service, the monitored data flow usage in the other place is displayed in the form of a traffic ball.

如此,将移动终端使用的数据流量与移动终端的数据流量额度相关联,方便用户确定数据流量使用情况。In this way, the data traffic used by the mobile terminal is associated with the data traffic quota of the mobile terminal, which is convenient for the user to determine the usage of the data traffic.

图7示出了根据本发明一个实施例的移动终端中数据流量监测的方法的流程图。例如,移动终端所属区域为北京朝阳区,移动终端使用运营商提供的数据业务,并且在北京本地和外地使用移动终端。本实施例中方法包括如下步骤S702-S722。Fig. 7 shows a flowchart of a method for monitoring data traffic in a mobile terminal according to an embodiment of the present invention. For example, the area to which the mobile terminal belongs is Chaoyang District, Beijing, the mobile terminal uses the data service provided by the operator, and the mobile terminal is used in Beijing and other places. The method in this embodiment includes the following steps S702-S722.

在步骤S702中,确定移动终端的所属区域,下载所属区域对应的基站位置信息文件。In step S702, the area to which the mobile terminal belongs is determined, and a base station location information file corresponding to the area to which the mobile terminal belongs is downloaded.

例如,确定出移动终端的所属区域为北京朝阳区,下载朝阳区对应的基站位置信息文件,该基站位置信息文件中包括朝阳区中基站ID。For example, it is determined that the area to which the mobile terminal belongs is Chaoyang District, Beijing, and the base station location information file corresponding to Chaoyang District is downloaded, and the base station location information file includes the ID of the base station in Chaoyang District.

在步骤S704中,在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID。In step S704, when counting the data traffic used by the mobile terminal, the ID of the base station used by the mobile terminal is searched in the downloaded base station location information file.

例如,在每次进行数据流量统计时,在本地存储的与朝阳区对应的基站位置信息文件中查找本次统计时移动终端使用的基站ID。For example, each time data flow statistics are performed, the ID of the base station used by the mobile terminal during this statistics is searched in the locally stored base station location information file corresponding to Chaoyang District.

在步骤S706中,当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量。In step S706, when the ID of the base station used by the mobile terminal is found, it is determined that the added data traffic counted is local data traffic.

例如,移动终端在朝阳区范围内使用数据业务,则能够在移动终端本地的基站位置信息文件查找到移动终端所用基站ID。For example, if the mobile terminal uses the data service within the Chaoyang District, the ID of the base station used by the mobile terminal can be found in the local base station location information file of the mobile terminal.

在步骤S708中,当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量。In step S708, when the ID of the base station used by the mobile terminal is not found in the downloaded base station location information file, record the ID of the base station used by the mobile terminal and the corresponding new data flow.

例如,移动终端仍然在朝阳区范围内使用数据业务,但使用的基站为新增基站,或者,移动终端移动到海淀区使用数据业务,或者移动终端移动到上海市使用数据业务,在这些情况下,都无法在移动终端本地的基站位置信息文件中查找移动终端所用基站ID。此时,将预设时长内的移动终端所用基站ID和对应的新增数据流量进行记录,以便在服务器中进行查询。For example, the mobile terminal still uses the data service within Chaoyang District, but the base station used is a new base station, or the mobile terminal moves to Haidian District to use the data service, or the mobile terminal moves to Shanghai to use the data service, in these cases , it is impossible to find the ID of the base station used by the mobile terminal in the local base station location information file of the mobile terminal. At this time, the ID of the base station used by the mobile terminal and the corresponding new data traffic within the preset time period are recorded, so as to be queried in the server.

在步骤S710中,将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。In step S710, the recorded base station ID within the preset time length is sent to the server, so as to query in the base station location information file corresponding to each area in the server.

在步骤S712中,当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定新增数据流量为本地数据流量。In step S712, when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs is located in the same charging area as the area to which the mobile terminal belongs, it is determined that the newly added data traffic is local data traffic.

例如,移动终端移动到海淀区使用数据业务,查询结果指明移动终端所用基站ID所属区域为海淀区,朝阳区和海淀区同属于北京市,位于同一计费区域,因此,根据该查询结果判定出记录中对应的新增数据流量为本地数据流量。For example, when a mobile terminal moves to Haidian District to use data services, the query result indicates that the base station ID used by the mobile terminal belongs to Haidian District. Chaoyang District and Haidian District both belong to Beijing and are located in the same billing area. The corresponding newly added data traffic in the record is local data traffic.

在步骤S714中,当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定新增数据流量为外地数据流量。In step S714, when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs and the area to which the mobile terminal belongs are located in different charging areas, it is determined that the newly added data traffic is foreign data traffic.

例如,移动终端移动到上海市浦东区使用数据业务,查询结果指明移动终端所用基站ID所属区域为浦东区,朝阳区和浦东区分别属于北京市和上海市,位于不同计费区域,因此,根据该查询结果判定出记录中对应的新增数据流量为外地数据流量。For example, when a mobile terminal moves to Pudong District of Shanghai to use data services, the query result indicates that the base station ID used by the mobile terminal belongs to Pudong District. Chaoyang District and Pudong District belong to Beijing and Shanghai respectively and are located in different billing areas. Therefore, according to As a result of the query, it is determined that the corresponding newly added data traffic in the record is out-of-region data traffic.

在步骤S716中,将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况。In step S716, the traffic usage in the traffic package is divided into local data traffic usage and out-of-region data traffic usage.

在步骤S718中,根据移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和剩余流量额度。In step S718, according to the local data traffic and the foreign data traffic used in the mobile terminal, the usage percentage of the traffic quota and the remaining traffic quota are respectively calculated for the usage of the local data traffic and the usage of the foreign data traffic.

步骤S720,当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和剩余流量额度。Step S720, when the area to which the base station used by the mobile terminal is located in the same billing area as the area to which the mobile terminal belongs, display the usage percentage of the local data traffic usage and the remaining traffic quota.

如图6A所示,当移动终端在海淀区使用数据业务时,采用流量球的方式显示监测的本地数据流量使用情况。As shown in FIG. 6A , when the mobile terminal uses the data service in Haidian District, the monitored local data traffic usage is displayed in the form of a traffic ball.

步骤S722,当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和剩余流量额度。Step S722, when the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different billing areas, display the traffic quota usage percentage and remaining traffic quota of the data traffic usage in other places.

如图6B所示,当移动终端在漫游到上海市浦东区使用数据业务时,采用流量球的方式显示监测的外地数据流量使用情况。As shown in FIG. 6B , when the mobile terminal roams to the Pudong District of Shanghai to use the data service, the monitored data traffic usage in other places is displayed in the form of a traffic ball.

本发明中实施例解决了,数据流量监测中无法区分本地数据流量和外地数据流量的问题,取得了能够区分本地数据流量和外地数据流量,增加数据流量监测的精确性,更好的满足用户对数据流量监测的需求,提高用户满意度的有益效果。The embodiment of the present invention solves the problem of being unable to distinguish between local data traffic and foreign data traffic in data traffic monitoring, achieves the ability to distinguish local data traffic and foreign data traffic, increases the accuracy of data traffic monitoring, and better satisfies the needs of users The demand for data flow monitoring has the beneficial effect of improving user satisfaction.

图8示出了根据本发明一个实施例的移动终端中数据流量监测的方法的流程图。该方法可用于各种服务器,包括如下步骤S810-S830。Fig. 8 shows a flowchart of a method for monitoring data traffic in a mobile terminal according to an embodiment of the present invention. This method can be used in various servers, including the following steps S810-S830.

在步骤S810中,根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件。In step S810, the base stations are classified according to the area to which the base station belongs, and a base station location information file corresponding to each area is generated.

其中,基站位置信息文件中包括对应区域中的基站ID。Wherein, the base station location information file includes the base station ID in the corresponding area.

举例而言,服务器获取基站地理位置信息,基站地理位置信息中包括基站ID、基站经纬度信息和基站的地址信息。服务器根据基站的地址信息和经纬度信息确定基站所属区域,记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。如此,服务器中存储有各个区域对应的基站位置信息文件。例如,服务器中存储有各个区县对应的基站位置信息文件。For example, the server obtains the geographic location information of the base station, and the geographic location information of the base station includes the ID of the base station, the latitude and longitude information of the base station, and the address information of the base station. The server determines the area to which the base station belongs according to the address information and latitude and longitude information of the base station, records the ID of the base station in each area, and generates a base station location information file corresponding to the area. In this way, the base station location information files corresponding to each area are stored in the server. For example, base station location information files corresponding to various districts and counties are stored in the server.

将基站位置信息按所属区域进行分类,能够使得分类后各个区域对应的文件较小,进而在移动终端进行下载时,节约移动终端的数据流量和存储空间。Classifying the location information of the base station according to the area to which it belongs can make the files corresponding to each area smaller after classification, and then save the data traffic and storage space of the mobile terminal when the mobile terminal downloads.

在步骤S820中,接收到移动终端下载请求后,将下载请求中区域对应的基站位置信息文件发送该移动终端,以使移动终端在统计所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,并在查找到所用基站ID时,判定统计的新增数据流量为本地数据流量。In step S820, after receiving the download request from the mobile terminal, send the base station location information file corresponding to the area in the download request to the mobile terminal, so that the mobile terminal can search for the mobile station in the downloaded base station location information file when counting the data traffic used. The ID of the base station used by the terminal, and when the ID of the used base station is found, it is determined that the newly added data traffic counted is local data traffic.

在步骤S830中,接收到移动终端查询请求后,在各个区域对应的基站位置信息文件中查询查询请求中基站ID,将查询结果发送给移动终端,以使移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。In step S830, after receiving the mobile terminal query request, query the base station ID in the query request in the base station location information file corresponding to each area, and send the query result to the mobile terminal, so that the mobile terminal can judge the newly added data traffic according to the query result Is it foreign data traffic or local data traffic.

在一实施例中,根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,具体包括如下步骤A812和步骤A814。In one embodiment, the base stations are classified according to the areas to which the base stations belong, and base station location information files corresponding to each area are generated, specifically including the following steps A812 and A814.

在步骤A812中,根据基站地理位置信息确定基站所属区域。In step A812, the area to which the base station belongs is determined according to the geographic location information of the base station.

在步骤A814中,记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。In step A814, record the base station ID in each area, and generate a base station location information file corresponding to the area.

进一步地,基站地理位置信息包括:基站地址信息和基站经纬度信息,所述根据基站地理位置信息确定基站所属区域,具体包括如下步骤A8122和A8124。Further, the geographic location information of the base station includes: the address information of the base station and the latitude and longitude information of the base station, and the determining the area to which the base station belongs according to the geographic location information of the base station specifically includes the following steps A8122 and A8124.

在步骤A8122中,根据基站地址信息确定基站所属区域。In step A8122, the area to which the base station belongs is determined according to the address information of the base station.

在步骤A8124中,当根据基站地址信息未确定出基站所属区域时,根据基站经纬度信息在地图中查询所述基站,根据查询结果确定基站所属区域。In step A8124, when the area to which the base station belongs is not determined according to the address information of the base station, the base station is queried in the map according to the longitude and latitude information of the base station, and the area to which the base station belongs is determined according to the query result.

本发明中实施例解决了,数据流量监测中无法区分本地数据流量和外地数据流量的问题,取得了能够区分本地数据流量和外地数据流量,增加数据流量监测的精确性,更好的满足用户对数据流量监测的需求,提高用户满意度的有益效果。The embodiment of the present invention solves the problem of being unable to distinguish between local data traffic and foreign data traffic in data traffic monitoring, achieves the ability to distinguish local data traffic and foreign data traffic, increases the accuracy of data traffic monitoring, and better satisfies the needs of users The demand for data flow monitoring has the beneficial effect of improving user satisfaction.

上述仅为本发明的移动终端中数据流量监测的方法的实例性说明,本发明不限于此。凡在本发明的精神或原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The foregoing is only an example description of the method for monitoring data flow in a mobile terminal of the present invention, and the present invention is not limited thereto. Any modification, equivalent replacement, improvement, etc. made within the spirit or principle of the present invention are included in the protection scope of the present invention.

图9示出了根据本发明一个实施例的移动终端中数据流量监测的装置的结构图。该装置适于各种移动终端,例如手机、平板电脑等。如图9所示,该装置包括如下模块。Fig. 9 shows a structural diagram of an apparatus for monitoring data traffic in a mobile terminal according to an embodiment of the present invention. The device is suitable for various mobile terminals, such as mobile phones, tablet computers and the like. As shown in Figure 9, the device includes the following modules.

下载模块910,适于确定移动终端的所属区域,下载所述所属区域对应的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;The download module 910 is adapted to determine the area to which the mobile terminal belongs, and download the base station location information file corresponding to the area to which the mobile terminal belongs, and the base station location information file includes the base station ID in the corresponding area;

查找模块920,适于在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID;The search module 920 is adapted to search for the ID of the base station used by the mobile terminal in the downloaded base station location information file when counting the data traffic used by the mobile terminal;

第一判定模块930,适于当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量;The first determination module 930 is adapted to determine that the added data traffic counted is local data traffic when the base station ID used by the mobile terminal is found;

第二判定模块940,适于当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。The second judgment module 940 is adapted to send the used base station ID to the server when the base station ID used by the mobile terminal is not found, so as to query the used base station ID in the base station location information file corresponding to each area in the server, and judge the new base station ID according to the query result. Whether the additional data traffic is external data traffic or local data traffic.

在一实施例中,如图10所示,第二判定模块940,具体包括:In one embodiment, as shown in FIG. 10, the second determination module 940 specifically includes:

记录子模块942,适于当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量;The recording sub-module 942 is adapted to record the base station ID used by the mobile terminal and the corresponding newly added data flow when the base station ID used by the mobile terminal is not found in the downloaded base station location information file;

发送子模块944,适于将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。The sending sub-module 944 is adapted to send the recorded base station ID within the preset time length to the server, so as to query in the base station location information file corresponding to each area in the server.

因为移动终端向服务器发送的数据包都会有数据包头,将一定时长内的基站ID集中发送给服务器,与单独发送基站ID给服务器相比,能够减少发送数据包数量,进而节约发送所用数据流量。Because the data packets sent by the mobile terminal to the server will have a data packet header, and the base station IDs within a certain period of time are sent to the server collectively, compared with sending the base station ID to the server separately, the number of data packets sent can be reduced, thereby saving the data traffic used for sending.

在一实施例中,如图10所示,第二判定模块940,具体包括:In one embodiment, as shown in FIG. 10, the second determination module 940 specifically includes:

第一判定子模块946,适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定所述新增数据流量为本地数据流量;The first determination sub-module 946 is adapted to determine that the newly added data traffic is local data traffic when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs and the area to which the mobile terminal belongs are located in the same billing area;

第二判定子模块948,适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定所述新增数据流量为外地数据流量。The second determining sub-module 948 is adapted to determine that the newly added data traffic is out-of-region data traffic when it is determined according to the query result that the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different charging areas.

在一实施例中,下载模块910具体适于根据移动终端所用电话号码确定移动终端的所属区域。In an embodiment, the downloading module 910 is specifically adapted to determine the area to which the mobile terminal belongs according to the phone number used by the mobile terminal.

举例而言,下载模块910可以将移动终端中使用的电话号码在服务器的号码信息文件中查询,号码信息文件中包括各个区域所用号码段,确定出移动终端中所用电话号码所属号码段后,确定移动终端中使用的电话号码属于该号码段对应的区域。例如,以行政区县为单位,号码信息文件中包括各个行政区县号码段,在号码信息文件中查询移动终端所用的电话号码,确定该电话号码所属号码段,进而得出电话号码属于该号码段对应的区县。For example, the download module 910 can query the phone number used in the mobile terminal in the number information file of the server. The number information file includes the number segment used in each area. After determining the number segment to which the phone number used in the mobile terminal belongs, determine The phone number used in the mobile terminal belongs to the area corresponding to the number segment. For example, taking administrative districts and counties as the unit, the number information file includes the number segments of each administrative district and county. In the number information file, the phone number used by the mobile terminal is queried to determine the number segment to which the phone number belongs, and then obtain the corresponding number segment that the phone number belongs to. districts and counties.

在一实施例中,下载模块910具体适于根据安装流量统计应用时移动终端的地理位置信息确定移动终端的所属区域。In an embodiment, the downloading module 910 is specifically adapted to determine the area to which the mobile terminal belongs according to the geographic location information of the mobile terminal when the traffic statistics application is installed.

举例而言,当用户在移动终端中安装流量统计应用时,通过GPS获得移动终端的经纬度,在服务器的地图中查找该经纬度,确定出移动终端所在的区域,将该区域确定为移动终端的所属区域。For example, when a user installs a traffic statistics application in a mobile terminal, the longitude and latitude of the mobile terminal are obtained through GPS, the longitude and latitude are searched in the map of the server, the area where the mobile terminal is located is determined, and the area is determined as the mobile terminal belongs to. area.

确定移动终端的所属区域的方式不限于上述两种,可以采用其他方式确定移动终端所属区域,例如,在用户安装流量统计应用时,显示输入框,提示用户输入移动终端所属区域,根据用户输入的信息确定移动终端所属区域。The method of determining the region to which the mobile terminal belongs is not limited to the above two methods, and other methods may be used to determine the region to which the mobile terminal belongs. For example, when the user installs a traffic statistics application, an input box is displayed to prompt the user to enter the region to which the mobile terminal belongs. The information identifies the region to which the mobile terminal belongs.

在一实施例中,如图10所示,装置还包括:显示模块1010,适于当判定新增数据流量为外地数据流量时,显示漫游到外地的提醒信息。In an embodiment, as shown in FIG. 10 , the device further includes: a display module 1010 adapted to display a reminder message of roaming to a foreign place when it is determined that the newly added data traffic is data traffic from other places.

进一步地,第一判定子模块946还适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,将所用基站ID添加到移动终端本地的基站位置信息文件中。Further, the first determination submodule 946 is also adapted to add the ID of the used base station to the local base station location of the mobile terminal when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs is located in the same charging area as the area to which the mobile terminal belongs information file.

如此,移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域,将该基站ID添加到移动终端本地基站位置信息文件中。如此,当移动终端下次再使用该基站时,可以直接从本地的基站位置信息文件中查询到该基站的基站ID,避免到服务器中进行基站查询,节约所用数据流量。In this way, the area to which the base station used by the mobile terminal is located in the same billing area as the area to which the mobile terminal belongs, the base station ID is added to the local base station location information file of the mobile terminal. In this way, when the mobile terminal uses the base station next time, it can directly query the base station ID of the base station from the local base station location information file, avoiding base station query in the server and saving data traffic.

在一实施例中,如图10所示,装置还包括:计算模块1020,适于将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况;根据统计得出的移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和/或剩余流量额度。In one embodiment, as shown in FIG. 10, the device further includes: a calculation module 1020, adapted to distinguish the traffic usage in the traffic package into local data traffic usage and external data traffic usage; For the local data traffic and the non-local data traffic used in the terminal, the usage percentage of the traffic quota and/or the remaining traffic quota are respectively calculated for the usage of the local data traffic and the usage of the non-local data traffic.

在一实施例中,如图10所示,装置还包括:显示模块1010,适于当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和/或剩余流量额度;当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。In one embodiment, as shown in FIG. 10, the device further includes: a display module 1010, adapted to display the local data traffic usage when the area to which the base station used by the mobile terminal is located in the same charging area as the area to which the mobile terminal belongs. Percentage of traffic quota usage and/or remaining traffic quota; when the area of the base station used by the mobile terminal and the area to which the mobile terminal belongs are in different billing areas, the traffic quota usage percentage and/or remaining traffic quota of the data traffic usage in other places are displayed.

上述装置技术方案中各项技术特征的示例性说明与对应方法技术方案中各项技术特征的实例性说明相近似,在此不再赘述。The exemplary description of each technical feature in the above-mentioned device technical solution is similar to the exemplary description of each technical feature in the corresponding method technical solution, and will not be repeated here.

图11示出了根据本发明一个实施例的移动终端中数据流量监测的装置的结构图。该方法可用于各种服务器,包括如下模块。Fig. 11 shows a structural diagram of an apparatus for monitoring data traffic in a mobile terminal according to an embodiment of the present invention. This method can be used in various servers, including the following modules.

生成模块1110,适于根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,基站位置信息文件中包括对应区域中的基站ID;The generation module 1110 is adapted to classify the base stations according to the area to which the base station belongs, and generate a base station location information file corresponding to each area, where the base station location information file includes the base station ID in the corresponding area;

传输模块1120,适于接收到移动终端下载请求后,将下载请求中区域对应的基站位置信息文件发送该移动终端,以使移动终端在统计所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,并在查找到所用基站ID时,判定统计的新增数据流量为本地数据流量;The transmission module 1120 is adapted to send the base station location information file corresponding to the area in the download request to the mobile terminal after receiving the download request from the mobile terminal, so that the mobile terminal can search the downloaded base station location information file when counting the data traffic used. The ID of the base station used by the mobile terminal, and when the ID of the base station used is found, it is determined that the newly added data traffic counted is local data traffic;

查询模块1130,适于接收到移动终端查询请求后,在各个区域对应的的基站位置信息文件中查询查询请求中基站ID,将查询结果发送给移动终端,以使移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。The query module 1130 is adapted to query the base station ID in the query request in the base station location information file corresponding to each area after receiving the query request from the mobile terminal, and send the query result to the mobile terminal, so that the mobile terminal can judge the newly added ID according to the query result. Whether the data traffic is foreign data traffic or local data traffic.

在一实施例中,生成模块1110具体包括:In one embodiment, the generation module 1110 specifically includes:

确定子模块,适于根据基站地理位置信息确定基站所属区域;The determining submodule is suitable for determining the area to which the base station belongs according to the geographic location information of the base station;

生成子模块,适于记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。The generation sub-module is suitable for recording base station IDs in each area, and generating a base station position information file corresponding to the area.

在一实施例中,基站地理位置信息包括:基站地址信息和基站经纬度信息,确定子模块,具体适于根据基站地址信息确定基站所属区域;当根据基站地址信息未确定出基站所属区域时,根据基站经纬度信息在地图中查询所述基站,根据查询结果确定基站所属区域。In one embodiment, the geographic location information of the base station includes: base station address information and base station latitude and longitude information, and the determining submodule is specifically adapted to determine the area to which the base station belongs according to the base station address information; For the latitude and longitude information of the base station, query the base station in the map, and determine the area to which the base station belongs according to the query result.

上述装置技术方案中各项技术特征的示例性说明与对应方法技术方案中各项技术特征的实例性说明相近似,在此不再赘述。The exemplary description of each technical feature in the above-mentioned device technical solution is similar to the exemplary description of each technical feature in the corresponding method technical solution, and will not be repeated here.

本发明包括如下技术方案:The present invention includes following technical solutions:

A1、一种移动终端中数据流量监测的方法,包括:A1, a method for data traffic monitoring in a mobile terminal, comprising:

确定移动终端的所属区域,下载所述所属区域对应的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;Determine the area to which the mobile terminal belongs, download the base station location information file corresponding to the area to which the mobile terminal belongs, and include the base station ID in the corresponding area in the base station location information file;

在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID;When counting the data traffic used by the mobile terminal, search for the ID of the base station used by the mobile terminal in the downloaded base station location information file;

当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量;When the base station ID used by the mobile terminal is found, it is determined that the newly added data traffic counted is local data traffic;

当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。When the base station ID used by the mobile terminal is not found, the used base station ID is sent to the server to query the used base station ID in the base station location information file corresponding to each area in the server, and judge whether the newly added data flow is foreign data flow or local data traffic.

A2、根据A1所述的方法,其中,所述当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,具体包括:A2. The method according to A1, wherein, when the base station ID used by the mobile terminal is not found, the base station ID used is sent to the server, so as to query the base station ID used in the base station location information file corresponding to each area in the server, Specifically include:

当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量;When the base station ID used by the mobile terminal is not found in the downloaded base station location information file, record the base station ID used by the mobile terminal and the corresponding new data flow;

将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。Send the recorded base station ID within the preset time length to the server, so as to query in the base station location information file corresponding to each area in the server.

A3、根据A1所述的方法,其中,所述根据查询结果判断新增数据流量是外地数据流量还是本地数据流量,具体包括:A3. The method according to A1, wherein the judging whether the newly added data traffic is foreign data traffic or local data traffic according to the query results specifically includes:

当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定所述新增数据流量为本地数据流量;When it is determined according to the query result that the area to which the base station used by the mobile terminal is located in the same charging area as the area to which the mobile terminal belongs, it is determined that the newly added data traffic is local data traffic;

当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定所述新增数据流量为外地数据流量。When it is determined according to the query result that the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different charging areas, it is determined that the newly added data traffic is out-of-region data traffic.

A4、根据A1所述的方法,其中,所述确定移动终端的所属区域,具体包括:A4. The method according to A1, wherein the determining the area to which the mobile terminal belongs specifically includes:

根据移动终端所用电话号码确定移动终端的所属区域。The area to which the mobile terminal belongs is determined according to the telephone number used by the mobile terminal.

A5、根据A1所述的方法,其中,所述确定移动终端的所属区域,具体包括:A5. The method according to A1, wherein the determining the area to which the mobile terminal belongs specifically includes:

根据安装流量统计应用时移动终端的地理位置信息确定移动终端的所属区域。The area to which the mobile terminal belongs is determined according to the geographic location information of the mobile terminal when the traffic statistics application is installed.

A6、根据A1所述的方法,其中,所述方法还包括:A6. The method according to A1, wherein the method also includes:

当判定新增数据流量为外地数据流量时,显示漫游到外地的提醒信息。When it is determined that the newly added data traffic is out-of-region data traffic, a reminder message of roaming to out-of-region is displayed.

A7、根据A1所述的方法,其中,所述方法还包括:A7. The method according to A1, wherein the method also includes:

将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况;Distinguish the traffic usage in the traffic package into local data traffic usage and out-of-region data traffic usage;

根据统计得出的移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和/或剩余流量额度。According to the local data traffic and non-local data traffic used in the mobile terminal obtained from the statistics, for the local data traffic usage and the non-local data traffic usage, respectively calculate the usage percentage of the traffic quota and/or the remaining traffic quota.

A8、根据A7所述的方法,其中,所述方法还包括:A8. The method according to A7, wherein the method also includes:

当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和/或剩余流量额度;When the area to which the base station used by the mobile terminal is located in the same billing area as the area to which the mobile terminal belongs, display the traffic quota usage percentage and/or remaining traffic quota of the local data traffic usage;

当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。When the area to which the base station used by the mobile terminal and the area to which the mobile terminal belongs are located in different billing areas, the traffic quota usage percentage and/or the remaining traffic quota of the data traffic usage in other places are displayed.

B9、一种移动终端中数据流量监测的方法,包括:B9, a method for data flow monitoring in a mobile terminal, comprising:

根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;Classifying the base stations according to the area to which the base station belongs, generating a base station location information file corresponding to each area, the base station location information file including the base station ID in the corresponding area;

接收到移动终端下载请求后,将下载请求中区域对应的基站位置信息文件发送该移动终端,以使移动终端在统计所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,并在查找到所用基站ID时,判定统计的新增数据流量为本地数据流量;After receiving the mobile terminal download request, the base station location information file corresponding to the area in the download request is sent to the mobile terminal, so that the mobile terminal searches the base station location information file for the mobile terminal when counting the used data traffic. And when the ID of the base station used is found, it is determined that the newly added data traffic counted is local data traffic;

接收到移动终端查询请求后,在各个区域对应的基站位置信息文件中查询查询请求中基站ID,将查询结果发送给移动终端,以使移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。After receiving the mobile terminal query request, query the base station ID in the query request in the base station location information file corresponding to each area, and send the query result to the mobile terminal, so that the mobile terminal can judge whether the newly added data traffic is foreign data traffic or local data traffic.

B10、根据B9所述的方法,其中,所述根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,具体包括:B10. The method according to B9, wherein the base station is classified according to the area to which the base station belongs, and a base station location information file corresponding to each area is generated, specifically including:

根据基站地理位置信息确定基站所属区域;Determine the area to which the base station belongs according to the geographic location information of the base station;

记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。Record the base station ID in each area, and generate the base station location information file corresponding to the area.

B11、根据B10所述的方法,其中,所述基站地理位置信息包括:基站地址信息和基站经纬度信息,所述根据基站地理位置信息确定基站所属区域,具体包括:B11. The method according to B10, wherein the base station geographic location information includes: base station address information and base station latitude and longitude information, and determining the area to which the base station belongs according to the base station geographic location information specifically includes:

根据基站地址信息确定基站所属区域;Determine the area to which the base station belongs according to the address information of the base station;

当根据基站地址信息未确定出基站所属区域时,根据基站经纬度信息在地图中查询所述基站,根据查询结果确定基站所属区域。When the area to which the base station belongs is not determined according to the address information of the base station, the base station is queried in the map according to the longitude and latitude information of the base station, and the area to which the base station belongs is determined according to the query result.

C12、一种移动终端中数据流量监测的装置,包括:C12. A device for monitoring data flow in a mobile terminal, comprising:

下载模块,适于确定移动终端的所属区域,下载所述所属区域对应的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;The download module is adapted to determine the area to which the mobile terminal belongs, and download the base station location information file corresponding to the area to which the mobile terminal belongs, and the base station location information file includes the base station ID in the corresponding area;

查找模块,适于在统计移动终端所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID;The search module is suitable for searching the ID of the base station used by the mobile terminal in the downloaded base station location information file when counting the data traffic used by the mobile terminal;

第一判定模块,适于当查找到移动终端所用基站ID时,判定统计的新增数据流量为本地数据流量;The first determination module is adapted to determine that the newly added data traffic counted by the mobile terminal is local data traffic when the base station ID used by the mobile terminal is found;

第二判定模块,适于当没有查找到移动终端所用基站ID时,将所用基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中查询所用基站ID,根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。The second judging module is adapted to send the used base station ID to the server when the base station ID used by the mobile terminal is not found, so as to query the used base station ID in the base station location information files corresponding to each area in the server, and judge the new ID according to the query result. Whether the data traffic is foreign data traffic or local data traffic.

C13、根据C12所述的装置,其中,所述第二判定模块,具体包括:C13. The device according to C12, wherein the second determination module specifically includes:

记录子模块,适于当在下载的基站位置信息文件中没有查找到移动终端所用基站ID时,记录移动终端所用基站ID和对应的新增数据流量;The recording submodule is suitable for recording the base station ID used by the mobile terminal and the corresponding new data flow when the base station ID used by the mobile terminal is not found in the downloaded base station location information file;

发送子模块,适于将记录的预设时长内的基站ID发送给服务器,以在服务器中各个区域对应的基站位置信息文件中进行查询。The sending sub-module is adapted to send the recorded base station ID within the preset time length to the server, so as to query in the base station location information file corresponding to each area in the server.

C14、根据C12所述的装置,其中,所述第二判定模块,具体包括:C14. The device according to C12, wherein the second determination module specifically includes:

第一判定子模块,适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,判定所述新增数据流量为本地数据流量;The first determining submodule is adapted to determine that the newly added data traffic is local data traffic when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs and the area to which the mobile terminal belongs are located in the same billing area;

第二判定子模块,适于当根据查询结果确定出移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,判定所述新增数据流量为外地数据流量。The second determining submodule is adapted to determine that the newly added data traffic is foreign data traffic when it is determined according to the query result that the area to which the base station used by the mobile terminal belongs is located in a different charging area from the area to which the mobile terminal belongs.

C15、根据C12所述的装置,其中,所述下载模块,具体适于根据移动终端所用电话号码确定移动终端的所属区域。C15. The device according to C12, wherein the download module is specifically adapted to determine the area to which the mobile terminal belongs according to the phone number used by the mobile terminal.

C16、根据C12所述的装置,其中,所述下载模块,具体适于根据安装流量统计应用时移动终端的地理位置信息确定移动终端的所属区域。C16. The device according to C12, wherein the download module is specifically adapted to determine the area to which the mobile terminal belongs according to the geographic location information of the mobile terminal when the traffic statistics application is installed.

C17、根据C12所述的装置,其中,所述装置还包括:C17. The device according to C12, wherein the device also includes:

显示模块,适于当判定新增数据流量为外地数据流量时,显示漫游到外地的提醒信息。The display module is adapted to display a reminder message of roaming to a foreign place when it is determined that the newly added data traffic is a foreign data traffic.

C18、根据C12所述的装置,其中,所述装置还包括:C18. The device according to C12, wherein the device also includes:

计算模块,适于将流量套餐中的流量使用情况区分为本地数据流量使用情况和外地数据流量使用情况;根据统计得出的移动终端中使用的本地数据流量和外地数据流量,对本地数据流量使用情况和外地数据流量使用情况,分别计算流量额度使用百分比和/或剩余流量额度。The calculation module is adapted to distinguish the traffic usage in the traffic package into local data traffic usage and out-of-region data traffic usage; The usage percentage of data quota and/or the remaining data traffic quota are calculated respectively.

C19、根据C18所述的装置,其中,所述装置还包括:C19. The device according to C18, wherein the device further comprises:

显示模块,适于当移动终端所用基站的所属区域与移动终端的所属区域位于同一计费区域时,显示本地数据流量使用情况的流量额度使用百分比和/或剩余流量额度;当移动终端所用基站的所属区域与移动终端的所属区域位于不同计费区域时,显示外地数据流量使用情况的流量额度使用百分比和/或剩余流量额度。The display module is suitable for displaying the traffic quota usage percentage and/or remaining traffic quota of the local data traffic usage when the area to which the base station used by the mobile terminal is located in the same billing area as the mobile terminal; When the area to which the mobile terminal belongs and the area to which the mobile terminal belongs are located in different billing areas, the usage percentage and/or remaining traffic quota of the data traffic usage in other places are displayed.

D20、一种移动终端中数据流量监测的装置,包括:D20. A device for monitoring data traffic in a mobile terminal, comprising:

生成模块,适于根据基站所属区域将基站分类,生成对应于各个区域的基站位置信息文件,所述基站位置信息文件中包括对应区域中的基站ID;The generation module is adapted to classify the base stations according to the area to which the base station belongs, and generate a base station location information file corresponding to each area, and the base station location information file includes the base station ID in the corresponding area;

传输模块,适于接收到移动终端下载请求后,将下载请求中区域对应的基站位置信息文件发送该移动终端,以使移动终端在统计所用数据流量时,在下载的基站位置信息文件中查找移动终端所用基站ID,并在查找到所用基站ID时,判定统计的新增数据流量为本地数据流量;The transmission module is adapted to send the base station location information file corresponding to the area in the download request to the mobile terminal after receiving the download request from the mobile terminal, so that the mobile terminal can search for the mobile station in the downloaded base station location information file when counting the data traffic used. The ID of the base station used by the terminal, and when the ID of the base station used is found, it is determined that the newly added data traffic counted is local data traffic;

查询模块,适于接收到移动终端查询请求后,在各个区域对应的的基站位置信息文件中查询查询请求中基站ID,将查询结果发送给移动终端,以使移动终端根据查询结果判断新增数据流量是外地数据流量还是本地数据流量。The query module is adapted to query the base station ID in the query request in the base station location information file corresponding to each area after receiving the query request from the mobile terminal, and send the query result to the mobile terminal, so that the mobile terminal can judge the newly added data according to the query result Whether the traffic is foreign data traffic or local data traffic.

D21、根据D20所述的装置,其中,所述生成模块,具体包括:D21. The device according to D20, wherein the generating module specifically includes:

确定子模块,适于根据基站地理位置信息确定基站所属区域;The determining submodule is suitable for determining the area to which the base station belongs according to the geographic location information of the base station;

生成子模块,适于记录各个区域中基站ID,生成与区域相对应的基站位置信息文件。The generation sub-module is suitable for recording base station IDs in each area, and generating a base station position information file corresponding to the area.

D22、根据D21所述的装置,其中,所述基站地理位置信息包括:基站地址信息和基站经纬度信息,所述确定子模块,具体适于根据基站地址信息确定基站所属区域;当根据基站地址信息未确定出基站所属区域时,根据基站经纬度信息在地图中查询所述基站,根据查询结果确定基站所属区域。D22. The device according to D21, wherein the geographic location information of the base station includes: base station address information and base station latitude and longitude information, and the determining submodule is specifically adapted to determine the area to which the base station belongs according to the base station address information; when according to the base station address information When the area to which the base station belongs is not determined, the base station is queried in the map according to the longitude and latitude information of the base station, and the area to which the base station belongs is determined according to the query result.

需要说明的是:It should be noted:

在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动终端中数据流量监测的设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of some or all of the components in the device for monitoring data flow in a mobile terminal according to an embodiment of the present invention Features. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

Claims (20)

1. a method for data in mobile terminal flow monitoring, including:
Determine the affiliated area of mobile terminal, download the base station position information file that described affiliated area is corresponding, position, described base station Put the base station IDs that message file includes in corresponding region;
When adding up data traffic used by mobile terminal, the base station position information file downloaded is searched base used by mobile terminal Stand ID;
When finding mobile terminal base station therefor ID, it is determined that the newly-increased data traffic of statistics is local data flow;
When not finding mobile terminal base station therefor ID, base station therefor ID is sent to server, with the most each The base station position information file that individual region is corresponding is inquired about base station therefor ID, outside judging that newly-increased data traffic is according to Query Result Ground data traffic or local data flow;
Described is other places data traffic or local data flow according to the newly-increased data traffic of Query Result judgement, specifically includes: When determining that according to Query Result the affiliated area of mobile terminal base station therefor and the affiliated area of mobile terminal are positioned at same meter When taking region, it is determined that described newly-increased data traffic is local data flow, and it is local that base station therefor ID adds to mobile terminal Base station position information file in;When affiliated area and the mobile terminal of determining mobile terminal base station therefor according to Query Result Affiliated area when being positioned at different charge region, it is determined that described newly-increased data traffic is other places data traffic.
Method the most according to claim 1, wherein, described when not finding mobile terminal base station therefor ID, by institute It is sent to server, so that the base station position information file that regional in the server is corresponding to be inquired about base station therefor by base station IDs ID, specifically includes:
When not finding mobile terminal base station therefor ID in the base station position information file downloaded, record mobile terminal institute By base station IDs and corresponding newly-increased data traffic;
Base station IDs in the preset duration of record is sent to server, with the base station location that regional in the server is corresponding Message file is inquired about.
Method the most according to claim 1, wherein, the described affiliated area determining mobile terminal, specifically include:
The affiliated area of mobile terminal is determined according to telephone number used by mobile terminal.
Method the most according to claim 1, wherein, the described affiliated area determining mobile terminal, specifically include:
The affiliated area of mobile terminal is determined according to the geographical location information of mobile terminal when installing traffic statistics application.
Method the most according to claim 1, wherein, described method also includes:
When judging newly-increased data traffic as other places data traffic, display roams into the prompting message in other places.
Method the most according to claim 1, wherein, described method also includes:
Flow service condition in flow package is divided into local data flow service condition and other places data traffic uses feelings Condition;
According to the local data flow used in the mobile terminal that statistics draws and other places data traffic, local data flow is made By situation and other places data traffic service condition, calculated flow rate amount uses percentage ratio and/or residual flow amount respectively.
Method the most according to claim 6, wherein, described method also includes:
When the affiliated area of mobile terminal base station therefor is positioned at same charging region with the affiliated area of mobile terminal, display is originally The flow amount of ground data traffic service condition uses percentage ratio and/or residual flow amount;
When the affiliated area of mobile terminal base station therefor is positioned at different charge region with the affiliated area of mobile terminal, outside display The flow amount of ground data traffic service condition uses percentage ratio and/or residual flow amount.
8. a method for data in mobile terminal flow monitoring, including:
According to base station affiliated area, is classified in base station, generate the base station position information file corresponding to regional, described base station Positional information file includes the base station IDs in corresponding region;
After receiving mobile terminal download request, base station position information file corresponding for the region in the request of downloading is sent to this Mobile terminal, so that mobile terminal is when statistics data traffic used, searches mobile in the base station position information file downloaded Terminal base station therefor ID, and when finding base station therefor ID, it is determined that the newly-increased data traffic of statistics is local data flow;
After receiving mobile terminal enquiry request, inquire about in inquiry request in the base station position information file that regional is corresponding Base station IDs, is sent to mobile terminal by Query Result, so that according to Query Result, mobile terminal judges that newly-increased data traffic is outside Ground data traffic or local data flow;
Wherein, when the affiliated area position of the affiliated area Yu mobile terminal determining mobile terminal base station therefor according to Query Result When same charging region, it is determined that described newly-increased data traffic is local data flow, and adds base station therefor ID to movement In the base station position information file of terminal local;When determine according to Query Result the affiliated area of mobile terminal base station therefor with When the affiliated area of mobile terminal is positioned at different charge region, it is determined that described newly-increased data traffic is other places data traffic.
Method the most according to claim 8, wherein, described according to base station affiliated area by base station classify, generate corresponding to The base station position information file of regional, specifically includes:
Base station affiliated area is determined according to base station geographic position information;
Base station IDs in record regional, generates the base station position information file corresponding with region.
Method the most according to claim 9, wherein, described base station geographic position information includes: base station address information and base Stand latitude and longitude information, described determine base station affiliated area according to base station geographic position information, specifically include:
Base station affiliated area is determined according to base station address information;
When being not determined by base station affiliated area according to base station address information, in map, inquire about institute according to latitude and longitude of base station information State base station, determine base station affiliated area according to Query Result.
The device of 11. 1 kinds of data in mobile terminal flow monitorings, including:
Download module, is adapted to determine that the affiliated area of mobile terminal, downloads the base station position information literary composition that described affiliated area is corresponding Part, described base station position information file includes the base station IDs in corresponding region;
Search module, be suitable to, when adding up data traffic used by mobile terminal, search in the base station position information file downloaded Mobile terminal base station therefor ID;
First determination module, is suitable to when finding mobile terminal base station therefor ID, it is determined that the newly-increased data traffic of statistics is this Ground data traffic;
Second determination module, is suitable to when not finding mobile terminal base station therefor ID, and base station therefor ID is sent to service Device, to inquire about base station therefor ID in the base station position information file that regional in the server is corresponding, sentences according to Query Result Disconnected newly-increased data traffic is other places data traffic or local data flow;
Described second determination module, specifically includes:
First decision sub-module, is suitable to the affiliated area when determining mobile terminal base station therefor according to Query Result whole with mobile When the affiliated area of end is positioned at same charging region, it is determined that described newly-increased data traffic is local data flow, and by base used The ID that stands adds in the base station position information file that mobile terminal is local;
Second decision sub-module, is suitable to the affiliated area when determining mobile terminal base station therefor according to Query Result whole with mobile When the affiliated area of end is positioned at different charge region, it is determined that described newly-increased data traffic is other places data traffic.
12. devices according to claim 11, wherein, described second determination module, specifically include:
Record sub module, is suitable to when not finding mobile terminal base station therefor ID in the base station position information file downloaded Time, record mobile terminal base station therefor ID and corresponding newly-increased data traffic;
Send submodule, be suitable to the base station IDs in the preset duration of record is sent to server, with each district in the server The base station position information file that territory is corresponding is inquired about.
13. devices according to claim 11, wherein, described download module, it is particularly adapted to according to the electricity consumption of mobile terminal institute Words number determines the affiliated area of mobile terminal.
14. devices according to claim 11, wherein, described download module, being particularly adapted to should according to installation traffic statistics The geographical location information of used time mobile terminal determines the affiliated area of mobile terminal.
15. devices according to claim 11, wherein, described device also includes:
Display module, is suitable to when judging newly-increased data traffic as other places data traffic, and display roams into the prompting message in other places.
16. devices according to claim 11, wherein, described device also includes:
Computing module, is suitable to the flow service condition in flow package is divided into local data flow service condition and other places number According to flow service condition;According to the local data flow used in the mobile terminal that statistics draws and other places data traffic, to this Ground data traffic service condition and other places data traffic service condition, calculated flow rate amount uses percentage ratio and/or residue respectively Flow amount.
17. devices according to claim 16, wherein, described device also includes:
Display module, is suitable to when the affiliated area of mobile terminal base station therefor and the affiliated area of mobile terminal are positioned at same charging During region, the flow amount of display local data flow service condition uses percentage ratio and/or residual flow amount;When mobile whole When the affiliated area of end base station therefor is positioned at different charge region with the affiliated area of mobile terminal, display other places data traffic makes Percentage ratio and/or residual flow amount is used by the flow amount of situation.
The device of 18. 1 kinds of data in mobile terminal flow monitorings, including:
Generation module, is suitable to be classified base station according to base station affiliated area, generates the base station position information corresponding to regional File, described base station position information file includes the base station IDs in corresponding region;
Transport module, after being suitable to receive mobile terminal download request, by base station location letter corresponding for the region in the request of downloading Breath file is sent to this mobile terminal, so that mobile terminal is when statistics data traffic used, at the base station position information downloaded File is searched mobile terminal base station therefor ID, and when finding base station therefor ID, it is determined that the newly-increased data traffic of statistics is Local data flow;
Enquiry module, after being suitable to receive mobile terminal enquiry request, regional corresponding base station position information file Base station IDs in middle inquiry inquiry request, is sent to mobile terminal by Query Result, so that mobile terminal judges according to Query Result Newly-increased data traffic is other places data traffic or local data flow;
Wherein, when the affiliated area position of the affiliated area Yu mobile terminal determining mobile terminal base station therefor according to Query Result When same charging region, it is determined that described newly-increased data traffic is local data flow, and adds base station therefor ID to movement In the base station position information file of terminal local;When determine according to Query Result the affiliated area of mobile terminal base station therefor with When the affiliated area of mobile terminal is positioned at different charge region, it is determined that described newly-increased data traffic is other places data traffic.
19. devices according to claim 18, wherein, described generation module, specifically include:
Determine submodule, be suitable to determine base station affiliated area according to base station geographic position information;
Generate submodule, be suitable to record base station IDs in regional, generate the base station position information file corresponding with region.
20. devices according to claim 19, wherein, described base station geographic position information includes: base station address information and Latitude and longitude of base station information, described determines submodule, is particularly adapted to determine base station affiliated area according to base station address information;Work as basis When base station address information is not determined by base station affiliated area, in map, inquire about described base station, root according to latitude and longitude of base station information Base station affiliated area is determined according to Query Result.
CN201510303436.2A 2015-06-04 2015-06-04 Method and device for monitoring data flow in mobile terminal Active CN104936221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510303436.2A CN104936221B (en) 2015-06-04 2015-06-04 Method and device for monitoring data flow in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510303436.2A CN104936221B (en) 2015-06-04 2015-06-04 Method and device for monitoring data flow in mobile terminal

Publications (2)

Publication Number Publication Date
CN104936221A CN104936221A (en) 2015-09-23
CN104936221B true CN104936221B (en) 2016-11-16

Family

ID=54123122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510303436.2A Active CN104936221B (en) 2015-06-04 2015-06-04 Method and device for monitoring data flow in mobile terminal

Country Status (1)

Country Link
CN (1) CN104936221B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306382A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 Data traffic reminding method and mobile terminal
CN106789120A (en) * 2016-12-12 2017-05-31 中兴通讯股份有限公司 A kind of charge on traffic method, system and control server
CN107277234B (en) * 2017-06-02 2020-11-13 维沃移动通信有限公司 Flow reminding method, mobile terminal and readable storage medium
CN107484201B (en) * 2017-09-30 2020-08-14 Oppo广东移动通信有限公司 Traffic statistics method and device, terminal, and computer-readable storage medium
CN108366350A (en) * 2018-05-22 2018-08-03 中国联合网络通信集团有限公司 Flow real-time display method, terminal and business support system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247237A (en) * 2007-02-15 2008-08-20 华为技术有限公司 Charging method, system and device for networking across charging area
CN101800966A (en) * 2009-02-09 2010-08-11 中国移动通信集团公司 Service billing system and method and relevant device
CN102196526B (en) * 2010-03-10 2015-11-25 江苏联优信息科技有限公司 A kind of local flow forwarding method of centralized wireless sense network
CN102158837A (en) * 2010-06-07 2011-08-17 华为技术有限公司 Charging method and system and network system
US8560410B2 (en) * 2010-08-13 2013-10-15 T-Mobile Usa, Inc. Mapping a mobile device location to billing regions in internet protocol multimedia subsystems
CN103002466B (en) * 2011-09-13 2015-07-15 腾讯科技(深圳)有限公司 Traffic warning method and traffic warning device
CN102638842B (en) * 2012-04-11 2015-01-07 深圳市中兴移动通信有限公司 Network traffic displaying and prewarning method for mobile terminal
CN103596157A (en) * 2012-08-15 2014-02-19 中兴通讯股份有限公司 Method and device for billing local traffic on wireless side
CN103634774B (en) * 2012-08-21 2018-08-14 中兴通讯股份有限公司 A kind of method and apparatus that charging is carried out to wireless side local flow
CN103686652A (en) * 2012-08-31 2014-03-26 阿尔卡特朗讯 Independent roaming charging method and equipment for roaming user equipment in VPLMN (Visited Public Land Mobile Network)
CN104410962A (en) * 2014-11-10 2015-03-11 华为软件技术有限公司 A terminal user network traffic monitoring method and device
CN104683967A (en) * 2015-02-12 2015-06-03 洛阳市质量技术监督检验测试中心 Mobile network flow measurement system

Also Published As

Publication number Publication date
CN104936221A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US10959040B2 (en) Venue and event recommendations for a user of a portable media player device
CN104936221B (en) Method and device for monitoring data flow in mobile terminal
US10243824B2 (en) On-device attribution of network data usage
US20140026065A1 (en) Transportation service communication method, apparatus and system
US9218360B2 (en) User-selected tags for annotating geographic domains containing points-of-interest
CN102819607B (en) A kind of method and apparatus recommending user
JP2009533954A (en) Method and system for using wireless beacon broadcast to provide media messages
TW201833845A (en) Information acquisition method, providing method, device and system, storage medium
WO2014036854A1 (en) Cloud pushing method, system and device
CN102760129A (en) Network map comment information displaying method and device, and information processing system
WO2017054138A1 (en) Method and device for automatically selecting network according to tariff standard, server, and terminal
CN103634736A (en) A hot news sharing method based on geographical information, an apparatus and a system
JP2013532407A (en) Downloadable application dynamic management device for communication devices
CN105682029A (en) Geographic position recommendation method and user terminal
CN106851605A (en) A kind of method and device for determining set meal
CN104243661A (en) Method, server and mobile terminal for determining types of incoming call numbers
WO2018192506A1 (en) Method and apparatus for recommending social information, and storage medium
JP2014071540A (en) Information distribution device, program and method
WO2019223385A1 (en) Method and device for providing rental service point
US20100161507A1 (en) Gps rating system
CN104915851B (en) Method and device for releasing display information
US10791084B2 (en) Automatic electronic message content rating method and apparatus
CN107562917A (en) User recommends method and device
CN103312737B (en) User profile supplying method and device
JP2003242169A (en) Method and device for collecting and distributing information, program therefor, and recording medium for program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220802

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230713

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing 360 Zhiling Technology Co.,Ltd.

Country or region after: China

Address before: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee before: Beijing Hongxiang Technical Service Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address