Processing method for short message charging of SIM (Subscriber Identity Module) card

By providing SIM cards with step-by-step pricing and flexible billing methods, the problem of simple billing of SIM card text messages is solved, and the effect of reducing customer costs and improving user stickiness is achieved.

CN119155638APending Publication Date: 2024-12-17BEIJING SHUMI NETWORK TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311652665.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

The existing SIM card SMS billing method is simple and cannot meet the demand for uninterrupted data collection throughout the month, resulting in increased customer costs and reduced user stickiness. It is impossible to provide ladder pricing strategies and daily billing methods, which affects customer cooperation enthusiasm.

Method used

Provide a SIM card SMS billing method, allowing customized ladder prices to different customers, realizing the start/stop operation of SMS services in daily units, and adopting monthly package packages and/or ladder billing methods to ensure that SMS traffic exceeds the limit. The SMS service can still be used normally when presetting the package.

Benefits of technology

Reduce customer cost pressure, provide close-fitting price customization services, improve service activity and user stickiness of operation and maintenance providers, and enhance customer cooperation enthusiasm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155638A_ABST
    Figure CN119155638A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to an SIM card short message charging processing method. The method comprises the following steps: configuring corresponding customer service configuration for each customer; configuring a corresponding card service configuration for each SIM card; performing short message service start / stop operation according to the card service configuration of each SIM card at a daily starting moment; counting the current-day short credit of each SIM card at the end moment of each day; forming a single-day short message record set by all single-day short message records of each SIM card in the last month on a settlement day at the beginning of each month; single-card short message charging is carried out according to the card service configuration of each SIM card, the customer service configuration and the single-day short message record set; and the billing of all the single cards of each customer is summed up to obtain corresponding customer billing data. According to the invention, the service activity of the operation and maintenance provider of the Internet of Things can be improved, and the user stickiness of the operation and maintenance provider is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a processing method for SIM card short message billing. Background Art

[0002] IoT operators will purchase a large number of SIM (Subscriber Identity Module) cards for use on IoT devices of different application customers. Each SIM card will generate a certain amount of SMS usage and corresponding SMS fees every month. At the beginning of each month, the operator will calculate the SMS fees of each SIM card and charge the application customers operation and maintenance fees based on the billing results. Currently, the SMS billing method of operators for SIM cards is relatively simple. They either customize a monthly package for the SIM card or customize a single SMS price. For SIM cards with packages, operators will track their SMS usage in real time every month. Once the usage reaches the total package amount, the SMS service for that month will be shut down, and the package fee will be charged at the beginning of the next month. For SIM cards without packages, the product of the total SMS amount of the previous month and the price of a single SMS will be charged in the next month.

[0003] Through research, we found that this simple billing method is not conducive to enhancing the user stickiness of operators: 1) Some customers' IoT devices need to collect data uninterruptedly throughout the month. If the SMS service is interrupted due to overage of the package, the business needs of such customers cannot be met. In this case, customers can only customize more expensive packages to circumvent this problem, which will undoubtedly increase customers' cost pressure and reduce user stickiness; 2) It is impossible to provide long-term cooperative customers with a tiered pricing strategy and short-term cooperative customers with a daily billing method, which will also reduce the cooperation enthusiasm and user stickiness of various customers. Summary of the invention

[0004] The purpose of the present invention is to provide a processing method, electronic device and computer-readable storage medium for SIM card SMS billing in view of the defects of the prior art. The present invention can customize different tiered prices for different customers, can provide SMS service start / stop operation on a daily basis for any SIM card of any customer, can flexibly bill any SIM card by monthly package and / or tiered billing method, and can ensure that any SIM card can use SMS service normally even when the SMS traffic exceeds the preset package traffic. The present invention can not only reduce the cost pressure of customers, but also provide personalized price customization services for long-term cooperative customers, and can also provide flexible daily billing services for short-term cooperative customers, thereby achieving the purpose of improving service activity and enhancing user stickiness.

[0005] To achieve the above object, a first aspect of an embodiment of the present invention provides a method for processing SIM card SMS billing, the method comprising:

[0006] The corresponding customer SMS service information configured for each first customer is recorded as the corresponding first customer service configuration and saved; the first customer service configuration includes a first customer identifier, a first SIM card identifier set and a first step price sequence; the first SIM card identifier set includes multiple first SIM card identifiers, each of which corresponds to a first SIM card; the first step price sequence is composed of multiple first step price sequences; the first step price includes a first step SMS quantity range and a first step SMS unit price;

[0007] The SIM card SMS service information corresponding to each first SIM card configuration is recorded as the corresponding first card service configuration and saved; the first card service configuration includes the second SIM card identifier, the first service type, the first package configuration and the first time period configuration; the first service type includes the first, second and third types; when the first service type is the first type, the first package configuration and the first time period configuration are both empty; when the first service type is the second type, the first time period configuration is empty, and the first package configuration consists of the total amount of first package SMS, the first package start month, the first package end month and the first package total price; when the first service type is the third type, the first package configuration is empty, and the first time period configuration consists of the first time period start date and the first time period end date;

[0008] At the beginning of each day, starting / stopping the SMS service of the day according to the first card service configuration of each first SIM card;

[0009] At the end of each day, the SMS usage of each first SIM card on that day is counted to obtain the corresponding first single-day SMS record and save it; the first single-day SMS record includes the third SIM card identifier and the total number of SMS messages in the first single day;

[0010] On the settlement day at the beginning of each month, a corresponding first single-day SMS record set is formed from all the first single-day SMS records of each of the first SIM cards in the previous month; single-card SMS billing is performed according to the first card service configuration, the first customer service configuration and the first single-day SMS record set corresponding to each of the first SIM cards to obtain corresponding first single-card billing data; and all the first single-card billing data of each of the first customers are summed up to obtain corresponding first customer billing data.

[0011] Preferably, in the first step price sequence, the range starting boundary value of the first step SMS quantity range of the next first step price is the sum of the range ending boundary value of the first step SMS quantity range of the previous first step price plus 1; the range starting boundary value and range ending boundary value of any first step SMS quantity range are integers greater than 0, and the range ending boundary value of any first step SMS quantity range is not less than the corresponding range starting boundary value.

[0012] Preferably, the starting / stopping operation of the SMS service on the same day according to the first card service configuration of each first SIM card specifically includes:

[0013] Each of the first SIM cards is traversed; and during the traversal, the first SIM card currently traversed is used as the corresponding current SIM card; and the first card service configuration of the current SIM card is used as the corresponding current card service configuration; and when the first service type of the current card service configuration is the third type, whether the current date matches the first time period start date of the current card service configuration is identified; if the current date matches the first time period start date of the current card service configuration, the current SIM card is enabled with a short message service through the short message service enabling interface of the telecommunications operator corresponding to the current SIM card; if the current date does not match the first time period start date of the current card service configuration, whether the current date matches the first time period end date of the current card service configuration is identified, and if so, the current SIM card is disabled with a short message service through the short message service disabling interface of the telecommunications operator corresponding to the current SIM card.

[0014] Preferably, the counting of the SMS usage of each of the first SIM cards on the day to obtain the corresponding first single-day SMS record and save it specifically includes:

[0015] The number of text messages of each card on that day is obtained from the text message usage query interface of the telecommunications operator corresponding to each of the first SIM cards as the corresponding first single-day total text message amount; and the SIM card identifier corresponding to each of the first SIM cards is used as the corresponding third SIM card identifier; and the corresponding first single-day text message record is composed of the third SIM card identifier corresponding to each of the first SIM cards and the first single-day total text message amount and is saved.

[0016] Preferably, performing single-card SMS billing according to the first card service configuration, the first customer service configuration and the first single-day SMS record set corresponding to each of the first SIM cards to obtain corresponding first single-card billing data specifically includes:

[0017] Take each of the first SIM cards as the corresponding current SIM card; take the first card service configuration corresponding to the current SIM card as the corresponding current card service configuration; take the first customer service configuration corresponding to the first SIM card identifier set where the first SIM card identifier matching the SIM card identifier of the current SIM card is located as the corresponding current customer service configuration; and calculate the total amount of all the first single-day text messages in the first single-day text message record set corresponding to the current SIM card and take the settlement result as the corresponding total amount of text messages of the previous month;

[0018] When the first service type of the current card service configuration is the first or third type, the first tiered price sequence of the current customer service configuration is used as the corresponding current tiered price sequence; and a type of single card SMS billing process is performed according to the total amount of SMS messages of the previous month and the current tiered price sequence to generate the corresponding first single card billing data;

[0019] When the first service type of the current card service configuration is the second type, the first step price sequence of the current customer service configuration is used as the corresponding current step price sequence; and the first package configuration of the current card service configuration is used as the corresponding current package configuration; and the corresponding current valid month range is composed of the first package start month and the first package end month of the current package configuration; and it is identified whether the month of the previous month meets the current valid month range; if the month of the previous month does not meet the current valid month range, a first-class single-card SMS billing process is performed according to the total amount of SMS messages of the previous month and the current step price sequence to generate the corresponding first single-card billing data; if the month of the previous month meets the current valid month range, a second-class single-card SMS billing process is performed according to the total amount of SMS messages of the previous month, the current package configuration and the current step price sequence to generate the corresponding first single-card billing data.

[0020] Further, the second-category single-card SMS billing process is performed according to the total amount of SMS messages last month, the current package configuration and the current tiered price sequence to generate the corresponding first single-card billing data, specifically including:

[0021] The total amount of the first package text messages and the total price of the first package configured in the current package are used as the corresponding total amount of the current package text messages and the current package total price;

[0022] If the total amount of SMS messages in the previous month is less than or equal to the total amount of SMS messages in the current package, the total price of the current package will be used as the corresponding first single card billing data;

[0023] If the total amount of text messages last month is greater than the total amount of text messages of the current package, the difference between the total amount of text messages last month and the total amount of text messages of the current package will be taken as the new total amount of text messages last month; and a type of single-card SMS billing processing will be performed based on the total amount of text messages last month and the current tiered price sequence to generate corresponding second single-card billing data; and the sum of the second single-card billing data and the total price of the current package will be taken as the corresponding first single-card billing data.

[0024] Furthermore, the single-card SMS billing process is performed according to the total amount of SMS in the previous month and the current tiered price sequence, specifically including:

[0025] Step 71, taking the first first-tier SMS quantity range in the current tiered price sequence as the corresponding current tiered SMS quantity range;

[0026] Step 72, taking the range start boundary value and the range end boundary value of the current step SMS quantity range as the corresponding current start boundary value and the current end boundary value; and taking the first step SMS unit price corresponding to the current step SMS quantity range as the corresponding current step SMS unit price;

[0027] Step 73, if the total amount of SMS in the previous month is greater than the current end boundary value, the sum of the difference between the current end boundary value and the current start boundary value plus 1 is used as the corresponding current step SMS quantity; and the product of the current step SMS quantity and the current step SMS unit price is used as the corresponding first step billing data;

[0028] Step 74, if the total amount of SMS in the previous month is less than or equal to the current end boundary value, the sum of the difference between the total amount of SMS in the previous month and the current start boundary value plus 1 is used as the corresponding current step SMS quantity; and the product of the current step SMS quantity and the current step SMS unit price is used as the corresponding first step billing data; and go to step 76;

[0029] Step 75, taking the next first-tier SMS quantity range in the current tiered price sequence as the new current tiered SMS quantity range, and returning to step 72;

[0030] Step 76, summing up all the first-tier billing data obtained and outputting the sum as the single-card billing data obtained from the current Class I single-card SMS billing processing.

[0031] A second aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;

[0032] The processor is used to be coupled to the memory, read and execute instructions in the memory, so as to implement the method described in the first aspect above;

[0033] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

[0034] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the method described in the first aspect.

[0035] The embodiments of the present invention provide a method for processing SIM card SMS billing, an electronic device, and a computer-readable storage medium. It can be seen from the above content that the embodiments of the present invention can customize different tiered prices for different customers, can provide SMS service start / stop operation on a daily basis for any SIM card of any customer, can flexibly charge any SIM card by monthly package and / or tiered billing method, and can ensure that any SIM card can use SMS service normally even when the SMS traffic exceeds the preset package traffic. The present invention can not only reduce the cost pressure of customers, but also provide personalized price customization services for long-term cooperative customers, and can also provide flexible daily billing services for short-term cooperative customers, thereby improving the service activity of operators and maintenance providers and enhancing the user stickiness of operators and maintenance providers. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a method for processing SIM card SMS billing provided in Embodiment 1 of the present invention;

[0037] Figure 2 A schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the 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.

[0039] Embodiment 1 of the present invention provides a method for processing SIM card SMS billing, such as Figure 1 A schematic diagram of a method for processing SIM card SMS billing provided in Embodiment 1 of the present invention is shown, which mainly includes the following steps:

[0040] Step 1, configuring corresponding customer SMS service information for each first customer, recording it as corresponding first customer service configuration and saving it;

[0041] Among them, the first customer service configuration includes a first customer identifier, a first SIM card identifier set and a first-tier price sequence; the first SIM card identifier set includes multiple first SIM card identifiers, each first SIM card identifier corresponds to a first SIM card; the first-tier price sequence is composed of multiple first-tier price rankings; the first-tier price includes a first-tier SMS quantity range and a first-tier SMS unit price.

[0042] Here, the first customer identifier is the unique identification code of the current customer; the first SIM card identifier and the second and third identifiers mentioned below all refer to the unique card identifier code of a first SIM card; in the first step price sequence, the range starting boundary value of the first step SMS quantity range of the next first step price is the sum of the range ending boundary value of the first step SMS quantity range of the previous first step price plus 1; the range starting boundary value and range ending boundary value of any first step SMS quantity range are both integers greater than 0, and the range ending boundary value of any first step SMS quantity range is not less than the corresponding range starting boundary value. Based on the configuration data of the first step price sequence, the embodiment of the present invention can provide any customer with a step price customization service.

[0043] For example, there are three first-tier prices in the first-tier price sequence: first-tier price 1 is {first-tier SMS quantity range [1,100], 0.08 yuan / message}, first-tier price 2 is {first-tier SMS quantity range [101,1000], 0.07 yuan / message}, and first-tier price 3 is {first-tier SMS quantity range [1001,∞], 0.06 yuan / message}.

[0044] Step 2, configuring corresponding SIM card SMS service information for each first SIM card as corresponding first card service configuration and saving;

[0045] Among them, the first card service configuration includes the second SIM card identification, the first service type, the first package configuration and the first time period configuration; the first service type includes the first, second and third types; when the first service type is the first type, the first package configuration and the first time period configuration are both empty; when the first service type is the second type, the first time period configuration is empty, and the first package configuration consists of the total number of first package text messages, the starting month of the first package, the ending month of the first package and the total price of the first package; when the first service type is the third type, the first package configuration is empty, and the first time period configuration consists of the first time period start date and the first time period end date.

[0046] Here, when the first service type is the first type, it means that the current SIM card has no customized package, and a tiered billing method is used when billing it; when the first service type is the second type, it means that the current SIM card has customized a text message package, and when billing it: 1) if the text message package is valid and the number of text messages does not exceed the package number, the text message package price is used for billing; 2) if the text message package is valid but the number of text messages exceeds the package number, the excess part is billed using a tiered billing method and the sum of the billing data of the excess part and the text message package price is used as the final billing result; 3) if the text message package has expired, a tiered billing method is used; when the first service type is the third type, it means that the current SIM card is billed on a daily basis, and the billing validity period is the effective period corresponding to the first time period configuration, and a tiered billing method is used for billing it. The embodiment of the present invention can provide a daily start / stop operation of the SMS service for any SIM card of any customer based on the configuration data of the first card service configuration, and can flexibly charge any SIM card according to a monthly package and / or a tiered billing method, thereby ensuring that any SIM card can use the SMS service normally even when the SMS traffic exceeds the preset package traffic.

[0047] Step 3, at the beginning of each day, start / stop the SMS service for the day according to the first card service configuration of each first SIM card;

[0048] Specifically, the method includes: traversing each first SIM card; and during the traversal, taking the currently traversed first SIM card as the corresponding current SIM card; and taking the first card service configuration of the current SIM card as the corresponding current card service configuration; and when the first service type of the current card service configuration is the third type, identifying whether the current date matches the first time period start date of the current card service configuration; if the current date matches the first time period start date of the current card service configuration, performing a short message service activation operation on the current SIM card through the short message service activation interface of the telecommunications operator corresponding to the current SIM card; if the current date does not match the first time period start date of the current card service configuration, identifying whether the current date matches the first time period end date of the current card service configuration, and if so, performing a short message service shutdown operation on the current SIM card through the short message service shutdown interface of the telecommunications operator corresponding to the current SIM card.

[0049] Here, the telecommunications operator SMS service activation / deactivation interface is a pre-set service operation interface of the telecommunications operator.

[0050] Step 4: At the end of each day, the SMS usage of each first SIM card is counted to obtain the corresponding first single-day SMS record and save it;

[0051] The SMS record of the first single day includes the third SIM card ID and the total number of SMS messages of the first single day;

[0052] Specifically, the method includes: obtaining the number of text messages of each card on that day from the text message usage query interface of the telecommunications operator corresponding to each first SIM card as the corresponding first single-day total text message amount; and using the SIM card identifier corresponding to each first SIM card as the corresponding third SIM card identifier; and forming the corresponding first single-day text message record with the third SIM card identifier corresponding to each first SIM card and the first single-day total text message amount and saving it.

[0053] Here, the telecommunications operator SMS usage query interface is a pre-set service operation interface of the telecommunications operator.

[0054] Step 5, on the settlement day at the beginning of each month, all first single-day SMS records of each first SIM card in the previous month form a corresponding first single-day SMS record set; and perform single-card SMS billing according to the first card service configuration, first customer service configuration and first single-day SMS record set corresponding to each first SIM card to obtain corresponding first single-card billing data; and perform sum calculation on all first single-card billing data of each first customer to obtain corresponding first customer billing data;

[0055] Specifically, it includes: step 51, forming a corresponding first single-day text message record set from all first single-day text message records of each first SIM card in the previous month;

[0056] Step 52, performing single-card SMS billing according to the first card service configuration, the first customer service configuration and the first single-day SMS record set corresponding to each first SIM card to obtain corresponding first single-card billing data;

[0057] Specifically, it includes: step 521, taking each first SIM card as the corresponding current SIM card; taking the first card service configuration corresponding to the current SIM card as the corresponding current card service configuration; taking the first customer service configuration corresponding to the first SIM card identifier set where the first SIM card identifier matching the SIM card identifier of the current SIM card is located as the corresponding current customer service configuration; and calculating the total amount of all first single-day text messages of the first single-day text message record set corresponding to the current SIM card and taking the settlement result as the corresponding total amount of text messages of the previous month;

[0058] Step 522: when the first service type of the current card service configuration is the first or third type, the first tiered price sequence of the current customer service configuration is used as the corresponding current tiered price sequence; and a first-class single-card SMS billing process is performed according to the total amount of SMS messages last month and the current tiered price sequence to generate corresponding first single-card billing data;

[0059] Among them, a single card SMS billing process is performed based on the total SMS volume of the previous month and the current tiered price sequence, including:

[0060] Step A1, taking the first first-tier SMS quantity range in the current tiered price sequence as the corresponding current tiered SMS quantity range;

[0061] For example, it is known that the total number of SMS messages last month was 1002, and there are three first-tier prices in the current tiered price sequence: first-tier price 1 is {first-tier SMS quantity range [1,100], 0.08 yuan / message}, first-tier price 2 is {first-tier SMS quantity range [101,1000], 0.07 yuan / message}, and first-tier price 3 is {first-tier SMS quantity range [1001,∞], 0.06 yuan / message};

[0062] Step A2, taking the range start boundary value and the range end boundary value of the current step SMS quantity range as the corresponding current start boundary value and the current end boundary value; and taking the first step SMS unit price corresponding to the current step SMS quantity range as the corresponding current step SMS unit price;

[0063] For example, when the current range of the number of tiered SMS messages is the first range of the number of tiered SMS messages [1,100], the current starting boundary value = 1, the current ending boundary value = 100, and the current tiered SMS unit price = 0.08; when the current range of the number of tiered SMS messages is the first range of the number of tiered SMS messages [101,1000], the current starting boundary value = 101, the current ending boundary value = 1000, and the current tiered SMS unit price = 0.07; when the current range of the number of tiered SMS messages is the first range of the number of tiered SMS messages [1001,∞], the current starting boundary value = 1001, the current ending boundary value = positive infinity∞, and the current tiered SMS unit price = 0.06;

[0064] Step A3: If the total amount of SMS messages last month is greater than the current end boundary value, the sum of the difference between the current end boundary value and the current start boundary value plus 1 is used as the corresponding current step SMS quantity; and the product of the current step SMS quantity and the current step SMS unit price is used as the corresponding first step billing data;

[0065] For example, it is known that the total number of SMS messages last month = 1002;

[0066] Then, when the current step SMS quantity range is the first step SMS quantity range [1,100], the total SMS quantity of last month 1002 is greater than the current end boundary value 100, and the corresponding first step billing data is obtained = current step SMS quantity * current step SMS unit price = (current end boundary value - current start boundary value + 1) * current step SMS unit price = (100-1+1)*0.08 = 8 (yuan);

[0067] When the current step SMS quantity range is the first step SMS quantity range [101,1000], the total SMS quantity of last month 1002 is greater than the current end boundary value 1000, and the corresponding first step billing data is obtained = current step SMS quantity * current step SMS unit price = (current end boundary value - current start boundary value + 1) * current step SMS unit price = (1000-101+1)*0.07 = 63 (yuan);

[0068] Step A4, if the total amount of SMS in the previous month is less than or equal to the current end boundary value, the sum of the difference between the total amount of SMS in the previous month and the current start boundary value plus 1 is used as the corresponding current step SMS quantity; and the product of the current step SMS quantity and the current step SMS unit price is used as the corresponding first step billing data; and go to step A6;

[0069] For example, it is known that the total number of SMS messages last month = 1002;

[0070] Then, when the current step SMS quantity range is the first step SMS quantity range [1001,∞], the total SMS quantity of last month 1002 is less than the current end boundary value ∞, and the corresponding first step billing data is obtained = current step SMS quantity * current step SMS unit price = (total SMS quantity of last month - current starting boundary value + 1) * current step SMS unit price = (1002-1001+1)*0.06=0.12 (yuan);

[0071] Step A5, taking the next first-tier SMS quantity range in the current tiered price sequence as the new current tiered SMS quantity range, and returning to step A2;

[0072] Step A6, summing up all the first-tier billing data obtained and outputting the sum of the sum as the single-card billing data obtained by the current first-tier single-card SMS billing processing;

[0073] For example, if the three first-tier billing data are 8, 63, and 0.12 yuan respectively, then the final single-card billing data is 71.12 yuan;

[0074] Step 523, when the first service type of the current card service configuration is the second type, the first step price sequence of the current customer service configuration is used as the corresponding current step price sequence; and the first package configuration of the current card service configuration is used as the corresponding current package configuration; and the corresponding current valid month range is composed of the first package start month and the first package end month of the current package configuration; and it is identified whether the previous month meets the current valid month range; if the previous month does not meet the current valid month range, a first-class single-card SMS billing process is performed according to the total amount of SMS messages in the previous month and the current step price sequence to generate the corresponding first single-card billing data; if the previous month meets the current valid month range, a second-class single-card SMS billing process is performed according to the total amount of SMS messages in the previous month, the current package configuration and the current step price sequence to generate the corresponding first single-card billing data;

[0075] Here, the processing mechanism of performing a first-class single-card SMS billing process according to the total amount of SMS last month and the current tiered price sequence in the current step 523 to generate the corresponding first single-card billing data is consistent with the processing mechanism of performing a first-class single-card SMS billing process according to the total amount of SMS last month and the current tiered price sequence described in the previous text by steps A1-A6;

[0076] In addition, the second-class single-card SMS billing processing is performed based on the total number of SMS messages last month, the current package configuration and the current tiered price sequence to generate the corresponding first-class single-card billing data, including:

[0077] Step B1, taking the total amount of first package SMS and the total price of the first package configured in the current package as the corresponding total amount of current package SMS and the total price of the current package;

[0078] Step B2: If the total amount of SMS messages last month is less than or equal to the total amount of SMS messages of the current package, the total price of the current package is used as the corresponding first single card billing data;

[0079] Step B3, if the total amount of SMS in the previous month is greater than the total amount of SMS in the current package, the difference between the total amount of SMS in the previous month and the total amount of SMS in the current package is used as the new total amount of SMS in the previous month; and a first-class single-card SMS billing process is performed according to the total amount of SMS in the previous month and the current tiered price sequence to generate corresponding second single-card billing data; and the sum of the second single-card billing data and the total price of the current package is used as the corresponding first single-card billing data;

[0080] Here, the processing mechanism of performing a first-class single-card SMS billing process according to the total amount of SMS last month and the current tiered price sequence in the current step B3 to generate the corresponding second single-card billing data is consistent with the processing mechanism of performing a first-class single-card SMS billing process according to the total amount of SMS last month and the current tiered price sequence described in the previous text by steps A1-A6;

[0081] Step 53, summing up all first single-card billing data of each first customer to obtain corresponding first customer billing data.

[0082] Figure 2 This is a schematic diagram of the structure of an electronic device provided in the second embodiment of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. Figure 2 As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned method embodiment. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.

[0083] exist Figure 2 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 The term "communication interface" is represented by only one thick line, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk storage.

[0084] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0085] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the above embodiment.

[0086] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.

[0087] The embodiments of the present invention provide a method for processing SIM card SMS billing, an electronic device, and a computer-readable storage medium. It can be seen from the above content that the embodiments of the present invention can customize different tiered prices for different customers, can provide SMS service start / stop operation on a daily basis for any SIM card of any customer, can flexibly charge any SIM card by monthly package and / or tiered billing method, and can ensure that any SIM card can use SMS service normally even when the SMS traffic exceeds the preset package traffic. The present invention can not only reduce the cost pressure of customers, but also provide personalized price customization services for long-term cooperative customers, and can also provide flexible daily billing services for short-term cooperative customers, thereby improving the service activity of operators and maintenance providers and enhancing the user stickiness of operators and maintenance providers.

[0088] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0089] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0090] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of 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 processing SIM card SMS billing, characterized in that: The method comprises: The corresponding customer SMS service information configured for each first customer is recorded as the corresponding first customer service configuration and saved; the first customer service configuration includes a first customer identifier, a first SIM card identifier set and a first step price sequence; the first SIM card identifier set includes multiple first SIM card identifiers, each of which corresponds to a first SIM card; the first step price sequence is composed of multiple first step price sequences; the first step price includes a first step SMS quantity range and a first step SMS unit price; The SIM card SMS service information corresponding to each first SIM card configuration is recorded as the corresponding first card service configuration and saved; the first card service configuration includes the second SIM card identifier, the first service type, the first package configuration and the first time period configuration; the first service type includes the first, second and third types; when the first service type is the first type, the first package configuration and the first time period configuration are both empty; when the first service type is the second type, the first time period configuration is empty, and the first package configuration consists of the total amount of first package SMS, the first package start month, the first package end month and the first package total price; when the first service type is the third type, the first package configuration is empty, and the first time period configuration consists of the first time period start date and the first time period end date; At the beginning of each day, start / stop the SMS service for the day according to the first card service configuration of each first SIM card; At the end of each day, the SMS usage of each first SIM card on that day is counted to obtain the corresponding first single-day SMS record and save it; the first single-day SMS record includes the third SIM card identifier and the total number of SMS messages in the first single day; On the settlement day at the beginning of each month, a corresponding first single-day SMS record set is formed from all the first single-day SMS records of each of the first SIM cards in the previous month; single-card SMS billing is performed according to the first card service configuration, the first customer service configuration and the first single-day SMS record set corresponding to each of the first SIM cards to obtain corresponding first single-card billing data; and all the first single-card billing data of each of the first customers are summed up to obtain corresponding first customer billing data.

2. The method for processing SIM card SMS billing according to claim 1, characterized in that: In the first step price sequence, the range starting boundary value of the first step SMS quantity range of the next first step price is the sum of the range ending boundary value of the first step SMS quantity range of the previous first step price plus 1; the range starting boundary value and range ending boundary value of any first step SMS quantity range are integers greater than 0, and the range ending boundary value of any first step SMS quantity range is not less than the corresponding range starting boundary value.

3. The method for processing SIM card SMS billing according to claim 1, characterized in that: The starting / stopping operation of the SMS service on the same day according to the first card service configuration of each first SIM card specifically includes: Each of the first SIM cards is traversed; and during the traversal, the first SIM card currently traversed is used as the corresponding current SIM card; and the first card service configuration of the current SIM card is used as the corresponding current card service configuration; and when the first service type of the current card service configuration is the third type, whether the current date matches the first time period start date of the current card service configuration is identified; if the current date matches the first time period start date of the current card service configuration, the current SIM card is enabled with a short message service through the short message service enabling interface of the telecommunications operator corresponding to the current SIM card; if the current date does not match the first time period start date of the current card service configuration, whether the current date matches the first time period end date of the current card service configuration is identified, and if so, the current SIM card is disabled with a short message service through the short message service disabling interface of the telecommunications operator corresponding to the current SIM card.

4. The method for processing SIM card SMS billing according to claim 1, characterized in that: The counting of the SMS usage of each of the first SIM cards on the day to obtain the corresponding first single-day SMS record and save it specifically includes: The number of text messages of each card on that day is obtained from the text message usage query interface of the telecommunications operator corresponding to each of the first SIM cards as the corresponding first single-day total text message amount; and the SIM card identifier corresponding to each of the first SIM cards is used as the corresponding third SIM card identifier; and the corresponding first single-day text message record is composed of the third SIM card identifier corresponding to each of the first SIM cards and the first single-day total text message amount and is saved.

5. The method for processing SIM card SMS billing according to claim 2, characterized in that: The performing single-card SMS billing according to the first card service configuration, the first customer service configuration and the first single-day SMS record set corresponding to each of the first SIM cards to obtain corresponding first single-card billing data specifically includes: Take each of the first SIM cards as the corresponding current SIM card; take the first card service configuration corresponding to the current SIM card as the corresponding current card service configuration; take the first customer service configuration corresponding to the first SIM card identifier set where the first SIM card identifier matching the SIM card identifier of the current SIM card is located as the corresponding current customer service configuration; and calculate the total amount of all the first single-day text messages in the first single-day text message record set corresponding to the current SIM card and take the settlement result as the corresponding total amount of text messages of the previous month; When the first service type of the current card service configuration is the first or third type, the first tiered price sequence of the current customer service configuration is used as the corresponding current tiered price sequence; and a type of single card SMS billing process is performed according to the total amount of SMS messages of the previous month and the current tiered price sequence to generate the corresponding first single card billing data; When the first service type of the current card service configuration is the second type, the first step price sequence of the current customer service configuration is used as the corresponding current step price sequence; and the first package configuration of the current card service configuration is used as the corresponding current package configuration; and the corresponding current valid month range is composed of the first package start month and the first package end month of the current package configuration; and it is identified whether the month of the previous month meets the current valid month range; if the month of the previous month does not meet the current valid month range, a first-class single-card SMS billing process is performed according to the total amount of SMS messages of the previous month and the current step price sequence to generate the corresponding first single-card billing data; if the month of the previous month meets the current valid month range, a second-class single-card SMS billing process is performed according to the total amount of SMS messages of the previous month, the current package configuration and the current step price sequence to generate the corresponding first single-card billing data.

6. The method for processing SIM card SMS billing according to claim 5, characterized in that: The generating the corresponding first single card billing data by performing the second-category single card SMS billing processing according to the total amount of SMS messages of the previous month, the current package configuration and the current tiered price sequence specifically includes: The total amount of the first package text messages and the total price of the first package configured in the current package are used as the corresponding total amount of the current package text messages and the current package total price; If the total amount of SMS messages in the previous month is less than or equal to the total amount of SMS messages in the current package, the total price of the current package will be used as the corresponding first single card billing data; If the total amount of text messages last month is greater than the total amount of text messages of the current package, the difference between the total amount of text messages last month and the total amount of text messages of the current package will be taken as the new total amount of text messages last month; and a type of single-card SMS billing processing will be performed based on the total amount of text messages last month and the current tiered price sequence to generate corresponding second single-card billing data; and the sum of the second single-card billing data and the total price of the current package will be taken as the corresponding first single-card billing data.

7. The method for processing SIM card SMS billing according to any one of claims 5 and 6, characterized in that: The processing of billing a type of single-card SMS according to the total amount of SMS in the previous month and the current tiered price sequence specifically includes: Step 71, taking the first first-tier SMS quantity range in the current tiered price sequence as the corresponding current tiered SMS quantity range; Step 72, taking the range start boundary value and the range end boundary value of the current step SMS quantity range as the corresponding current start boundary value and the current end boundary value; and taking the first step SMS unit price corresponding to the current step SMS quantity range as the corresponding current step SMS unit price; Step 73, if the total amount of SMS in the previous month is greater than the current end boundary value, the sum of the difference between the current end boundary value and the current start boundary value plus 1 is used as the corresponding current step SMS quantity; and the product of the current step SMS quantity and the current step SMS unit price is used as the corresponding first step billing data; Step 74, if the total amount of SMS in the previous month is less than or equal to the current end boundary value, the sum of the difference between the total amount of SMS in the previous month and the current start boundary value plus 1 is used as the corresponding current step SMS quantity; and the product of the current step SMS quantity and the current step SMS unit price is used as the corresponding first step billing data; and go to step 76; Step 75, taking the next first-tier SMS quantity range in the current tiered price sequence as the new current tiered SMS quantity range, and returning to step 72; Step 76, summing up all the first-tier billing data obtained and outputting the sum as the single-card billing data obtained from the current Class I single-card SMS billing processing.

8. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method according to any one of claims 1 to 7; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.