Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State method and the device of corresponding data in mobile terminal flow monitoring of the data in mobile terminal flow monitoring of problem.
According to one aspect of the present invention, it is provided that a kind of method of 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, described base
Station location message 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 institute
Use base station IDs;
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 at server
The base station position information file that middle regional is corresponding is inquired about base station therefor ID, judges newly-increased data traffic according to Query Result
It is other places data traffic or local data flow.
Alternatively, described 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, specifically include:
When not finding mobile terminal base station therefor ID in the base station position information file downloaded, record is mobile eventually
End base station therefor ID and corresponding newly-increased data traffic;
Base station IDs in the preset duration of record is sent to server, with the base station that regional in the server is corresponding
Positional information file is inquired about.
Alternatively, described is other places data traffic or local data flow according to the newly-increased data traffic of Query Result judgement
Amount, specifically includes:
Affiliated area position when 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;
Affiliated area position when the affiliated area Yu mobile terminal determining mobile terminal base station therefor according to Query Result
When different charge region, it is determined that described newly-increased data traffic is other places data traffic.
Alternatively, the described affiliated area determining mobile terminal, specifically include: true according to telephone number used by mobile terminal
Determine the affiliated area of mobile terminal.
Alternatively, the described affiliated area determining mobile terminal, specifically include: move according to when installing traffic statistics application
The geographical location information of terminal determines the affiliated area of mobile terminal.
Alternatively, described method also includes: when judging newly-increased data traffic as other places data traffic, outside display roams into
The prompting message on ground.
Alternatively, described method also includes:
Flow service condition in flow package is divided into local data flow service condition and other places data traffic makes
Use situation;
According to the local data flow used in the mobile terminal that statistics draws and other places data traffic, to local data flow
Amount service condition and other places data traffic service condition, calculated flow rate amount uses percentage ratio and/or residual flow amount respectively.
Alternatively, 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, aobvious
Show that the flow amount of local data flow 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, aobvious
Show that the flow amount of other places data traffic service condition uses percentage ratio and/or residual flow amount.
According to one aspect of the present invention, it is provided that a kind of method of 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 position information file includes the base station IDs in corresponding region;
After receiving mobile terminal download request, base station position information file corresponding for region in the request of downloading is sent and is somebody's turn to do
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, in the base station position information file that regional is corresponding, inquiry inquiry please
Seek middle base station IDs, Query Result is sent to mobile terminal, so that mobile terminal judges newly-increased data traffic according to Query Result
It is other places data traffic or local data flow.
Alternatively, described according to base station affiliated area by base station classify, generate corresponding to regional base station location believe
Breath file, 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.
Alternatively, described base station geographic position information includes: base station address information and latitude and longitude of base station information, described basis
Base station geographic position information determines base station affiliated area, specifically includes:
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, look in map according to latitude and longitude of base station information
Ask described base station, determine base station affiliated area according to Query Result.
According to one aspect of the present invention, it is provided that the device of a kind of data in mobile terminal flow monitoring, including:
Download module, is adapted to determine that the affiliated area of mobile terminal, downloads the base station location letter that described affiliated area is corresponding
Breath file, 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, in the base station position information file downloaded
Search 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
For local data flow;
Second determination module, is suitable to, when not finding mobile terminal base station therefor ID, be sent to by base station therefor ID
Server, to inquire about base station therefor ID, according to inquiry knot in the base station position information file that regional in the server is corresponding
Fruit judges that newly-increased data traffic is other places data traffic or local data flow.
Alternatively, described second determination module, specifically include:
Record sub module, is suitable to when not finding mobile terminal base station therefor in the base station position information file downloaded
During ID, 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 the most each
The base station position information file that individual region is corresponding is inquired about.
Alternatively, described second determination module, specifically include:
First decision sub-module, is suitable to when affiliated area and the shifting determining mobile terminal base station therefor according to Query Result
When the affiliated area of dynamic terminal is positioned at same charging region, it is determined that described newly-increased data traffic is local data flow;
Second decision sub-module, is suitable to when affiliated area and the shifting determining mobile terminal base station therefor according to Query Result
When the affiliated area of dynamic terminal is positioned at different charge region, it is determined that described newly-increased data traffic is other places data traffic.
Alternatively, described download module, it is particularly adapted to determine the institute of mobile terminal according to telephone number used by mobile terminal
Belong to region.
Alternatively, described download module, it is particularly adapted to according to the geographical position of mobile terminal when installing traffic statistics application
Information determines the affiliated area of mobile terminal.
Alternatively, described device also includes: display module, is suitable to when judging that newly-increased data traffic is as other places data traffic
Time, display roams into the prompting message in other places.
Alternatively, described device also includes: computing module, is suitable to divide into the flow service condition in flow package
Local data flow service condition and other places data traffic service condition;According to this locality used in the mobile terminal that statistics draws
Data traffic and other places data traffic, to local data flow service condition and other places data traffic service condition, calculate respectively
Flow amount uses percentage ratio and/or residual flow amount.
Alternatively, described device also includes: display module, is suitable to the affiliated area when mobile terminal base station therefor and shifting
When the affiliated area of dynamic terminal is positioned at same charging region, the flow amount of display local data flow service condition uses percentage
Ratio and/or residual flow amount;When the affiliated area of mobile terminal base station therefor is positioned at different from the affiliated area of mobile terminal
During charging region, the flow amount of display other places data traffic service condition uses percentage ratio and/or residual flow amount.
According to one aspect of the present invention, it is provided that the device of a kind of data in mobile terminal flow monitoring, including:
Generation module, is suitable to be classified base station according to base station affiliated area, generates the base station location corresponding to regional
Message 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 corresponding for region in the request of downloading
Message file sends 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 is inquired about base station IDs in inquiry request, Query Result is sent to mobile terminal, so that mobile terminal is according to Query Result
Judge that newly-increased data traffic is other places data traffic or local data flow.
Alternatively, 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 literary composition corresponding with region
Part.
Alternatively, described base station geographic position information includes: base station address information and latitude and longitude of base station information, described really
Stator modules, is particularly adapted to determine base station affiliated area according to base station address information;When being not determined by according to base station address information
During the affiliated area of base station, in map, inquire about described base station according to latitude and longitude of base station information, determine base station institute according to Query Result
Belong to region.
According to technical scheme, it may be determined that the affiliated area of mobile terminal, download the base that affiliated area is corresponding
Station location message file, when adding up data traffic used by mobile terminal, searches in the base station position information file downloaded and moves
Dynamic 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 number
According to flow, when not finding mobile terminal base station therefor ID, base station therefor ID is sent to server, with in the server
The base station position information file that regional is corresponding is inquired about base station therefor ID, judges that newly-increased data traffic is according to Query Result
Other places data traffic or local data flow.Thus solve, data traffic monitoring in cannot be distinguished by local data flow and
The problem of other places data traffic, achieves and can distinguish local data flow and other places data traffic, increase data traffic monitoring
Accuracy, better meet user's demand to data flow monitoring, improve the beneficial effect of user satisfaction.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can
Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 shows the flow chart of the method for data in mobile terminal flow monitoring according to an embodiment of the invention.
The method is suitable to various mobile terminal, such as mobile phone, panel computer etc..As it is shown in figure 1, the method comprises the steps S110-
S140。
In step s 110, determine the affiliated area of mobile terminal, download the base station position information literary composition that affiliated area is corresponding
Part.
Base station position information file includes the base station IDs in corresponding region.
Wherein, the described affiliated area determining mobile terminal comprises the steps that and determines shifting according to telephone number used by mobile terminal
The affiliated area of dynamic terminal.
For example, the telephone number used can be inquired about in the number information file of server in mobile terminal,
Number information file includes number segment used by regional, determines number segment belonging to telephone number used in mobile terminal
After, determine that the telephone number used in mobile terminal belongs to the region that this number segment is corresponding.Such as, in units of administrative district,
Number information file includes each administrative district number segment, phone number used by enquiry mobile terminal in number information file
Code, determines number segment belonging to this telephone number, and then show that telephone number belongs to the district that this number segment is corresponding.
Wherein, the described affiliated area determining mobile terminal may also comprise: moves end according to when installing traffic statistics application
The geographical location information of end determines the affiliated area of mobile terminal.
For example, when user installs traffic statistics application in the terminal, the warp of mobile terminal is obtained by GPS
Latitude, searches this longitude and latitude in the map of server, determines the region at mobile terminal place, is defined as in this region mobile
The affiliated area of terminal.
Determine that the mode of the affiliated area of mobile terminal is not limited to above two, can adopt and determine that movement is eventually in other ways
End affiliated area, such as, when user installation traffic statistics are applied, show input frame, and prompting user inputs mobile terminal affiliated
Region, determines mobile terminal affiliated area according to the information of user's input.
In one embodiment, server obtain base station geographic position information, base station geographic position information include base station IDs,
Latitude and longitude of base station information and the address information of base station.Server determines base station institute according to address information and the latitude and longitude information of base station
Belong to region, base station IDs in record regional, generate the base station position information file corresponding with region.So, in server
Storage has the base station position information file that regional is corresponding.Such as, server stores the position, base station having each district corresponding
Put message file.Mobile terminal sends, to server, the request of download, and the request of download includes mobile terminal affiliated area.Server
After receiving download request, base station position information file corresponding for mobile terminal affiliated area in the request of downloading is sent to mobile
Terminal, mobile terminal receives the base station position information file that affiliated area is corresponding.
In the step s 120, when adding up data traffic used by mobile terminal, in the base station position information file downloaded
Search mobile terminal base station therefor ID.
For example, when carrying out data traffic monitoring, data traffic used in mobile terminal is polled statistics, phase
The difference of the data traffic obtained during adjacent twice poll is the newly-increased data traffic counted.When each poll, by resolving
The packet that mobile terminal receives, mobile terminal base station therefor ID when determining poll.In the base station position information file downloaded
Search this base station IDs.If found, show that mobile terminal still uses data service in this locality;Without finding, then
Need to further determine that mobile terminal is also to have roamed to other places in this locality.
In step s 130, when finding mobile terminal base station therefor ID, it is determined that the newly-increased data traffic of statistics is this
Ground data traffic.
For example, if finding mobile terminal base station therefor ID in the base station position information file downloaded, then sentence
This newly-increased data traffic being polled to fixed is local data flow.
In step S140, when not finding mobile terminal base station therefor ID, 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.
For example, if not finding mobile terminal base station therefor ID in the base station position information file downloaded,
This is possibly due to mobile terminal and has roamed to other places or mobile terminal base station therefor for newly-increased base station, this locality, in this feelings
Under condition, base station therefor ID is sent to server by mobile terminal, and server is at base station position information file corresponding to regional
Middle inquiry base station therefor ID, according to Query Result, mobile terminal judges that newly-increased data traffic is other places data traffic or local number
According to flow.
In one embodiment, as in figure 2 it is shown, described when not finding mobile terminal base station therefor ID, by base used
The ID that stands 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,
Specifically include following steps S142 and step S144.
In step S142, 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.
In step S144, the base station IDs in the preset duration of record is sent to server, with in the server each
The base station position information file that region is corresponding is inquired about.
Because the packet that mobile terminal sends to server all can have data packet head, by the base station IDs collection in certain time length
In be sent to server, and individually send base station IDs to compared with server, it is possible to reduce and send data packet number, and then save and send out
Send data traffic used.
In one embodiment, as it is shown on figure 3, described is other places data traffic according to the newly-increased data traffic of Query Result judgement
Or local data flow, specifically includes following steps S146 and step S148.
In step S146, when affiliated area and the mobile terminal of determining mobile terminal base station therefor according to Query Result
Affiliated area when being positioned at same charging region, it is determined that newly-increased data traffic is local data flow.
In step S148, 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 newly-increased data traffic be nonlocal data traffic.
For example, mobile terminal receives Query Result from server, if base used by mobile terminal in Query Result
When the affiliated area of the affiliated area stood and mobile terminal is positioned at same charging region, such as, both it is positioned at same province, then
Judge that newly-increased data traffic is as local data flow.If the affiliated area of mobile terminal base station therefor and movement in Query Result
When the affiliated area of terminal is positioned at different charge region, such as, both it is positioned at different two province, then judges newly-increased data stream
Amount is other places data traffic.
In one embodiment, when affiliated area and the mobile terminal determining mobile terminal base station therefor according to Query Result
Affiliated area when being positioned at same charging region, base station therefor ID is added to the base station position information file that mobile terminal is local
In.
So, the affiliated area of mobile terminal base station therefor and the affiliated area of mobile terminal are positioned at same charging region,
This base station IDs is added in mobile terminal home base stations positional information file.So, this base is re-used next time when mobile terminal
When standing, directly can inquire the base station IDs of this base station from local base station position information file, it is to avoid enter in server
Row base station inquiry, saves data traffic used.
In one embodiment, described method also includes: when judging newly-increased data traffic as other places data traffic, display is unrestrained
Swim over to the prompting message in other places.When determining the currently used base station IDs of mobile terminal for base station, other places, eject in the user interface
Information " is currently at other places roaming state, please determine whether to be continuing with data service ".Further, it is also possible to user circle
Face is added data service cut-off push button, after detecting that data service cut-off push button is clicked, by data in mobile terminal industry
Business connects disconnection.
So, it is possible, when mobile terminal is in other places roaming state, user to be reminded, it is to avoid user makes unintentionally
Use too much roaming data traffic, increase communication cost.
In one embodiment, as shown in Figure 4, described method also includes:
Step S410, divides into local data flow service condition and other places number by the flow service condition in flow package
According to flow service condition.
Step S420, according to the local data flow used in mobile terminal and other places data traffic, to local data flow
Amount service condition and other places data traffic service condition, calculated flow rate amount uses percentage ratio and/or residual flow amount respectively.
For example, in user's set meal, local data flow amount is the 500M/ month;Other places data traffic amount is 15M/
Month, data traffic monitoring is distinguished the local data flow used in mobile terminal and other places data traffic, such as, mobile terminal
The local data flow of middle use is 100M, and the nonlocal data traffic used in mobile terminal is 5M, calculates the most respectively: local
Flow amount uses percentage ratio to be 20%, and local residual flow amount is 400M;Other places flow amount uses percentage ratio to be 33%,
Other places residual flow amount is 10M.
In one embodiment, as it is shown in figure 5, described method also includes:
Step S510, 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.
As shown in Figure 6A, when mobile terminal uses data service in this locality, the mode of flow ball is used to show monitoring
Local data flow service condition.
Step S520, when the affiliated area of mobile terminal base station therefor and the affiliated area of mobile terminal are positioned at different charge
During region, the flow amount of display other places data traffic service condition uses percentage ratio and/or residual flow amount.
As shown in Figure 6B, when mobile terminal is when roaming into other places and using data service, the mode of flow ball is used to show
The nonlocal data traffic service condition of monitoring.
So, the data traffic that mobile terminal uses is associated with the data traffic amount of mobile terminal, facilitates user
Determine data traffic service condition.
Fig. 7 shows the flow chart of the method for data in mobile terminal flow monitoring according to an embodiment of the invention.
Such as, mobile terminal affiliated area is Chaoyang District Beijing, and mobile terminal uses the data service that operator provides, and in Beijing
Local and other places uses mobile terminal.In the present embodiment, method comprises the steps S702-S722.
In step S702, determine the affiliated area of mobile terminal, download the base station position information literary composition that affiliated area is corresponding
Part.
Such as, determine that the affiliated area of mobile terminal is Chaoyang District Beijing, download the base station location letter that Chaoyang District is corresponding
Breath file, this base station position information file includes base station IDs in Chaoyang District.
In step S704, when adding up data traffic used by mobile terminal, in the base station position information file downloaded
Search mobile terminal base station therefor ID.
Such as, when carrying out data flux statistics every time, at the locally stored base station position information corresponding with Chaoyang District
The base station IDs that when searching this statistics in file, mobile terminal uses.
In step S706, when finding mobile terminal base station therefor ID, it is determined that the newly-increased data traffic of statistics is this
Ground data traffic.
Such as, mobile terminal uses data service in the range of Chaoyang District, then can be in the position, base station of mobile terminal this locality
Confidence breath ff is to mobile terminal base station therefor ID.
In step S708, 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.
Such as, mobile terminal still uses data service in the range of Chaoyang District, but the base station used is newly-increased base station, or
Person, mobile terminal moves to Haidian District and uses data service, or mobile terminal moves to Shanghai City and uses data service, at this
In the case of Xie, all cannot search mobile terminal base station therefor ID in the base station position information file that mobile terminal is local.Now,
Mobile terminal base station therefor ID in preset duration and corresponding newly-increased data traffic are carried out record, in order to enter in the server
Row inquiry.
In step S710, the base station IDs in the preset duration of record is sent to server, with in the server each
The base station position information file that region is corresponding is inquired about.
In step S712, when affiliated area and the mobile terminal of determining mobile terminal base station therefor according to Query Result
Affiliated area when being positioned at same charging region, it is determined that newly-increased data traffic is local data flow.
Such as, mobile terminal moves to Haidian District and uses data service, and Query Result indicates mobile terminal base station therefor ID
Affiliated area is that Haidian District, Chaoyang District and Haidian District belong to Beijing, is positioned at same charging region, therefore, according to this inquiry
It is local data flow that result determines newly-increased data traffic corresponding in record.
In step S714, 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 newly-increased data traffic be nonlocal data traffic.
Such as, mobile terminal moves to district of Pudong, Shanghai City and uses data service, and Query Result indicates used by mobile terminal
Base station IDs affiliated area is district of Pudong, and Chaoyang District and district of Pudong are belonging respectively to Beijing and Shanghai City, are positioned at different charge region,
Therefore, newly-increased data traffic corresponding in record is determined for other places data traffic according to this Query Result.
In step S716, the flow service condition in flow package is divided into local data flow service condition with outer
Ground data traffic service condition.
In step S718, according to the local data flow used in mobile terminal and other places data traffic, to local number
According to flow service condition and other places data traffic service condition, calculated flow rate amount uses percentage ratio and residual flow volume respectively
Degree.
Step S720, 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 residual flow amount.
As shown in Figure 6A, when mobile terminal uses data service in Haidian District, the mode of flow ball is used to show monitoring
Local data flow service condition.
Step S722, when the affiliated area of mobile terminal base station therefor and the affiliated area of mobile terminal are positioned at different charge
During region, the flow amount of display other places data traffic service condition uses percentage ratio and residual flow amount.
As shown in Figure 6B, when mobile terminal is when roaming into district of Pudong, Shanghai City and using data service, flow ball is used
Mode shows the nonlocal data traffic service condition of monitoring.
In the present invention, embodiment solves, and cannot be distinguished by local data flow and other places data traffic in data traffic monitoring
Problem, achieve can distinguish local data flow and other places data traffic, increase data traffic monitoring accuracy, more preferably
Meet user's demand to data flow monitoring, improve the beneficial effect of user satisfaction.
Fig. 8 shows the flow chart of the method for data in mobile terminal flow monitoring according to an embodiment of the invention.
The method can be used for various server, comprises the steps S810-S830.
In step S810, according to base station affiliated area, is classified in base station, generate the base station location corresponding to regional
Message file.
Wherein, base station position information file includes the base station IDs in corresponding region.
For example, server obtains base station geographic position information, and base station geographic position information includes base station IDs, base station
Latitude and longitude information and the address information of base station.Server determines district belonging to base station according to address information and the latitude and longitude information of base station
Territory, base station IDs in record regional, generate the base station position information file corresponding with region.So, server stores
There is the base station position information file that regional is corresponding.Such as, the base station location that in server, storage has each district corresponding is believed
Breath file.
Base station position information is classified by affiliated area, it is possible to the file that after making to classify, regional is corresponding is relatively
Little, and then when mobile terminal is downloaded, save data traffic and the memory space of mobile terminal.
In step S820, after receiving mobile terminal download request, by base station location corresponding for region in the request of downloading
Message file sends 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.
In step S830, after receiving mobile terminal enquiry request, at the base station position information literary composition that regional is corresponding
Part is inquired about base station IDs in inquiry request, Query Result is sent to mobile terminal, so that mobile terminal is sentenced according to Query Result
Disconnected newly-increased data traffic is other places data traffic or local data flow.
In one embodiment, according to base station affiliated area, is classified in base station, generate the base station location corresponding to regional
Message file, specifically includes following steps A812 and step A814.
In step A812, determine base station affiliated area according to base station geographic position information.
In step A814, base station IDs in record regional, generate the base station position information file corresponding with region.
Further, base station geographic position information includes: base station address information and latitude and longitude of base station information, described according to base
Geographical location information of standing determines base station affiliated area, specifically includes following steps A8122 and A8124.
In step A8122, determine base station affiliated area according to base station address information.
In step A8124, when being not determined by base station affiliated area according to base station address information, according to latitude and longitude of base station
Information inquires about described base station in map, determines base station affiliated area according to Query Result.
In the present invention, embodiment solves, and cannot be distinguished by local data flow and other places data traffic in data traffic monitoring
Problem, achieve can distinguish local data flow and other places data traffic, increase data traffic monitoring accuracy, more preferably
Meet user's demand to data flow monitoring, improve the beneficial effect of user satisfaction.
Above are only the exemplary explanation of the method for the data in mobile terminal flow monitoring of the present invention, the invention is not restricted to
This.Any modification, equivalent substitution and improvement etc. made within all spirit in the present invention or principle, are all contained in the present invention's
In protection domain.
Fig. 9 shows the structure chart of the device of data in mobile terminal flow monitoring according to an embodiment of the invention.
This device is suitable to various mobile terminal, such as mobile phone, panel computer etc..As it is shown in figure 9, this device includes such as lower module.
Download module 910, is adapted to determine that the affiliated area of mobile terminal, downloads the base station location that described affiliated area is corresponding
Message file, described base station position information file includes the base station IDs in corresponding region;
Search module 920, be suitable to when adding up data traffic used by mobile terminal, at the base station position information file downloaded
Middle lookup mobile terminal base station therefor ID;
First determination module 930, is suitable to when finding mobile terminal base station therefor ID, it is determined that the newly-increased data stream of statistics
Amount is local data flow;
Second determination module 940, is suitable to when not finding mobile terminal base station therefor ID, is sent by base station therefor ID
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, according to inquiry
Result judges that newly-increased data traffic is other places data traffic or local data flow.
In one embodiment, as shown in Figure 10, the second determination module 940, specifically include:
Record sub module 942, is suitable to when not finding used by mobile terminal in the base station position information file downloaded
During base station IDs, record mobile terminal base station therefor ID and corresponding newly-increased data traffic;
Send submodule 944, be suitable to the base station IDs in the preset duration of record is sent to server, with in the server
The base station position information file that regional is corresponding is inquired about.
Because the packet that mobile terminal sends to server all can have data packet head, by the base station IDs collection in certain time length
In be sent to server, and individually send base station IDs to compared with server, it is possible to reduce and send data packet number, and then save and send out
Send data traffic used.
In one embodiment, as shown in Figure 10, the second determination module 940, specifically include:
First decision sub-module 946, is suitable to when the affiliated area determining mobile terminal base station therefor according to Query Result
When being positioned at same charging region with the affiliated area of mobile terminal, it is determined that described newly-increased data traffic is local data flow;
Second decision sub-module 948, is suitable to when the affiliated area determining mobile terminal base station therefor according to Query Result
When being positioned at different charge region with the affiliated area of mobile terminal, it is determined that described newly-increased data traffic is other places data traffic.
In one embodiment, download module 910 is particularly adapted to determine mobile terminal according to telephone number used by mobile terminal
Affiliated area.
For example, download module 910 can be by the telephone number that uses in mobile terminal at the number information of server
Inquiring about in file, number information file includes number segment used by regional, determines telephone number used in mobile terminal
After affiliated number segment, determine that the telephone number used in mobile terminal belongs to the region that this number segment is corresponding.Such as, with administrative area
County is unit, and number information file includes each administrative district number segment, enquiry mobile terminal institute in number information file
Telephone number, determine number segment belonging to this telephone number, and then show that telephone number belongs to the district that this number segment is corresponding.
In one embodiment, download module 910 is particularly adapted to according to the geography of mobile terminal when installing traffic statistics application
Positional information determines the affiliated area of mobile terminal.
For example, when user installs traffic statistics application in the terminal, the warp of mobile terminal is obtained by GPS
Latitude, searches this longitude and latitude in the map of server, determines the region at mobile terminal place, is defined as in this region mobile
The affiliated area of terminal.
Determine that the mode of the affiliated area of mobile terminal is not limited to above two, can adopt and determine that movement is eventually in other ways
End affiliated area, such as, when user installation traffic statistics are applied, show input frame, and prompting user inputs mobile terminal affiliated
Region, determines mobile terminal affiliated area according to the information of user's input.
In one embodiment, as shown in Figure 10, device also includes: display module 1010, is suitable to when judging newly-increased data stream
When amount is for other places data traffic, display roams into the prompting message in other places.
Further, the first decision sub-module 946 is further adapted for when determining mobile terminal base station therefor according to Query Result
The affiliated area of affiliated area and mobile terminal when being positioned at same charging region, base station therefor ID is added to mobile terminal this
In the base station position information file on ground.
So, the affiliated area of mobile terminal base station therefor and the affiliated area of mobile terminal are positioned at same charging region,
This base station IDs is added in mobile terminal home base stations positional information file.So, this base is re-used next time when mobile terminal
When standing, directly can inquire the base station IDs of this base station from local base station position information file, it is to avoid enter in server
Row base station inquiry, saves data traffic used.
In one embodiment, as shown in Figure 10, device also includes: computing module 1020, is suitable to the stream in flow package
Amount service condition divides into local data flow service condition and other places data traffic service condition;The movement drawn according to statistics
The local data flow used in terminal and other places data traffic, make local data flow service condition and other places data traffic
By situation, calculated flow rate amount uses percentage ratio and/or residual flow amount respectively.
In one embodiment, as shown in Figure 10, device also includes: display module 1010, is suitable to when base used by mobile terminal
When the affiliated area of the affiliated area stood and mobile terminal is positioned at same charging region, display local data flow service condition
Flow amount uses percentage ratio and/or residual flow amount;Affiliated area and mobile terminal when mobile terminal base station therefor
When affiliated area is positioned at different charge region, display other places data traffic service condition flow amount use percentage ratio and/or
Residual flow amount.
The exemplary illustration of every technical characteristic and every skill in corresponding method technical scheme in said apparatus technical scheme
The exemplary explanation of art feature is close, does not repeats them here.
Figure 11 shows the structure chart of the device of data in mobile terminal flow monitoring according to an embodiment of the invention.
The method can be used for various server, including such as lower module.
Generation module 1110, is suitable to be classified base station according to base station affiliated area, generates the base station corresponding to regional
Positional information file, base station position information file includes the base station IDs in corresponding region;
Transport module 1120, after being suitable to receive mobile terminal download request, by base station corresponding for region in the request of downloading
Positional information file sends this mobile terminal, so that mobile terminal is when statistics data traffic used, at the base station location downloaded
Message file is searched mobile terminal base station therefor ID, and when finding base station therefor ID, it is determined that the newly-increased data stream of statistics
Amount is local data flow;
Enquiry module 1130, after being suitable to receive mobile terminal enquiry request, regional corresponding base station location
Message file is inquired about base station IDs in inquiry request, Query Result is sent to mobile terminal, so that mobile terminal is according to inquiry
Result judges that newly-increased data traffic is other places data traffic or local data flow.
In one embodiment, generation module 1110 specifically includes:
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 literary composition corresponding with region
Part.
In one embodiment, base station geographic position information includes: base station address information and latitude and longitude of base station information, determines son
Module, is particularly adapted to determine base station affiliated area according to base station address information;When being not determined by base station according to base station address information
During affiliated area, in map, inquire about described base station according to latitude and longitude of base station information, determine district belonging to base station according to Query Result
Territory.
The exemplary illustration of every technical characteristic and every skill in corresponding method technical scheme in said apparatus technical scheme
The exemplary explanation of art feature is close, does not repeats them here.
The present invention includes following technical scheme:
A1, a kind of method of 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, described base
Station location message 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 institute
Use base station IDs;
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 at server
The base station position information file that middle regional is corresponding is inquired about base station therefor ID, judges newly-increased data traffic according to Query Result
It is other places data traffic or local data flow.
A2, according to the method described in A1, wherein, described when not finding mobile terminal base station therefor ID, by used
Base station IDs is sent to server, to inquire about base station therefor in the base station position information file that regional in the server is corresponding
ID, specifically includes:
When not finding mobile terminal base station therefor ID in the base station position information file downloaded, record is mobile eventually
End base station therefor ID and corresponding newly-increased data traffic;
Base station IDs in the preset duration of record is sent to server, with the base station that regional in the server is corresponding
Positional information file is inquired about.
A3, according to the method described in A1, wherein, described judge that newly-increased data traffic is other places data stream according to Query Result
Amount or local data flow, specifically include:
Affiliated area position when 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;
Affiliated area position when the affiliated area Yu mobile terminal determining mobile terminal base station therefor according to Query Result
When different charge region, it is determined that described newly-increased data traffic is other places data traffic.
A4, according to the method described in A1, 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.
A5, according to the method described in A1, 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.
A6, according to the method described in A1, 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.
A7, according to the method described in A1, wherein, described method also includes:
Flow service condition in flow package is divided into local data flow service condition and other places data traffic makes
Use situation;
According to the local data flow used in the mobile terminal that statistics draws and other places data traffic, to local data flow
Amount service condition and other places data traffic service condition, calculated flow rate amount uses percentage ratio and/or residual flow amount respectively.
A8, according to the method described in A7, 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, aobvious
Show that the flow amount of local data flow 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, aobvious
Show that the flow amount of other places data traffic service condition uses percentage ratio and/or residual flow amount.
B9, a kind of method of 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 position information file includes the base station IDs in corresponding region;
After receiving mobile terminal download request, base station position information file corresponding for region in the request of downloading is sent and is somebody's turn to do
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, in the base station position information file that regional is corresponding, inquiry inquiry please
Seek middle base station IDs, Query Result is sent to mobile terminal, so that mobile terminal judges newly-increased data traffic according to Query Result
It is other places data traffic or local data flow.
B10, according to the method described in B9, wherein, described according to base station affiliated area by base station classify, generate corresponding to respectively
The base station position information file in individual region, 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.
B11, according to the method described in B10, 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, look in map according to latitude and longitude of base station information
Ask described base station, determine base station affiliated area according to Query Result.
C12, the device of a kind of data in mobile terminal flow monitoring, including:
Download module, is adapted to determine that the affiliated area of mobile terminal, downloads the base station location letter that described affiliated area is corresponding
Breath file, 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, in the base station position information file downloaded
Search 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
For local data flow;
Second determination module, is suitable to, when not finding mobile terminal base station therefor ID, be sent to by base station therefor ID
Server, to inquire about base station therefor ID, according to inquiry knot in the base station position information file that regional in the server is corresponding
Fruit judges that newly-increased data traffic is other places data traffic or local data flow.
C13, according to the device described in C12, wherein, described second determination module, specifically include:
Record sub module, is suitable to when not finding mobile terminal base station therefor in the base station position information file downloaded
During ID, 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 the most each
The base station position information file that individual region is corresponding is inquired about.
C14, according to the device described in C12, wherein, described second determination module, specifically include:
First decision sub-module, is suitable to when affiliated area and the shifting determining mobile terminal base station therefor according to Query Result
When the affiliated area of dynamic terminal is positioned at same charging region, it is determined that described newly-increased data traffic is local data flow;
Second decision sub-module, is suitable to when affiliated area and the shifting determining mobile terminal base station therefor according to Query Result
When the affiliated area of dynamic terminal is positioned at different charge region, it is determined that described newly-increased data traffic is other places data traffic.
C15, according to the device described in C12, wherein, described download module, be particularly adapted to according to phone used by mobile terminal
Number determines the affiliated area of mobile terminal.
C16, according to the device described in C12, wherein, described download module, be particularly adapted to according to install traffic statistics application
Time mobile terminal geographical location information determine the affiliated area of mobile terminal.
C17, according to the device described in C12, 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 in other places
Information.
C18, according to the device described in C12, wherein, described device also includes:
Computing module, is suitable to the flow service condition in flow package be divided into local data flow service condition with outer
Ground data traffic service condition;According to the local data flow used in the mobile terminal that statistics draws and other places data traffic,
To local data flow service condition and other places data traffic service condition, respectively calculated flow rate amount use percentage ratio and/or
Residual flow amount.
C19, according to the device described in C18, wherein, described device also includes:
Display module, is suitable to when the affiliated area of mobile terminal base station therefor is positioned at same with the affiliated area of mobile terminal
During charging region, the flow amount of display local data flow service condition uses percentage ratio and/or residual flow amount;Work as shifting
When the dynamic affiliated area of terminal base station therefor is positioned at different charge region with the affiliated area of mobile terminal, display other places data stream
The flow amount of amount service condition uses percentage ratio and/or residual flow amount.
D20, the device of a kind of data in mobile terminal flow monitoring, including:
Generation module, is suitable to be classified base station according to base station affiliated area, generates the base station location corresponding to regional
Message 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 corresponding for region in the request of downloading
Message file sends 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 is inquired about base station IDs in inquiry request, Query Result is sent to mobile terminal, so that mobile terminal is according to Query Result
Judge that newly-increased data traffic is other places data traffic or local data flow.
D21, according to the device described in D20, 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 literary composition corresponding with region
Part.
D22, according to the device described in D21, wherein, described base station geographic position information includes: base station address information and base
Stand latitude and longitude information, described determine submodule, be particularly adapted to determine base station affiliated area according to base station address information;When according to base
When station address information is not determined by base station affiliated area, in map, inquire about described base station according to latitude and longitude of base station information, according to
Query Result determines base station affiliated area.
It should be understood that
Algorithm and display are not intrinsic to any certain computer, virtual bench or miscellaneous equipment relevant provided herein.
Various fexible units can also be used together with based on teaching in this.As described above, construct required by this kind of device
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint
One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize data in mobile terminal flow monitoring according to embodiments of the present invention
Equipment in the some or all functions of some or all parts.The present invention is also implemented as performing institute here
Part or all equipment of the method described or device program (such as, computer program and computer program product
Product).The program of such present invention of realization can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or to appoint
What his form provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.