Segmented traffic charging method and device and electronic equipment

By obtaining monthly usage data in Internet of Vehicles traffic billing and applying segmented billing rules to calculate the monthly traffic expenses, the problem that existing technology cannot achieve cross-month billing, and the cost calculation consistency and accuracy are achieved during the billing cycle.

CN119892535APending Publication Date: 2025-04-25CHINA UNICOM SMART CONNECTION TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411920192.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The existing Internet of Vehicles traffic billing system cannot effectively realize cross-month billing, and lacks a mechanism to deal with the complex relationship between monthly usage and billing cycle segmentation.

Method used

By obtaining the monthly usage data during the billing cycle and calculating the monthly traffic charges according to the preset segmented billing rules, outputting the current month's traffic charges. The method includes determining the starting and ending amounts of each segment interval, judging the segment interval where the sum of the cumulative usage data and the current monthly usage data is located, and calculating the corresponding expenses based on the interval price.

Benefits of technology

The cross-month billing of Internet of Vehicles traffic is realized, and the cost calculations during the entire billing cycle are seamlessly processed, ensuring the consistency and accuracy of the cost calculations, and solving the shortcomings of the existing technology in handling cross-monthly traffic billing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892535A_ABST
    Figure CN119892535A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of Internet of Vehicles, and discloses a traffic segmented charging method and device and electronic equipment, and the method comprises the steps: obtaining monthly usage data in a charging period; calculating the traffic cost of each month in the charging period according to a preset segmented charging rule in combination with the monthly usage data; and outputting the flow cost of the current month. According to the method, the cross-month segmentation condition in the charging period and the traffic use complexity of the Internet of Vehicles are comprehensively considered, the traffic cost of each month is calculated by obtaining the monthly consumption data in the charging period and combining the preset segmentation charging rule, the cost in each interval can be accurately identified and calculated, and the charging efficiency of the Internet of Vehicles is improved. And a transparent and reasonable charging result is provided for a vehicle user and an operator. Meanwhile, seamless processing of cross-monthly charging is achieved, consistency and accuracy of cost calculation in the whole charging period are ensured, and the defect that time is wasted when a cross-monthly flowmeter is processed in the prior art is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle networking, and in particular to a method, device, electronic device and computer-readable storage medium for flow segmentation billing. Background Art

[0002] In the field of Internet of Vehicles, data traffic is not only an important consideration for users to choose services, but also a key support for intelligent transportation systems and vehicle intelligence. With the rapid development of mobile communication technology, the demand for data traffic in the Internet of Vehicles has shown explosive growth, which requires the billing system to adapt to longer billing cycles to better reflect the actual usage of vehicles and data consumption patterns. In the existing traffic billing system, operators usually use a single rate system or a simple multi-rate system to calculate users' traffic costs. These billing methods are mainly based on monthly or shorter cycles for easy management and billing.

[0003] However, the traffic usage of the Internet of Vehicles has its own particularity. For example, factors such as the frequency of vehicle use, driving route and time will affect the consumption of data traffic, making the traffic usage pattern more complex and changeable. The existing billing method can no longer meet the demand for longer billing cycles for Internet of Vehicles traffic, and lacks an effective mechanism to handle the complex relationship between monthly usage and billing cycle segments.

[0004] Therefore, how to implement cross-monthly billing of Internet of Vehicles traffic is a technical problem that technicians in this field need to solve. Summary of the invention

[0005] In order to solve the problem that the existing technology cannot realize cross-monthly billing of Internet of Vehicles traffic, the present invention provides a method, device, electronic device and computer-readable storage medium for segmented traffic billing.

[0006] A method for segmented traffic billing, comprising:

[0007] Get monthly usage data within the billing period;

[0008] Calculate the monthly traffic fee in the billing cycle according to the preset segmented billing rules combined with the monthly usage data; the segmented billing rules include multiple segmented intervals and the interval price corresponding to each segmented interval;

[0009] Output the traffic cost of the current month.

[0010] Optionally, the calculating the traffic fee for each month in the billing period according to the preset segmented billing rule in combination with the monthly usage data includes:

[0011] Determine the starting amount and the ending amount of each segment interval according to the segment billing rule;

[0012] Determine the usage data and cumulative usage data of the current month according to the monthly usage data; the cumulative usage data is the sum of all usage data from the start month of the billing cycle to the previous month;

[0013] According to the starting usage and the ending usage of each segmented interval, the segmented interval where the accumulated usage data is located is determined as the first billing interval;

[0014] Determining whether the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval;

[0015] If not, the traffic fee for the current month is determined according to the interval price corresponding to the first billing interval and the usage data of the current month.

[0016] Optionally, the interval price includes an interval unit price;

[0017] The determining the traffic fee for the current month according to the interval price corresponding to the first billing interval and the usage data for the current month includes:

[0018] The product of the interval unit price corresponding to the first billing interval and the usage data of the current month is determined as the traffic fee of the current month.

[0019] Optionally, the method further includes:

[0020] When the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval, determining the segment interval where the sum of the accumulated usage data and the usage data of the current month is located as the second billing interval;

[0021] Determine the difference between the end usage of the first billing interval and the accumulated usage data as a first difference, and calculate a first traffic fee according to the first difference and the interval price corresponding to the first billing interval;

[0022] Determine the difference between the sum of the accumulated usage data and the usage data of the current month and the starting usage of the second billing interval as a second difference, and calculate the second traffic fee according to the second difference and the interval price corresponding to the second billing interval;

[0023] When there is no other segmented interval between the first billing interval and the second billing interval, the sum of the first traffic fee and the second traffic fee is determined as the traffic fee for the current month;

[0024] When there are other segmented intervals between the first billing interval and the second billing interval, the third traffic fee is calculated based on the difference between the end usage and the starting usage of the other segmented intervals and the interval price corresponding to the other segmented intervals, and the sum of the first traffic fee, the second traffic fee and the third traffic fee is determined as the traffic fee for the current month.

[0025] Optionally, the interval price includes an interval total price;

[0026] The calculating the first traffic fee according to the first difference and the interval price corresponding to the first charging interval includes:

[0027] Determine the first traffic fee as zero;

[0028] The calculating the second traffic fee according to the second difference and the interval price corresponding to the second charging interval includes:

[0029] The total price of the interval corresponding to the second billing interval is determined as the second traffic fee.

[0030] Optionally, the method further includes:

[0031] In response to the input modification request, the segmented charging rule is modified.

[0032] Optionally, the method further includes:

[0033] In response to the input adjustment request, the billing cycle is adjusted.

[0034] A flow segmentation billing device, comprising:

[0035] The acquisition module is used to obtain monthly usage data within the billing cycle;

[0036] A billing module, used to calculate the monthly traffic fee in the billing period according to a preset segmented billing rule combined with the monthly usage data; the segmented billing rule includes a plurality of segmented intervals and an interval price corresponding to each segmented interval;

[0037] Output module, used to output the traffic cost of the current month.

[0038] An electronic device, comprising:

[0039] A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for traffic segmentation billing as described in any one of the above items is implemented.

[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for flow segmentation billing as described in any one of the above.

[0041] The method for segmented traffic billing provided in the embodiment of the present invention obtains monthly usage data within a billing cycle; calculates the traffic fee for each month within the billing cycle according to the preset segmented billing rules combined with the monthly usage data; and finally outputs the traffic fee for the current month. The present invention comprehensively considers the situation of cross-month segmentation within the billing cycle and the complexity of traffic usage in the Internet of Vehicles. By obtaining the monthly usage data within the billing cycle and calculating the traffic fee for each month in combination with the preset segmented billing rules, it can accurately identify and calculate the fees within each interval, providing a transparent and reasonable billing result for vehicle users and operators. At the same time, the present invention realizes seamless processing of cross-monthly billing, ensures the consistency and accuracy of fee calculation within the entire billing cycle, and solves the shortcomings of the prior art in processing cross-monthly traffic billing. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0043] Figure 1 A flow chart of a method for flow segmentation billing provided by an embodiment of the present invention;

[0044] Figure 2 for Figure 1 A flowchart of an actual performance of S02 in a method for providing segmented traffic billing;

[0045] Figure 3 for Figure 1 A flowchart of another practical expression of S02 in a provided method for segmented traffic billing;

[0046] Figure 4 A schematic diagram of the structure of a flow segmentation billing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0048] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0050] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0051] In the field of Internet of Vehicles, data traffic is not only an important consideration for users to choose services, but also a key support for intelligent transportation systems and vehicle intelligence. With the rapid development of mobile communication technology, the demand for data traffic in the Internet of Vehicles has shown explosive growth, which requires the billing system to adapt to longer billing cycles to better reflect the actual usage of vehicles and data consumption patterns. In the existing traffic billing system, operators usually use a single rate system or a simple multi-rate system to calculate users' traffic costs. These billing methods are mainly based on monthly or shorter cycles for easy management and billing.

[0052] However, the traffic usage of the Internet of Vehicles has its own particularity. For example, factors such as the frequency of use of the vehicle, the driving route and time will affect the consumption of data traffic, making the traffic usage pattern more complex and changeable. The existing billing method can no longer meet the demand for longer billing cycles for Internet of Vehicles traffic, and lacks an effective mechanism to deal with the complex relationship between monthly usage and billing cycle segments. Therefore, the present invention provides a method for segmented traffic billing to solve the above problems.

[0053] Please refer to Figure 1 , is a flow chart of a method for flow segmentation billing provided by an embodiment of the present invention, comprising the following steps:

[0054] Step S01, obtaining monthly usage data within a billing cycle.

[0055] In this embodiment, the system will collect and record the specific values ​​of the data traffic used by the user each month within a certain billing period (e.g., one year, six months, or three months). These data are the basis for the billing system to calculate the user's monthly traffic fee, reflecting the user's actual data usage in each billing month, and providing accurate data support for subsequent billing.

[0056] In some embodiments, by accurately recording the monthly traffic usage, the system can gain insights into user behavior, help optimize network resource allocation, predict future traffic demand, and develop more targeted marketing strategies. At the same time, transparent monthly usage data can also enhance user trust in the billing process, reduce disputes caused by unclear billing, and thus improve user satisfaction and loyalty.

[0057] In some embodiments, the process of obtaining monthly usage data within a billing cycle may specifically include:

[0058] Metering tools integrated into mobile communication devices or connected car systems can be used to track and record users' monthly data traffic usage in real time during each billing cycle. Metering tools can automatically capture and store specific information about data usage, such as the total amount of data used, the time and frequency of use, etc. At the same time, in order to ensure the accuracy and completeness of the data, operators can also calibrate metering tools regularly.

[0059] In some embodiments, the method may further include:

[0060] In response to the input adjustment request, the billing cycle is adjusted.

[0061] This embodiment improves the flexibility of the traffic segment billing method. By responding to input adjustment requests, the billing cycle is adjusted to adapt to market changes and fluctuations in user demand. It allows operators to adjust the length of the billing cycle or fee structure based on seasonal factors, special promotions or user feedback, thereby improving the adaptability of the billing system and user satisfaction.

[0062] Step S02, calculating the traffic fee for each month in the billing cycle according to the preset segmented billing rules combined with the monthly usage data.

[0063] The segmented charging rules include multiple segmented intervals and interval prices corresponding to each segmented interval.

[0064] In this embodiment, the monthly data charges for users are determined based on a series of predefined traffic usage intervals and corresponding prices. This mechanism divides traffic usage into multiple intervals, each corresponding to a different price point, thus forming a segmented billing model. This model allows operators to provide differentiated pricing for different data usage, thereby encouraging users to choose the most suitable traffic package according to their needs, and also provides operators with a more flexible revenue management method. By accurately matching the user's monthly usage data with the segmented billing rules, this method can ensure fairness and transparency in billing, while encouraging users to optimize data consumption based on their actual usage.

[0065] In some embodiments, the collected monthly usage data can be matched with the preset segmented billing rules to calculate the monthly traffic charges. For each month's usage, the system will calculate the charges based on which segmented interval or intervals the usage falls into. For the traffic used in each segmented interval, the system will calculate the charges based on the price of the interval, and add up the charges for each interval to obtain the total traffic charges for each month.

[0066] In some embodiments, the method may further include:

[0067] In response to the input modification request, the segmented charging rules are modified.

[0068] This embodiment modifies the segmented billing rules by responding to the input modification request, allowing the billing rules to be updated in a timely manner according to market changes, policy adjustments or user feedback, ensuring that the billing system is always consistent with current conditions, thereby improving the responsiveness and flexibility of the billing system, enabling it to quickly adapt to new business needs or user preferences, thereby maintaining competitiveness and ensuring billing fairness and user satisfaction.

[0069] Step S03, output the traffic fee for the current month.

[0070] In this embodiment, after calculating the monthly traffic usage fee, the system will provide a clear report or bill showing the traffic fees incurred by the user in the current month, so as to ensure that the user can timely understand their traffic consumption and corresponding fees, so as to better manage and control their data usage. This process not only improves the transparency of billing, but also allows users to adjust future data usage habits according to the current month's fees to avoid overspending.

[0071] In some embodiments, the output of the traffic fee for the current month mentioned in step S03 may specifically be:

[0072] The system summarizes the calculation results and specifically extracts the cost data for the current month. The current month's traffic cost information is presented to users through bills, SMS notifications, mobile applications or online account management platforms, ensuring that they can easily access and understand their consumption details.

[0073] Based on the above technical solution, the method of segmented traffic billing provided in the embodiment of the present invention obtains the monthly usage data within the billing cycle; calculates the traffic fee for each month within the billing cycle according to the preset segmented billing rules combined with the monthly usage data; and finally outputs the traffic fee for the current month. The present invention comprehensively considers the situation of cross-month segmentation within the billing cycle and the complexity of the use of Internet of Vehicles traffic. By obtaining the monthly usage data within the billing cycle and calculating the traffic fee for each month in combination with the preset segmented billing rules, it can accurately identify and calculate the fees within each interval, providing a transparent and reasonable billing result for vehicle users and operators. At the same time, the present invention realizes seamless processing of cross-monthly billing, ensures the consistency and accuracy of fee calculation within the entire billing cycle, and solves the shortcomings of the prior art in processing cross-monthly traffic billing.

[0074] Please refer to Figure 2 ,for Figure 1 A flowchart of an actual performance of S02 in a method for providing segmented traffic billing. In some embodiments, the calculation of the traffic fee for each month in the billing cycle according to the preset segmented billing rules combined with the monthly usage data mentioned in step S02 may specifically include the following steps:

[0075] Step S11, determining the starting amount and the ending amount of each segment interval according to the segment charging rule.

[0076] In this embodiment, the starting usage and ending usage of each segmented interval are determined in order to achieve refined traffic billing management. This approach allows the system to apply different rates according to different traffic usage intervals. When implementing traffic billing, it is first necessary to clearly define the boundaries of each segmented interval. Specifically, a starting point (i.e., the minimum usage of the interval) and an ending point (the maximum usage of the interval) are set for each segmented interval, so that the system can apply different rates according to different segmented intervals, and then automatically classify the usage into the corresponding segmented interval according to the user's actual traffic usage, and calculate the fees accordingly.

[0077] In some embodiments, the starting and ending usage of each segment interval are determined, and a billing model can be designed based on data analysis, market research, and cost considerations. This involves setting a series of thresholds to define the boundaries of different traffic usage intervals.

[0078] For example, the segmented billing rule may specifically be:

[0079] The first segment interval: [0, 5GB], the interval price is 1GB / 5 yuan;

[0080] The second segment: (5GB, 10GB], 1GB / 8 yuan;

[0081] The third segment: (10GB, 15GB], 1GB / 10 yuan;

[0082] The fourth segment: (15GB, 20GB], 1GB / 12 yuan;

[0083] The fifth segment: (20GB, +∞), 1GB / 15 yuan.

[0084] The starting usage of each interval is the minimum flow value of the interval, and the ending usage is the maximum flow value of the interval or the starting usage of the next interval. Next, the system automatically identifies the user's monthly usage data and matches it with these preset intervals so that the corresponding rates can be applied correctly. This is usually done automatically through billing software or management systems to ensure that each user's usage can be accurately classified and billed according to the corresponding price range.

[0085] In this embodiment, the end usage of the last segment interval can be positive infinity, which means that the last segment interval has no upper limit and can cover all traffic usage that exceeds all previous segment intervals. This design allows the billing system to manage very high traffic usage and ensure that the billing rules can apply to all possible traffic consumption situations.

[0086] Step S12, determining the usage data of the current month and the cumulative usage data according to the monthly usage data.

[0087] The cumulative usage data is the sum of all usage data from the start month of the billing cycle to the previous month.

[0088] In this embodiment, during the billing cycle, the system will track the traffic usage of each month and record the specific usage of the current month. At the same time, the system will also calculate the cumulative total usage of each month from the start of the billing cycle to the current month, that is, the cumulative usage data. The cumulative usage data reflects the total traffic usage of the user from the start of the billing cycle to the current month, and is the key basis for determining the current billing interval of the user and its fees. This process involves detailed recording and accumulation of the user's monthly traffic usage to ensure the accuracy and continuity of billing.

[0089] For example, assuming the billing cycle is 6 months, the usage in January is 2.5GB, the usage in February is 2GB, the usage in March is 4GB, the usage in April is 3.3GB, the usage in May is 2.2GB, and the usage in June is 0.3GB. Then, based on the monthly usage data, it can be determined that the usage data for the current month is 0.3GB, and the cumulative usage data is 2.5GB+2GB+4GB+3.3GB+2.2GB=14.6GB.

[0090] The purpose of this is to ensure the continuity and accuracy of billing. This practice can track the user's traffic usage trends throughout the billing cycle, helping the system to accurately match the user's cumulative usage with the preset segmented billing rules, thereby calculating the correct fee. This method avoids billing errors caused by data gaps between months, and ensures that billing consistency and fairness are maintained even across months or billing cycles.

[0091] Step S13: According to the starting usage and ending usage of each segmented interval, the segmented interval where the accumulated usage data is located is determined as the first billing interval.

[0092] In this embodiment, the system will compare the user's cumulative usage data with the range of each segment interval according to the preset segmented billing rules to determine the billing interval the user is currently in. The interval price corresponding to the first billing interval will be used to calculate the user's current monthly traffic fee to ensure the accuracy and rationality of the billing.

[0093] For example, according to the above segmented billing rule, it can be determined that the segmented interval where the cumulative usage data 14.6GB is located is the third segmented interval (10GB, 15GB], and the third segmented interval is determined as the first billing interval.

[0094] Step S14, determining whether the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval.

[0095] If not, execute step S15.

[0096] In this embodiment, it is determined whether the total usage of the user exceeds the limit of the current billing interval by judging whether the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval. If the sum does not exceed the upper limit of the first billing interval, the system will execute step S15 to calculate the traffic fee of the current month based on the interval price of the first billing interval and the actual usage of the current month.

[0097] For example, assuming that the usage data for the current month (June) is 0.3GB, the cumulative usage data is 14.6GB, and the end usage of the first billing interval is 15GB, it can be determined that the sum of the cumulative usage data and the usage data for the current month is 14.9GB, which is less than the end usage of the first billing interval of 15GB, then step S15 is executed.

[0098] If the total exceeds the end usage of the first billing interval, it means that the user's traffic usage has entered the next segmented interval, and the fee needs to be calculated according to the interval price of the next segmented interval. This process ensures the accuracy of billing and can correctly apply segmented billing rules based on the user's traffic usage.

[0099] Step S15, determining the traffic fee for the current month according to the interval price corresponding to the first billing interval and the usage data of the current month.

[0100] In this embodiment, when the sum of the accumulated usage data and the current monthly usage data does not exceed the end usage of the first billing interval, the system will use the price standard of this interval to calculate the fee. By matching the user's actual usage with the corresponding price interval, the fee that the user should pay within the first billing interval can be accurately calculated, avoiding miscalculation of usage exceeding or below the interval, and ensuring transparency and rationality of billing.

[0101] In some embodiments, the interval price may be specifically an interval unit price. On this basis, as mentioned in step S15, the flow fee for the current month is determined according to the interval price corresponding to the first billing interval and the usage data of the current month, which may be specifically:

[0102] The product of the interval unit price corresponding to the first billing interval and the usage data of the current month is determined as the traffic fee of the current month.

[0103] For example, assuming that the usage data for the current month (June) is 0.3 GB, and the unit price for the first billing interval is 1 GB / 10 yuan, the traffic fee for the current month is determined to be 3 yuan.

[0104] This embodiment uses the interval unit price to calculate the current month's traffic fee. When the sum of the cumulative usage data and the current month's usage data does not exceed the end usage of the first billing interval, the unit price of the first billing interval is directly multiplied by the user's current month's usage, and the result is used as the fee for the current month. This process simplifies the billing process, making the fee calculation faster and easier to understand.

[0105] In some embodiments, the interval price may also be the total interval price. On this basis, as mentioned in step S15, the traffic fee for the current month is determined according to the interval price corresponding to the first billing interval and the usage data of the current month, which may be:

[0106] Set the traffic fee for the current month to zero.

[0107] In this embodiment, the interval price of the first billing interval is a fixed total price, rather than a unit price based on usage. When the sum of the user's cumulative usage data and the usage data of the current month does not exceed this interval, the traffic fee of the current month can be determined to be zero. Because when the user uses traffic within the usage range covered by the fixed total price, there is no need to pay for additional usage. This means that the traffic fee of the previous month already includes the usage cost of this month, thereby providing users with a prepaid billing model, reducing the complexity of monthly billing and potential additional costs.

[0108] Based on the above technical solution, this embodiment can accurately identify the user's current billing interval by determining the starting usage and ending usage of each segmented interval, as well as the cumulative usage data, and calculate the fee accordingly, avoiding ambiguity and errors in the billing process and ensuring the accuracy of traffic billing.

[0109] Please refer to Figure 3 ,for Figure 1 A flowchart of another practical expression of S02 in a method for providing segmented traffic billing. Based on the above embodiments, in some embodiments, after executing step S14 to determine whether the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval, the following may also be performed: Figure 3 Steps shown:

[0110] Step S21, when the sum of the cumulative usage data and the usage data of the current month is greater than the end usage of the first billing interval, the segment interval where the sum of the cumulative usage data and the usage data of the current month is located is determined as the second billing interval.

[0111] In this embodiment, when the sum of the cumulative usage data and the current month's usage data exceeds the end usage of the first billing interval, this condition triggers the determination of the second billing interval. Specifically, after adding the user's cumulative usage to the current month's usage, whichever new segmented interval falls within it is identified as the second billing interval. This process is a key link in the segmented billing process, ensuring that when the user's total usage exceeds the initially set billing interval, it can be correctly identified and transferred to the next corresponding billing interval, so that the excess usage can be accurately billed.

[0112] For example, assuming that the usage data for the current month (June) is 4GB, the cumulative usage data is 14.6GB, and the end usage of the first billing interval is 15GB, it can be determined that the sum of the cumulative usage data and the usage data for the current month is 18.6GB, which is greater than the end usage of the first billing interval of 15GB. At this time, the segmented interval where the sum of the cumulative usage data and the usage data for the current month is located is determined to be the fourth segmented interval (15GB, 20GB], and the fourth segmented interval is determined as the second billing interval.

[0113] Step S22: determine the difference between the end usage of the first billing interval and the accumulated usage data as a first difference, and calculate the first traffic fee according to the first difference and the interval price corresponding to the first billing interval.

[0114] In this embodiment, the first difference is the difference between the end usage of the first billing interval and the cumulative usage data, and the first difference represents the portion of the previous month of the current month that has not been fully used in the first billing interval. Therefore, in order to accurately calculate the cost of each interval when the usage spans multiple segmented intervals, this embodiment first calculates the actual cost in the first billing interval, i.e., the first traffic cost, based on the first difference and the interval price corresponding to the first billing interval, to ensure the accuracy and rationality of the entire billing process.

[0115] In some embodiments, when the interval price is specifically the interval total price, as mentioned in step S22, the first traffic fee is calculated according to the first difference and the interval price corresponding to the first charging interval, which can be specifically:

[0116] The first traffic fee is determined to be zero.

[0117] In this embodiment, when the interval price is a fixed interval total price, if the accumulated usage data has not yet reached the end usage of the first billing interval, then the "calculating the first traffic fee according to the first difference and the interval price corresponding to the first billing interval" mentioned in step S22 can actually be simplified to determining the first traffic fee as zero. This is because in this case, the user has not used up all the traffic in the first billing interval, so no additional fees are required, that is, the first traffic fee is zero.

[0118] In some embodiments, when the interval price is specifically an interval unit price, the first traffic fee is calculated according to the first difference and the interval price corresponding to the first charging interval mentioned in step S22, which can also be specifically:

[0119] The product of the first difference and the interval price corresponding to the first charging interval is determined as the first traffic fee.

[0120] For example, assuming that the cumulative usage data is 14.6GB, the end usage of the first billing interval is 15GB, and the interval price corresponding to the first billing interval is 1GB / 10 yuan, then the first difference can be 15GB-14.6GB=0.4GB, and the first traffic fee is 4 yuan.

[0121] Step S23, determining the difference between the sum of the accumulated usage data and the usage data of the current month and the starting usage of the second billing interval as the second difference, and calculating the second traffic fee according to the second difference and the interval price corresponding to the second billing interval.

[0122] In this embodiment, the second difference represents the difference between the user's total usage (i.e., the sum of the cumulative usage data and the usage data of the current month) and the starting usage of the second billing interval, and the second difference is the amount of traffic used in the second billing interval, which is used to calculate the second traffic fee. This process ensures that when the user's total usage spans multiple billing intervals, the traffic fee in the second billing interval, i.e., the second traffic fee, can be accurately evaluated, thereby achieving accurate billing.

[0123] On the basis of the above embodiment, in some embodiments, when the interval price is specifically the interval total price, the second traffic fee is calculated according to the second difference and the interval price corresponding to the second billing interval mentioned in step S23, which can be specifically:

[0124] The total price of the interval corresponding to the second billing interval is determined as the second traffic fee.

[0125] In this embodiment, when the sum of the accumulated usage data and the current month's usage data falls within the second billing interval, the second traffic fee is directly determined as the fixed total price of the second billing interval. No matter how much traffic the user actually uses in the second billing interval, as long as the sum of the accumulated usage of the user and the current month's usage falls within this interval, the fee is calculated according to the total price of the interval. This process simplifies the billing process, avoids the complexity of calculating fees based on usage differences, directly applies a fixed total price, and provides users with a clear and predictable fee standard.

[0126] In some embodiments, when the interval price is specifically an interval unit price, as mentioned in step S23, the second traffic fee is calculated according to the second difference and the interval price corresponding to the second charging interval, which can also be specifically:

[0127] The product of the second difference and the interval price corresponding to the second charging interval is determined as the second traffic fee.

[0128] For example, assuming that the usage data for the current month (June) is 4GB, the cumulative usage data is 14.6GB, the starting usage of the second billing interval is 15GB, and the interval price corresponding to the second billing interval is 1GB / 12 yuan, then it can be determined that the sum of the cumulative usage data and the current month's usage data is 18.6GB, the second difference is 18.6GB-15GB=3.6GB, and the second traffic fee is 3.6*12=43.2 yuan.

[0129] Step S24: when there is no other segmented interval between the first billing interval and the second billing interval, the sum of the first traffic fee and the second traffic fee is determined as the traffic fee for the current month.

[0130] In this embodiment, when there are no other segmented intervals between the first billing interval and the second billing interval, it proves that the user's total usage (the sum of the cumulative usage data and the usage data of the current month) only spans two segmented intervals, namely the first billing interval and the second billing interval. At this time, the system only needs to add the first traffic fee (i.e., the fee of the first billing interval) and the second traffic fee (i.e., the fee of the second billing interval), and the sum is the user's traffic fee for the current month.

[0131] For example, assuming that the usage data for the current month (June) is 4GB and the cumulative usage data is 14.6GB, the first billing interval is the third segment interval (10GB, 15GB], and the second billing interval is the fourth segment interval (15GB, 20GB], and there is no other segment interval between the two. The traffic fee for the current month is determined to be the sum of the first traffic fee and the second traffic fee, that is, 4+43.2=47.2 yuan.

[0132] Step S25, when there are other segmented intervals between the first billing interval and the second billing interval, the third traffic fee is calculated based on the difference between the ending usage and the starting usage of the other segmented intervals and the interval prices corresponding to the other segmented intervals, and the sum of the first traffic fee, the second traffic fee and the third traffic fee is determined as the traffic fee for the current month.

[0133] In this embodiment, when there are other segmented intervals between the first billing interval and the second billing interval, it proves that the user's total usage (the sum of the cumulative usage data and the usage data of the current month) spans three or more segmented intervals, namely the first billing interval, the second billing interval and other segmented intervals between the two. At this time, the system first determines the usage difference of these intermediate segmented intervals, that is, the difference between the end usage and the starting usage of each segmented interval, and then calculates the traffic fee of each segmented interval based on these differences and the corresponding interval prices, that is, the third traffic fee.

[0134] After that, the system adds the first traffic fee, the second traffic fee, and the third traffic fee together to get the traffic fee for the current month. This step ensures that the user's total usage in multiple billing intervals can be accurately calculated, and the fees for each interval can be reasonably accumulated to obtain the total traffic fee that the user should pay in the entire billing period.

[0135] For example, assuming that the usage data for the current month (June) is 8GB and the cumulative usage data is 14.6GB, it can be determined that the first billing interval is the third segment interval (10GB, 15GB], the sum of the usage data for the current month and the cumulative usage data is 22.6GB, and the second billing interval is the fifth segment interval (20GB, +∞). At this time, the second traffic fee is (22.6 -20)*15=39 yuan.

[0136] At this time, there is a fourth segmented interval (15GB, 20GB] between the first billing interval and the second billing interval, then the difference between the end usage and the starting usage of the fourth segmented interval is determined, that is, 20GB-15GB=5GB, the interval price corresponding to the fourth segmented interval is 1GB / 12 yuan, and the third traffic fee is calculated to be 5*12=60 yuan, then the traffic fee for the current month is 4+39+60=103 yuan.

[0137] Based on the above technical solution, this embodiment provides an accurate and flexible billing mechanism by subdividing the calculation process of traffic charges. When the sum of the user's cumulative usage data and the current monthly usage exceeds the first billing interval, the system not only calculates the cost of the excess part, but also calculates the costs of the initial interval and the excess interval separately, ensuring the accuracy of the billing. This embodiment can adapt to the different usage situations of users, and can ensure the reasonable distribution of costs regardless of how the user's usage changes. In addition, when there are multiple billing intervals, the method provides a comprehensive billing solution by calculating the cost of each interval and summing them, thereby ensuring the transparency and fairness of the entire billing process, and maintaining the consistency and accuracy of billing even in complex cross-interval usage situations.

[0138] Please refer to Figure 4 , is a structural diagram of a flow segment billing device provided by an embodiment of the present invention, and the flow segment billing device may include:

[0139] The acquisition module 100 is used to obtain monthly usage data within a billing period;

[0140] The billing module 200 is used to calculate the monthly traffic fee in the billing period according to the preset segmented billing rules combined with the monthly usage data; the segmented billing rules include multiple segmented intervals and the interval price corresponding to each segmented interval;

[0141] The output module 300 is used to output the traffic fee of the current month.

[0142] Based on the above embodiment, in a specific embodiment, the billing module 200 can be specifically used for:

[0143] Determine the starting and ending usage of each segment interval according to the segment billing rules;

[0144] Determine the usage data of the current month and the cumulative usage data based on the monthly usage data; the cumulative usage data is the sum of all usage data from the start month of the billing cycle to the previous month;

[0145] According to the starting usage and ending usage of each segmented interval, the segmented interval where the accumulated usage data is located is determined as the first billing interval;

[0146] Determine whether the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval;

[0147] If not, the traffic fee for the current month is determined according to the interval price corresponding to the first billing interval and the usage data of the current month.

[0148] Based on the above embodiment, in a specific embodiment, the interval price includes an interval unit price;

[0149] The billing module 200 may be specifically used for:

[0150] The product of the interval unit price corresponding to the first billing interval and the usage data of the current month is determined as the traffic fee of the current month.

[0151] Based on the above embodiment, in a specific embodiment, the billing module 200 can also be used for:

[0152] When the sum of the cumulative usage data and the usage data of the current month is greater than the end usage of the first billing interval, the segment interval where the sum of the cumulative usage data and the usage data of the current month is located is determined as the second billing interval;

[0153] Determine the difference between the end usage of the first billing interval and the accumulated usage data as a first difference, and calculate the first traffic fee according to the first difference and the interval price corresponding to the first billing interval;

[0154] The difference between the sum of the accumulated usage data and the usage data of the current month and the starting usage of the second billing interval is determined as a second difference, and the second traffic fee is calculated according to the second difference and the interval price corresponding to the second billing interval;

[0155] When there is no other segmented interval between the first billing interval and the second billing interval, the sum of the first traffic fee and the second traffic fee is determined as the traffic fee for the current month;

[0156] When there are other segmented intervals between the first billing interval and the second billing interval, the third traffic fee is calculated based on the difference between the ending usage and the starting usage of the other segmented intervals and the interval prices corresponding to the other segmented intervals, and the sum of the first traffic fee, the second traffic fee and the third traffic fee is determined as the traffic fee for the current month.

[0157] Based on the above embodiment, in a specific embodiment, the interval price includes the interval total price;

[0158] The billing module 200 may also be used to:

[0159] Determine the first traffic fee as zero;

[0160] The total price of the interval corresponding to the second billing interval is determined as the second traffic fee.

[0161] Based on the above embodiment, in a specific embodiment, the flow segmentation billing device may further include:

[0162] The modification module is used to modify the segmented billing rules in response to an input modification request.

[0163] Based on the above embodiment, in a specific embodiment, the flow segmentation billing device may further include:

[0164] The adjustment module is used to adjust the billing cycle in response to an input adjustment request.

[0165] This embodiment provides an electronic device, including a processor and a memory, the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, it implements the above-mentioned method of traffic segmentation billing. Its execution method and beneficial effects are similar and will not be repeated here.

[0166] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method of traffic segmentation billing is implemented. Its execution method and beneficial effects are similar and will not be repeated here.

[0167] It should be noted that although the above describes the various steps in a specific order, it does not mean that the various steps must be executed in the above specific order. In fact, some of these steps can be executed concurrently or even in a different order as long as the required functions can be achieved.

[0168] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for flow segmentation billing, characterized in that: include: Get monthly usage data within the billing period; Calculate the monthly traffic fee in the billing cycle according to the preset segmented billing rules combined with the monthly usage data; the segmented billing rules include multiple segmented intervals and the interval price corresponding to each segmented interval; Output the traffic cost of the current month.

2. The method according to claim 1, characterized in that The calculating of the traffic fee for each month in the billing cycle according to the preset segmented billing rules in combination with the monthly usage data includes: Determine the starting amount and the ending amount of each segment interval according to the segment billing rule; Determine the usage data and cumulative usage data of the current month according to the monthly usage data; the cumulative usage data is the sum of all usage data from the start month of the billing cycle to the previous month; According to the starting usage and the ending usage of each segmented interval, the segmented interval where the accumulated usage data is located is determined as the first billing interval; Determining whether the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval; If not, the traffic fee for the current month is determined according to the interval price corresponding to the first billing interval and the usage data of the current month.

3. The method according to claim 2, characterized in that The interval price includes the interval unit price; The determining the traffic fee for the current month according to the interval price corresponding to the first billing interval and the usage data for the current month includes: The product of the interval unit price corresponding to the first billing interval and the usage data of the current month is determined as the traffic fee of the current month.

4. The method according to claim 2, characterized in that: The method further comprises: When the sum of the accumulated usage data and the usage data of the current month is greater than the end usage of the first billing interval, determining the segment interval where the sum of the accumulated usage data and the usage data of the current month is located as the second billing interval; Determine the difference between the end usage of the first billing interval and the accumulated usage data as a first difference, and calculate a first traffic fee according to the first difference and the interval price corresponding to the first billing interval; Determine the difference between the sum of the accumulated usage data and the usage data of the current month and the starting usage of the second billing interval as a second difference, and calculate the second traffic fee according to the second difference and the interval price corresponding to the second billing interval; When there is no other segmented interval between the first billing interval and the second billing interval, the sum of the first traffic fee and the second traffic fee is determined as the traffic fee for the current month; When there are other segmented intervals between the first billing interval and the second billing interval, the third traffic fee is calculated based on the difference between the end usage and the starting usage of the other segmented intervals and the interval price corresponding to the other segmented intervals, and the sum of the first traffic fee, the second traffic fee and the third traffic fee is determined as the traffic fee for the current month.

5. The method according to claim 4, characterized in that The said interval price includes the total interval price; The calculating the first traffic fee according to the first difference and the interval price corresponding to the first charging interval includes: Determine the first traffic fee as zero; The calculating the second traffic fee according to the second difference and the interval price corresponding to the second charging interval includes: The total price of the interval corresponding to the second billing interval is determined as the second traffic fee.

6. The method according to claim 1, characterized in that The method further comprises: In response to the input modification request, the segmented charging rule is modified.

7. The method according to claim 1, characterized in that The method further comprises: In response to the input adjustment request, the billing cycle is adjusted.

8. A flow segmentation billing device, characterized in that: include: The acquisition module is used to obtain monthly usage data within the billing cycle; A billing module, used to calculate the monthly traffic fee in the billing period according to a preset segmented billing rule combined with the monthly usage data; the segmented billing rule includes a plurality of segmented intervals and an interval price corresponding to each segmented interval; Output module, used to output the traffic cost of the current month.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for traffic segmentation billing as described in any one of claims 1-7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for traffic segmentation billing as described in any one of claims 1 to 7 is implemented.