CN104348633A - Charging method, charging equipment and charging system based on rechargeable card - Google Patents

Charging method, charging equipment and charging system based on rechargeable card Download PDF

Info

Publication number
CN104348633A
CN104348633A CN201410514160.8A CN201410514160A CN104348633A CN 104348633 A CN104348633 A CN 104348633A CN 201410514160 A CN201410514160 A CN 201410514160A CN 104348633 A CN104348633 A CN 104348633A
Authority
CN
China
Prior art keywords
rechargeable card
state
equipment
ocg
money
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410514160.8A
Other languages
Chinese (zh)
Other versions
CN104348633B (en
Inventor
杜立志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410514160.8A priority Critical patent/CN104348633B/en
Publication of CN104348633A publication Critical patent/CN104348633A/en
Application granted granted Critical
Publication of CN104348633B publication Critical patent/CN104348633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a charging method, charging equipment and a charging system based on a rechargeable card, which belong to the technical field of communication and can be used for reducing the economic loss of a user or a rechargeable card operator. The charging method comprises the following concrete schemes: an OCG (Online Control And Charging Gateway) determines a state of the rechargeable card according to charging state information carried in a first inquiry response when receiving the first inquiry response sent by VC (Voucher Center) equipment; if the rechargeable card is at a first state, the OCG inquires whether a first user account is successfully charged when the rechargeable card charges the first user account of the last time according to an identifier of the rechargeable card and the first user account carried in the first inquiry response; if the inquiry result indicates that the rechargeable card fails to charge the first user account in the last time, the OCG sends a first charging request carrying the identifier of the rechargeable card and a second user account to OCS (Online Charging System) equipment, so that the OCS equipment charges the second user account by adopting the rechargeable card.

Description

A kind of recharge method based on rechargeable card, equipment and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of recharge method based on rechargeable card, equipment and system.
Background technology
Rechargeable card is more and more paid close attention to because its convenience obtains people and uses.Rechargeable card is the stored value card that one may be used for supplementing with money to specific stored value card or certain service (mobile communication) continue to pay dues, have certain face amount, certain price.Such as, rechargeable card can comprise the card that tops up, game rechargeable card etc.
Wherein, user can supplement client with money by login, to On-line Control and charging gateway (Online Control And Charging Gateway, OCG) rechargeable card request is initiated, by voucher center (the Voucher Center of OCG and management, value-charging card-like state, VC) Online Charging System (the Online Charging System of equipment, responsible user account accounting management, OCS) equipment carries out data interaction, to realize rechargeable card supplementing with money for user account (e.g., GID or phone number etc.).Wherein, the state of rechargeable card comprises: unused state, lock-out state and using state.The rechargeable card be in the lock state can not be used by other users, can avoid reusing of rechargeable card.
Concrete, it is that the interaction flow that user account is supplemented with money can comprise that OCG, VC equipment and OCS equipment realize rechargeable card: OCG is after user initiates rechargeable card request, and this rechargeable card is set to lock-out state by unused state by control VC equipment; OCG sends to OCS equipment and carries the mark of this rechargeable card and the charging request of user account to be supplemented with money, adopts the rechargeable card of the mark correspondence of this rechargeable card to be that user account to be supplemented with money is supplemented with money to indicate OCS equipment; Recharging result that what OCG received that OCS equipment sends be used to indicate (successful recharging or supplement with money unsuccessfully) supplement response with money; If successful recharging, OCG sends set instruction to VC equipment, to indicate VC equipment, the state of this rechargeable card is set to using state (rechargeable card then can not reuse) by lock-out state; If supplement with money unsuccessfully, OCG sends to VC equipment and unlocks instruction, to indicate VC equipment, the state of this rechargeable card is set to unused state (rechargeable card still can reuse) by lock-out state.
State in realization and use rechargeable card to carry out in the process of supplementing with money, on the one hand, due to network timeout, may cause OCG cannot receive in time OCS equipment send supplement response with money, now, if sending charging request from OCG to OCS equipment, after a certain time, when OCG does not receive and supplements response with money, OCG then thinks successful recharging, then can indicate and send set instruction to VC equipment, the state of this rechargeable card is set to using state by lock-out state by VC equipment.But Problems existing is: OCS equipment may not adopt rechargeable card to be user account successful recharging, but rechargeable card can not reuse, causes the state of rechargeable card not conform to actual recharging result of supplementing with money, cause the economic loss of user.
On the other hand, due to network timeout, VC equipment may be caused cannot to receive the set instruction of OCG transmission in time or unlock instruction, now, if from VC equipment by this rechargeable card card by unused state is set to lock-out state, after a certain time, VC equipment do not receive OCG send set instruction or unlock instruction time, VC equipment is then thought and is supplemented with money unsuccessfully, then the state of this rechargeable card is set to unused state by lock-out state.But, Problems existing is: OCS equipment may adopt rechargeable card to be user account successful recharging, but rechargeable card still can reuse, the state of rechargeable card is caused not conform to actual recharging result of supplementing with money, when user reuses this rechargeable card, then can cause the economic loss of rechargeable card operator.
Summary of the invention
Embodiments of the invention provide a kind of recharge method based on rechargeable card, equipment and system, rechargeable card is adopted to be that user account is supplemented with money in process in order to solve, due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to, to reduce the economic loss of user or rechargeable card operator.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The first aspect of the embodiment of the present invention, provides a kind of recharge method based on rechargeable card, comprising:
On-line Control and charging gateway OCG are after the first inquiry response receiving the transmission of voucher center VC equipment, according to the state of supplementing state information determination rechargeable card with money of carrying in described first inquiry response, described first inquiry response is the response message of the first inquiry request of state for inquiring about described rechargeable card;
If the state of described rechargeable card is the first state, described OCG is then according to the first user account of carrying in the mark of described rechargeable card and described first inquiry response, described rechargeable card is once adopted to be that described first user account is when supplementing with money before inquiry, whether be that described first user account is successfully supplemented with money, described first user account is front when once adopting described rechargeable card, causes the state of described rechargeable card to be the user account of described first state;
If once adopt described rechargeable card to be that described first user account is supplemented with money unsuccessfully before Query Result instruction, described OCG then sends to Online Charging System OCS equipment and carries the mark of described rechargeable card and the first charging request of the second user account, adopts described rechargeable card to be that the second user account is supplemented with money to make described OCS equipment;
Wherein, described first state is response timeout state and any one unlocked in timeout mode; Described response timeout state for front once adopt described rechargeable card be described first user account supplement with money time, from described OCG to described OCS equipment sends the second charging request, after the first Preset Time, described OCG do not receive that described OCS equipment sends second when supplementing response with money, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment; Described unblock timeout mode for front once adopt described rechargeable card be described first user account supplement with money time, send the second inquiry response or described VC equipment receives the second inquiry request that described OCG sends from described VC equipment to described OCG, after the second Preset Time, when described VC equipment does not receive the set instruction of described OCG transmission or unlocks instruction, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
In conjunction with first aspect, in a kind of possible implementation, described OCG then according to the first user account of carrying in the mark of described rechargeable card and described inquiry response, when once adopting described rechargeable card before inquiry, whether be that described first user account is successfully supplemented with money, comprise:
Whether described OCG sends the mark of described rechargeable card and described first user account to described OCS equipment, to make described OCS equipment according to when once adopting described rechargeable card before the identified query of described rechargeable card, be that described first user account is successfully supplemented with money;
Receive the Query Result that described OCS equipment sends.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the described recharge method based on rechargeable card, can also comprise:
If once adopt described rechargeable card to be described first user account successful recharging before described Query Result instruction, described OCG then sends described set instruction to described VC equipment;
Wherein, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first state is described response timeout state;
The described recharge method based on rechargeable card, can also comprise:
If the instruction of described Query Result does not inquire and relevant to the mark of described rechargeable card and described first user account supplements record with money, described OCG then sends described unblock to described VC equipment and indicates;
Wherein, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first state is described unblock timeout mode;
The described recharge method based on rechargeable card, can also comprise:
If the instruction of described Query Result does not inquire and relevant to the mark of described rechargeable card and described first user account supplements record with money, described OCG then sends described first charging request to described VC equipment, adopts described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, then send the first charging request to described OCS equipment at described OCG, adopt described rechargeable card to be that after described second user account is supplemented with money, described method also comprises to make described OCS equipment:
If from described OCG to described OCS equipment sends described first charging request, after described first Preset Time, described OCG do not receive that described OCS equipment sends first when supplementing response with money, described OCS equipment then sends time-out instruction to described VC equipment, and described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described response timeout state;
If from described OCG to described OCS equipment sends described first charging request, described OCG is in described first Preset Time, receive the transmission of described OCS equipment described first supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be described second user account successful recharging, then send described set instruction to described VC equipment, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state;
If from described OCG to described OCS equipment sends described first charging request, described OCG is in described first Preset Time, receive the transmission of described OCS equipment described first supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be that described second user account is supplemented with money unsuccessfully, then send described unblock instruction to described VC equipment, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, receive described first inquiry response of described VC equipment transmission at described OCG before, described method also comprises:
Described OCG sends the first query messages to described VC equipment, to make the state of described VC equipment rechargeable card according to the identified query of the described rechargeable card carried in described first query messages, and make described second user account that carries in the first query messages described in described VC equipment records and the corresponding relation between described second user account and described rechargeable card.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described method also comprises:
Described OCG sends described second charging request to described OCS equipment;
From described OCG to described OCS equipment sends described second charging request, if after described first Preset Time, described OCG does not receive described second of described OCS equipment transmission and supplements response with money, described OCG then sends time-out instruction to described VC equipment, and described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to response timeout state by lock-out state.
The second aspect of the embodiment of the present invention, also provides a kind of recharge method based on rechargeable card, comprising:
Voucher center VC equipment sends inquiry response to On-line Control and charging gateway OCG, described inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carry in described inquiry response and supplement state information with money, described in supplement the state that state information is used to indicate described rechargeable card with money;
Send described inquiry response or described VC equipment receives the described inquiry request that described OCG sends from described VC equipment to described OCG, if after the second Preset Time, described VC equipment does not receive the set instruction of described OCG transmission or unlocks instruction, and the state of described rechargeable card is then set to unlock timeout mode by described VC equipment.
The third aspect of the embodiment of the present invention, also provides a kind of On-line Control and charging gateway OCG, comprising:
Receiving element, for receiving the first inquiry response that voucher center VC equipment sends, described first inquiry response is the response message of the first inquiry request of state for inquiring about described rechargeable card;
Determining unit, after receiving described first inquiry response at described receiving element, according to the state of supplementing state information determination rechargeable card with money of carrying in described first inquiry response;
Query unit, if determine that the state of described rechargeable card is the first state for described determining unit, then according to the first user account of carrying in the mark of described rechargeable card and described first inquiry response of described receiving element reception, described rechargeable card is once adopted to be that described first user account is when supplementing with money before inquiry, whether be that described first user account is successfully supplemented with money, described first user account is front when once adopting described rechargeable card, causes the state of described rechargeable card to be the user account of described first state;
Transmitting element, if once adopt described rechargeable card to be that described first user account is supplemented with money unsuccessfully for before the Query Result instruction that described query unit inquires, then send to Online Charging System OCS equipment and carry the mark of described rechargeable card and the first charging request of the second user account, adopt described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment;
Wherein, described first state is response timeout state and any one unlocked in timeout mode; Described response timeout state for front once adopt described rechargeable card be described first user account supplement with money time, from described transmitting element to described OCS equipment sends the second charging request, after the first Preset Time, described receiving element do not receive that described OCS equipment sends second when supplementing response with money, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment; Described unblock timeout mode for front once adopt described rechargeable card be described first user account supplement with money time, send the second inquiry response or described VC equipment receives the second inquiry request that described OCG sends from described VC equipment to described OCG, after the second Preset Time, when described VC equipment does not receive the set instruction of described OCG transmission or unlocks instruction, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
In conjunction with the third aspect, in a kind of possible implementation, described transmitting element, also for sending the mark of described rechargeable card and described first user account to described OCS equipment, to make described OCS equipment according to when once adopting described rechargeable card before the identified query of described rechargeable card, whether be that described first user account is successfully supplemented with money;
Described receiving element, also for receiving the Query Result that described OCS equipment sends.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described transmitting element, if also for once adopting described rechargeable card to be described first user account successful recharging before described Query Result instruction, then send described set instruction to described VC equipment;
Wherein, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first state is described response timeout state;
Described transmitting element, relevant to the mark of described rechargeable card and described first user account supplements record with money if also do not inquire for the instruction of described Query Result, then sends described unblock to described VC equipment and indicate;
Wherein, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first state is described unblock timeout mode;
Described transmitting element, if also do not inquire for the instruction of described Query Result and relevant to the mark of described rechargeable card and described first user account supplement record with money, then send described first charging request to described VC equipment, adopt described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described receiving element, also send for receiving described OCS equipment first supplements response with money;
Described transmitting element, also for after sending the first charging request to described OCS equipment,
If from described transmitting element to described OCS equipment sends described first charging request, after described first Preset Time, described receiving element does not receive described first when supplementing response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described response timeout state;
If from described transmitting element to described OCS equipment sends described first charging request, described receiving element is in described first Preset Time, receive described first and supplement response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be described second user account successful recharging, then send described set instruction to described VC equipment, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state;
If from described transmitting element to described OCS equipment sends described first charging request, described receiving element is in described first Preset Time, described receiving element receives described first and supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be that described second user account is supplemented with money unsuccessfully, then send described unblock instruction to described VC equipment, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described transmitting element, also for receive at described receiving element described VC equipment send described first inquiry response before, the first query messages is sent to described VC equipment, to make the state of described VC equipment rechargeable card according to the identified query of the described rechargeable card carried in described first query messages, and make described second user account that carries in the first query messages described in described VC equipment records and the corresponding relation between described second user account and described rechargeable card.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described transmitting element, also for sending described second charging request to described OCS equipment;
Described receiving element, also send for receiving described OCS equipment described second supplements response with money;
Described transmitting element, also for sending described second charging request from described transmitting element to described OCS equipment, if after described first Preset Time, described receiving element does not receive described second of described OCS equipment transmission and supplements response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to response timeout state by lock-out state.
The fourth aspect of the embodiment of the present invention, provides a kind of voucher center VC equipment, comprising:
Transmitting element, for sending inquiry response to On-line Control and charging gateway OCG, described inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplement state information with money in described inquiry response, described in supplement the state that state information is used to indicate described rechargeable card with money;
Receiving element, the set sent for receiving described OCG indicates or unlocks instruction;
Setting unit, for sending described inquiry response or described receiving element receive the described inquiry request that described OCG sends from described transmitting element to described OCG, if after the second Preset Time, described receiving element does not receive the set instruction of described OCG transmission or unlocks instruction, then the state of described rechargeable card be set to unlock timeout mode.
5th aspect of the embodiment of the present invention, provides a kind of charging system based on rechargeable card, comprising: On-line Control and charging gateway OCG, voucher center VC equipment and Online Charging System OCS equipment;
Described OCG is for performing the recharge method based on rechargeable card according to any one of claim 1-8;
Described OCS equipment is that user account is supplemented with money for adopting described rechargeable card, is responsible for the accounting management of described user account;
Described voucher center VC equipment, for the state of management, value-charging card, the state of described rechargeable card comprises: unused state, lock-out state, the first state and using state, any one that described first state is response timeout state and unlocks in timeout mode;
Wherein, described VC equipment, specifically for receiving the time-out instruction that described OCG sends, according to described time-out instruction, the state of described rechargeable card is set to described response timeout state, described time-out is designated as from described OCG to described OCS equipment sends the second charging request, after the first Preset Time, if described OCG do not receive that described OCS equipment sends second when supplementing response with money, described OCG sends to described VC equipment;
Described VC equipment, specifically for from described VC equipment to described OCG sends the second inquiry response, after the second Preset Time, if described VC equipment do not receive from described OCG set instruction or unlock instruction time, then the state of described rechargeable card is set to described unblock timeout mode, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
The recharge method based on rechargeable card that the embodiment of the present invention provides, equipment and system, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state by lock-out state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that the state of a kind of rechargeable card of the prior art switches schematic diagram;
Fig. 2 is the state switching schematic diagram of a kind of rechargeable card in the embodiment of the present invention;
Fig. 3 is a kind of recharge method flow chart based on rechargeable card in the embodiment of the present invention;
Fig. 4 is the recharge method flow chart of the another kind in the embodiment of the present invention based on rechargeable card;
Fig. 5 is the recharge method flow chart of the another kind in the embodiment of the present invention based on rechargeable card;
Fig. 6 is the recharge method flow chart of the another kind in the embodiment of the present invention based on rechargeable card;
Fig. 7 is the composition schematic diagram of a kind of OCG in the embodiment of the present invention;
Fig. 8 is the composition schematic diagram of a kind of VC equipment in the embodiment of the present invention;
Fig. 9 is the composition schematic diagram of the another kind of OCG in the embodiment of the present invention;
Figure 10 is the composition schematic diagram of the another kind of OCG in the embodiment of the present invention;
Figure 11 is the composition schematic diagram of the another kind of VC equipment in the embodiment of the present invention;
Figure 12 is the composition schematic diagram of the another kind of VC equipment in the embodiment of the present invention;
Figure 13 is the composition schematic diagram of a kind of charging system based on rechargeable card in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
The method of the embodiment of the present invention can be applied to as shown in Figure 10, by On-line Control and charging gateway (Online Control And Charging Gateway, OCG), Online Charging System (Online Charging System, OCS) charging system based on rechargeable card of equipment and voucher center (Voucher Center, VC) equipment formation.
One can comprise based in the charging system of rechargeable card: OCG, a VC equipment and at least one an OCS equipment.Wherein, an OCG can be responsible for the control of the signaling access of the user of the whole network, carries out alternately, to complete rechargeable card flow process with OCS equipment and VC equipment; OCS equipment can be responsible for the management of balance of a regional user account, adopts described rechargeable card to be that user account is supplemented with money; A VC equipment can manage the state of the rechargeable card that all operators release.
As shown in Figure 1, in prior art, the state of rechargeable card comprises: unused state, lock-out state and using state three states.VC equipment receive OCG send carry the inquiry request of the mark of rechargeable card after, the state of the rechargeable card corresponding to the mark of rechargeable card can be set to lock-out state (namely lock rechargeable card, used to prevent this rechargeable card the loss causing operator by least two users simultaneously) by unused state; When VC equipment receives set instruction that OCG equipment sends, (OCG is determining that OCS equipment adopts after rechargeable card is user account successful recharging, set instruction is sent to VC equipment) time, then the state of rechargeable card can be set to using state by lock-out state; When the user that VC equipment receives OCG transmission cancels the cancellation instruction of supplementing with money, then the state of rechargeable card can be set to unused state (namely unlocking rechargeable card) by lock-out state.
Unlike the prior art, as shown in Figure 2, the state of the rechargeable card in the embodiment of the present invention, except unused state, lock-out state and except using state three states, also comprises the first state.Wherein, the first state is response timeout state and any one unlocked in timeout mode; Response timeout state for front once adopt rechargeable card be a user account supplement with money time, sending charging request from OCG to OCS equipment, after the first Preset Time, OCG do not receive that OCS equipment sends second when supplementing response with money, the state of the time-out locking residing for the rechargeable card recorded in VC equipment; Unlock timeout mode for front once adopt rechargeable card be a user account supplement with money time, sending inquiry response from VC equipment to OCG, after the second Preset Time, VC equipment do not receive from OCG set instruction or unlock instruction time, residing for the rechargeable card recorded in VC equipment time-out locking state.
It should be noted that, the state that VC equipment arranges rechargeable card is that response timeout state or the concrete grammar unlocking timeout mode can with reference to the follow-up associated description of the embodiment of the present invention, and the embodiment of the present invention repeats no more here.
Embodiment 1
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, can be applied to by On-line Control and charging gateway OCG, mutual between voucher center VC equipment and Online Charging System OCS equipment three, be in the second user account process of supplementing with money, as shown in Figure 1, should comprise based on the recharge method of rechargeable card:
S101, OCG receive VC equipment send the first inquiry response after, according to the state of supplementing state information determination rechargeable card with money of carrying in the first inquiry response.
Wherein, the first inquiry response is the response message of the first inquiry request of state for inquiring about rechargeable card.OCG can receive user by supplement with money client initiate rechargeable card request after, the first inquiry request carrying the mark of rechargeable card is sent to VC equipment, with the state of the rechargeable card corresponding to the mark making the rechargeable card carried in VC equipment query first inquiry request, and then VC equipment is made to reply first inquiry response of supplementing state information with money carried to OCG.Supplement the state that state information is used to indicate rechargeable card with money.
When the state of supplementing state information instruction rechargeable card with money is the first state (response timeout state and any one unlocked in timeout mode), this rechargeable card is once adopted to be that first user account is when supplementing with money before then representing, due to network timeout, the state of this rechargeable card has been arranged to the first state by VC equipment, now, due to OCG can not determine a front OCS equipment adopt this rechargeable card be first user account supplement with money time, this rechargeable card whether is adopted to be first user account successful recharging, therefore in order to avoid current once adopt rechargeable card be first user account successful recharging (namely this rechargeable card is unavailable) time, this rechargeable card is still adopted to be that the second user account is supplemented with money, cause this rechargeable card repeat supplement with money, cause the loss of operator, OCG once adopts rechargeable card to be that first user account is when supplementing with money before needing inquiry, whether be that first user account is successfully supplemented with money, and before Query Result instruction, once adopt rechargeable card to be that first user account is when supplementing unsuccessfully (i.e. this rechargeable card still can with) with money, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, rechargeable card is adopted to be that the second user account is supplemented with money to make OCS equipment.Concrete, the method for the embodiment of the present invention also comprises S102.
Further, when the state of supplementing state information instruction rechargeable card with money is for using state, then represent that the remaining sum of this rechargeable card is zero, namely this rechargeable card can not reuse; Now OCG can terminate the recharge procedure based on rechargeable card, and point out the recharge procedure based on rechargeable card to terminate by supplementing client with money to user, and can be that the remaining sum of the rechargeable card that user uses is zero to the reason pointing out the recharge procedure based on rechargeable card to terminate to user by supplementing client with money.
When the state of supplementing state information instruction rechargeable card with money is lock-out state, then represent that rechargeable card is set to lock-out state by unused state by VC equipment; Now, OCG then can carry the mark of rechargeable card and the first charging request of the second user account by sending to OCS equipment, adopts rechargeable card to be that the second user account is supplemented with money to make OCS equipment.
It should be noted that, the first user account in the embodiment of the present invention once adopts the user account of rechargeable card before being, the second user account is that this adopts the user account of rechargeable card.Wherein, first user account and the second user account can be same user account, and first user account and the second user account also can be two different user accounts.
If the state of S102 rechargeable card is the first state, OCG is then according to the first user account of carrying in the mark of rechargeable card and the first inquiry response, rechargeable card is once adopted to be that first user account is when supplementing with money before inquiry, whether be that first user account is successfully supplemented with money, first user account is front when once adopting rechargeable card, causes the state of rechargeable card to be the user account of the first state.
Exemplary, OCG can by sending mark and the first user account of rechargeable card to OCS equipment, to make OCS equipment according to when once adopting rechargeable card before the identified query of rechargeable card, whether be that first user account is successfully supplemented with money, and then make OCS equipment send Query Result to OCG.
It should be noted that, Query Result once adopts rechargeable card to be that first user account is supplemented with money unsuccessfully before can indicating; Or Query Result once adopts rechargeable card to be first user account successful recharging before can indicating; Or Query Result can indicate not inquire relevant to the mark of rechargeable card and first user account supplements record with money.
When Query Result instruction before once adopt rechargeable card be first user account supplement with money unsuccessfully time, then represent that this rechargeable card still can be used, OCG then can send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, namely continue to perform S103.
Further, when once adopting rechargeable card to be first user account successful recharging before Query Result instruction, then represent that this rechargeable card has been first user account successful recharging, but due to network timeout, VC equipment does not carry out set (being set to SM set mode by this rechargeable card) to this rechargeable card; Therefore, OCG then can send set instruction to VC equipment, to indicate VC equipment, the state of rechargeable card is set to using state.
It should be noted that, when Query Result instruction do not inquire relevant to the mark of rechargeable card and first user account supplement record with money time the method flow that will continue to perform can with reference to the follow-up associated description of the embodiment of the present invention, the embodiment of the present invention repeats no more here.
If once adopt rechargeable card to be that first user account is supplemented with money unsuccessfully before the instruction of S103 Query Result, OCG then sends to OCS equipment and carries the mark of rechargeable card and the first charging request of the second user account, adopts rechargeable card to be that the second user account is supplemented with money to make OCS equipment.
Wherein, described first state is response timeout state and any one unlocked in timeout mode; Described response timeout state for front once adopt described rechargeable card be described first user account supplement with money time, from described OCG to described OCS equipment sends the second charging request, after the first Preset Time, described OCG do not receive that described OCS equipment sends second when supplementing response with money, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment; Described unblock timeout mode for front once adopt described rechargeable card be described first user account supplement with money time, from described VC equipment to described OCG sends the second inquiry response, after the second Preset Time, described VC equipment do not receive from described OCG set instruction or unlock instruction time, the state of the locking of the time-out residing for rechargeable card of recording in described VC equipment, the second inquiry response is the response message of the second inquiry request of state for inquiring about rechargeable card.
It should be noted that, due to OCG need by supplement with money client realize with user between mutual, therefore in order to improve Consumer's Experience, the overtime response time (i.e. the first Preset Time) of OCG is traditionally arranged to be level second (if the first Preset Time can be 5 seconds).Such as, from OCG to OCS equipment sends the second charging request, after 5 seconds, if OCG do not receive that OCS equipment sends second when supplementing response with money, OCG then can supplement with money unsuccessfully based on rechargeable card to user's prompting, recharge procedure based on rechargeable card terminates, and by sending time-out instruction to VC equipment, the state of rechargeable card is set to response timeout state by control VC equipment.And VC equipment only needs to carry out alternately with OCG, then do not need to carry out alternately with user, therefore, the overtime response time (i.e. the second Preset Time) of VC equipment is traditionally arranged to be a minute level (if the first Preset Time can be 5 minutes).
The recharge method based on rechargeable card that the embodiment of the present invention provides, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Embodiment 2
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, as shown in Figure 4, based on the recharge method of rechargeable card, should comprise:
S201, VC equipment sends inquiry response to OCG, and inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplements state information with money, supplement the state that state information is used to indicate described rechargeable card with money in inquiry response.
S202, to send inquiry response or VC equipment receives the inquiry request that OCG sends from VC equipment to described OCG, if after the second Preset Time, VC equipment does not receive the set instruction of OCG transmission or unlocks instruction, and the state of rechargeable card is then set to unlock timeout mode by VC equipment.
It should be noted that, the inquiry response in the present embodiment comprises the first inquiry response in other embodiments of the invention and the second inquiry response, and inquiry request comprises the first inquiry request in other embodiments of the invention and the second inquiry request.
The recharge method based on rechargeable card that the embodiment of the present invention provides, inquiry response can be sent to OCG, inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplements state information with money, supplement the state that state information is used to indicate described rechargeable card with money in inquiry response; From to OCG send inquiry response or receive OCG send described inquiry request, if after the second Preset Time, do not receive described OCG send set instruction or unlock instruction, then the state of rechargeable card is set to unlock timeout mode.
With prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state, but is provided with by the intermediateness locking state to using state or unused state-unblock timeout mode, then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
Embodiment 3
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, and what can be applied to by between OCG, VC equipment and OCS equipment three is mutual, in the process that first user account is supplemented with money, as shown in Figure 5, should comprise based on recharge method of rechargeable card:
S301, OCG receive the rechargeable card request that user initiates by supplementing client with money, carry mark and the first user account of rechargeable card in rechargeable card request.
Further alternative, in order to avoid causing supplementing with money unsuccessfully because user account is abnormal, adopting rechargeable card to be before user account is supplemented with money, OCG and OCS equipment can carry out authentication to the current state of the second user account, namely carries out authentication verification to the validity of first user account.The method of the embodiment of the present invention can also comprise S302:
S302, OCG and OCS equipment carries out authentication to the current state of first user account.
Exemplary, the current state of user account (first user account) can comprise: canceled state, restriction using state and can any one etc. in normal operating condition.
Wherein, user account can be nullified for working as user 1 by canceled state, and when this user account is not applied for using by user 2, the state residing for this user account; Restriction using state can for use as user this user account carry out illegal transaction or when user use this user account carry out operator limit the business operation that this user account can carry out time, the state residing for this user account; The state that this user account normally can carry out every business operation can be by normal operating condition.
Concrete, S302 can comprise: S302a-S302c, and namely User Status authorizing procedure can comprise:
S302a, OCG send state authentication request to OCS equipment, carry first user account in state authentication request.
S302b, OCS equipment carries out User Status authentication to first user account.
Wherein, OCS equipment can carry out authentication verification by inquiry second user account to the validity of first user account.When the current state of first user account be canceled state or restriction using state time, then represent that the current rechargeable card that can not adopt is that first user account is supplemented with money, namely first user account is abnormal; When the current state of first user account be can normal operating condition time, then represent that the current rechargeable card that can adopt is that first user account is supplemented with money, namely first user account is normal.
S302c, OCS equipment sends state Authentication Response to OCG, carries User Status authenticating result in state Authentication Response.
It should be noted that, OCS equipment can directly using OCS equipment query to the current state of first user account be sent to OCG as User Status authenticating result, judge that whether first user account normal by OCG according to the current state of first user account; Certainly; OCS equipment also can after inquiry obtains the current state of the second user account; judge that whether the second user account is normal according to the current state of first user account, then judged result (first user account is normal or first user account is abnormal) is sent to OCG.
Concrete, if User Status authenticating result instruction first user account is normal, then continue to perform S303: if User Status authenticating result instruction first user account is abnormal, then the recharge procedure based on rechargeable card terminates.
The state of S303, OCG and VC equipment query rechargeable card.
Concrete, as shown in Figure 4, S303 can comprise S303a-S303d, and namely " rechargeable card status poll flow process " can comprise:
S303a, OCG send the second inquiry request to VC equipment, and the second inquiry request is used to indicate the state of VC equipment query rechargeable card.
Wherein, the mark of rechargeable card is carried in the second inquiry request.VC equipment can inquire about the state of the rechargeable card corresponding to the mark of the rechargeable card carried in the second inquiry request.
The state of S303b, VC equipment query rechargeable card.
Exemplary, the state of the rechargeable card that VC equipment is found can be: unused state, lock-out state or any one in using state.
S303c, when the state of rechargeable card is unused state, the state of rechargeable card is then set to lock-out state by unused state by VC equipment, and send the second inquiry response to OCG, carry in the second inquiry response the state being used to indicate rechargeable card be lock-out state supplement state information with money.
Wherein, when the state of rechargeable card is unused state, expression can adopt this rechargeable card to be that first user account is supplemented with money.In order to avoid adopting this rechargeable card to be in the first user account process of supplementing with money, there is user to adopt this rechargeable card to carry out other user accounts to supplement with money, cause this rechargeable card repeat supplement with money, the state of this rechargeable card then can be set to lock-out state by unused state by VC equipment.
S303d, when the state of rechargeable card be lock-out state or using state time, VC equipment then sends the second inquiry response to OCG, carries to be used to indicate that rechargeable card is disabled supplements state information with money in the second inquiry response.
Wherein, when the state of rechargeable card is lock-out state, then represent that the current user of having adopts this rechargeable card to supplement with money for other user accounts, this rechargeable card is current unavailable; Now, OCG can point out the recharge procedure based on rechargeable card to terminate to user by supplementing client with money.
When the state of rechargeable card be using state time, then represent that the remaining sum of this rechargeable card is zero, this rechargeable card is current unavailable.Now, OCG can point out the recharge procedure based on rechargeable card to terminate to user by supplementing client with money.
Concrete, if the state of supplementing state information instruction rechargeable card with money of carrying in the second inquiry response is lock-out state, OCG then can send the second charging request to OCS equipment, to make OCS equipment adopt rechargeable card to supplement with money for first user account, namely continues to perform S307 and follow-up flow process.
If carry in the first inquiry response to supplement state information instruction rechargeable card with money disabled, then represent that the state of this rechargeable card is lock-out state or using state, then the recharge procedure based on rechargeable card terminates.
S307, OCG send to OCS equipment and carry the mark of rechargeable card and the first charging request of first user account.
S308, OCS equipment adopts the rechargeable card corresponding to mark of rechargeable card to be that first user account is supplemented with money, and supplements response with money to OCG transmission second.
Wherein, OCS equipment is adopting the rechargeable card corresponding to the mark of rechargeable card to be after first user account is supplemented with money, and what can generate the mark comprising rechargeable card, first user account and a recharging result supplements record with money.
S309, OCG judge from OCG to OCS equipment sends the second charging request, and after the first Preset Time, whether OCG receives second of OCS equipment transmission and supplement response with money.
Concrete, if from OCG to OCS equipment sends the second charging request, after the first Preset Time, OCG does not receive second of OCS equipment transmission and supplements response with money, then continue to perform S310 and follow-up flow process; If from OCG to OCS equipment sends the second charging request, after the first Preset Time, OCG receives second of OCS equipment transmission and supplements response with money, then continue to perform S312 and follow-up flow process.
S310, OCG send time-out instruction to VC equipment.
Wherein, time-out instruction is used to indicate VC equipment and the state of rechargeable card is set to response timeout state.
S311, to send the second inquiry response or VC equipment receives the second inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the time-out that VC equipment receives from OCG indicates, the state of rechargeable card is then set to response timeout state by VC equipment.
S312, OCG judge first supplement with money response whether refer to OCS equipment adopt rechargeable card be first user account successful recharging.
Concrete, if first supplements response instruction OCS equipment with money and adopt rechargeable card to be first user account successful recharging, then continue to perform S313 and follow-up flow process; Adopt rechargeable card to be that first user account is supplemented with money unsuccessfully if second supplements the described OCS equipment of response instruction with money, then continue to perform S315 and follow-up flow process:
S313, OCG send set instruction to VC equipment.
S314, to send the second inquiry response or VC equipment receives the second inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the set that VC equipment receives from OCG indicates, the state of rechargeable card is then set to using state by VC equipment.
It should be noted that, when the state of rechargeable card is lock-out state, send the second inquiry response or VC equipment receives the second inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the set that VC equipment receives from OCG indicates, the state of rechargeable card is then set to using state by lock-out state by VC equipment.
S315, OCG send to VC equipment and unlock instruction.
S316, to send the second inquiry response or VC equipment receives the second inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the unblock that VC equipment receives from OCG indicates, the state of rechargeable card is then set to unused state by VC equipment.
It should be noted that, when the state of rechargeable card is lock-out state, send the second inquiry response from VC equipment to OCG, in the second Preset Time, if the unblock that VC equipment receives from OCG indicates, the state of rechargeable card is then set to unused state by lock-out state by VC equipment.
S317, to send the second inquiry response or VC equipment receives the second inquiry request that OCG sends from VC equipment to OCG, after the second Preset Time, if the VC equipment time-out do not received from OCG indicates, set instruction or any one instruction of unlocking in instruction, the state of rechargeable card is then set to unlock timeout mode by VC equipment.
The recharge method based on rechargeable card that the embodiment of the present invention provides, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state by lock-out state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Embodiment 4
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, and what can be applied to by between OCG, VC equipment and OCS equipment three is mutual, is in the second user account process of supplementing with money, as shown in Figure 6, should comprises based on recharge method of rechargeable card:
S401, OCG receive the rechargeable card request that user initiates by supplementing client with money, carry mark and second user account of rechargeable card in rechargeable card request.
Further alternative, in order to avoid causing supplementing with money unsuccessfully because user account is abnormal, adopting rechargeable card to be before user account is supplemented with money, OCG and OCS equipment can carry out authentication to the current state of the second user account, namely carries out authentication verification to the validity of the second user account.The method of the embodiment of the present invention can also comprise S402:
S402, OCG and OCS equipment carries out authentication to the current state of the second user account.
Exemplary, the current state of user account (the second user account) can comprise: canceled state, restriction using state and can any one etc. in normal operating condition.
Wherein, user account can be nullified for working as user 1 by canceled state, and when this user account is not applied for using by user 2, the state residing for this user account; Restriction using state can for use as user this user account carry out illegal transaction or when user use this user account carry out operator limit the business operation that this user account can carry out time, the state residing for this user account; The state that this user account normally can carry out every business operation can be by normal operating condition.
Concrete, S402 can comprise: S402a-S402c, and namely User Status authorizing procedure can comprise:
S402a, OCG send state authentication request to OCS equipment, carry the second user account in state authentication request.
S402b, OCS equipment carries out User Status authentication to the second user account.
Wherein, OCS equipment can carry out authentication verification by inquiry second user account to the validity of the second user account.When the current state of the second user account be canceled state or restriction using state time, then represent that the current rechargeable card that can not adopt is that the second user account is supplemented with money, namely the second user account is abnormal; When the current state of the second user account be can normal operating condition time, then represent that the current rechargeable card that can adopt is that the second user account is supplemented with money, namely the second user account is normal.
S402c, OCS equipment sends state Authentication Response to OCG, carries User Status authenticating result in state Authentication Response.
It should be noted that, OCS equipment can directly using OCS equipment query to the current state of the second user account be sent to OCG as User Status authenticating result, judge that whether the second user account normal by OCG according to the current state of the second user account; Certainly; OCS equipment also can after inquiry obtains the current state of the second user account; judge that whether the second user account is normal according to the current state of the second user account, then judged result (the second user account is normal or the second user account is abnormal) is sent to OCG.
Concrete, if User Status authenticating result indicates the second user account normal, then continue to perform S403: if User Status authenticating result indicates the second user account abnormal, then the recharge procedure based on rechargeable card terminates.
The state of S403, OCG and VC equipment query rechargeable card.
Concrete, as shown in Figure 4, S403 can comprise S403a-S403e, and namely " rechargeable card status poll flow process " can comprise:
S403a, OCG send the first inquiry request to VC equipment, and the first inquiry request is used to indicate the state of VC equipment query rechargeable card.
Wherein, the mark of rechargeable card is carried in the first inquiry request.VC equipment can inquire about the state of the rechargeable card corresponding to the mark of the rechargeable card carried in the first inquiry request.
The state of S403b, VC equipment query rechargeable card.
Exemplary, the state of the rechargeable card that VC equipment is found can be: unused state, the first state, lock-out state or any one in using state.
S403c, when the state of rechargeable card is unused state, the state of rechargeable card is then set to lock-out state by unused state by VC equipment, and send the first inquiry response to OCG, carry in the first inquiry response the state being used to indicate rechargeable card be lock-out state supplement state information with money.
Wherein, when the state of rechargeable card is unused state, expression can adopt this rechargeable card to be that the second user account is supplemented with money.In order to avoid adopting this rechargeable card to be in the second user account process of supplementing with money, there is user to adopt this rechargeable card to carry out other user accounts to supplement with money, cause this rechargeable card repeat supplement with money, the state of this rechargeable card then can be set to lock-out state by unused state by VC equipment.
S403d, when the state of rechargeable card is the first state, VC equipment then sends the first inquiry response to OCG, carry in the first inquiry response the state being used to indicate rechargeable card be the first state supplement state information with money.
In a kind of application scenarios of the embodiment of the present invention, the first state is response timeout state.When the state of rechargeable card is the first state, then represent front once adopt this rechargeable card be first user account supplement with money time, may due to network timeout, cause OCG not receive second of OCS equipment transmission in time and supplement response with money, OCG have sent time-out instruction to VC equipment, the state of rechargeable card, after receiving time-out instruction, has been arranged to response timeout state by VC equipment.
In the another kind of application scenarios of the embodiment of the present invention, the first state is for unlocking timeout mode.When the state of rechargeable card is the first state, then represent front once adopt this rechargeable card be first user account supplement with money time, may due to network timeout, the set causing VC equipment not receive OCG transmission in time indicates, unlock instruction or time-out indicates, and the state of rechargeable card has been arranged to unblock timeout mode by VC equipment.
S403e, when the state of rechargeable card be lock-out state or using state time, VC equipment then sends the first inquiry response to OCG, carries to be used to indicate that rechargeable card is disabled supplements state information with money in the first inquiry response.
Wherein, when the state of rechargeable card is lock-out state, then represent that the current user of having adopts this rechargeable card to supplement with money for other user accounts, this rechargeable card is current unavailable; Now, OCG can point out the recharge procedure based on rechargeable card to terminate to user by supplementing client with money.
When the state of rechargeable card be using state time, then represent that the remaining sum of this rechargeable card is zero, this rechargeable card is current unavailable.Now, OCG can point out the recharge procedure based on rechargeable card to terminate to user by supplementing client with money.
Concrete, if the state of supplementing state information instruction rechargeable card with money of carrying in the first inquiry response is lock-out state, OCG then can send the first charging request to OCS equipment, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, namely continues to perform S407 and follow-up flow process.
If carry in the first inquiry response to supplement state information instruction rechargeable card with money disabled, then represent that the state of this rechargeable card is lock-out state or using state, then the recharge procedure based on rechargeable card terminates.
If the state of supplementing state information instruction rechargeable card with money of carrying in the first inquiry response is the first state (response timeout state and any one unlocked in timeout mode), then represent that user once adopted rechargeable card to be that user account (comprises the second user account or other user accounts, be designated as first user account herein) supplement with money, and front be once in first user account charging process, due to network timeout, VC equipment is caused to be the first state by the state recording of rechargeable card.Therefore, OCG is current can not determine that at the front rechargeable card that once adopts be whether successfully first user account supplements with money, namely whether OCG can not determine that rechargeable card is current and can use, and can not determine according to rechargeable card to be that the second user account supplements the economic loss that whether can cause user or operator with money, therefore, OCG once can adopt described rechargeable card to be whether first user account successfully supplements with money before OCS equipment query, namely continues to perform S404 and follow-up flow process.
Whether once adopt rechargeable card to be first user account when supplementing with money before S404, OCG determine, be that first user account is successfully supplemented with money.
Wherein, first user account is carried in the first inquiry response.OCG can according to the mark of rechargeable card and first user account, and whether once adopt rechargeable card to be described first user account when supplementing with money before inquiry, be that first user account is successfully supplemented with money.
Concrete, as shown in Figure 4, S404 can comprise S404a and S404b:
S404a, OCG send mark and the first user account of rechargeable card to OCS equipment.
Whether S404b, OCS equipment, according to the mark of rechargeable card, when once adopting rechargeable card before inquiry, is that first user account is successfully supplemented with money, and sends Query Result to OCG.
Wherein, OCS equipment adopts rechargeable card to be after user account is supplemented with money each, can record one and supplement record with money, this supplements recharging result that record comprises the mark of supplementing used rechargeable card with money, the user account of supplementing with money and adopt corresponding rechargeable card to supplement with money for user account (successful recharging or supplement with money unsuccessfully) with money.
S405, OCG according to Query Result judge OCS equipment whether inquire adopt rechargeable card be first user account supplement with money supplement record with money.
Wherein, Query Result can be: OCS equipment do not inquire adopt rechargeable card be first user account supplement with money supplement record with money; Or Query Result can be: OCS equipment query to adopt rechargeable card be first user account supplement with money supplement record with money, and front once adopt rechargeable card be that first user account is supplemented with money unsuccessfully; Or Query Result can be: OCS equipment query to adopt rechargeable card be first user account supplement with money supplement record with money, and front once adopt rechargeable card be first user account successful recharging.
Concrete, if OCS equipment query to adopt rechargeable card be first user account supplement with money supplement record with money, OCG once adopts rechargeable card to be that first user account supplements whether success with money before then can judging, namely continue execution S406 and follow-up flow process.
If OCS equipment do not inquire adopt rechargeable card be first user account supplement with money supplement record with money, then when the first state is response timeout state, continue to perform S415 and follow-up flow process.
Due to OCG need by supplement with money client realize with user between mutual, therefore in order to improve Consumer's Experience, the overtime response time (i.e. the first Preset Time) of OCG is traditionally arranged to be level second (if the first Preset Time can be 5 seconds).Such as, from OCG to OCS equipment sends the second charging request, after 5 seconds, if OCG do not receive that OCS equipment sends second when supplementing response with money, OCG then can supplement with money unsuccessfully based on rechargeable card to user's prompting, recharge procedure based on rechargeable card terminates, and by sending time-out instruction to VC equipment, the state of rechargeable card is set to response timeout state by control VC equipment.
In a kind of application scenarios of the embodiment of the present invention, after OCS equipment receives the second charging request of OCG transmission, may be more due to the charging request that OCS equipment side is pending, OCS equipment cannot process the second charging request in time, second charging request is in the process waited in line, such OCS equipment then cannot supplement response with money to transmission OCG second in 5 seconds after receiving the second charging request, then OCG can by sending time-out instruction to VC equipment, and the state of rechargeable card is set to response timeout state by control VC equipment.
In above-mentioned application scenarios, because the second charging request is in the process waited in line, so OCS equipment then may after certain hour (as 10 seconds), second charging request is processed, so OCS equipment then may user account successful recharging corresponding to the second charging request, also may supplement with money unsuccessfully by the user account corresponding to the second charging request, therefore also needed to re-start the inquiry (namely performing S405) of supplementing record with money before initiating charging request to OCS equipment again, then will be able to proceed to supplement with money according to Query Result.
If OCS equipment do not inquire adopt rechargeable card be first user account supplement with money supplement record with money, then when the first state is response timeout state, OCG still sends to OCS equipment and carries the mark of rechargeable card and the first charging request of the second user account, then may cause rechargeable card repeat supplement with money, cause the economic loss of rechargeable card operator.Therefore, if OCS equipment do not inquire adopt rechargeable card be first user account supplement with money supplement record with money, then when the first state is response timeout state, then can continue to perform S415 and follow-up flow process.
If OCS equipment do not inquire adopt rechargeable card be first user account supplement with money supplement record with money, then when the first state is described unblock timeout mode, then continue to perform S407 and follow-up flow process.
Because VC equipment only needs to carry out alternately with OCG, do not need to carry out alternately with user, therefore, the overtime response time (i.e. the second Preset Time) of VC equipment is traditionally arranged to be a minute level (if the first Preset Time can be 5 minutes).Because the first Preset Time is generally the time of minute level, and charging request is generally less than the first Preset Time at the queuing delay of CS equipment side, therefore the result of an OCS device processes charging request is generally stable, therefore, if OCS equipment do not inquire adopt rechargeable card be first user account supplement with money supplement record with money, then when the first state is for unlocking timeout mode, then can continue to perform S407 and follow-up flow process.
S406, OCG once adopt rechargeable card to be whether first user account successfully supplements with money before judging.
Concrete, if once adopt rechargeable card to be that first user account is supplemented with money unsuccessfully before Query Result instruction, then represent that this rechargeable card still can be used, OCG then can send the first charging request to OCS equipment, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, namely continue to perform S407 and follow-up flow process; If once adopt rechargeable card to be first user account successful recharging before Query Result instruction, then represent that the remaining sum of this rechargeable card is zero, this rechargeable card is unavailable, OCG then can send set instruction to VC equipment, to indicate VC equipment that the state of this rechargeable card is set to using state, namely continue to perform S413 and follow-up flow process.
S407, OCG send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account.
S408, OCS equipment adopts the rechargeable card corresponding to mark of rechargeable card to be that the second user account is supplemented with money, and supplements response with money to OCG transmission first.
Wherein, OCS equipment is adopting the rechargeable card corresponding to the mark of rechargeable card to be after the second user account is supplemented with money, and what can generate the mark comprising rechargeable card, the second user account and a recharging result supplements record with money.
S409, OCG judge from OCG to OCS equipment sends the first charging request, and after the first Preset Time, whether OCG receives first of OCS equipment transmission and supplement response with money.
Concrete, if from OCG to OCS equipment sends the first charging request, after the first Preset Time, OCG does not receive first of OCS equipment transmission and supplements response with money, then continue to perform S410 and follow-up flow process; If from OCG to OCS equipment sends the first charging request, after the first Preset Time, OCG receives first of OCS equipment transmission and supplements response with money, then continue to perform S412 and follow-up flow process.
S410, OCG send time-out instruction to VC equipment.
Wherein, time-out instruction is used to indicate VC equipment and the state of rechargeable card is set to response timeout state.
S411, to send the first inquiry response or VC equipment receives the first inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the time-out that VC equipment receives from OCG indicates, the state of rechargeable card is then set to response timeout state by VC equipment.
S412, OCG judge first supplement with money response whether refer to OCS equipment adopt rechargeable card be the second user account successful recharging.
Concrete, if first supplements response instruction OCS equipment with money and adopt rechargeable card to be the second user account successful recharging, then continue to perform S413 and follow-up flow process; Adopt rechargeable card to be that the second user account is supplemented with money unsuccessfully if first supplements the described OCS equipment of response instruction with money, then continue to perform S415 and follow-up flow process:
S413, OCG send set instruction to VC equipment.
S414, to send the first inquiry response or VC equipment receives the first inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the set that VC equipment receives from OCG indicates, the state of rechargeable card is then set to using state by VC equipment.
It should be noted that, send the first inquiry response from VC equipment to OCG, in the second Preset Time, if the set that VC equipment receives from OCG indicates, the state of rechargeable card is then set to using state and can comprises by VC equipment: when the state of rechargeable card is lock-out state, send the first inquiry response from VC equipment to OCG, in the second Preset Time, if the set that VC equipment receives from OCG indicates, the state of rechargeable card is then set to using state by lock-out state by VC equipment; When the state of rechargeable card is the first state (response timeout state and any one unlocked in timeout mode), send the first inquiry response from VC equipment to OCG, in the second Preset Time, if the set that VC equipment receives from OCG indicates, the state of rechargeable card is then set to using state by the first state by VC equipment.
S415, OCG send to VC equipment and unlock instruction.
S416, to send the first inquiry response or VC equipment receives the first inquiry request that OCG sends from VC equipment to OCG, in the second Preset Time, if the unblock that VC equipment receives from OCG indicates, the state of rechargeable card is then set to unused state by VC equipment.
It should be noted that, send the first inquiry response from VC equipment to OCG, in the second Preset Time, if the unblock that VC equipment receives from OCG indicates, the state of rechargeable card is then set to unused state and can comprises by VC equipment: when the state of rechargeable card is lock-out state, send the first inquiry response from VC equipment to OCG, in the second Preset Time, if the unblock that VC equipment receives from OCG indicates, the state of rechargeable card is then set to unused state by lock-out state by VC equipment; When the state of rechargeable card is the first state (response timeout state and any one unlocked in timeout mode), send the first inquiry response from VC equipment to OCG, in the second Preset Time, if the unblock that VC equipment receives from OCG indicates, the state of rechargeable card is then set to unused state by the first state by VC equipment.
S417, to send the first inquiry response or VC equipment receives the first inquiry request that OCG sends from VC equipment to OCG, after the second Preset Time, if the VC equipment time-out do not received from OCG indicates, set instruction or any one instruction of unlocking in instruction, the state of rechargeable card is then set to unlock timeout mode by VC equipment.
The recharge method based on rechargeable card that the embodiment of the present invention provides, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state by lock-out state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Embodiment 5
The embodiment of the present invention provides a kind of OCG, as shown in Figure 7, comprising: receiving element 51, determining unit 52, query unit 53 and transmitting element 54.
Receiving element 51, for receiving the first inquiry response that VC equipment sends, the first inquiry response is the response message of the first inquiry request of state for inquiring about rechargeable card.
Determining unit 52, for after receiving element 51 receives the first inquiry response, according to the state of supplementing state information determination rechargeable card with money of carrying in this first inquiry response.
Query unit 53, if determine that the state of rechargeable card is the first state for determining unit 52, then according to the first user account of carrying in the mark of this rechargeable card and the first inquiry response of receiving element 51 reception, once adopt before inquiry this rechargeable card for this first user account supplement with money time, whether be that this first user account is successfully supplemented with money, this first user account is front when once adopting this rechargeable card, causes the state of this rechargeable card to be the user account of the first state.
Transmitting element 54, if once adopt rechargeable card to be that first user account is supplemented with money unsuccessfully for before the Query Result instruction that query unit 53 inquires, then send to OCS equipment and carry the mark of this rechargeable card and the first charging request of the second user account, adopt this rechargeable card to be that the second user account is supplemented with money to make OCS equipment.
Wherein, the first state is response timeout state and any one unlocked in timeout mode.Response timeout state for front once adopt rechargeable card be first user account supplement with money time, from transmitting element 54 to OCS equipment sends the second charging request, after the first Preset Time, receiving element 51 do not receive that OCS equipment sends second when supplementing response with money, the state of the time-out locking residing for the rechargeable card recorded in VC equipment; Unlock timeout mode for front once adopt rechargeable card be first user account supplement with money time, send the second inquiry response from VC equipment to OCG, after the second Preset Time, VC equipment do not receive from OCG set instruction or unlock instruction time, residing for the rechargeable card recorded in VC equipment time-out locking state.
Further, whether transmitting element 54, also for sending the mark of rechargeable card and first user account to OCS equipment, to make OCS equipment according to when once adopting rechargeable card before the identified query of rechargeable card, is that first user account is successfully supplemented with money.
Receiving element 51, also for receiving the Query Result that OCS equipment sends.
Further, transmitting element 54, if also for once adopting rechargeable card to be first user account successful recharging before Query Result instruction, then send set instruction to VC equipment.
Wherein, set instruction is used to indicate VC equipment and the state of rechargeable card is set to using state.
Further, in a kind of application scenarios of the embodiment of the present invention, the first state is response timeout state.
In this application scenarios, transmitting element 54, relevant to the mark of described rechargeable card and first user account supplements record with money if also do not inquire for Query Result instruction, then send to unlock to VC equipment to indicate;
Wherein, unblock instruction is used to indicate VC equipment and the state of rechargeable card is set to unused state.
Further, in a kind of application scenarios of the embodiment of the present invention, the first state is for unlocking timeout mode.
In this application scenarios, transmitting element 54, if also do not inquire for Query Result instruction and relevant to the mark of rechargeable card and first user account supplement record with money, then send the first charging request to VC equipment, to make OCS equipment employing rechargeable card be that the second user account is supplemented with money.
Further, receiving element 51, also send for receiving OCS equipment first supplements response with money.
Transmitting element 54, also for after sending the first charging request to OCS equipment,
If from transmitting element 54 to OCS equipment sends the first charging request, after the first Preset Time, receiving element 51 does not receive first when supplementing response with money, then send time-out instruction to VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described response timeout state;
If from transmitting element 54 to OCS equipment sends the first charging request, receiving element 51 is in the first Preset Time, receive first and supplement response with money, and first supplements response instruction OCS equipment with money and adopts rechargeable card to be the second user account successful recharging, then send set instruction to VC equipment, this set instruction is used to indicate VC equipment and the state of rechargeable card is set to using state;
If from transmitting element 54 to OCS equipment sends the first charging request, receiving element 51 is in the first Preset Time, receiving element 51 receives first and supplements response with money, and first supplements response instruction OCS equipment with money and adopts rechargeable card to be that the second user account is supplemented with money unsuccessfully, then send to VC equipment and unlock instruction, unblock instruction is used to indicate VC equipment and the state of rechargeable card is set to unused state.
Further, transmitting element 54, also for receive at receiving element 51 VC equipment send the first inquiry response before, the first query messages is sent to VC equipment, to make VC equipment according to the state of the identified query rechargeable card of the rechargeable card carried in the first query messages, and make the second user account of carrying in VC equipment records first query messages and the corresponding relation between the second user account and rechargeable card.
Further, described transmitting element 54, also for sending described second charging request to described OCS equipment.
Described receiving element 51, also send for receiving described OCS equipment described second supplements response with money.
Described transmitting element 54, also for sending described second charging request from described transmitting element 54 to described OCS equipment, if after described first Preset Time, described receiving element does not receive described second of described OCS equipment transmission and supplements response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to response timeout state by lock-out state.
It should be noted that, in the OCG that the embodiment of the present invention provides, the specific descriptions of part functional module can corresponding content in reference method embodiment, and the present embodiment is no longer described in detail here.
The OCG that the embodiment of the present invention provides, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state by lock-out state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Embodiment 6
The embodiment of the present invention provides a kind of VC equipment, as shown in Figure 8, comprising: transmitting element 61, receiving element 62 and setting unit 63.
Transmitting element 61, for sending inquiry response to On-line Control and charging gateway OCG, described inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carry in described inquiry response and supplement state information with money, described in supplement the state that state information is used to indicate described rechargeable card with money.
Receiving element 62, the set sent for receiving described OCG indicates or unlocks instruction.
Setting unit 63, for sending described inquiry response or described receiving element 62 receive the described inquiry request that described OCG sends from described transmitting element 61 to described OCG, if after the second Preset Time, described receiving element does not receive the set instruction of described OCG transmission or unlocks instruction, then the state of described rechargeable card be set to unlock timeout mode.
The VC equipment that the embodiment of the present invention provides, inquiry response can be sent to OCG, inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplements state information with money, supplement the state that state information is used to indicate described rechargeable card with money in inquiry response; From to OCG send inquiry response or receive OCG send described inquiry request, if after the second Preset Time, do not receive described OCG send set instruction or unlock instruction, then the state of rechargeable card is set to unlock timeout mode.
With prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state, but is provided with by the intermediateness locking state to using state or unused state-unblock timeout mode, then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
Embodiment 7
The embodiment of the present invention provides a kind of OCG, as shown in Figure 9, comprising: receiver 71, processor 72 and transmitter 73.
Receiver 71, for receiving the first inquiry response that VC equipment sends, described first inquiry response is the response message of the first inquiry request of state for inquiring about described rechargeable card.
Processor 72, for receive at described receiver 71 VC equipment send the first inquiry response after, according to the state of supplementing state information determination rechargeable card with money of carrying in described first inquiry response; If the state of described rechargeable card is the first state, then according to the first user account of carrying in the mark of described rechargeable card and described first inquiry response, described rechargeable card is once adopted to be that described first user account is when supplementing with money before inquiry, whether be that described first user account is successfully supplemented with money, described first user account is front when once adopting described rechargeable card, causes the state of described rechargeable card to be the user account of described first state.
Transmitter 73, if once adopt described rechargeable card to be that described first user account is supplemented with money unsuccessfully for before the Query Result instruction that described processor 72 is inquired about, then send to OCS equipment and carry the mark of described rechargeable card and the first charging request of the second user account, adopt described rechargeable card to be that the second user account is supplemented with money to make described OCS equipment.
Wherein, described first state is response timeout state and any one unlocked in timeout mode; Described response timeout state for front once adopt described rechargeable card be described first user account supplement with money time, from described OCG to described OCS equipment sends the second charging request, after the first Preset Time, described OCG do not receive that described OCS equipment sends second when supplementing response with money, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment; Described unblock timeout mode for front once adopt described rechargeable card be described first user account supplement with money time, from described VC equipment to described OCG sends the second inquiry response, after the second Preset Time, described VC equipment do not receive from described OCG set instruction or unlock instruction time, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
In embodiments of the present invention, receiver 71, processor 72 and transmitter 73 are connected by bus and complete mutual communication.
Wherein, bus can be industry standard architecture (Industry Standard Architecture, ISA) total, peripheral component interconnect (Peripheral Component Interconnect, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc.This bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a thick line in Fig. 9, but not representing the bus only having a bus or a type.
Processor 72 can be central processing unit (Central Processing Unit, CPU), also can be the combination of the control chip (such as baseband chip) in CPU, digital signal processor (Digital Signal Processor, DSP) and communication unit.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Transmitter 73 and receiver 62 can for sending and receive the device of wireless signal by antenna, also signal can be provided to send and the device of receiving interface for other.
Further, as shown in Figure 10, in embodiments of the present invention, OCG can also comprise memory 74.Memory 74, may be used for the data such as the mark of the rechargeable card stored in the embodiment of the present invention and the second user account.Memory 74, also for storing batch processing code, the program code that this program code will perform for processor 61.Memory 74 can be the computer-readable storage medium of OCG, such as, memory 74 can be random asccess memory (Ramdom Access Memory, RAM), read-only memory (Read-only Memory, ROM) and flash memory (Flash Memory) etc.For ease of representing, only representing with a thick line in Figure 10, but not representing the bus only having a bus or a type.
Further, described transmitter 73, also for sending the mark of described rechargeable card and described first user account to described OCS equipment, to make described OCS equipment according to when once adopting described rechargeable card before the identified query of described rechargeable card, whether be that described first user account is successfully supplemented with money.
Described receiver 71, also for receiving the Query Result that described OCS equipment sends.
Further, described transmitter 73, if the described Query Result also inquired about for described processor 72 once adopts described rechargeable card to be described first user account successful recharging before indicating, described OCG then sends described set instruction to described VC equipment.
Wherein, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state.
Further, in a kind of application scenarios of the embodiment of the present invention, described first state is described response timeout state.
In this application scenarios, described transmitter 73, if the described Query Result instruction also inquired about for described processor 72 does not inquire and relevant to the mark of described rechargeable card and described first user account supplements record with money, described OCG then sends described unblock to described VC equipment and indicates.
Wherein, described unblock instruction is used to indicate described VC equipment by the state of described rechargeable card by being set to described unused state.
Further, in the another kind of application scenarios of the embodiment of the present invention, described first state is described unblock timeout mode.
In this application scenarios, described transmitter 73, if the described Query Result instruction also inquired about for described processor 72 does not inquire and relevant to the mark of described rechargeable card and described first user account supplements record with money, described OCG then sends described first charging request to described VC equipment, adopts described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment.
Further, described transmitter 73, also for after sending the first charging request to described OCS equipment,
If from described transmitter 73 to described OCS equipment sends described first charging request, after described first Preset Time, described receiver 71 receive that described OCS equipment sends first when supplementing response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described response timeout state;
If from described transmitter 73 to described OCS equipment sends described first charging request, described receiver 71 is in described first Preset Time, receive the transmission of described OCS equipment described first supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be described second user account successful recharging, then send described set instruction to described VC equipment, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state;
If from described transmitter 73 to described OCS equipment sends described first charging request, described receiver 71 is in described first Preset Time, receive the transmission of described OCS equipment described first supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be that described second user account is supplemented with money unsuccessfully, then send described unblock instruction to described VC equipment, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
Further, described transmitter 73, also for receive at described receiver 71 described VC equipment send described first inquiry response before, the first query messages is sent to described VC equipment, to make the state of described VC equipment rechargeable card according to the identified query of the described rechargeable card carried in described first query messages, and make described second user account that carries in the first query messages described in described VC equipment records and the corresponding relation between described second user account and described rechargeable card.
Described transmitter 73, also for sending described second charging request to described OCS equipment.
Described receiver 71, also send for receiving described OCS equipment described second supplements response with money.
Described transmitter 73, also for sending described second charging request from described transmitter 73 to described OCS equipment, if after described first Preset Time, described receiver 71 does not receive described second of described OCS equipment transmission and supplements response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to response timeout state by lock-out state.
It should be noted that, in the OCG that the embodiment of the present invention provides, the specific descriptions of part functional module can corresponding content in reference method embodiment, and the present embodiment is no longer described in detail here.
The OCG that the embodiment of the present invention provides, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Embodiment 8
The embodiment of the present invention provides a kind of VC equipment, as shown in figure 11, comprising: transmitter 81, receiver 82 and processor 83.
Transmitter 81, for sending inquiry response to On-line Control and charging gateway OCG, described inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplement state information with money in described inquiry response, described in supplement the state that state information is used to indicate described rechargeable card with money.
Receiver 82, the set sent for receiving described OCG indicates or unlocks instruction.
Processor 83, also for sending described inquiry response or described receiver 82 receive the described inquiry request that described OCG sends from described transmitter 81 to described OCG, if after the second Preset Time, described receiver 82 does not receive the set instruction of described OCG transmission or unlocks instruction, then the state of described rechargeable card be set to unlock timeout mode.
In embodiments of the present invention, transmitter 81, receiver 82 and processor 83 are connected by bus and complete mutual communication.
Wherein, bus can be industry standard architecture (Industry Standard Architecture, ISA) total, peripheral component interconnect (Peripheral Component Interconnect, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc.This bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a thick line in Figure 11, but not representing the bus only having a bus or a type.
Processor 83, can be central processing unit (Central Processing Unit, CPU), also can be the combination of the control chip (such as baseband chip) in CPU, digital signal processor (Digital Signal Processor, DSP) and communication unit.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Transmitter 81 and receiver 82 can for sending and receive the device of wireless signal by antenna, also signal can be provided to send and the device of receiving interface for other.
Further, as shown in figure 12, in embodiments of the present invention, OCG can also comprise memory 84.Memory 84, may be used for the data such as the mark of the rechargeable card stored in the embodiment of the present invention and the second user account.Memory 84, also for storing batch processing code, the program code that this program code will perform for processor 83.Memory 84 can be the computer-readable storage medium of OCG, such as, memory 84 can be random asccess memory (Ramdom Access Memory, RAM), read-only memory (Read-only Memory, ROM) and flash memory (Flash Memory) etc.For ease of representing, only representing with a thick line in Figure 12, but not representing the bus only having a bus or a type.
The VC equipment that the embodiment of the present invention provides, inquiry response can be sent to OCG, inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplements state information with money, supplement the state that state information is used to indicate described rechargeable card with money in inquiry response; From to OCG send inquiry response or receive OCG send described inquiry request, if after the second Preset Time, do not receive described OCG send set instruction or unlock instruction, then the state of rechargeable card is set to unlock timeout mode.
With prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state, but is provided with by the intermediateness locking state to using state or unused state-unblock timeout mode, then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
Embodiment 9
The embodiment of the present invention provides a kind of charging system based on rechargeable card, as shown in figure 13, comprising: OCG 91, VC equipment 92 and OCS equipment 93.
Wherein, OCG 91, supplements operation with money based on rechargeable card below for performing:
After receiving the first inquiry response that VC equipment 92 sends, according to the state of supplementing state information determination rechargeable card with money of carrying in the first inquiry response, the first inquiry response is the response message of the first inquiry request of state for inquiring about described rechargeable card;
If the state of rechargeable card is the first state, the first user account of carrying in OCG 91 marks according to this rechargeable card and the first inquiry response, rechargeable card is once adopted to be that first user account is when supplementing with money before inquiry, whether be that first user account is successfully supplemented with money, first user account is front when once adopting this rechargeable card, causes the state of this rechargeable card to be the user account of the first state;
If once adopt this rechargeable card to be that first user account is supplemented with money unsuccessfully before Query Result instruction, then send to OCS equipment 93 and carry the mark of described rechargeable card and the first charging request of the second user account, adopt this rechargeable card to be that the second user account is supplemented with money to make OCS equipment 93.
Wherein, the first state is response timeout state and any one unlocked in timeout mode.Response timeout state for front once adopt rechargeable card be first user account supplement with money time, from OCG 51OCG91 to OCS equipment 53OCS equipment 93 sends the second charging request, after the first Preset Time, OCG 51OCG 91 do not receive that OCS equipment 53OCS equipment 93 sends second when supplementing response with money, the state of the locking of the time-out residing for this rechargeable card of record in VC equipment 52VC equipment 92; Unlock timeout mode for front once adopt rechargeable card be first user account supplement with money time, from VC equipment 52VC equipment 92 to described OCG 51OCG 91 sends the second inquiry response, after the second Preset Time, VC equipment 52VC equipment 92 do not receive from OCG 51OCG 91 set instruction or unlock instruction time, the state of the locking of the time-out residing for rechargeable card of record in VC equipment 52VC equipment 92, the second inquiry response is the response message of the second inquiry request of state for inquiring about rechargeable card.
OCS equipment 93 is that user account is supplemented with money for adopting rechargeable card, is responsible for the accounting management of user account.
VC equipment 92, for the state of management, value-charging card, the state of rechargeable card comprises: unused state, lock-out state, the first state and using state, any one that the first state is response timeout state and unlocks in timeout mode.
Further, VC equipment 52VC equipment 92, specifically for receiving the time-out instruction that OCG 51OCG 91 sends, according to time-out instruction, the state of rechargeable card is set to response timeout state, time-out is designated as from OCG 51OCG 91 to OCS equipment 53OCS equipment 93 sends the second charging request, after the first Preset Time, if OCG 51OCG 91 do not receive that OCS equipment 53OCS equipment 93 sends second when supplementing response with money, OCG 51OCG 91 sends to VC equipment 52VC equipment 92.
VC equipment 92, specifically for from VC equipment 92 to OCG 63 sends the second inquiry response, after the second Preset Time, if VC equipment 92 do not receive from OCG 63 set instruction or unlock instruction time, then the state of rechargeable card be set to unlock timeout mode, the second inquiry response is the response message of the second inquiry request of state for inquiring about rechargeable card.
It should be noted that, the specific descriptions based on part functional module in the charging system of rechargeable card that the embodiment of the present invention provides can corresponding content in reference method embodiment, and the present embodiment is no longer described in detail here.
The charging system based on rechargeable card that the embodiment of the present invention provides, with prior art, due to network timeout, the state of rechargeable card is caused to supplement with money compared with recharging result do not conform to actual, in this programme, if network timeout, directly the state of rechargeable card is not set to using state or unused state, but be provided with by intermediateness-the first state locking state to using state or unused state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the state of rechargeable card and the actual problem of supplementing recharging result with money and not conforming to.
And, rechargeable card is being adopted to be before user account (the second user account) is supplemented with money, OCG can inquire about the state of rechargeable card, and when the state of rechargeable card is the first state, determine front once adopt rechargeable card be user account (first user account) supplement with money time, there is network timeout; Now, rechargeable card is once adopted whether to be the success of first user account charging before OCG then judges, and only front once adopt rechargeable card be first user account supplement with money unsuccessfully time, just send to OCS equipment and carry the mark of rechargeable card and the first charging request of the second user account, to make OCS equipment adopt rechargeable card to be that the second user account is supplemented with money, the economic loss of user or rechargeable card operator can be reduced.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, the internal structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (19)

1. based on a recharge method for rechargeable card, it is characterized in that, comprising:
On-line Control and charging gateway OCG are after the first inquiry response receiving the transmission of voucher center VC equipment, according to the state of supplementing state information determination rechargeable card with money of carrying in described first inquiry response, described first inquiry response is the response message of the first inquiry request of state for inquiring about described rechargeable card;
If the state of described rechargeable card is the first state, described OCG is then according to the first user account of carrying in the mark of described rechargeable card and described first inquiry response, described rechargeable card is once adopted to be that described first user account is when supplementing with money before inquiry, whether be that described first user account is successfully supplemented with money, described first user account is front when once adopting described rechargeable card, causes the state of described rechargeable card to be the user account of described first state;
If once adopt described rechargeable card to be that described first user account is supplemented with money unsuccessfully before Query Result instruction, described OCG then sends to Online Charging System OCS equipment and carries the mark of described rechargeable card and the first charging request of the second user account, adopts described rechargeable card to be that the second user account is supplemented with money to make described OCS equipment;
Wherein, described first state is response timeout state and any one unlocked in timeout mode; Described response timeout state for front once adopt described rechargeable card be described first user account supplement with money time, from described OCG to described OCS equipment sends the second charging request, after the first Preset Time, described OCG do not receive that described OCS equipment sends second when supplementing response with money, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment; Described unblock timeout mode for front once adopt described rechargeable card be described first user account supplement with money time, send the second inquiry response or described VC equipment receives the second inquiry request that described OCG sends from described VC equipment to described OCG, after the second Preset Time, when described VC equipment does not receive the set instruction of described OCG transmission or unlocks instruction, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
2. the recharge method based on rechargeable card according to claim 1, it is characterized in that, described OCG is then according to the first user account of carrying in the mark of described rechargeable card and described inquiry response, when once adopting described rechargeable card before inquiry, whether be that described first user account is successfully supplemented with money, comprise:
Whether described OCG sends the mark of described rechargeable card and described first user account to described OCS equipment, to make described OCS equipment according to when once adopting described rechargeable card before the identified query of described rechargeable card, be that described first user account is successfully supplemented with money;
Receive the Query Result that described OCS equipment sends.
3. the recharge method based on rechargeable card according to claim 1 and 2, is characterized in that, also comprise:
If once adopt described rechargeable card to be described first user account successful recharging before described Query Result instruction, described OCG then sends described set instruction to described VC equipment;
Wherein, described set instruction is used to indicate described VC equipment and the state of described rechargeable card is set to using state.
4. the recharge method based on rechargeable card according to claim 1 and 2, is characterized in that, described first state is described response timeout state;
Described method also comprises:
If the instruction of described Query Result does not inquire and relevant to the mark of described rechargeable card and described first user account supplements record with money, described OCG then sends described unblock to described VC equipment and indicates;
Wherein, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
5. the recharge method based on rechargeable card according to claim 1 and 2, is characterized in that, described first state is described unblock timeout mode;
Described method also comprises:
If the instruction of described Query Result does not inquire and relevant to the mark of described rechargeable card and described first user account supplements record with money, described OCG then sends described first charging request to described VC equipment, adopts described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment.
6. the recharge method based on rechargeable card according to claim 1 and 2, it is characterized in that, then send the first charging request to described OCS equipment at described OCG, adopt described rechargeable card to be that after described second user account is supplemented with money, described method also comprises to make described OCS equipment:
If from described OCG to described OCS equipment sends described first charging request, after described first Preset Time, described OCG do not receive that described OCS equipment sends first when supplementing response with money, described OCG then sends time-out instruction to described VC equipment, and described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described response timeout state;
If from described OCG to described OCS equipment sends described first charging request, described OCG is in described first Preset Time, receive the transmission of described OCS equipment described first supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be described second user account successful recharging, described OCG then sends described set instruction to described VC equipment, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state;
If from described OCG to described OCS equipment sends described first charging request, described OCG is in described first Preset Time, receive the transmission of described OCS equipment described first supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be that described second user account is supplemented with money unsuccessfully, described OCG then sends described unblock instruction to described VC equipment, and described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
7. the recharge method based on rechargeable card according to claim 1 and 2, is characterized in that, receive described first inquiry response of described VC equipment transmission at described OCG before, described method also comprises:
Described OCG sends the first query messages to described VC equipment, to make the state of described VC equipment rechargeable card according to the identified query of the described rechargeable card carried in described first query messages, and make described second user account that carries in the first query messages described in described VC equipment records and the corresponding relation between described second user account and described rechargeable card.
8. the recharge method based on rechargeable card according to claim 1, is characterized in that, also comprise:
Described OCG sends described second charging request to described OCS equipment;
From described OCG to described OCS equipment sends described second charging request, if after described first Preset Time, described OCG does not receive described second of described OCS equipment transmission and supplements response with money, described OCG then sends time-out instruction to described VC equipment, and described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to response timeout state by lock-out state.
9. based on a recharge method for rechargeable card, it is characterized in that, comprising:
Voucher center VC equipment sends inquiry response to On-line Control and charging gateway OCG, described inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carry in described inquiry response and supplement state information with money, described in supplement the state that state information is used to indicate described rechargeable card with money;
Send described inquiry response or described VC equipment receives the described inquiry request that described OCG sends from described VC equipment to described OCG, if after the second Preset Time, described VC equipment does not receive the set instruction of described OCG transmission or unlocks instruction, and the state of described rechargeable card is then set to unlock timeout mode by described VC equipment.
10. On-line Control and a charging gateway OCG, is characterized in that, comprising:
Receiving element, for receiving the first inquiry response that voucher center VC equipment sends, described first inquiry response is the response message of the first inquiry request of state for inquiring about described rechargeable card;
Determining unit, after receiving described first inquiry response at described receiving element, according to the state of supplementing state information determination rechargeable card with money of carrying in described first inquiry response;
Query unit, if determine that the state of described rechargeable card is the first state for described determining unit, then according to the first user account of carrying in the mark of described rechargeable card and described first inquiry response of described receiving element reception, described rechargeable card is once adopted to be that described first user account is when supplementing with money before inquiry, whether be that described first user account is successfully supplemented with money, described first user account is front when once adopting described rechargeable card, causes the state of described rechargeable card to be the user account of described first state;
Transmitting element, if once adopt described rechargeable card to be that described first user account is supplemented with money unsuccessfully for before the Query Result instruction that described query unit inquires, then send to Online Charging System OCS equipment and carry the mark of described rechargeable card and the first charging request of the second user account, adopt described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment;
Wherein, described first state is response timeout state and any one unlocked in timeout mode; Described response timeout state for front once adopt described rechargeable card be described first user account supplement with money time, from described transmitting element to described OCS equipment sends the second charging request, after the first Preset Time, described receiving element do not receive that described OCS equipment sends second when supplementing response with money, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment; Described unblock timeout mode for front once adopt described rechargeable card be described first user account supplement with money time, send the second inquiry response or described VC equipment receives the second inquiry request that described OCG sends from described VC equipment to described OCG, after the second Preset Time, when described VC equipment does not receive the set instruction of described OCG transmission or unlocks instruction, the state of the locking of the time-out residing for described rechargeable card of recording in described VC equipment, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
11. OCG according to claim 10, it is characterized in that, described transmitting element, also for sending the mark of described rechargeable card and described first user account to described OCS equipment, to make described OCS equipment according to when once adopting described rechargeable card before the identified query of described rechargeable card, whether be that described first user account is successfully supplemented with money;
Described receiving element, also for receiving the Query Result that described OCS equipment sends.
12. OCG according to claim 10 or 11, is characterized in that, described transmitting element, if also for once adopting described rechargeable card to be described first user account successful recharging before described Query Result instruction, then send described set instruction to described VC equipment;
Wherein, described set instruction is used to indicate described VC equipment and the state of described rechargeable card is set to using state.
13. OCG according to claim 10 or 11, it is characterized in that, described first state is described response timeout state;
Described transmitting element, relevant to the mark of described rechargeable card and described first user account supplements record with money if also do not inquire for the instruction of described Query Result, then sends described unblock to described VC equipment and indicate;
Wherein, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
14. OCG according to claim 10 or 11, it is characterized in that, described first state is described unblock timeout mode;
Described transmitting element, if also do not inquire for the instruction of described Query Result and relevant to the mark of described rechargeable card and described first user account supplement record with money, then send described first charging request to described VC equipment, adopt described rechargeable card to be that described second user account is supplemented with money to make described OCS equipment.
15. OCG according to claim 10 or 11, is characterized in that, described receiving element, and also send for receiving described OCS equipment first supplements response with money;
Described transmitting element, also for after sending the first charging request to described OCS equipment,
If from described transmitting element to described OCS equipment sends described first charging request, after described first Preset Time, described receiving element does not receive described first when supplementing response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described response timeout state;
If from described transmitting element to described OCS equipment sends described first charging request, described receiving element is in described first Preset Time, receive described first and supplement response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be described second user account successful recharging, then send described set instruction to described VC equipment, described set instruction be used to indicate described VC equipment the state of described rechargeable card is set to described in using state;
If from described transmitting element to described OCS equipment sends described first charging request, described receiving element is in described first Preset Time, described receiving element receives described first and supplements response with money, and described first supplement with money response instruction described OCS equipment adopt described rechargeable card to be that described second user account is supplemented with money unsuccessfully, then send described unblock instruction to described VC equipment, described unblock instruction is used to indicate described VC equipment and the state of described rechargeable card is set to described unused state.
16. OCG according to claim 10 or 11, it is characterized in that, described transmitting element, also for receive at described receiving element described VC equipment send described first inquiry response before, the first query messages is sent to described VC equipment, to make the state of described VC equipment rechargeable card according to the identified query of the described rechargeable card carried in described first query messages, and make described second user account that carries in the first query messages described in described VC equipment records and the corresponding relation between described second user account and described rechargeable card.
17. described OCG according to claim 10, is characterized in that, described transmitting element, also for sending described second charging request to described OCS equipment;
Described receiving element, also send for receiving described OCS equipment described second supplements response with money;
Described transmitting element, also for sending described second charging request from described transmitting element to described OCS equipment, if after described first Preset Time, described receiving element does not receive described second of described OCS equipment transmission and supplements response with money, then send time-out instruction to described VC equipment, described time-out instruction is used to indicate described VC equipment and the state of described rechargeable card is set to response timeout state by lock-out state.
18. 1 kinds of voucher center VC equipment, is characterized in that, comprising:
Transmitting element, for sending inquiry response to On-line Control and charging gateway OCG, described inquiry response is the response message of the inquiry request of state for inquiring about rechargeable card, carries and supplement state information with money in described inquiry response, described in supplement the state that state information is used to indicate described rechargeable card with money;
Receiving element, the set sent for receiving described OCG indicates or unlocks instruction;
Setting unit, for sending described inquiry response or described receiving element receive the described inquiry request that described OCG sends from described transmitting element to described OCG, if after the second Preset Time, described receiving element does not receive the set instruction of described OCG transmission or unlocks instruction, then the state of described rechargeable card be set to unlock timeout mode.
19. 1 kinds based on the charging system of rechargeable card, is characterized in that, comprising: On-line Control and charging gateway OCG, voucher center VC equipment and Online Charging System OCS equipment;
Described OCG is for performing the recharge method based on rechargeable card according to any one of claim 1-7;
Described OCS equipment is that user account is supplemented with money for adopting described rechargeable card, is responsible for the accounting management of described user account;
Described voucher center VC equipment, for the state of management, value-charging card, the state of described rechargeable card comprises: unused state, lock-out state, the first state and using state, any one that described first state is response timeout state and unlocks in timeout mode;
Wherein, described VC equipment, specifically for receiving the time-out instruction that described OCG sends, according to described time-out instruction, the state of described rechargeable card is set to described response timeout state, described time-out is designated as from described OCG to described OCS equipment sends the second charging request, after the first Preset Time, if described OCG do not receive that described OCS equipment sends second when supplementing response with money, described OCG sends to described VC equipment;
Described VC equipment, specifically for from described VC equipment to described OCG sends the second inquiry response, after the second Preset Time, if described VC equipment do not receive from described OCG set instruction or unlock instruction time, then the state of described rechargeable card is set to described unblock timeout mode, described second inquiry response is the response message of the second inquiry request of state for inquiring about described rechargeable card.
CN201410514160.8A 2014-09-29 2014-09-29 A kind of recharge method based on rechargeable card, equipment and system Active CN104348633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410514160.8A CN104348633B (en) 2014-09-29 2014-09-29 A kind of recharge method based on rechargeable card, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410514160.8A CN104348633B (en) 2014-09-29 2014-09-29 A kind of recharge method based on rechargeable card, equipment and system

Publications (2)

Publication Number Publication Date
CN104348633A true CN104348633A (en) 2015-02-11
CN104348633B CN104348633B (en) 2017-12-05

Family

ID=52503512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410514160.8A Active CN104348633B (en) 2014-09-29 2014-09-29 A kind of recharge method based on rechargeable card, equipment and system

Country Status (1)

Country Link
CN (1) CN104348633B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060251226A1 (en) * 1993-10-15 2006-11-09 Hogan Steven J Call-processing system and method
CN101252628A (en) * 2008-04-14 2008-08-27 中兴通讯股份有限公司 System and method for recharging based on recharging card
CN101583116A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Processing method of recharging at different places and system
CN102467770A (en) * 2010-11-08 2012-05-23 中国移动通信集团安徽有限公司 Method, device and system for recharging by using voucher card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060251226A1 (en) * 1993-10-15 2006-11-09 Hogan Steven J Call-processing system and method
CN101252628A (en) * 2008-04-14 2008-08-27 中兴通讯股份有限公司 System and method for recharging based on recharging card
CN101583116A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Processing method of recharging at different places and system
CN102467770A (en) * 2010-11-08 2012-05-23 中国移动通信集团安徽有限公司 Method, device and system for recharging by using voucher card

Also Published As

Publication number Publication date
CN104348633B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US20190340348A1 (en) Security verification method and device
CA2697759A1 (en) Wirelessly executing financial transactions
JP2012141676A (en) Control apparatus, control method, and control program
CN103826155A (en) Multi-screen interaction method, server, terminal and system
KR101839346B1 (en) Cloud payment system
KR100584001B1 (en) Service System and Method for Mobile Payment of Small Amount Using Virtual Caller ID
CN104021474A (en) Method, device and system for improving mobile payment security
CN101329793A (en) Method and system for processing electric currency information
KR101289545B1 (en) Method for Processing Payment of Electronic Cash by using Near Field Communication and Handheld Device
CN101506814B (en) Method for allowing full version content embedded in mobile device and system thereof
KR101250091B1 (en) Method for Processing Transaction of Electronic Cash by using Near Field Communication, Handheld Device and Automatic Teller Machine
CN114707976A (en) Payment method, user terminal, device, equipment, system and medium
US20070042751A1 (en) Control device to transfer units of connection time between donor and beneficiary terminals of communication network(S)
JP6526300B1 (en) Charge control system, application program and control method in charge control system
CN109978714B (en) Power exchange processing system of power exchange station, power exchange station server and power exchange processing method
CN102831340A (en) Unlock device and unlock method of electronic device
CN105848137B (en) A kind of card writing method and device
US11121572B2 (en) Charge service method and charge service system capable of providing optimal service configurations
US9344582B2 (en) Terminal and mobile communication system
CN108944542B (en) Method for performing charging station identification for electric vehicle charging
CN104348633A (en) Charging method, charging equipment and charging system based on rechargeable card
CN103874052A (en) Method and device for remote card writing
CN109774526A (en) It is a kind of have prevent counterfeit knee identification method for authenticating
CN106855974A (en) A kind of method of mobile payment and device
CN112352241A (en) Digital currency interaction method, digital currency physical carrier, terminal device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee after: Huawei Technologies Co.,Ltd.

Address before: Kokusai Hotel No. 11 Nanjing Avenue in the flora of 210012 cities in Jiangsu Province

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200212

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.