CN103379461A - Data service traffic statistical method and terminal - Google Patents

Data service traffic statistical method and terminal Download PDF

Info

Publication number
CN103379461A
CN103379461A CN2012101263698A CN201210126369A CN103379461A CN 103379461 A CN103379461 A CN 103379461A CN 2012101263698 A CN2012101263698 A CN 2012101263698A CN 201210126369 A CN201210126369 A CN 201210126369A CN 103379461 A CN103379461 A CN 103379461A
Authority
CN
China
Prior art keywords
flow
data service
storage field
sim card
present
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.)
Pending
Application number
CN2012101263698A
Other languages
Chinese (zh)
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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN2012101263698A priority Critical patent/CN103379461A/en
Publication of CN103379461A publication Critical patent/CN103379461A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a data service traffic statistical method and terminal. The data service traffic statistical method comprises the steps that a traffic storage field is established on a user identification module card; when the demand that traffic is written into a triggering condition is met, the current traffic of data service is written into the traffic storage field. According to the data service traffic statistical method and terminal, the traffic storage field is established in an SIM card, data of data traffic used by a user account corresponding to the SIM card at present are stored in the traffic storage field, the problem that the information of the data service traffic used by the user account corresponding to the SIM card at present can not be counted when a user replaces a mobile terminal on the SIM card or replaces the SIM card on the mobile terminal is solved, the data service traffic statistical method is made to be good in flexibility, and the degree of experience for using the SIM card of the user is improved.

Description

A kind of data service flow statistical method and terminal
Technical field
The invention belongs to the mobile communication technology field, relate to a kind of data service flow statistical method and terminal.
Background technology
Present mobile phone generally has data service function, the form that mobile operator generally adopts the surfing flow to the data business to carry out the flow bag provides service, and the user just needs the real-time data service traffics are monitored for fear of the scope of the data service flow excess flow bag of data service.The most frequently used statistical is to adopt third party's program, and namely when the portable terminal turn-on data was professional, third party's program can be added up the data service traffics.
But above-mentioned data traffic flow quantitative statistics method is Shortcomings also, for example as same mobile phone use SIM (Subscriber Identity Module, subscriber identification module) card A is after a period of time, when having changed again SIM card B, the usage data service traffics of this mobile phone statistics are the data service flow that SIM card A uses, if continue SIM card B is added up in the basis of usage data service traffics at this, then can cause the data service flow mistake of statistics of SIM card B; Perhaps, when same SIM card in mobile phone C after practical a period of time, when changing to again among the mobile phone D, mobile phone D is owing to can't learn how many data traffics are this SIM card used in current data service flow measurement period, therefore can only will restart statistics after the zero clearing of data service flow, equally also can all can cause the surfing flow mistake of statistics of this SIM card.Relatively poor, the inconvenient user of the flexibility of above-mentioned data service statistical method uses and the user experiences relatively poor.
Summary of the invention
Embodiments of the invention provide a kind of data service flow statistical method and terminal, make the user after SIM card is changed portable terminal or portable terminal replacing SIM card, can be in time with the surfing flow information synchronization used in real-time surfing flow information, relatively poor, the inconvenient user of flexibility who has solved existing data service statistical method uses and the user experiences relatively poor problem.
Embodiments of the invention provide a kind of data service flow statistical method, comprising:
Create flow storage field at subscriber identify module card; When satisfying flow and write trigger condition, the present flow rate of data service is write in the described flow storage field.
Embodiments of the invention also provide a kind of terminal, comprising:
Flow storage field creating unit is used for creating flow storage field at subscriber identify module card; The present flow rate writing unit is used for when satisfying flow and write trigger condition, the present flow rate of data service is write described flow store in the field.
Can be found out by the technical scheme that the embodiment of the invention described above provides, by create flow storage field in SIM card, the data of the data traffic that the user account that current SIM card is corresponding uses are stored in the described field, can solve the user and change the problem that SIM card can't be added up the data service flow information of user account use corresponding to current SIM card because change portable terminal or portable terminal in SIM card, make the flexibility of data service statistical method better, improved user's SIM card experience degree.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the method for the statistics SIM card surfing flow that Fig. 1 provides for embodiments of the invention;
Fig. 2 adds up the schematic flow sheet of the method for SIM card surfing flow for the another kind that embodiments of the invention provide;
The terminal that Fig. 3 provides for embodiments of the invention structural representation;
The structural representation of the another kind of terminal that Fig. 4 provides for embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Existing portable terminal is after changing SIM card, owing to can't obtain the current data service traffics information of this SIM card, cause and to monitor the data service flow information in the current period, in order to address this problem, present embodiment utilizes SIM card to have read-write function, data service flow information that field comes this SIM card of real-time storage to use of expansion in SIM card.Like this when the user changes portable terminal or SIM card, data service flow information still is kept in the SIM card of current use, makes the user read the data service flow that this SIM card has been used by portable terminal corresponding address from the SIM card of current use of changing.For this reason, present embodiment provides a kind of data service flow statistical method, and as shown in Figure 1, described method comprises:
Step 11, create flow storage field at subscriber identify module card.
Owing to do not possess the function of storage data service flow information on the existing SIM card, therefore can utilize SIM card to have the characteristics of read-write function, create flow storage field in the file with read-write authority on SIM card, corresponding flow storage field can be the information that comprises " * * KB " or fields such as " * * MB ".
Step 12, when satisfying flow and write trigger condition, the present flow rate of data service is write in the inbound traffics memory word section.
Corresponding trigger condition can be that data service function is opened or data service when closing, the present flow rate of data service is write in the corresponding flow storage field, thereby realize that the user changes the data service flow information that SIM card still can be added up user account use corresponding to current SIM card because change portable terminal or portable terminal in SIM card.
Further, when the user after SIM card is changed portable terminal or portable terminal and is changed SIM card, if when storing flow storage field in the SIM card of current use, if when satisfying trigger condition, directly current data service flow is write SIM card, then can make the traffic statistics mistake of paired data business, for this this embodiment has also proposed an embodiment to address this problem, as shown in Figure 2, corresponding data service flow statistical method comprises:
Step 21, create flow storage field at subscriber identify module card, and the present flow rate of data service is write in the inbound traffics memory word section.
Concrete, because SIM card all has read-write function, therefore a file can be set in SIM card and in this document, create the data service flow information that a flow storage field comes this SIM card of real-time storage to use.Wherein, the file that can be used as the data service flow information used of this SIM card of storage can be at least a in phone directory file, dialing file, short message file, capacity scheme Parameter File or the extendfile of SIM card; Perhaps, also can create the independent flow storage field with read-write authority in SIM card, real-time SIM card surfing flow information can be the information that comprises fields such as " * * KB or * * MB ".
Step 22, when satisfying flow and write trigger condition, with the value of the present flow rate of data service and the existing value addition in the flow storage field, and the result deposited in the described flow storage field.
After the data service flow information statistical program of portable terminal replacing SIM card or portable terminal is cleared, the information that can find stores fields such as " * * KB or * * MB " in testing process in the file in the SIM card is then thought the data service flow information that stores this SIM card among this SIM.In the data service flow information that needs this moment the data service flow information that stores this SIM card in this SIM card added and used in the current measurement period of this SIM card, and the data service flow information to this SIM card is added up on the basis of this data service flow information, to solve the user because changing portable terminal or changing the problem that SIM card can't be added up the data traffic information of current SIM card.
Concrete, when satisfying flow and write trigger condition, for example: when data service function is opened, can preset every 5 minutes, 10 minutes or any rational time interval is a flow write cycle, when expire a flow write cycle, then the present flow rate of data service is write in the inbound traffics memory word section.It should be noted that, after data service function is opened, when for the first time real-time SIM card data service flow writes current SIM card, with the value of the present flow rate of data service and the existing value addition in the flow storage field, and the result deposited in the flow storage field, wherein, the initial value of flow storage field is zero, and after the result with addition writes inbound traffics memory word section, the value of the present flow rate of data service is made zero, change the data service flow information statistical program of SIM card or portable terminal and be cleared rear correct statistics to data service traffics information to realize portable terminal.When data service function is closed or when portable terminal is in the state shutdown of data service function unlatching, can directly current SIM card data service flow information be write in the current SIM card.
Step 23, counted when full when the default flow zero clearing cycle, with the zero clearing of described flow storage field.
Concrete, after the present flow rate of data service being write in the inbound traffics memory word section, can also comprise when the default flow zero clearing cycle and having counted when full, be operator to the statistics of data service traffics generally all be take the moon or year as unit, therefore the flow zero clearing cycle of current SIM card can be preset as one month or 1 year, but the timing statistics to the data service traffics reaches all after dates of a flow zero clearing, flow is stored after the field zero clearing more again statistics, to guarantee data service flow statistical accuracy.
Adopt the technical scheme of present embodiment, by when satisfying condition, the present flow rate of data service being write the flow storage field that subscriber identify module card creates, make the user after SIM card is changed portable terminal or portable terminal replacing SIM card, can be in time with the data service flow information synchronization used in real-time data service flow information, solved the user because changing the problem that SIM card can't be added up the data service flow information of current SIM card at SIM card replacing portable terminal or portable terminal, make the flexibility of data service statistical method better, improved user's SIM card experience degree.
Need to prove, one of ordinary skill in the art will appreciate that all or part of step that realizes in above-mentioned each embodiment of the method is to come the relevant hardware of instruction to finish by program, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Embodiments of the invention also provide a kind of terminal, as shown in Figure 3, comprising:
Flow storage field creating unit 31 is used for creating flow storage field at subscriber identify module card;
Present flow rate writing unit 32 is used for when satisfying flow and write trigger condition the present flow rate of data service being write in the inbound traffics memory word section.
Embodiments of the invention also provide a kind of terminal, as shown in Figure 4, comprising:
Flow storage field creating unit 41 is used for creating flow storage field at subscriber identify module card, and the present flow rate of data service is write in the inbound traffics memory word section;
Present flow rate writing unit 42 is used for when satisfying flow and write trigger condition, and value and the flow of the present flow rate of data service are stored existing value addition in the field, and deposits the result in described flow and store in the field;
Flow zero clearing unit 43 is used for having counted when full when the default flow zero clearing cycle, and described flow is stored the field zero clearing.
Optionally, in present flow rate writing unit 42, comprise flow summation subelement and the present flow rate subelement that makes zero, flow summation subelement is used for the existing value addition with value with the flow storage field of the present flow rate of data service, and deposits the result in flow and store in the field; Wherein, the initial value of flow storage field is zero; The present flow rate subelement that makes zero is used for the value of the present flow rate of data service is made zero.
Optionally, flow writes trigger condition and comprises: at least a during the data service that default flow has been counted full or terminal write cycle has been closed.
Adopt the scheme of present embodiment, by when satisfying condition, the present flow rate of data service being write the flow storage field that subscriber identify module card creates, make the user after SIM card is changed portable terminal or portable terminal replacing SIM card, can be in time with the data service flow information synchronization used in real-time data service flow information, solved the user because changing the problem that SIM card can't be added up the data service flow information of current SIM card at SIM card replacing portable terminal or portable terminal, make the flexibility of data service statistical method better, improved user's SIM card experience degree.
The embodiment of the processing capacity of each unit that comprises in the above-mentioned terminal is described in method execution mode before, no longer is repeated in this description at this.
It should be noted that in above-mentioned terminal embodiment included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.In addition, as space is limited, the ins and outs that do not relate among the described terminal embodiment please refer to embodiment of the method.
The above; only for the better embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. a data service flow statistical method is characterized in that, comprising:
Create flow storage field at subscriber identify module card;
When satisfying flow and write trigger condition, the present flow rate of data service is write in the described flow storage field.
2. data service flow statistical method as claimed in claim 1 is characterized in that, described present flow rate with data service writes in the described flow storage field and comprises:
With the value of the present flow rate of described data service and the existing value addition in the described flow storage field, and the result deposited in the described flow storage field; Wherein, the initial value of described flow storage field is zero;
The value of the present flow rate of described data service is made zero.
3. such as the described data service flow of any one statistical method among the claim 1-2, it is characterized in that described flow writes trigger condition and comprises:
Default flow has been counted full write cycle.
4. such as the described data service flow of any one statistical method among the claim 1-3, it is characterized in that described flow writes trigger condition and comprises:
Data service is closed.
5. such as the described data service flow of any one statistical method among the claim 1-4, it is characterized in that after the present flow rate with data service write in the described flow storage field, described method also comprised:
Counted when full when the default flow zero clearing cycle, with the zero clearing of described flow storage field.
6. a terminal is characterized in that, comprising:
Flow storage field creating unit is used for creating flow storage field at subscriber identify module card;
The present flow rate writing unit is used for when satisfying flow and write trigger condition, the present flow rate of data service is write described flow store in the field.
7. terminal as claimed in claim 6 is characterized in that, described present flow rate writing unit comprises:
Flow summation subelement is used for the existing value addition with value with the described flow storage field of the present flow rate of described data service, and deposits the result in described flow and store in the field; Wherein, the initial value of described flow storage field is zero;
The present flow rate subelement that makes zero is used for the value of the present flow rate of described data service is made zero.
8. such as the described terminal of any one among the claim 6-7, it is characterized in that described flow writes trigger condition and comprises:
Default flow has been counted full write cycle.
9. such as the described terminal of any one among the claim 6-8, it is characterized in that described flow writes trigger condition and comprises:
The data service of described terminal is closed.
10. such as the described terminal of any one among the claim 6-9, it is characterized in that described terminal also comprises:
Flow storage field zero clearing unit is used for having counted when full when the default flow zero clearing cycle, and described flow is stored the field zero clearing.
CN2012101263698A 2012-04-26 2012-04-26 Data service traffic statistical method and terminal Pending CN103379461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101263698A CN103379461A (en) 2012-04-26 2012-04-26 Data service traffic statistical method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101263698A CN103379461A (en) 2012-04-26 2012-04-26 Data service traffic statistical method and terminal

Publications (1)

Publication Number Publication Date
CN103379461A true CN103379461A (en) 2013-10-30

Family

ID=49463924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101263698A Pending CN103379461A (en) 2012-04-26 2012-04-26 Data service traffic statistical method and terminal

Country Status (1)

Country Link
CN (1) CN103379461A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484201A (en) * 2017-09-30 2017-12-15 广东欧珀移动通信有限公司 Flow statistical method and device, terminal, computer-readable recording medium
CN107708092A (en) * 2017-09-30 2018-02-16 广东欧珀移动通信有限公司 Flow information update method and device, terminal, computer-readable recording medium
CN107743080A (en) * 2017-09-30 2018-02-27 广东欧珀移动通信有限公司 Flow statistical method and device, computer equipment, computer-readable recording medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741574A (en) * 2009-12-24 2010-06-16 太仓市同维电子有限公司 Data card with flow statistics, data card using system and realizing method
CN101800792A (en) * 2010-01-12 2010-08-11 华为终端有限公司 Mobile phone internet traffic counting and displaying method and device, and mobile phone
CN201608730U (en) * 2009-12-24 2010-10-13 太仓市同维电子有限公司 Data card with flow statistics and data card using system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741574A (en) * 2009-12-24 2010-06-16 太仓市同维电子有限公司 Data card with flow statistics, data card using system and realizing method
CN201608730U (en) * 2009-12-24 2010-10-13 太仓市同维电子有限公司 Data card with flow statistics and data card using system
CN101800792A (en) * 2010-01-12 2010-08-11 华为终端有限公司 Mobile phone internet traffic counting and displaying method and device, and mobile phone

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484201A (en) * 2017-09-30 2017-12-15 广东欧珀移动通信有限公司 Flow statistical method and device, terminal, computer-readable recording medium
CN107708092A (en) * 2017-09-30 2018-02-16 广东欧珀移动通信有限公司 Flow information update method and device, terminal, computer-readable recording medium
CN107743080A (en) * 2017-09-30 2018-02-27 广东欧珀移动通信有限公司 Flow statistical method and device, computer equipment, computer-readable recording medium
CN107708092B (en) * 2017-09-30 2019-09-17 Oppo广东移动通信有限公司 Flow information update method and device, terminal, computer readable storage medium
CN107484201B (en) * 2017-09-30 2020-08-14 Oppo广东移动通信有限公司 Flow statistical method and device, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103294615B (en) A kind of method for storing set-top box users information
CN107526674A (en) A kind of method and apparatus of embedded system log recording
WO2008129701A1 (en) File management system and method, and mobile terminal
CN107291405B (en) NorFlash data management method and device
CN103473343A (en) File management method, device and terminal
CN106201778B (en) Information processing method and storage equipment
CN101304454B (en) Method for rapidly inspecting short message history record
CN109120067A (en) A kind of sequence of events recording report method, device, equipment and readable storage medium storing program for executing
CN103379461A (en) Data service traffic statistical method and terminal
US20120206981A1 (en) Method and device for writing data
CN104219639A (en) Method and device for displaying text message record
CN103176920A (en) Nor flash power down protection method and Nor flash power down protection device
CN109213448A (en) A kind of method, apparatus, equipment and the storage medium of the erasable data of smart card
CN112181275A (en) Data processor and data processing method
CN113010105A (en) Data backup method, device, equipment and computer readable storage medium
CN102402698A (en) Method and device for decreasing frequency of erasing and writing subscriber identity module files
CN101600181A (en) A kind of input error correction method, system and mobile communication terminal of telephone number
CN102184375A (en) Management method and terminal of data in subscriber identity module (SIM) card
CN101778377B (en) Parameter configuration method, mobile terminal and terminal equipment
CN105488047B (en) Metadata reading/writing method and device
CN103488433B (en) A kind of batch documents method of operating and system based on distributed file system
CN103369512A (en) Phone book management method
CN109960474A (en) Data-updating method, device, equipment and medium based on automatic simplify configuration
CN105512049B (en) A kind of memory data recovery method, apparatus and system
CN102402511B (en) A kind of method and system of storage service data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131030

RJ01 Rejection of invention patent application after publication