CN103747158A - Recharging method and device - Google Patents
Recharging method and device Download PDFInfo
- Publication number
- CN103747158A CN103747158A CN201310712531.9A CN201310712531A CN103747158A CN 103747158 A CN103747158 A CN 103747158A CN 201310712531 A CN201310712531 A CN 201310712531A CN 103747158 A CN103747158 A CN 103747158A
- Authority
- CN
- China
- Prior art keywords
- recharging
- information
- data
- terminal
- recharge
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 239000000284 extract Substances 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 4
- 230000011664 signaling Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000012795 verification Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1453—Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
- H04L12/1467—Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network involving prepayment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M17/00—Prepayment of wireline communication systems, wireless communication systems or telephone systems
- H04M17/02—Coin-freed or check-freed systems, e.g. mobile- or card-operated phones, public telephones or booths
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M17/00—Prepayment of wireline communication systems, wireless communication systems or telephone systems
- H04M17/20—Prepayment of wireline communication systems, wireless communication systems or telephone systems with provision for recharging the prepaid account or card, or for credit establishment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a recharging method and device. The recharging method includes: a terminal receives recharging information issued by a network side or input by a user; the terminal determines recharging data corresponding to the recharging information according to the recharging information; and the terminal uses the recharging data to recharge. The recharging method and device realize self recharging of the terminal, reduces network complexity and saves network resources.
Description
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a recharging method and apparatus.
Background
With the development of mobile communication technology, operators provide different recharging modes for the convenience of users, including a first-use-later-payment mode, a first-payment-later-use mode, or a prepaid mode for purchasing rechargeable cards. However, these modes of recharging schemes are all accomplished at the network side (e.g., core network). Although there are schemes that can be used for recharging by application programs on the upper layer of the terminal or the intelligent machine, these schemes can only provide the terminal user with reference on charging, and cannot really realize the recharging function to the operator, and the actual recharging is still completed by the core network.
Therefore, in the prior art, because the recharging function of the terminal is completed by the network side, not only the network complexity and the network load are increased, but also the network resources are increased.
Disclosure of Invention
The embodiment of the invention provides a recharging method and a recharging device, which are used for solving the technical problem that in the prior art, the recharging of a terminal is completed by a network side, so that the network complexity and network resources are increased.
In order to solve the technical problem, the embodiment of the invention discloses the following technical scheme:
a first aspect provides a method of top-up, the method comprising:
the terminal receives recharging information issued by a network side or input by a user;
the terminal determines recharging data corresponding to the recharging information according to the recharging information;
and the terminal charges by using the charging data.
In a first possible implementation manner of the first aspect, the determining, by the terminal according to the recharge information, recharge data corresponding to the recharge information specifically includes:
the terminal extracts recharging data corresponding to the recharging information from the recharging information; or,
the terminal determines recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; or,
and the terminal compares the recharging information with a stored recharging information table to obtain corresponding recharging data.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the determining, according to a preset recharge algorithm, recharge data corresponding to the recharge information from the recharge information includes:
and the terminal obtains corresponding recharging data according to the character arrangement sequence in the recharging information and a preset sequence rule.
With reference to the first aspect or the first or second possible implementation manner of the first aspect, in a third possible implementation manner, before the recharging by using the recharging data, the method further includes:
the terminal sends the recharging information to a network side for authentication;
and the terminal receives the message which is issued by the network side and successfully authenticates the recharging information.
With reference to the first aspect or the first, second, or third possible implementation manner of the first aspect, in a fourth possible implementation manner, before the recharging is performed by using the recharging data, the method further includes:
matching the recharging information with the stored recharging information;
and if the matching is unsuccessful, executing the step of recharging by using the recharging data.
A second aspect provides a refill device, the device comprising:
the first receiving unit is used for receiving recharging information issued by a network side or input by a user;
the determining unit is used for determining recharging data corresponding to the recharging information according to the recharging information;
and the recharging unit is used for recharging by using the recharging data.
In a first possible implementation manner of the second aspect, the determining unit includes:
the extraction unit is used for extracting recharging data corresponding to the recharging information from the recharging information; and/or the presence of a gas in the gas,
the determining subunit is used for determining recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; and/or the presence of a gas in the gas,
and the comparison unit is used for comparing the recharging information with a stored recharging information table to obtain corresponding recharging data.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the determining subunit is specifically configured to obtain corresponding recharge data according to a character arrangement order in the recharge information and a preset order rule.
With reference to the second aspect or the first or second possible implementation manner of the second aspect, in a third possible implementation manner, the method further includes:
the first sending unit is used for sending the recharging information received by the first receiving unit to a network side for authentication;
and the second receiving unit is used for receiving the message which is issued by the network side and successfully authenticates the recharging information and then indicating to start the recharging unit.
With reference to the second aspect or the first, second, or third possible implementation manner of the second aspect, in a fourth possible implementation manner, the method further includes:
and the matching unit is used for matching the recharging information received by the first receiving unit with the stored recharging information, and indicating to start the recharging unit when the matching result of the matching unit is not matched.
According to the technical scheme, after the terminal receives the recharging information, the terminal determines the recharging data corresponding to the recharging information and then recharges by using the recharging data. The terminal realizes self-recharging, simplifies the complexity of the network and saves the network resources
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a recharging method according to an embodiment of the present invention;
fig. 1A is another flowchart of a recharging method according to an embodiment of the present invention;
fig. 2 is another flowchart of a recharging method according to an embodiment of the present invention;
fig. 3 is another flowchart of a recharging method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a recharging device according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a recharging device according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a recharging device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a recharging method according to an embodiment of the present invention, where the method includes:
step 101: the terminal receives recharging information issued by a network side or input by a user;
the process of the terminal receiving the recharging information issued by the network side is as follows: the terminal receives the message or signaling sent by the network side; judging whether the message or the signaling comprises a special field, if so, determining that the message or the signaling comprises recharging information; wherein the special field is used for indicating that the message or signaling is recharging message or signaling. That is, the special field is added in the message or signaling, and a charging Identifier (ID), a special short message type, a charging sequence, a charging amount or a short message expiration time length, etc. can be added in the special field.
Wherein, if the terminal receives the message or signaling sent by the network side, the recharging information needs to be carried or added in the message or command. The following description will be given by taking as an example a structure in which the recharge information is carried or added in the message, the structure of the message is shown in table 1, all the circled fields in table 1 have reserved bits or extended fields, and this embodiment uses this as a special field to identify the recharge information for recharging, and may also represent a recharge ID, etc.
TABLE 1
The method comprises the steps that when a user inputs recharging information through a human-computer interface or a keyboard of the terminal or a soft keyboard of the mobile terminal, the terminal receives the recharging information input by the user, and the recharging information input by the user is obtained. The recharging information may be a string of characters, a string of numbers, or the like, or a combination of numbers and characters, but the two are required to be arranged in a set order.
Step 102: the terminal determines recharging data corresponding to the recharging information according to the recharging information;
in this embodiment, the recharge data corresponding to the recharge information is explained in three ways, but in practical application, the recharge data is not limited to three ways:
firstly, the terminal extracts recharging data corresponding to the recharging information from the recharging information;
that is, the terminal analyzes the recharging information, and if the recharging information includes the recharging amount, the recharging amount is directly extracted; the recharging information may include other information, such as recharging ID, in addition to the recharging amount.
Of course, if the recharging information does not include the recharging amount, the corresponding recharging amount needs to be obtained according to the following second and third ways:
secondly, the terminal determines recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; the method specifically comprises the following steps: and the terminal obtains corresponding recharging data according to the character arrangement sequence in the recharging information and a preset sequence rule.
The preset recharging algorithm in this embodiment may be pre-fixed in the terminal, or may be downloaded and installed through the network side.
The preset recharging algorithm is a core technology for terminal recharging, and due to different operators, the preset algorithms on the terminal are different and can be the same. In the following, for convenience of understanding, the present embodiment is described by taking two simple preset recharging algorithms as examples, and the recharging algorithm involved in the actual application may be relatively complex, and it should be noted that the present embodiment is only an example of a simple recharging algorithm, and is not limited thereto.
The preset recharging algorithm is to determine the arrangement sequence of each character in the recharging data, restore each character according to a preset sequence, and obtain corresponding recharging data, namely recharging amount.
That is, after the terminal receives the recharging information, the recharging information is analyzed to obtain corresponding recharging data, and the recharging data does not include the recharging amount, for example, the recharging data includes a string of characters and the like, the characters are arranged according to a certain sequence, and then the terminal needs to restore according to a pre-stored corresponding predetermined sequence, so as to obtain the corresponding recharging amount. Such a charge algorithm needs to be set in advance on the terminal, for example, the meaning or number of characters to be expressed, and the processing rule for these characters, etc., so as to determine that the charge data corresponds to the charge amount.
For example, if the received recharging data in the recharging information is ABCDEFG, taking a string of characters as an example, the digits corresponding to the middle characters in the recharging data are determined first, and then the corresponding recharging amount is obtained by adding or subtracting the recharging data in front and back symmetry. If the number corresponding to the middle character is 1 or other numbers or characters, etc., the recharging data is added symmetrically front and back; if the number corresponding to the middle character is 0 or other numbers or characters, etc., it represents the symmetrical subtraction between the front and back of the recharging data, but not limited to this, the middle character may also be the first character or the last character of the recharging data, or any one of the characters in the recharging data, etc., and this embodiment is not limited.
Assuming that the received recharge data is ABCDEFG, the corresponding number of each character is determined according to the predetermined meaning of each character, for example, a represents number 7, B represents number 6, C represents number 5, D represents number 1, E represents number 4, F represents number 3, and G represents number 2. The examples are given for illustration only, and the practical application is not limited thereto.
Then, according to the processing rule, determining to add the recharging data symmetrically front and back, so as to obtain the corresponding recharging amount, that is, the middle character of the character ABCDEFG is D, and if D =1, calculating the recharging amount corresponding to the recharging data as: a recharge amount = (a + G) (B + F) (C + E) =999 (yuan), where (a + G) (B + F) (C + E) is expressed as hundred, ten, and units in this order;
of course, if D =0, the recharge amount = (a-G) (B-F) (C-E) =531 (yuan), where (a-G) (B-F) (C-E) is hundred, ten, and units in this order.
In the recharging algorithm, the mode of calculating the recharging amount can be the sum or the difference of two adjacent characters, and the like; or the sum or difference of adjacent odd characters, the sum or difference of even characters and even numbers, or the sum or difference of front and back symmetrical odd characters; or the sum or difference of front and back symmetrical even characters, etc.
And the third is that: the terminal compares the recharging information with a stored recharging information table to obtain corresponding recharging data;
the recharging algorithm needs to store a set recharging information table in the terminal in advance so as to compare the recharging information table with the recharging information table when the recharging information is received. That is, when the terminal receives the recharging information, the recharging information is compared with a recharging information table stored on the terminal according to the recharging information, so that the corresponding recharging amount is obtained.
The following describes a process of obtaining a corresponding recharge amount corresponding to the recharge information table after receiving the recharge information by using a specific example.
Assuming that the received recharging information is 105D, the corresponding recharging amount is obtained by searching the recharging information table 2:
TABLE 2
The recharging information 105D is compared with the corresponding recharging information table 2 to obtain that the number corresponding to 10 is 0, the number corresponding to 5D is 3, and therefore the obtained recharging amount is 03, namely 3 yuan.
In this embodiment, table 2 is only an example, and the practical application is not limited thereto.
Step 103: and the terminal charges by using the charging data.
If the recharging data comprises the recharging amount, the terminal directly stores the recharging amount; and if the recharging data does not comprise the recharging amount, the terminal recharges by using the recharging amount corresponding to the recharging data.
In this embodiment, the recharge data is not limited to the recharge amount, and may also include other service situations, which is not limited in this embodiment.
In the embodiment of the invention, after receiving the recharging information, the terminal determines the recharging data corresponding to the recharging information, and then recharges by using the recharging data. The terminal realizes self-recharging, simplifies the complexity of the network and saves network resources.
Referring to fig. 1A, fig. 1A is another flowchart of a recharging method according to an embodiment of the present invention, where the difference between the embodiment and the above embodiment is that before recharging with the recharging data, the terminal sends the recharging information to the network side for authentication; and the terminal receives the message which is issued by the network side and successfully authenticates the recharging information. The method comprises the following steps:
step 110: the terminal receives recharging information issued by a network side or input by a user;
in this step, the received recharging information and the content included in the recharging information are described in detail above, and are not described herein again.
Step 111: the terminal determines recharging data corresponding to the recharging information according to the recharging information;
in this step, the process of determining the recharge data corresponding to the recharge information is detailed above, and is not described herein again.
Step 112: the terminal sends the recharging information to a network side for authentication;
the step, for example, further verifies whether the recharging information is recharged, the recharging information needs to be sent to the network side for authentication, if the network side is authenticated successfully, the message that the recharging information is authenticated successfully is sent to the terminal; if the authentication is unsuccessful, the message that the recharging information authentication is successful can also be sent to the terminal, and the reason of the unsuccessful authentication is displayed for the terminal, for example, the information that the recharging information is recharged and the like is prompted.
Step 113: the terminal receives the message which is issued by the network side and successfully authenticates the recharging information;
step 114: and the terminal charges by using the charging data.
In the embodiment of the invention, before the recharging data is used for recharging, the recharging data is authenticated, the repeated recharging by using the same recharging data is prevented, meanwhile, the terminal also realizes the self recharging, the complexity of the network is simplified, and the network resource is saved.
Optionally, in another embodiment, on the basis of the above embodiment, before the recharging is performed by using the recharging data, the method may further include: matching the recharging information with the stored recharging information; if the matching is unsuccessful, executing the step of recharging by using the recharging data; and if the matching is successful, prompting the user of the information that the recharging data is recharged. That is, if the matching is successful, the terminal is explained to recharge with the recharge data.
In this embodiment, before the recharging data is used for recharging, the recharging information is matched with the stored recharging information, so that the situation that the same recharging data is repeatedly used for recharging on the same terminal is avoided. That is, the user is prevented from using the same recharging card to repeatedly recharge on the same terminal.
Referring to fig. 2, fig. 2 is another flowchart of another recharging method according to an embodiment of the present invention, in which a terminal receives recharging information sent by a network side for example. The method comprises the following steps:
step 201: the terminal receives recharging information issued by a network side;
the process of obtaining the recharging information is described above, and is not described herein again.
Step 202: the terminal authenticates or verifies the recharging information, and after the authentication or verification is successful, the recharging information is determined to be legal recharging information;
in this embodiment, an encryption protocol commonly used in the industry, or a symmetric encryption algorithm, or a public key algorithm, etc., may be used, where the symmetric encryption algorithm, such as DES, etc., and the public key algorithm, such as RSA, DAS, etc., may be used. The specific authentication and verification process is well known in the art and will not be described herein.
The step is an optional step, and the additional authentication or verification is only used for determining whether the recharging information is legal or not so as to prevent attack.
Step 203: the terminal judges whether the recharging information is valid, if so, the step 204 is executed; otherwise, step 206 is performed.
One of the judging methods is as follows: and matching the recharging identification ID in the recharging information with the recharged ID stored in the terminal, wherein if the matching is unsuccessful, the recharging information is effective recharging information. If the matching is successful, the recharging information is recharged, and the operation is finished.
Step 204: the terminal analyzes the recharging ID to obtain corresponding recharging data;
the charging data may directly include charging amount, or may include non-charging amount, or other services.
It should be noted that, after the terminal charges, the terminal stores and marks the state of the charging ID as the charged state. Wherein, the mark of recharging ID state prevents the terminal from being recharged repeatedly.
Step 205: and the terminal charges by using the charging data.
Step 206: and finishing the operation.
Optionally, in this embodiment, the recharge data may directly include a recharge amount, and then recharge using the recharge data; if the recharging data does not include the recharging amount, the recharging amount corresponding to the recharging data needs to be calculated according to a preset recharging algorithm. The preset recharging algorithm is described in detail above, and is not described herein again.
In the embodiment of the invention, after the recharging information issued by the network side is acquired, if the recharging data corresponding to the recharging information directly comprises the recharging amount, the recharging data is directly used for recharging. The terminal realizes direct recharging, not only simplifies the network complexity, but also saves the network resources.
Referring to fig. 3, fig. 3 is another flowchart of another recharging method according to an embodiment of the present invention, which takes the example that a terminal receives recharging information sent by a user equipment as an example for description. The method comprises the following steps:
step 301: the terminal receives recharging information input by a user;
the recharging information may include a recharging password, and of course, may also be other recharging information, which is not limited in this embodiment.
Step 302: the terminal judges whether the recharging information input by the user is valid or not; if so, go to step 303; otherwise, go to step 305;
wherein, the judging whether the recharging information input by the user is valid comprises: sending the recharging information to a network side so that the network side can verify the recharging information; and receiving a verification result whether the recharging information sent by the network side is valid.
That is, after receiving the recharging information sent by the terminal, the network side compares the recharging information with the recharging information stored in the network side, if the recharging information is not repeated, the network side indicates that the recharging information is valid, and then sends a verification result that the recharging information is valid to the terminal, so that the terminal can execute step 303.
Step 303: the terminal determines recharging data corresponding to the recharging information according to a preset recharging algorithm;
the process of determining the recharge data corresponding to the recharge information according to a preset recharge algorithm is described in detail above, and is not described herein again.
Step 304: and the terminal charges by using the charging data.
Step 305: and finishing the operation.
In the embodiment of the invention, after receiving the recharging information input by the user, the terminal calculates the corresponding recharging data according to the preset recharging algorithm, and judges the effectiveness of the recharging information before recharging by using the recharging data, thereby preventing the user from recharging repeatedly, reducing the network complexity and saving the network resources. Furthermore, the hardware equipment cost and the operation management cost of operators are reduced.
Based on the implementation process of the above method, an embodiment of the present invention further provides a recharging device, a schematic structural diagram of which is shown in fig. 4, the recharging device may be integrated on a terminal or may be deployed independently, the recharging device includes: a first receiving unit 41, a determining unit 42, and a charging unit 43. Wherein,
the first receiving unit 41 is configured to receive recharging information issued by a network side or input by a user;
the process of the first receiving unit 41 receiving the recharge information issued by the network side is as follows: receiving a message or a signaling sent by a network side; judging whether the message or the signaling comprises a special field, if so, determining that the message or the signaling comprises recharging information; wherein the special field is used for indicating that the message or signaling is recharging message or signaling. That is, the special field is added in the message or signaling, and a charging Identifier (ID), a special short message type, a charging sequence, a charging amount or a short message expiration time length, etc. can be added in the special field.
If the first receiving unit 41 receives a message or a signaling sent by the network side, the recharging information needs to be carried or added in the message or the command. In the following, a structure of the message, which is carried or added with the recharge information, is taken as an example, the structure of the message is as shown in table 1, all the circled fields in table 1 have reserved bits or extended fields, and this embodiment is taken as a special field to identify the recharge information of the recharge, and may also represent a recharge ID.
The first receiving unit 41 receives the recharging information input by the user, wherein the recharging information input by the user is acquired when the user inputs the recharging information through a human-computer interface, a keyboard of a terminal or a soft keyboard of the mobile terminal. The recharging information may be a string of characters, a string of numbers, or the like, or a combination of numbers and characters, but the two are required to be arranged in a set order.
The determining unit 42 is configured to determine recharging data corresponding to the recharging information according to the recharging information;
the determining unit 42 determines the recharging data corresponding to the recharging information by using the following three ways as examples, but in practical application, the determining unit is not limited to the three ways:
first, the determining unit 42 extracts the charge data corresponding to the charge information from the charge information;
that is, the determining unit 42 analyzes the recharging information, and directly extracts the recharging amount if the recharging information includes the recharging amount; the recharging information may include other information, such as recharging ID, in addition to the recharging amount.
Of course, if the recharging information does not include the recharging amount, the corresponding recharging amount needs to be obtained according to the following second and third ways:
secondly, the determining unit 42 determines the recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; the method specifically comprises the following steps: the determining unit 42 obtains corresponding recharging data according to the character arrangement order in the recharging information and a preset order rule.
The preset recharging algorithm in this embodiment may be pre-fixed in the terminal, or may be downloaded and installed through the network side.
The preset recharging algorithm is a core technology for terminal recharging, and due to different operators, the preset algorithms on the terminal are different and can be the same. In the following, for convenience of understanding, the present embodiment is described by taking two simple preset recharging algorithms as examples, and the recharging algorithm involved in the actual application may be relatively complex, and it should be noted that the present embodiment is only an example of a simple recharging algorithm, and is not limited thereto.
The preset recharging algorithm is to determine the arrangement sequence of each character in the recharging data, restore each character according to a preset sequence, and obtain corresponding recharging data, namely recharging amount.
That is, after the receiving unit 41 receives the recharging information, the determining unit 42 analyzes the recharging information to obtain corresponding recharging data, and the recharging data does not include the recharging amount, for example, the recharging data includes a string of characters and the like, the characters are arranged according to a certain sequence, and then the determining unit 42 needs to restore according to a predetermined sequence stored in advance to obtain the corresponding recharging amount. Such a charge algorithm needs to be set in advance on the terminal, for example, the meaning or number of characters to be expressed, and the processing rule for these characters, etc., so as to determine that the charge data corresponds to the charge amount.
And the third is that: the determining unit 42 compares the recharging information with a stored recharging information table to obtain corresponding recharging data;
the recharging algorithm needs to store a set recharging information table in the terminal in advance so as to compare the recharging information table with the recharging information table when the recharging information is received. That is, when the receiving unit 41 receives the recharging information, the determining unit 42 compares the recharging information with the recharging information table stored in the terminal according to the recharging information, so as to obtain the corresponding recharging amount.
The recharging unit 43 is configured to recharge by using the recharging data.
If the charge data includes a charge amount, the charge unit 43 directly stores the charge amount; if the charging data does not include the charging amount, the charging unit 43 charges the value using the charging amount corresponding to the charging data.
In this embodiment, the recharge data is not limited to the recharge amount, and may also include other service situations, which is not limited in this embodiment.
In the embodiment of the invention, after the receiving unit receives the recharging information, the determining unit determines the recharging data corresponding to the recharging information, and then the recharging unit recharges by using the recharging data. That is, the terminal realizes self-recharging, simplifies the complexity of the network and saves the network resources.
Optionally, in another embodiment, the determining unit 42 includes: an extraction unit, a determination subunit and/or a comparison unit, wherein,
the extraction unit is used for extracting recharging data corresponding to the recharging information from the recharging information;
the determining subunit is configured to determine, according to a preset recharging algorithm, recharging data corresponding to the recharging information from the recharging information;
and the comparison unit is used for comparing the recharging information with a stored recharging information table to obtain corresponding recharging data.
Optionally, in another embodiment, the determining subunit is specifically configured to obtain corresponding recharging data according to a character arrangement order in the recharging information and a preset order rule.
Optionally, in another embodiment, the apparatus may further include: a schematic diagram of the first sending unit 51 and the second receiving unit 52 is shown in fig. 5, wherein,
the first sending unit 51 is configured to send the recharge information received by the first receiving unit to a network side for authentication;
the second receiving unit 52 is configured to receive the message that the authentication of the recharge information is successful and sent by the network side, and then instruct to start the recharge unit.
The recharging unit 43 is further configured to recharge using the recharging data when the second receiving unit 52 receives the message that the authentication of the recharging information is successful.
Optionally, in another embodiment, the apparatus may further include: the matching unit 61 is shown in fig. 6, wherein,
the matching unit 61 is configured to match the recharging information received by the first receiving unit with the stored recharging information, and instruct to start the recharging unit when the matching result of the matching unit is not matched;
the recharging unit 43 is further configured to recharge using the recharging data when the matching result received from the matching unit is not matched.
The implementation process of the function and the action of each unit in the recharging device is detailed in the implementation process of the corresponding step in the method, and is not described again here.
In the embodiment of the invention, the terminal can realize recharging operation, thereby not only simplifying network complexity and saving network resources, but also reducing hardware equipment cost and operation management cost of operators.
The embodiment of the present invention further provides a terminal, where the terminal 7 includes: a schematic diagram of the transceiver 71 and the processor 72 is shown in fig. 7, wherein,
the transceiver 71 is used for receiving recharging information issued by a network side or input by a user;
the process of the transceiver 71 receiving the recharge information issued by the network side is as follows: receiving a message or a signaling sent by a network side; judging whether the message or the signaling comprises a special field, if so, determining that the message or the signaling comprises recharging information; wherein the special field is used for indicating that the message or signaling is recharging message or signaling. That is, the special field is added in the message or signaling, and a charging Identifier (ID), a special short message type, a charging sequence, a charging amount or a short message expiration time length, etc. can be added in the special field.
Wherein, if the transceiver 71 receives the message or signaling sent by the network side, the recharge information needs to be carried or added in the message or command. In the following, a structure of the message, which is carried or added with the recharge information, is taken as an example, the structure of the message is as shown in table 1, all the circled fields in table 1 have reserved bits or extended fields, and this embodiment is taken as a special field to identify the recharge information of the recharge, and may also represent a recharge ID.
The transceiver 71 receives the recharging information input by the user, wherein the recharging information input by the user is acquired when the user inputs the recharging information through a human-computer interface, a keyboard of the terminal or a soft keyboard of the mobile terminal. The recharging information may be a string of characters, a string of numbers, or the like, or a combination of numbers and characters, but the two are required to be arranged in a set order.
The processor 72 is configured to determine recharging data corresponding to the recharging information according to the recharging information; and recharging by using the recharging data.
The processor 72 determines the charging data corresponding to the charging information by taking the following three ways as examples, but in practical application, the method is not limited to the three ways:
first, the processor 72 extracts the recharge data corresponding to the recharge information from the recharge information;
that is, the processor 72 firstly analyzes the recharging information, and if the recharging information includes the recharging amount, directly extracts the recharging amount; the recharging information may include other information, such as recharging ID, in addition to the recharging amount.
Of course, if the recharging information does not include the recharging amount, the corresponding recharging amount needs to be obtained according to the following second and third ways:
secondly, the processor 72 determines recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; the method specifically comprises the following steps: the processor 72 obtains corresponding recharging data according to the character arrangement order in the recharging information and the preset order rule.
The preset recharging algorithm in this embodiment may be pre-fixed in the terminal, or may be downloaded and installed through the network side.
The preset recharging algorithm is a core technology for terminal recharging, and due to different operators, the preset algorithms on the terminal are different and can be the same. In the following, for convenience of understanding, the present embodiment is described by taking two simple preset recharging algorithms as examples, and the recharging algorithm involved in the actual application may be relatively complex, and it should be noted that the present embodiment is only an example of a simple recharging algorithm, and is not limited thereto.
The preset recharging algorithm is to determine the arrangement sequence of each character in the recharging data, restore each character according to a preset sequence, and obtain corresponding recharging data, namely recharging amount.
That is, after the transceiver 71 receives the recharging information, the processor 72 analyzes the recharging information to obtain corresponding recharging data, and the recharging data does not include the recharging amount, for example, the recharging data includes a string of characters and the like, the characters are arranged according to a certain sequence, and then the processor 72 needs to restore according to a predetermined sequence stored in advance to obtain the corresponding recharging amount. Such a charge algorithm needs to be set in advance on the terminal, for example, the meaning or number of characters to be expressed, and the processing rule for these characters, etc., so as to determine that the charge data corresponds to the charge amount.
And the third is that: the processor 72 compares the recharging information with a stored recharging information table to obtain corresponding recharging data;
the recharging algorithm needs to store a set recharging information table in the terminal in advance so as to compare the recharging information table with the recharging information table when the recharging information is received. That is, when the transceiver 71 receives the recharging information, the processor 72 compares the recharging information with the recharging information table stored in the terminal according to the recharging information, so as to obtain the corresponding recharging amount.
Optionally, the determining, by the processor 72 according to the recharge information, the recharge data corresponding to the recharge information specifically includes:
the processor 72 extracts recharging data corresponding to the recharging information from the recharging information; or,
the processor 72 determines recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; or,
the processor 72 compares the recharge information with the stored recharge information table to obtain corresponding recharge data.
The determining, by the processor 72, the recharge data corresponding to the recharge information from the recharge information according to a preset recharge algorithm includes: the processor 72 obtains corresponding recharging data according to the character arrangement order in the recharging information and the preset order rule.
Optionally, before the recharging is performed by using the recharging data, the transceiver 71 is further configured to send the recharging information to a network side for authentication; and receiving the message which is issued by the network side and successfully authenticates the recharging information.
Optionally, before the recharging is performed by using the recharging data, the processor 72 is further configured to match the recharging information with the stored recharging information; and if the matching is unsuccessful, the recharging data is used for recharging.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.
Claims (10)
1. A method of recharging, comprising:
the terminal receives recharging information issued by a network side or input by a user;
the terminal determines recharging data corresponding to the recharging information according to the recharging information;
and the terminal charges by using the charging data.
2. The method of claim 1, wherein the determining, by the terminal, the recharge data corresponding to the recharge information according to the recharge information specifically comprises:
the terminal extracts recharging data corresponding to the recharging information from the recharging information; or,
the terminal determines recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; or,
and the terminal compares the recharging information with a stored recharging information table to obtain corresponding recharging data.
3. The method of claim 2, wherein the determining the recharge data corresponding to the recharge information from the recharge information according to a preset recharge algorithm comprises:
and the terminal obtains corresponding recharging data according to the character arrangement sequence in the recharging information and a preset sequence rule.
4. The method of any of claims 1 to 3, wherein prior to said recharging using said recharge data, said method further comprises:
the terminal sends the recharging information to a network side for authentication;
and the terminal receives the message which is issued by the network side and successfully authenticates the recharging information.
5. The method of any of claims 1 to 3, wherein prior to using the top-up data for top-up, the method further comprises:
matching the recharging information with the stored recharging information;
and if the matching is unsuccessful, executing the step of recharging by using the recharging data.
6. A refill device, comprising:
the first receiving unit is used for receiving recharging information issued by a network side or input by a user;
the determining unit is used for determining recharging data corresponding to the recharging information according to the recharging information;
and the recharging unit is used for recharging by using the recharging data.
7. The apparatus of claim 6, wherein the determining unit comprises:
the extraction unit is used for extracting recharging data corresponding to the recharging information from the recharging information; and/or the presence of a gas in the gas,
the determining subunit is used for determining recharging data corresponding to the recharging information from the recharging information according to a preset recharging algorithm; and/or the presence of a gas in the gas,
and the comparison unit is used for comparing the recharging information with a stored recharging information table to obtain corresponding recharging data.
8. The apparatus according to claim 7, wherein the determining subunit is specifically configured to obtain corresponding recharging data according to a character arrangement order in the recharging information and a preset order rule.
9. The apparatus of any one of claims 6 to 8, further comprising:
the first sending unit is used for sending the recharging information received by the first receiving unit to a network side for authentication;
and the second receiving unit is used for receiving the message which is issued by the network side and successfully authenticates the recharging information and then indicating to start the recharging unit.
10. The apparatus of any one of claims 6 to 8, further comprising:
and the matching unit is used for matching the recharging information received by the first receiving unit with the stored recharging information, and indicating to start the recharging unit when the matching result of the matching unit is not matched.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310712531.9A CN103747158A (en) | 2013-12-20 | 2013-12-20 | Recharging method and device |
PCT/CN2014/094173 WO2015090210A1 (en) | 2013-12-20 | 2014-12-18 | Recharging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310712531.9A CN103747158A (en) | 2013-12-20 | 2013-12-20 | Recharging method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103747158A true CN103747158A (en) | 2014-04-23 |
Family
ID=50504144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310712531.9A Pending CN103747158A (en) | 2013-12-20 | 2013-12-20 | Recharging method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103747158A (en) |
WO (1) | WO2015090210A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015090210A1 (en) * | 2013-12-20 | 2015-06-25 | 华为终端有限公司 | Recharging method and device |
CN105120446A (en) * | 2015-09-21 | 2015-12-02 | 中国联合网络通信集团有限公司 | Cell phone recharge method and device |
CN112839139A (en) * | 2021-02-22 | 2021-05-25 | 王恩惠 | Method and system for avoiding wrong mobile phone number charging |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377863A (en) * | 2007-08-29 | 2009-03-04 | 北京视博数字电视科技有限公司 | Method, system and terminal for charging values of terminal electronic purse |
CN102694935A (en) * | 2007-12-28 | 2012-09-26 | 中国移动通信集团公司 | An electron recharge method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
PT827119E (en) * | 1996-08-29 | 2001-02-28 | Swisscom Ag | PROCESS FOR LOADING OR RECHARGING A CARD WITH DATA SUPPORT WITH A MONEY AMOUNT |
DE19815429C2 (en) * | 1998-04-07 | 2001-03-22 | Deutsche Telekom Mobil | Procedure for regionally dependent charging for mobile radio services |
CN103325035A (en) * | 2013-06-27 | 2013-09-25 | 苏州创智宏云信息科技有限公司 | Telephone bill recharge system |
CN103345683B (en) * | 2013-07-15 | 2016-08-10 | 武汉天喻信息产业股份有限公司 | Off-line charging method based on stored value card and system |
CN103747158A (en) * | 2013-12-20 | 2014-04-23 | 华为终端有限公司 | Recharging method and device |
-
2013
- 2013-12-20 CN CN201310712531.9A patent/CN103747158A/en active Pending
-
2014
- 2014-12-18 WO PCT/CN2014/094173 patent/WO2015090210A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377863A (en) * | 2007-08-29 | 2009-03-04 | 北京视博数字电视科技有限公司 | Method, system and terminal for charging values of terminal electronic purse |
CN102694935A (en) * | 2007-12-28 | 2012-09-26 | 中国移动通信集团公司 | An electron recharge method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015090210A1 (en) * | 2013-12-20 | 2015-06-25 | 华为终端有限公司 | Recharging method and device |
CN105120446A (en) * | 2015-09-21 | 2015-12-02 | 中国联合网络通信集团有限公司 | Cell phone recharge method and device |
CN105120446B (en) * | 2015-09-21 | 2018-10-02 | 中国联合网络通信集团有限公司 | Method of recharging for mobile phone and device |
CN112839139A (en) * | 2021-02-22 | 2021-05-25 | 王恩惠 | Method and system for avoiding wrong mobile phone number charging |
Also Published As
Publication number | Publication date |
---|---|
WO2015090210A1 (en) | 2015-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101496344B (en) | Method and system having self-setting authentication formula for webs bank payment and identification confirmation | |
EP2819050B1 (en) | Electronic signature system for an electronic document using a third-party authentication circuit | |
CN104618116B (en) | A kind of cooperative digital signature system and its method | |
CN105868970B (en) | authentication method and electronic equipment | |
CN105827655A (en) | Intelligent key equipment and work method thereof | |
CN102056077B (en) | Method and device for applying smart card by key | |
CN104112116A (en) | Cloud server | |
CN113794810B (en) | Telephone charge recharging method and device | |
CN106067115A (en) | Pay the method and system of bus riding fee | |
CN103152401A (en) | Mobile terminal, login method and system through mobile terminal, and cloud server | |
CN103747158A (en) | Recharging method and device | |
CN102467708A (en) | Payment method, transaction origination terminal and transaction execution terminal | |
CN114463012A (en) | Authentication method, payment method, device and equipment | |
CN107785963B (en) | Charging method and charging system | |
EP3843022A1 (en) | Method and apparatus for service authentication | |
CN105719130B (en) | Payment verification method, device and system | |
CN110602679B (en) | Display and transmission method, identity authentication and data transmission device and terminal | |
CN108574658B (en) | Application login method and device | |
CN112906411A (en) | Service processing method, user terminal, service device, system and storage medium | |
KR102301036B1 (en) | Payment processing agent apparatus supporting credit and debit payment processing through member authentication based on otp and operating method thereof | |
CN106485480A (en) | A kind of terminal recharge method and system, a kind of network payment system | |
CN111127000A (en) | Rechargeable card information encryption method and device, terminal equipment and rechargeable platform | |
CN110610367B (en) | Transaction data payment method and device, electronic equipment and server | |
CN104933560A (en) | Method and system for recharging virtual account and recharging client | |
CN104113417A (en) | Dynamic password identity authentication method and system based on near field communication (NFC) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140423 |