Movatterモバイル変換


[0]ホーム

URL:


CN102387486A - Method and device for charging general packet radio service (GPRS) partition bill - Google Patents

Method and device for charging general packet radio service (GPRS) partition bill
Download PDF

Info

Publication number
CN102387486A
CN102387486ACN2010102762533ACN201010276253ACN102387486ACN 102387486 ACN102387486 ACN 102387486ACN 2010102762533 ACN2010102762533 ACN 2010102762533ACN 201010276253 ACN201010276253 ACN 201010276253ACN 102387486 ACN102387486 ACN 102387486A
Authority
CN
China
Prior art keywords
ticket
gprs
charging
segmentation
amount
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.)
Granted
Application number
CN2010102762533A
Other languages
Chinese (zh)
Other versions
CN102387486B (en
Inventor
姚朋伟
李惠茹
霍绍博
李晓明
张辉
董健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Hebei Co Ltd
Original Assignee
China Mobile Group Hebei 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 China Mobile Group Hebei Co LtdfiledCriticalChina Mobile Group Hebei Co Ltd
Priority to CN201010276253.3ApriorityCriticalpatent/CN102387486B/en
Publication of CN102387486ApublicationCriticalpatent/CN102387486A/en
Application grantedgrantedCritical
Publication of CN102387486BpublicationCriticalpatent/CN102387486B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供了一种GPRS分割话单的计费方法及装置,其中,该方法包括:在每次计费时,将当前GPRS分割话单中的使用量与累计参数的值之和确定为计费量,其中,累计参数的初始值为零;根据预设的计费单元对计费量取整得到整量及余量,并将累计参数的值更新为余量,以及根据整量进行计费。本发明避免了每次均向上取整导致的计费误差,提高了计费精度。

Figure 201010276253

The present invention provides a billing method and device for splitting GPRS bills, wherein the method includes: determining the sum of the usage amount and the value of the accumulation parameter in the current GPRS split bills as the billing Billing amount, where the initial value of the accumulative parameter is zero; the billing amount is rounded according to the preset billing unit to obtain the integer amount and the balance, and the value of the accumulated parameter is updated to the balance, and the calculation is performed based on the integer amount fee. The present invention avoids billing errors caused by rounding up each time, and improves billing accuracy.

Figure 201010276253

Description

Translated fromChinese
GPRS分割话单的计费方法及装置Billing method and device for splitting GPRS bills

技术领域technical field

本发明涉及业务支撑领域,具体涉及一种GPRS分割话单的计费方法及装置。The invention relates to the field of business support, in particular to a charging method and device for splitting bills by GPRS.

背景技术Background technique

目前GPRS(General Packet Radio Service,通用分组无线服务技术的简称)的话单产生机制一般是首先由GGSN(Gateway GPRS Support Node,即网关GPRS支持节点)定时或按照用户使用流量生成G-CDR(GGSN CallingDetail Records,GGSN生成的详细通信记录)话单,其次将G-CDR话单传给CG(Charging Gateway,计费网关),再次CG定时或按照话单数进行话单合并,最后CG定时或按照文件大小生成最终的GPRS计费话单。GPRS计费话单生产后,业务运营支持系统(Business Operation Support System,即BOSS)采集话单并进行话单的分拣、批价、合账、入库处理。这样,从用户开始上网到真正根据GPRS话单计费合账,存在近30-120分钟的时延,这将为恶意欠费提供了机会,并且由于延迟很大,套餐GPRS剩余流量提醒信息功能不能及时准确通知用户,很容易引起用户欠费,严重影响了业务质量。为了解决上述时延问题,可以通过调整GPRS话单生成机制,如通过减小话单文件大小或话单生成的时间阈值来提高话单的生成频率,降低GPRS话单的延迟,可调整的GPRS话单生成机制具体包括:调整GGSN的话单文件生成时间阈值或者话单文件流量阈值、调整CG针对单个用户合并话单G-CDR的时间或者单个用户可合并的最大话单数、调整CG最终话单文件生成条件,如话单文件达到或者时间达到一定阈值则生成最终话单文件,还可以取消CG的话单合并功能。At present, the GPRS (General Packet Radio Service, short for general packet radio service technology) bill generation mechanism is generally firstly generated by GGSN (Gateway GPRS Support Node, that is, gateway GPRS support node) at regular intervals or according to user traffic to generate G-CDR (GGSN CallingDetail Records, the detailed communication records generated by GGSN) call bills, and then pass the G-CDR bills to CG (Charging Gateway, billing gateway), and then CG timed or according to the number of bills to merge the bills, and finally CG timed or according to the file size to generate The final GPRS billing bill. After the GPRS billing bills are produced, the Business Operation Support System (BOSS) collects the bills and performs sorting, price approval, account consolidation, and warehousing of the bills. In this way, there is a delay of nearly 30-120 minutes from the time when the user starts surfing the Internet to when the account is billed according to the GPRS bill, which will provide an opportunity for malicious arrears. Failure to promptly and accurately notify users can easily cause users to owe fees and seriously affect service quality. In order to solve the above delay problem, the GPRS bill generation mechanism can be adjusted, such as by reducing the bill file size or the time threshold for bill generation to increase the bill generation frequency and reduce the delay of GPRS bills. Adjustable GPRS The bill generation mechanism specifically includes: adjusting the GGSN bill file generation time threshold or bill file traffic threshold, adjusting the time for CG to merge bill G-CDR for a single user or the maximum number of bills that can be merged by a single user, and adjusting the CG final bill File generation conditions, such as the bill file reaches or the time reaches a certain threshold, the final bill file will be generated, and the function of merging CG bills can also be canceled.

然而当提高话单生成频率后,GPRS话单数量将大幅增加,这样会带来新的问题:其一,由于GPRS话单的分割,产生了很多不是计费单元整数倍的分割话单,而计费逻辑常是按照计费单元向上取整,这样,每个话单计费将向上取整,众多分割话单的累计将在计费上产生误差,影响计费精度;其二,一次上网产生多个分割话单且分割话单分别呈现,降低业务质量。But after raising the bill generation frequency, the GPRS bill quantity will increase significantly, which will bring new problems: one, due to the segmentation of the GPRS bill, a lot of split bills that are not integral multiples of billing units are produced, and The billing logic is often rounded up according to the billing unit. In this way, the billing of each bill will be rounded up, and the accumulation of many divided bills will cause errors in billing, which will affect the billing accuracy; Multiple split bills are generated and the split bills are presented separately, reducing service quality.

发明内容Contents of the invention

本发明的第一目的是提出一种计费精度高的GPRS分割话单的计费方法。The first object of the present invention is to propose a billing method for splitting GPRS bills with high billing accuracy.

本发明的第二目的是提出一种计费精度高的GPRS分割话单的计费装置。The second object of the present invention is to propose a billing device for splitting GPRS bills with high billing accuracy.

为实现上述第一目的,本发明提供了一种GPRS分割话单的计费方法,包括:在每次计费时,将当前GPRS分割话单中的使用量与累计参数的值之和确定为计费量,其中,累计参数的初始值为零;根据预设的计费单元对计费量取整得到整量及余量,并将累计参数的值更新为余量,以及根据整量进行计费。For realizing above-mentioned first object, the present invention provides a kind of billing method of GPRS split bill, comprise: when billing each time, the sum of the usage amount in the current GPRS split bill and the value of accumulation parameter is determined as The billing amount, where the initial value of the accumulated parameter is zero; the billing amount is rounded according to the preset billing unit to obtain the integer amount and the balance, and the value of the accumulated parameter is updated to the balance, and according to the integer amount Billing.

为实现上述第二目的,本发明提供了一种GPRS分割话单的计费装置,包括:取整模块,用于在每次计费时,将当前GPRS分割话单中的使用量与累计参数的值之和确定为计费量,以及根据预设的计费单元对计费量取整得到整量及余量,其中,累计参数的初始值为零;处理模块,用于将累计参数的值更新为余量;计费模块,用于根据整量进行计费。In order to achieve the above-mentioned second purpose, the present invention provides a billing device for GPRS split bills, including: a rounding module, which is used to divide the usage amount and cumulative parameters in the current GPRS split bills when billing each time. The sum of the values is determined as the billing amount, and the billing amount is rounded according to the preset billing unit to obtain an integer amount and a balance, wherein, the initial value of the accumulated parameter is zero; the processing module is used to convert the accumulated parameter The value is updated as the balance; the billing module is used for billing based on the whole amount.

本发明各个实施例中,通过在每次计费时将上次零头和本次使用量加总后,取整得到计费单元的整数倍,并将本次取整的零头缓存,进而根据该整数倍进行计费,避免了每次均向上取整导致的计费误差,提高了计费精度。In each embodiment of the present invention, the integer multiple of the billing unit is obtained by rounding up the last fraction and the current usage amount each time of billing, and the rounded fraction is cached, and then according to the Integer multiples are billed, avoiding billing errors caused by rounding up each time, and improving billing accuracy.

附图说明Description of drawings

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一并用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, together with the embodiments of the present invention, are used to explain the present invention, and do not constitute a limitation to the present invention. In the attached picture:

图1为本发明的GPRS分割话单的计费方法的实施例一流程图;Fig. 1 is the flow chart of embodiment one of the billing method of GPRS segmentation bill of the present invention;

图2为本发明的GPRS分割话单的计费方法的实施例二流程图;Fig. 2 is the flow chart of embodiment two of the billing method of the GPRS segmentation bill of the present invention;

图3为本发明的GPRS分割话单的计费装置的实施例结构图。FIG. 3 is a structural diagram of an embodiment of the billing device for splitting GPRS bills according to the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

方法实施例method embodiment

图1为本发明的GPRS分割话单的计费方法的实施例一流程图。如图1所示,本实施例包括:FIG. 1 is a flow chart of Embodiment 1 of the billing method for splitting GPRS bills according to the present invention. As shown in Figure 1, this embodiment includes:

步骤S102:在每次计费时,将当前GPRS分割话单中的使用量与累计参数的值之和确定为计费量,其中,累计参数的初始值为零;详细参见图2的解释说明;Step S102: When billing each time, determine the sum of the usage amount in the current GPRS split bill and the value of the cumulative parameter as the billing amount, wherein the initial value of the cumulative parameter is zero; see the explanation in Figure 2 for details ;

步骤S104:根据预设的计费单元对计费量取整得到整量及余量,并将累计参数的值更新为该余量,以及根据整量进行计费;本领域技术人员可以理解,取整操作可以向上或向下,如果采用的是向上取整,则得到的余量是负值;如果采用的是向下取整,则得到的余量是正值;详细参见图2的解释说明。Step S104: Round the billing amount according to the preset billing unit to obtain the integer amount and the remaining amount, and update the value of the accumulated parameter to the remaining amount, and perform billing according to the integer amount; those skilled in the art can understand, The rounding operation can be up or down. If rounding up is used, the margin obtained is a negative value; if rounding down is used, the margin obtained is a positive value; see the explanation in Figure 2 for details illustrate.

本实施例通过在每次计费时将上次零头和本次使用量加总后,向下取整得到计费单元的整数倍,并将本次取整的零头缓存,进而根据该整数倍进行计费,避免了每次均向上取整导致的计费误差,提高了计费精度。In this embodiment, after summing the last fraction and the current usage amount each time of billing, rounding down to obtain an integer multiple of the billing unit, and caching the rounded fraction this time, and then according to the integer multiple Billing is performed, which avoids billing errors caused by rounding up each time, and improves billing accuracy.

图2为本发明的GPRS分割话单的计费方法的实施例二流程图。如图2所示,本实施例包括:FIG. 2 is a flow chart of Embodiment 2 of the billing method for splitting GPRS bills according to the present invention. As shown in Figure 2, this embodiment includes:

步骤201,采集GPRS分割话单;具体操作时,还可以根据采集到的分割话单中的属性,如话单业务属性、话单合并计费序列和话单结束原因,确定分割话单的标记,该标记具体可以包括:分割话单标志、分割话单首末标志和合并计费状态等;Step 201, collecting GPRS split call bills; during specific operations, it is also possible to determine the mark of split bills according to the attributes in the split bills collected, such as bill service attributes, bill merging billing sequences, and bill end reasons , the mark may specifically include: split bill mark, split bill first and last mark, combined billing status, etc.;

其中,话单业务属性用于标识业务,比如用计费标识(即chargingid)表征是否为同一次上网行为;话单结束原因用于标识本条话单生成的原因,如时间达到上限,流量达到上限等,话单结束原因可以包括正常关闭或异常关闭;话单合并计费序列用于记录分割话单的顺序号(即同一业务的分割话单的顺序号);分割话单标志可以包括非分割话单标志及分割话单标志,如合并计费序列为1或空的,认为属于单条话单,无需合并处理,其他情况属于需要合并处理的;分割话单首末标志(可以根据话单合并计费序列确定)分为:首条,中间话单,尾条(即最后一条);合并计费状态分为:合并计费中,正常合并计费结束,未合并计费,初始状态均为未合并计费,并根据处理状态进行标记不同状态;如可以根据话单合并计费序列“1”判定为首条分割话单,或者在合并计费序列非空且话单结束原因为正常关闭时确定为尾条话单;Among them, the bill business attribute is used to identify the business, such as using the charging ID (chargingid) to represent whether it is the same online behavior; the reason for the end of the bill is used to identify the reason for generating this bill, such as the time reaches the upper limit, and the traffic reaches the upper limit Etc., the reasons for bill end can include normal shutdown or abnormal shutdown; the bill merge billing sequence is used to record the sequence number of the split bill (that is, the sequence number of the split bill for the same service); the split bill flag can include non-split Bill flag and split bill flag, if the combined billing sequence is 1 or empty, it is considered to be a single bill and does not need to be merged, and in other cases it needs to be merged; The billing sequence is determined) is divided into: the first entry, the middle bill, and the last entry (that is, the last entry); the consolidated billing status is divided into: consolidated billing, normal consolidated billing ended, unconsolidated billing, the initial state is Billing is not merged, and different states are marked according to the processing status; for example, it can be judged as the first split bill according to bill merged billing sequence "1", or when the merged billing sequence is not empty and the reason for ending the bill is normal close Determined as the last call list;

步骤202,根据GPRS分割话单的标记判断是否为最后一条话单,若是则执行步骤203,若否,则执行步骤204;Step 202, judge whether it is the last bill according to the mark of the GPRS segmentation bill, if so, execute step 203, if not, then execute step 204;

步骤203,对该GPRS分割话单的使用量按照计费单元向上取整,并根据整量计费,进而执行步骤209;具体操作时,可以判断该GPRS分割话单是否为跨优惠时段(即话单开始之间到话单结束的时间内是否跨越优惠时间点)的计费话单,若是,则进行优惠处理后再进行上述向上取整操作,若否,则直接进行上述向上取整操作,也可以在进行上述取整操作后进行跨时段优惠的处理;Step 203, round up the usage amount of this GPRS split bill according to the billing unit, and charge according to the whole amount, and then perform step 209; during specific operations, it can be judged whether the GPRS split bill is across the preferential period (i.e. Whether the time between the start of the bill and the end of the bill spans the billing bill of the preferential time point), if yes, perform the preferential treatment and then perform the above rounding up operation, if not, directly perform the above rounding up operation , you can also process cross-period discounts after performing the above rounding operation;

步骤204,根据该GPRS分割话单的标记判断是否首条话单,若是,则执行步骤207,若否,则执行步骤205;Step 204, according to the mark of this GPRS segmentation bill, judge whether the first bill, if so, then execute step 207, if not, then execute step 205;

步骤205,根据上述各标识,如计费号码、接入点(Access Point Name,即APN)、chargingid、GGSN地址、业务代码等匹配缓冲区的零头话单;Step 205, according to above-mentioned each mark, as billing number, access point (Access Point Name, i.e. APN), chargingid, GGSN address, service code etc. match the fraction bill of buffer;

步骤206,合并该GPRS分割话单与零头话单中的使用量;本领域技术人员可以理解,具体操作时,可以不进行是否为首条话单的判断分析,也就是说对首条及中间条的话单均进行零头话单的匹配及使用量合并的操作,不同的是,首条话单对应的零头话单中的使用量是初始值“零”,中间条话单对应的零头话单中的使用量是上一条话单向下取整后的余量;需要说明的是,实际操作过程中,零头话单和当前处理的GPRS分割话单可能分别处于两种资费,即该合并话单跨越了优惠时段,若不处理则产生计费误差,如若零头部分处于优惠时段,则重新折算零头部分,即零头部分=(零头时段的资费单元(即计费单元对应的资费)/待合并话单的资费单元)*原始的零头部分;Step 206, merging the usage amount in this GPRS split call list and the fractional call list; those skilled in the art can understand that, during specific operations, it is not possible to carry out the judgment analysis of whether it is the first call list, that is to say to the first and middle item All the bills carry out the operation of matching zero bills and merging usage. The difference is that the usage amount in the fractional bills corresponding to the first bill is the initial value "zero", and the usage amount in the fractional bills corresponding to the middle bill is The usage amount is the balance after the last bill is rounded down; it should be noted that in the actual operation process, the fractional bill and the currently processed GPRS split bill may be in two tariffs respectively, that is, the merged bill If the preferential period is crossed, a billing error will occur if it is not processed. If the fractional part is in the preferential period, the fractional part will be converted again, that is, the fractional part = (the tariff unit of the fractional period (that is, the tariff corresponding to the billing unit) / calls to be combined single tariff unit)*original fraction;

步骤207,对该GPRS分割话单的使用量按照计费单元向下取整得到整量及余量,并根据该整量进行计费,具体操作时,也可以对该GPRS分割话单进行跨时段的优惠处理,详细参见步骤203的解释说明,不再赘述;Step 207, the usage amount of the GPRS split bill is rounded down according to the billing unit to obtain the integer amount and the balance, and billing is performed according to the integer amount. During specific operations, the GPRS split bill can also be crossed For the preferential treatment of the time period, refer to the explanation of step 203 for details, and will not go into details;

需要说明的是,各步骤中的使用量可以包括时长及流量,也就是说可以进行时长取整及流量取整,取整的单位值(即计费单元)可以根据实际需要设置,如时间取整为分钟,流量取整为K;具体操作时,可以对于流量和时长两种情况分别进行零头计算;It should be noted that the amount of usage in each step can include duration and traffic, that is to say, rounding of duration and traffic can be performed, and the unit value of rounding (that is, billing unit) can be set according to actual needs, such as time rounding The whole number is minutes, and the flow rate is rounded up to K; in specific operations, fractional calculations can be performed for the two cases of flow rate and duration;

步骤208,将该条话单零头(即向下取整操作得到的余量)缓存,具体操作时可以设置一个累计参数,并该累计参数的值(该累计参数的初始值设置为零)更新为每次向下取整操作得到的余量,或者通过零头话单记载该余量信息(该零头话单中记载的初始使用量为零),并缓存该累计参数值或零头话单;Step 208, cache the fraction of the bill (i.e. the margin obtained by the round-down operation). During specific operations, an accumulation parameter can be set, and the value of the accumulation parameter (the initial value of the accumulation parameter is set to zero) is updated It is the margin obtained by each downward rounding operation, or record the margin information through the fraction bill (the initial usage amount recorded in the fraction bill is zero), and cache the accumulated parameter value or the fraction bill;

步骤209,对GPRS分割话单合账,并存储到用户话单表,并在合帐后判断用户是否欠费,若欠费则立即触发欠费停机信控;Step 209, combining the GPRS split bills and storing them in the user bill table, and judging whether the user is in arrears after the bills are combined, and if the arrears are in arrears, immediately trigger the arrears stop signal control;

步骤210中,对时长和上网流量进行汇总后进行显示;具体包括:在判定为最后一条话单时,根据各GPRS分割话单的话单标识及使用量,得到总使用量、使用起始时间及终止时间;具体操作时可以将相同话单业务属性(即属于同一业务)的分割话单按照话单的序列号(话单合并计费序列)进行合并(时长及流量的合并),将同一业务中分割话单中最早时间值作为使用开始时间,累计费用可以是对应时段的资费与流量(时长)之积。In step 210, the duration and Internet traffic are summarized and then displayed; specifically include: when it is determined as the last bill, according to each GPRS split bill identification and usage amount, obtain the total usage amount, use start time and Termination time; for specific operations, split bills with the same bill business attribute (that is, belonging to the same service) can be merged according to the serial number of the bill (the merged billing sequence of bills) (combination of duration and traffic), and the same business The earliest time value in the split bill is used as the use start time, and the accumulated fee can be the product of the tariff and the traffic (duration) of the corresponding time period.

本领域技术人员可以理解,还可以根据当前GPRS分割话单的话单标识判断是否为最后一条话单,并在不是最后一条话单时执行向上取整的步骤;在为最后一条话单时,对计费量进行判断,正流量的取整计费,负的舍弃或直接存入用户话单,也就是说,具体采用向上取整或向下取整可以根据需要选择。Those skilled in the art can understand that it is also possible to judge whether it is the last bill according to the bill identification of the current GPRS split bill, and perform the step of rounding up when it is not the last bill; The billing volume is judged, the positive flow is rounded and billed, and the negative flow is discarded or directly stored in the user bill. That is to say, the specific use of upward rounding or downward rounding can be selected according to needs.

本实施例通过在对GPRS分割话单依次进行计费处理时,只取整计费单元的使用量进行计费及帐务处理,其余零头部分累计到下一个分割话单中累计参数中;当下一条GPRS分割话单进行处理时,将上次零头的使用累计参数的数据和本次使用量加总后,进行判断,如果加总后的使用量达到计费单元的整数倍,则按照计费单元的整数倍进行计费并将零头部分继续累计至下一次累计参数中;如果两次话单的加总后,依旧不足计费单元的整数倍,则继续累计到下一次累计参数;在最后一条GPRS分割话单到来后,对不足整个计费单元的零头部分取整后进行计费,且按照上述处理后,用户的每条GPRS分割话单会计费完后立即合账,并存储到用户话单表;如果合账后用户欠费,会立即触发欠费停机信控;此外,建立面对用户的查询视图,按照预设字段(例如:计费号码、业务代码、GGSN、GPRS服务支持节点(SERVICING GPRS SUPPORT NODE,即SGSN)为汇总条件,对各分割话单时长和上网流量进行汇总后,以最小用户开始使用时间为总体话单的开始使用时间,可实现对GPRS分割话单的合并显示,改善用户体验,提高了业务质量;将本次取整的零头缓存,进而根据该整数倍进行计费,避免了每次均向上取整导致的计费误差,提高了计费精度;此外,对于跨优惠时段话单的精确计费处理进一步确保了将零头话单与本次分割话单合并计费的计费精度。This embodiment is by when carrying out billing processing to GPRS division call list successively, only takes the usage amount of whole billing unit to carry out billing and account affairs processing, and all the other odd parts are accumulated in the accumulative parameter in the next division call list; When processing a GPRS split call bill, it is judged after summing up the accumulated parameter data of last fractional use and the current usage amount, and if the aggregated usage amount reaches an integer multiple of the billing unit, it will be billed according to The integer multiple of the billing unit is billed and the fraction will continue to be accumulated to the next accumulation parameter; if the sum of the two bills is still less than the integer multiple of the billing unit, continue to accumulate to the next accumulation parameter; at the end After a GPRS split call bill arrives, billing will be performed after rounding up the fraction that is less than the entire billing unit, and after the above processing, each GPRS split call bill of the user will be combined immediately after the accounting is completed, and stored in User bill table; if the user owes the bill after closing the account, it will immediately trigger the arrears stop signal control; in addition, establish a query view facing the user, according to the preset fields (for example: billing number, business code, GGSN, GPRS service The support node (SERVICING GPRS SUPPORT NODE, namely SGSN) is used as the summary condition. After summarizing the duration of each split bill and the Internet traffic, the minimum user start time is the starting time of the overall bill, and the GPRS split bill can be realized. The combined display improves the user experience and improves the service quality; the fraction of the rounding is cached, and then the billing is performed according to the integer multiple, which avoids the billing error caused by rounding up each time and improves the billing accuracy ; In addition, the accurate billing processing of bills across preferential periods further ensures the billing accuracy of combined billing of odd bills and split bills.

装置实施例Device embodiment

图3为本发明的GPRS分割话单的计费装置的实施例结构图。图1及2所示的各方法实施例均可适用于本实施例。本实施例包括:取整模块33,用于在每次计费时,将当前GPRS分割话单中的使用量与累计参数的值之和确定为计费量,以及根据预设的计费单元对计费量取整得到整量及余量,其中,该累计参数的初始值为零;处理模块34,用于将累计参数的值更新为该余量;计费模块36,用于根据整量进行计费。FIG. 3 is a structural diagram of an embodiment of the billing device for splitting GPRS bills according to the present invention. All method embodiments shown in FIGS. 1 and 2 are applicable to this embodiment. The present embodiment includes: a rounding module 33, used for determining the sum of the usage amount in the current GPRS division bill and the value of the accumulation parameter as the billing amount when billing each time, and according to the preset billing unit The billing amount is rounded to obtain an integer and a balance, wherein the initial value of the cumulative parameter is zero; the processing module 34 is used to update the value of the cumulative parameter to the surplus; the billing module 36 is used to amount is billed.

具体操作时,该取整模块33可以包括:判断子模块332,用于根据当前GPRS分割话单的话单标识判断是否为最后一条话单;合并子模块334,用于在每次计费时,将当前GPRS分割话单中的使用量与累计参数的值之和确定为计费量;取整子模块336,用于在判断子模块332判定为最后一条话单时,根据计费单元对计费量向上取整(正流量话单)或舍弃(负流量的话单);以及在判断子模块332判定为不是最后一条话单时,根据计费单元对计费量向下取整得到整量及余量。During concrete operation, this rounding module 33 can comprise: judging submodule 332, for judging whether it is the last bill according to the bill identification of current GPRS segmentation bill; The sum of the usage amount in the current GPRS division bill and the value of the cumulative parameter is determined as the billing amount; the rounding submodule 336 is used to determine the bill according to the billing unit when the judging submodule 332 is the last bill. Fee amount is rounded up (positive traffic bill) or discarded (negative traffic bill); and when the judging submodule 332 determines that it is not the last bill, the billing amount is rounded down according to the billing unit to obtain an integer amount and margin.

该计费模块36可以包括:计费子模块362,用于根据整量进行计费(该整量可以是向下取整操作时或者是向上取整操作时得到的整量);统计子模块364,用于在判断子模块332判定为最后一条话单时,根据各GPRS分割话单的话单标识及使用量,得到总使用量、使用起始时间及终止时间;显示子模块366,用于根据话单的查询提供话单合并显示,即显示总使用量、使用起始时间及终止时间;合帐处理子模块368,用于将话单中的费用合到用户特定账单项目中。The billing module 36 may include: a billing submodule 362, which is used to charge according to an integer (the integer may be the integer obtained during the rounding down operation or the rounding up operation); the statistics submodule 364, for when the judging submodule 332 is judged to be the last bill, according to each GPRS division bill bill identification and usage amount, obtain total usage amount, use start time and end time; display submodule 366, for According to the inquiry of the bills, the combined display of the bills is provided, that is, the total usage amount, the start time and the end time of use are displayed; the combinedaccount processing sub-module 368 is used to combine the expenses in the bills into the specific bill items of the user.

该装置还可以包括:The device can also include:

优惠处理模块35,用于判断当前GPRS分割话单与上一GPRS分割话单是否处于相同的计费时段,并在判定处于不同的计费时段时,将上一GPRS分割话单的资费单元与当前GPRS分割话单的资费单元的比值乘以累计参数的值得到最终的累计参数的值,具体操作时还可以判断当前GPRS分割话单是否跨优惠时段,并在为跨优惠时段时进行优惠处理,本领域技术人员可以理解(详细参见步骤203及206的解释说明),可以设置优惠处理模块35的处理结果发送给取整模块33进行计费操作,也可以设置优惠处理模块35根据取整模块33及处理模块34的操作结果再进行优惠处理,图3将优惠处理模块35设置在处理模块34中以实现对计费结果的优惠处理为优选方案,不应做限定性的解释说明;The favorable treatment module 35 is used to judge whether the current GPRS division bill and the previous GPRS division bill are in the same billing period, and when judging to be in different billing periods, divide the tariff unit of the last GPRS bill with the previous GPRS division bill. The ratio of the tariff unit of the current GPRS split bill is multiplied by the value of the cumulative parameter to obtain the final cumulative parameter value. During specific operations, it can also be judged whether the current GPRS split bill spans a preferential period, and when it is a cross-preferential period, the preferential treatment is performed , those skilled in the art can understand (see the explanation of steps 203 and 206 for details), the processing result of the discount processing module 35 can be set to be sent to the rounding module 33 for billing operation, and the discount processing module 35 can also be set according to the rounding module 33 and the operation result of processing module 34 carry out preferential treatment again, and Fig. 3 arranges preferential treatment module 35 in processing module 34 to realize the preferential treatment to billing result as the preferred scheme, should not do limiting explanation;

话单采集模块31,用于采集GPRS分割话单;具体操作时,还可以由话单采集模块31识别出GPRS分割话单,也就是说该话单采集模块31可以接收各种GPRS话单;分割话单的判断规则可以是:话单合并计费序列非空,还可以根据“话单结束原因”来判断,当原因是达到数据流量上限或/和时间(持续时间)上限时,确定是系统中的分割话单;The bill collection module 31 is used to collect the GPRS split bill; during specific operation, the GPRS split bill can also be identified by the bill collection module 31, that is to say, the bill collection module 31 can receive various GPRS bills; The judging rule for splitting bills can be: the merged billing sequence of bills is not empty, and it can also be judged according to the "reason for ending the bill". Split bills in the system;

话单标记模块32,用于对话单采集模块31接收的当前GPRS分割话单的话单业务属性、话单合并计费序列和话单结束原因确定当前GPRS分割话单的话单标识,并将标识后的当前GPRS分割话单发送至该取整模块33;The bill marking module 32 is used to determine the bill identification of the current GPRS split bill for the current GPRS split bill bill business attribute, bill merged billing sequence and bill end reason received by the dialogue bill collection module 31, and will identify the bill The current GPRS split call list is sent to the rounding module 33;

存取模块37,用于将处理模块34中的累计参数的值存入数据库以及从将数据库读取累计参数的值通过处理模块34发送至取整模块33。The access module 37 is configured to store the value of the accumulated parameter in the processing module 34 into the database and read the value of the accumulated parameter from the database and send it to the rounding module 33 through the processing module 34 .

本实施例中,通过取整模块33在每次计费时将上次零头和本次使用量加总后,向下取整得到计费单元的整数倍,并通过处理模块34将本次取整的零头缓存,进而计费模块36根据该整数倍进行计费,避免了每次均向上取整导致的计费误差,提高了计费精度,通过分割话单的处理提高了离线GPRS话单的处理效率,合帐处理子模块368及时根据合帐情况触发欠费及提醒处理等降低了GPRS欠费,提高了业务质量,如套餐剩余流量提醒;取整模块33同时支持对按时长计费和按流量计费的不同计费模式;统计子模块364及显示子模块366对用户一次上网行为的GPRS分割话单合并显示为一条上网话单,提高了用户详单的易读性,提升了业务质量,有效的降低了用户投诉。In this embodiment, after adding up the fraction of the last time and the usage amount of this time through the rounding module 33 for each billing, round down to obtain an integer multiple of the billing unit, and the processing module 34 converts the fraction of this time Integer fraction cache, and then the billing module 36 bills according to the integer multiple, avoiding the billing error caused by rounding up each time, improving the billing accuracy, and improving the offline GPRS bill by splitting the bill. The processing efficiency of the combined account processing sub-module 368 triggers arrears and reminder processing according to the combined account situation in time, which reduces the GPRS arrears and improves the service quality, such as the reminder of the remaining traffic of the package; the rounding module 33 also supports billing according to the duration And the different billing modes of billing according to traffic; the statistics sub-module 364 and the display sub-module 366 combine and display the GPRS division bills of a user's online behavior into one Internet bill, which improves the legibility of the user's detailed bill and improves the Service quality, effectively reducing user complaints.

最后应说明的是:以上仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, it should be noted that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still understand The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

CN201010276253.3A2010-09-062010-09-06Method and device for charging general packet radio service (GPRS) partition billActiveCN102387486B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201010276253.3ACN102387486B (en)2010-09-062010-09-06Method and device for charging general packet radio service (GPRS) partition bill

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010276253.3ACN102387486B (en)2010-09-062010-09-06Method and device for charging general packet radio service (GPRS) partition bill

Publications (2)

Publication NumberPublication Date
CN102387486Atrue CN102387486A (en)2012-03-21
CN102387486B CN102387486B (en)2015-02-04

Family

ID=45826335

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010276253.3AActiveCN102387486B (en)2010-09-062010-09-06Method and device for charging general packet radio service (GPRS) partition bill

Country Status (1)

CountryLink
CN (1)CN102387486B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104506371A (en)*2015-01-042015-04-08华为技术有限公司Method and device for management of application programming interface (API) call records
CN105848127A (en)*2015-01-162016-08-10中国移动通信集团河北有限公司Accurate ticket supplementing method and apparatus
CN107154857A (en)*2017-04-182017-09-12北京思特奇信息技术股份有限公司The method and device that a kind of flow and expense double-core subtract
CN108734495A (en)*2017-04-202018-11-02腾讯科技(深圳)有限公司A kind of resource information of promotion message determines method, host, server and system
CN108989140A (en)*2017-06-052018-12-11中移信息技术有限公司A kind of test method of flow alerting delay, apparatus and system
CN109618070A (en)*2018-12-032019-04-12中国移动通信集团江苏有限公司 Bill charging method, device, equipment and medium
CN109981911A (en)*2017-12-272019-07-05中国移动通信集团山东有限公司A kind of calculation method and device optimizing talk business ticketing expense
CN113645050A (en)*2020-05-112021-11-12中国移动通信集团湖北有限公司Method and device for combining call ticket gradients of large-volume user and computing equipment
CN114554429A (en)*2020-11-252022-05-27亚信科技(中国)有限公司Charging method, charging device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1534925A (en)*2003-04-012004-10-06华为技术有限公司 A method of real-time section billing
CN1855975A (en)*2005-04-202006-11-01中兴通讯股份有限公司Method and system for realizing business division by one-key stroke
CN101295220A (en)*2004-01-072008-10-29仁宝电脑工业股份有限公司Signal processing method of resistance type touch control panel
CN101505417A (en)*2008-02-082009-08-12索尼株式会社Time-stamp addition apparatus, time-stamp addition method and time-stamp addition program
US7603103B1 (en)*2005-06-022009-10-13Sprint Spectrum L.P.Banded billing and associated invoice generation for communication service
CN101729709A (en)*2008-11-032010-06-09中国移动通信集团广西有限公司Method and device for processing branch ticket

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1534925A (en)*2003-04-012004-10-06华为技术有限公司 A method of real-time section billing
CN101295220A (en)*2004-01-072008-10-29仁宝电脑工业股份有限公司Signal processing method of resistance type touch control panel
CN1855975A (en)*2005-04-202006-11-01中兴通讯股份有限公司Method and system for realizing business division by one-key stroke
US7603103B1 (en)*2005-06-022009-10-13Sprint Spectrum L.P.Banded billing and associated invoice generation for communication service
CN101505417A (en)*2008-02-082009-08-12索尼株式会社Time-stamp addition apparatus, time-stamp addition method and time-stamp addition program
CN101729709A (en)*2008-11-032010-06-09中国移动通信集团广西有限公司Method and device for processing branch ticket

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张健 等: "基于切割话单的精确计费处理机制", 《福建电脑》*

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104506371A (en)*2015-01-042015-04-08华为技术有限公司Method and device for management of application programming interface (API) call records
CN105848127A (en)*2015-01-162016-08-10中国移动通信集团河北有限公司Accurate ticket supplementing method and apparatus
CN107154857A (en)*2017-04-182017-09-12北京思特奇信息技术股份有限公司The method and device that a kind of flow and expense double-core subtract
CN108734495A (en)*2017-04-202018-11-02腾讯科技(深圳)有限公司A kind of resource information of promotion message determines method, host, server and system
CN108989140A (en)*2017-06-052018-12-11中移信息技术有限公司A kind of test method of flow alerting delay, apparatus and system
CN109981911A (en)*2017-12-272019-07-05中国移动通信集团山东有限公司A kind of calculation method and device optimizing talk business ticketing expense
CN109618070A (en)*2018-12-032019-04-12中国移动通信集团江苏有限公司 Bill charging method, device, equipment and medium
CN109618070B (en)*2018-12-032021-03-23中国移动通信集团江苏有限公司 Bill charging method, device, equipment and medium
CN113645050A (en)*2020-05-112021-11-12中国移动通信集团湖北有限公司Method and device for combining call ticket gradients of large-volume user and computing equipment
CN113645050B (en)*2020-05-112024-02-23中国移动通信集团湖北有限公司Large-traffic user ticket gradient merging method and device and computing equipment
CN114554429A (en)*2020-11-252022-05-27亚信科技(中国)有限公司Charging method, charging device, electronic equipment and computer readable storage medium

Also Published As

Publication numberPublication date
CN102387486B (en)2015-02-04

Similar Documents

PublicationPublication DateTitle
CN102387486B (en)Method and device for charging general packet radio service (GPRS) partition bill
CN105046524B (en)A kind of method of telephone expenses set meal analysis with recommending
KR101160377B1 (en)Converged prepaid and postpaid charging
CN102595364B (en)Charging system
CN102685709B (en)Method and device for auditing charging
CN102083042B (en)Charging method and device of mobile data services
CN110493016B (en)Flow service charging method and device
CN101436940B (en)Charging control method and charging system and relevant equipment
CN101110877B (en) A method and system for realizing integrated billing
CN101022488B (en) A billing method, system and account period switching module
CN102769838A (en) Mobile terminal tariff acquisition method, mobile terminal and tariff acquisition system
CN105721174A (en)Charging method, charging system and charging terminal
CN106209392A (en)The online method and device paid
CN102256028B (en)Charging method and device for over-length telephone bill
CN101729709B (en)Method and device for processing branch ticket
CN109327815B (en) Income calculation method and device for a logic station
CN101562775B (en)Method for realizing prepayment intelligent network service of real-time accumulated donation and system thereof
CN104717625A (en)Credit control processing method and device
CN102232302B (en) A kind of cost reapproval method and related device
CN102083050A (en)Method, system and charging subsystem for sharing free resource in group users
CN102149063A (en)Method, device and system for charging prepayment
CN100442697C (en) Billing method and system thereof
CN1316784C (en)Method for realizing batched communication business valuation
CN108270580B (en)Reminding method, device and system for online charging
CN102308604A (en) Cluster online charging method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp