CN110119942A - Bus IC card on-line transaction method and device, computer readable storage medium - Google Patents
Bus IC card on-line transaction method and device, computer readable storage medium Download PDFInfo
- Publication number
- CN110119942A CN110119942A CN201810125495.9A CN201810125495A CN110119942A CN 110119942 A CN110119942 A CN 110119942A CN 201810125495 A CN201810125495 A CN 201810125495A CN 110119942 A CN110119942 A CN 110119942A
- Authority
- CN
- China
- Prior art keywords
- card
- bus
- transaction
- server
- key
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/20—Point-of-sale [POS] network systems
- G06Q20/202—Interconnection or interaction of plural electronic cash registers [ECR] or to host computer, e.g. network details, transfer of information from host to ECR or from ECR to ECR
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
Abstract
A kind of bus IC card on-line transaction method and device, computer readable storage medium, which comprises when detecting bus IC card, read the information of the bus IC card;Transaction application is generated according to the information of the bus IC card, and transaction application is sent to server;Receive the transaction key and process of exchange data that the server issues;The transaction key is the server to the bus IC card card issuer request;Trading instruction is generated according to the process of exchange data and the transaction key;Trading instruction is sent to the bus IC card, and verifies the transaction results of the bus IC card feedback;When the transaction results are to trade successfully, order of unlocking is exported to lock control unit to open lock.Above scheme can reduce the time that shared bicycle is unlocked using bus IC card, improve unlock success rate.
Description
Technical field
The present invention relates to mobile payment field more particularly to a kind of bus IC card on-line transaction methods and device, computer
Readable storage medium storing program for executing.
Background technique
Contact-free integrated circuit (Integrated Circuit, IC) card is also known as radio-frequency card, by IC chip and sense
Antenna is answered to form.Bus IC card is the public transport IC card electronics for using IC technology and voluntarily being formulated based on Ministry of Communications or prefectures and cities
The non-contact IC card of wallet technical specification.
With the rise of shared bicycle, the public transport POS machine of off line is installed on shared bicycle, is total to using bus IC card
The payment for enjoying bicycle becomes a kind of common means of payment.What is saved in the bus IC card in each city the transaction such as supplements, consumes with money
Key is by card issuer's management to Yingcheng City.
When carrying out offline transaction, in the point of sales terminal secure access module (Purchase that card issuer individually issues
Secure Access Module, PSAM) in preserve transaction key.By bus IC card, public transport POS machine and server it
Between a series of data interaction, realize the payment of bus IC card.The public affairs for only supporting a card issuer to issue due to a PSAM card
IC card is handed over, therefore, public transport POS machine does not support the bus IC card of multiple card issuer's distribution usually, therefore cannot achieve different
City is applicable in same bus IC card and carries out shared bicycle payment.
When carrying out on-line transaction, transaction key and transaction data are provided by background server, and bus IC card is being handed over
All instructions when easily is all issued by background server, and all return the result requires to upload to background server verifying, communication
Number is more.Dispensing due to sharing bicycle is not fixed, and the signal quality for sharing bicycle local environment may be poor, causes to unlock
Time is longer, and unlock failure rate is higher.
Summary of the invention
What the embodiment of the present invention solved is how to reduce the time that shared bicycle is unlocked using bus IC card, improve unlock at
Power.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of bus IC card on-line transaction method, comprising: work as inspection
When measuring bus IC card, the information of the bus IC card is read;Transaction application is generated according to the information of the bus IC card, and will
The transaction application is sent to server;Receive the transaction key and process of exchange data that the server issues;The friendship
Easy key is the server to the bus IC card card issuer request;According to the process of exchange data and the friendship
Easy key generates trading instruction;Trading instruction is sent to the bus IC card, and verifies the transaction knot of the bus IC card feedback
Fruit;When the transaction results are to trade successfully, order of unlocking is exported to lock control unit to open lock.
Optionally, after verifying the transaction results and being to trade successfully, further includes: trade described in Xiang Suoshu server feedback
As a result.
Optionally, the bus IC card on-line transaction method further include: receive the hair fastener for the update that the server issues
Side's transaction pretreatment script file;To the server feedback reception result.
Optionally, before detecting bus IC card, further includes: receive the virtual POS application installation that the server issues
File and installation instruction;The virtual POS application installation file is installed.
Optionally, after detecting bus IC card, the bus IC card on-line transaction method further include: arrived when unread
The corresponding card issuer of the bus IC card trade the file specified in pretreatment script when, export Fail Transaction indication signal.
Optionally, the bus IC card on-line transaction method further include: receive being used for described for the server transmission
Maintenance key that transaction key is decrypted and storage;The maintenance key is the server to the bus IC card card issuer
Request.
A kind of bus IC card on-line transaction device, comprising: reading unit, for reading institute when detecting bus IC card
State the information of bus IC card;First transmission unit, for generating transaction application according to the information of the bus IC card, and will be described
Transaction application is sent to server;Receiving unit, for receiving the transaction key and process of exchange number that the server issues
According to;The transaction key is the server to the bus IC card card issuer request;Generation unit, for according to
Process of exchange data and the transaction key generate trading instruction;Second transmission unit, for being sent to the bus IC card
Trading instruction;Authentication unit, for verifying the transaction results of the bus IC card feedback;Third transmission unit, for when described
Transaction results are to export order of unlocking to lock control unit when trading successfully to open lock.
Optionally, first transmission unit is also used to transaction results described in the server feedback.
Optionally, the receiving unit, the card issuer for being also used to receive the update that the server issues, which trades, to be pre-processed
Script file;First transmission unit is also used to the server feedback reception result.
Optionally, the bus IC card on-line transaction device further include: installation unit is issued for receiving the server
Virtual POS application installation file and installation instruction, and the virtual POS application installation file is installed.
Optionally, the bus IC card on-line transaction device further include: output unit, for not read when the reading unit
When getting the file specified in the corresponding card issuer's transaction pretreatment script of the bus IC card, output Fail Transaction instruction is believed
Number.
Optionally, the receiving unit is also used to receive being used for transaction key progress for the server transmission
The maintenance key of decryption and storage;The maintenance key is the server to the bus IC card card issuer request.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, described
The step of bus IC card on-line transaction method described in executing any of the above-described kind when computer instruction operation.
The embodiment of the invention also provides another bus IC card on-line transaction device, including memory and processor, institutes
State and be stored with computer instruction on memory, the computer instruction run when execute any of the above-described kind described in bus IC card connection
The step of machine method of commerce.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that
Bus IC card on-line transaction device is when carrying out the payment of shared bicycle using bus IC card, in process of exchange,
Transaction application is sent to server, the process of exchange data and transaction key issued according to server generate trading instruction, and
Trading instruction is sent to bus IC card.When the transaction results for detecting bus IC card feedback are to trade successfully, to lock control
Unit output processed unlocks order to open lock, to realize the unlocking of shared bicycle and deduct fees.In entire process of exchange, only
It needs once to be communicated with server, be communicated with server without one step of every execution, to reduce public transport IC
Number of communications during card on-line transaction with server, therefore the time that bus IC card unlocks shared bicycle can be reduced, it mentions
Height unlock success rate.
Further, the card issuer for receiving the update that server issues, which trades, pre-processes script file, can be to the hair of support
Card side is extended, so as to the transaction for the bus IC card for supporting multiple and different card issuers to issue, so as to realize
Different cities uses same bus IC card.
In addition, being traded by the card issuer for receiving the update that server issues pre-processes script file, update stored
Card issuer trade pretreatment script file, so as to directly be safeguarded by server, without again to bus IC card
On-line transaction device is safeguarded, to reduce the maintenance cost of bus IC card on-line transaction device.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one of embodiment of the present invention bus IC card online transaction system;
Fig. 2 is the flow chart of one of embodiment of the present invention bus IC card on-line transaction method;
Fig. 3 is the flow chart of another bus IC card on-line transaction method in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention bus IC card on-line transaction device.
Specific embodiment
In the prior art, when being paid using bus IC card, the means of payment generally includes following two: off line is handed over
Easily, on-line transaction.
When carrying out offline transaction, handed over by data a series of between bus IC card, public transport POS machine and server
Mutually, the payment of bus IC card is realized.Since a PSAM card only supports the bus IC card of card issuer distribution, public transport
The bus IC card of multiple card issuer's distribution could be supported by needing to be arranged multiple PSAM cards in POS machine.To enable public transport POS machine
Support the bus IC card of multiple card issuer's distribution, public transport POS machine can carry out on-line transaction.
When carrying out on-line transaction, transaction key and transaction data are provided by background server, and bus IC card is being handed over
All instructions when easily is all issued by background server, and all return the result requires to upload to background server verifying, communication
Number is more.Under mobile communication environment, the dispensing due to sharing bicycle is not fixed, and shares the signal quality of bicycle local environment
May be poor, cause unlocked time longer, unlock failure rate is higher.
In embodiments of the present invention, in entire process of exchange, bus IC card on-line transaction device will be carried out with server
Primary communication, is communicated without one step of every execution with server, thus during reducing bus IC card on-line transaction
With the number of communications of server, therefore the time that bus IC card unlocks shared bicycle can be reduced, improve unlock success rate.
It is understandable to enable above-mentioned purpose of the invention, feature and beneficial effect to become apparent, with reference to the accompanying drawing to this
The specific embodiment of invention is described in detail.
Referring to Fig.1, the structural schematic diagram of one of embodiment of the present invention bus IC card online transaction system is given.Figure
In 1, bus IC card online transaction system may include server 1, bus IC card on-line transaction device 2.In practical applications, public
Handing over IC card on-line transaction device 2 can be public transport POS machine, and the machine or device of IC card transaction can also be able to carry out for other.
In specific implementation, server 1 may include the first communication interface 11, business interface 12 and cipher key management interface
13.First communication interface 11, business interface 12 and cipher key management interface 13 can be mutually independent, also can integrate same
In platform equipment.For example, business interface 12 can be by the modes such as network communication, serial communication and the first communication interface 11 and close
Key management interface 13 connects, and realizes the access to the first communication interface 11 and cipher key management interface 13.
Bus IC card on-line transaction device 2 may include the second communication interface 21, central control unit 22, IC card read-write connect
Mouth 23, virtual POS application vector 24, locating interface 25 and lock control unit 26.
In practical applications, the second communication interface 21, central control unit 22, IC card read-write interface 23, virtual POS application
Carrier 24, locating interface 25 and lock control unit 26 can integrate in same equipment, such as be integrated in same public affairs
It hands in POS machine.When above-mentioned module is integrated in same public transport POS machine, the inside in equipment can be passed through between each module
Interface realizes communication.For example, being communicated between each module by the communication serial port in equipment.
In practical applications, can also by the second communication interface 21, central control unit 22, virtual POS application vector 24,
Locating interface 25 and lock control unit 26 are integrated in same equipment, and IC card read-write interface 23 can pass through the side of peripheral hardware
Formula is connect with central control unit 22.
When IC card read-write interface 23 is not integrated in public transport POS machine, IC card read-write interface 23 can pass through USB interface
Or other serial ports are communicated with central control unit 22.
In specific implementation, virtual POS application data and hair fastener can store in virtual POS application vector 24
Side's transaction pretreatment script file.In embodiments of the present invention, card issuer trade pretreatment script file can be with are as follows: can support
The bus IC card of some card issuer distribution carries out the file of transaction flow.
For example, when the transaction that virtual POS application data includes card issuer A pre-processes script file, then public transport IC
Card on-line transaction device 2 supports the transaction of the bus IC card of card issuer A distribution.Conversely, when virtual POS application data does not wrap
When including the transaction pretreatment script file of card issuer A, then bus IC card on-line transaction device 2 does not support the public affairs of card issuer A distribution
Hand over the transaction of IC card.
In specific implementation, virtual POS application vector 24 can be the SD card in bus IC card on-line transaction device 2, SIM
Card, safe built-in unit (SE) etc. have the component of store function, or other energy in bus IC card on-line transaction device 2
Enough store the memory device of virtual POS application data.
In specific implementation, bus IC card on-line transaction device 2 at work, can be by central control unit 22 from virtual
Virtual POS application data is read in POS application vector 24 and is executed, namely is executed virtually by central control unit 22
POS application program.
In specific implementation, server 1 can issue virtual POS application peace to bus IC card on-line transaction device 2 in advance
Fill file and installation instruction.Bus IC card on-line transaction device 2 can receive virtual POS application by the second communication interface 21
Installation file and installation instruction.Bus IC card on-line transaction device 2 is receiving virtual POS application installation file and installation
After instruction, the virtual POS application installation file received is installed by central control unit 22, and virtual POS application installation is literary
The corresponding POS application data of part is stored to virtual POS application vector 24.
During the work time, bus IC card on-line transaction device 2 can be communicated with server 1.Specifically, public transport
IC card on-line transaction device 2 can be communicated by the second communication interface 21 with the first communication interface 11 of server 1, thus
Realize the communication of bus IC card on-line transaction device 2 and server 1.
In practical applications, the first communication interface 11 can be led to the second communication interface 21 by wireless data transmission
Letter, can also be communicated by wired data transfer.For example, the first communication interface 11 and the second communication interface 21 are based on transmission
Control protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP) into
Row communication.For another example, the first communication interface 11 is led to the second communication interface 21 based on mobile communication technologies such as 2G, 3G, 4G, 5G
Letter.It is understood that the first communication interface 11 can also be led to the second communication interface 21 using other communication modes
Letter, is not repeated herein.
Communication mode between IC card read-write interface 23 and bus IC card 3 can communicate for contact, or non-to connect
Touch communication.When bus IC card 3 is communicated with IC card read-write interface 23 using contact, contact communication interface can be used
7816 agreement of ISO.When bus IC card 3 and IC card read-write interface 23 are using contactless communication, IC card and IC card read-write interface
23 can be communicated using 13.56MHz high-frequency communication mode, can also be communicated by 2.45GHz microwave communication mode.
In specific implementation, the business interface 12 in server 1 has while handling more bus IC card on-line transaction devices 2
The ability of the transaction request of transmission also can provide service simultaneously for multiple bus IC card on-line transaction devices 2.Different public affairs
Hand over IC card on-line transaction device 2 that can be communicated by same or different communication mode with server 1.
In specific implementation, the business interface 12 in server 1 can be to the virtual POS in virtual POS application vector 24
Application data is updated.For example, server 1 can be via the first communication interface 11 to bus IC card on-line transaction device
2 send the card issuer's transaction pretreatment script file updated.Bus IC card on-line transaction device 2 is connect by the second communication interface 21
The card issuer that receipts update, which trades, pre-processes script file, and the card issuer in virtual POS application vector 24 is traded and pre-processes foot
The card issuer that this document replaces with update, which trades, pre-processes script file.
In embodiments of the present invention, preset card issuer's transaction pretreatment script file can store in virtual POS application
In carrier 24, it also can store in the memory space possessed by central control unit 22 itself, also can store in public transport IC
In other memories of card on-line transaction device 2.
In specific implementation, the cipher key management interface 13 in server 1 and business interface 12 can pass through network or string
Jaws equipment connection.Cipher key management interface 13 can provide key management system for business interface 12 and other are relevant to transaction
Service interface, such as IC card blacklist, card issuer's interface etc..Transaction key relevant to bus IC card on-line transaction device 2 can
To be placed in cipher key management interface 13, to ensure the safety communicated with bus IC card on-line transaction device 2.
In specific implementation, the available shared bicycle of locating interface 25 is presently in geographical location information, and will share
Bicycle is presently in geographical location information and exports to central control unit 22.Central control unit 22 can be current by shared bicycle
Locating geographical location information is sent to server 1 by the second communication interface 21, so that server 1 can know shared bicycle
It is presently in geographical location.
In specific implementation, electromechanical car locking unit 26 can be connect with the lock on shared bicycle.When single by center control
When member 22 executes virtual POS application program, electromechanical car locking unit 26 can be connect with central control unit 22.Central control unit
22 can export the unlocking order of generation to electromechanical car locking unit 26, and electromechanical car locking unit 26 is opened after receiving unlocking order
Lock is opened, to realize the unlock of shared bicycle.
Referring to Fig. 2, one of embodiment of the present invention bus IC card on-line transaction method is given, below in conjunction with Fig. 1, and
It is described in detail by specific steps.
In specific implementation, referring to Fig.1, in bus IC card on-line transaction device 2, it is provided with virtual POS application vector
24.In virtual POS application vector 24, it is previously stored with virtual POS application data and at least one card issuer is corresponding
Card issuer trade pretreatment script file.Bus IC card on-line transaction device 2 at work, can be by central control unit 22
Run virtual POS application program.
Step S201 reads the information of the bus IC card when detecting bus IC card.
In specific implementation, when logical between the IC card read-write interface in bus IC card and bus IC card on-line transaction device
When letter mode is contactless communication, the IC card read-write interface in bus IC card on-line transaction device be can detecte in working range
With the presence or absence of bus IC card.Bus IC card on-line transaction device detecting in working range there are after bus IC card, can be with
Trigger signal is sent to central control unit, to inform the currently detected bus IC card of central control unit.Central control unit
After knowing that IC card read-write interface detects bus IC card, pre- transaction directive script can be executed, the letter of bus IC card is read
Breath.
For example, bus IC card is communicated with IC card read-write interface by 13.56MHz high-frequency communication, at this point, IC card is read and write
Interface is 13.56MHz read-write interface.When user holds bus IC card close to IC card read-write interface, the detection of IC card read-write interface
There are bus IC cards in working range, and read the information of bus IC card.Bus IC card carries out non-connect with IC card read-write interface
The working principle of touch communication is referred to existing non-contact IC card read-write theory, and the present invention does not repeat them here.
When bus IC card is to contact communication with IC card read-write interface, IC card read-write interface can connect for contact communication
Mouthful.When IC card read-write interface has detected that bus IC card is put into or is inserted into, that is, the information of bus IC card can be read.
In embodiments of the present invention, central control unit is after knowing that IC card read-write interface detects IC card, Ke Yigen
Pretreatment script file is traded according to pre-stored card issuer to read the information of IC card.It trades in card issuer and pre-processes script text
In part, the rule of the information of IC card is read including central control unit.In other words, central control unit is traded according to card issuer
Script file is pre-processed, to know which information read from IC card.
In specific implementation, the information of bus IC card may include the card sequence of the type of IC card, the remaining sum of IC card, IC card
The information such as row number.For example, bus IC card is the traveler card of Shanghai City public transport card limited liability company distribution, bus IC card
Information includes: Shanghai traveler card, 200 yuan of remaining sum, card Serial No. U123456789.
It is understood that in practical applications, the letter for the bus IC card that bus IC card on-line transaction device is read
Breath can also include the other information of public transport IC, be not limited in the example above.
Central control unit can execute initialization trading instruction and returned data after reading the information of IC card.
In specific implementation, the corresponding card issuer of different card issuers, which trades, pre-processes the possible difference of script file, card issuer
It can be one-to-one relationship with card issuer's transaction pretreatment script file.Therefore, when in bus IC card on-line transaction device
When only the corresponding card issuer's transaction of one card issuer of storage pre-processes script file, bus IC card on-line transaction device is only capable of supporting
The transaction of the corresponding IC card of one card issuer;When being stored with the corresponding hair fastener of multiple card issuers in bus IC card on-line transaction device
When side's transaction pretreatment script file, bus IC card on-line transaction device can support the friendship of the corresponding IC card of multiple card issuers
Easily.
Therefore, in embodiments of the present invention, multiple hair fasteners can be previously stored in bus IC card on-line transaction device
Side's transaction pretreatment script file, so that bus IC card on-line transaction device can support the IC card of multiple card issuer's distribution
Transaction.
Step S202 generates transaction application according to the information of the bus IC card, and transaction application is sent to clothes
Business device.
In specific implementation, central control unit is after getting the information of bus IC card, can be according to reading
The information of bus IC card generates transaction application, and transaction generated application is sent to server.
In practical applications, central control unit can answer before sending transaction application to server via virtual POS
Transaction application is encrypted with carrier.Virtual POS application vector exports encrypted transaction application to central control unit,
Encrypted transaction application is sent to server by central control unit.Server after receiving the transaction application of encryption,
The transaction application of encryption is decrypted, to obtain the transaction application of bus IC card on-line transaction device transmission.
Virtual POS application vector applies for that carried out Encryption Algorithm can be 3DES_ECB algorithm to transaction, and combines report
Literary authentication code (Message Authentication Code, MAC).Correspondingly, the decipherment algorithm that server uses also is
3DES_ECB algorithm.It is understood that virtual POS application vector can also carry out transaction application using other encryption methods
Encryption, server can be used same decryption method and encrypted transaction application are decrypted, specific encipher-decipher method
It is not repeated herein.
Step S203 receives process of exchange data and transaction key that the server is sent.
In specific implementation, server, can be to card issuer's server of bus IC card after receiving transaction application
Requests transaction key.Card issuer's server of bus IC card is after receiving the transaction key request of server transmission, Ji Kexiang
Server sends transaction key.In embodiments of the present invention, unless otherwise noted, the server is the online friendship of bus IC card
The corresponding server of easy device.
Step S204 generates trading instruction according to the process of exchange data and the transaction key.
In specific implementation, central control unit is after receiving transaction key, can according to process of exchange data and
Transaction key generates trading instruction.
In practical applications, process of exchange data may include some information of this process of exchange, such as this transaction
The information such as time of process, place, the mark of bus IC card on-line transaction device traded.Process of exchange data can be with
Including some other data in this process of exchange, it is not repeated herein.
Step S205, Xiang Suoshu bus IC card sends the trading instruction, and verifies the transaction of the bus IC card feedback
As a result.
In specific implementation, bus IC card on-line transaction device can refer to the transaction of generation after generating trading instruction
Order is sent to bus IC card.Transaction results corresponding with trading instruction can be generated after receiving trading instruction in bus IC card.
IC card read-write interface in bus IC card on-line transaction device can read transaction results, and central control unit can verify transaction
As a result.
Step S206 exports order of unlocking to lock control unit when the transaction results are to trade successfully to open
Lock.
In specific implementation, when transaction results are to trade successfully, central control unit can be defeated to lock control unit
It unlocks and orders out.Lock control unit can open lock after receiving unlocking order, to realize shared bicycle unlock.
In embodiments of the present invention, when transaction results are to trade successfully, central control unit can also be by transaction results
Server is fed back to, this is traded successfully with tell the server;When transaction results are Fail Transaction, central control unit can be with
It is re-execute the steps S201~step S206, until completing transaction.
In specific implementation, it is pre- can also to send the card issuer's transaction updated to bus IC card on-line transaction device for server
Handle script file.Bus IC card on-line transaction device is after receiving card issuer's transaction pretreatment script file, center control
Card issuer installed in virtual POS application vector is traded and pre-processes script file by unit processed, is replaced with and is currently received
Card issuer trade pretreatment script file, namely the data in virtual POS application vector are updated.
When being updated to the data in virtual POS application vector, it is only necessary to which server is to bus IC card on-line transaction
Device sends the card issuer's transaction pretreatment script file updated, is traded in advance by central control unit using the card issuer updated
It manages script file and substitutes mounted card issuer's transaction pretreatment script file.In the whole process, without to public transport IC
Card on-line transaction device carries out physical maintenance, therefore the maintenance cost of bus IC card on-line transaction device can be effectively reduced.
In specific implementation, central control unit complete card issuer trade pretreatment script file update after, can be with
To server feedback reception result, the card issuer for currently whether completing to update with tell the server, which trades, pre-processes script file
It receives.
Central control unit can tie reception via virtual POS application vector when to server feedback reception result
Fruit is encrypted, and encrypted reception result is fed back to server by central control unit again later.Server is connecing
It after receiving encrypted reception result, is decrypted using corresponding decipherment algorithm, to know reception result.
For example, virtual POS application vector encrypts reception result using 3DES_ECB algorithm, and connect encrypted
It receives result and is sent to central control unit.Encrypted reception result is sent to server by central control unit.Server exists
After receiving the reception result after 3DES_ECB algorithm for encryption, using the key of agreement using 3DES_ECB algorithm to reception
As a result it is decrypted.
In specific implementation, when determining card issuer's transaction pretreatment script file corresponding there is no bus IC card, or
When the unread file specified into the corresponding card issuer's transaction pretreatment script file of bus IC card, bus IC card on-line transaction
Device can export Fail Transaction indication signal, to inform that user can not be to institute using current bus IC card on-line transaction device
The bus IC card used is traded.
When being provided with display screen in bus IC card on-line transaction device, it can show and " not support on the display screen
The printed words such as bus IC card transaction ", to remind user that can not trade using current bus IC card on-line transaction device.
In specific implementation, server can also send the virtual POS application updated to bus IC card on-line transaction device
Program data updates transaction flow.Bus IC card on-line transaction device after receiving card issuer's transaction flow file, in
Centre control unit will replace with the virtual POS application program being currently received to installed virtual POS application data
Data, namely virtual POS application data is updated.
When being updated to virtual POS application data, it is only necessary to which server is to bus IC card on-line transaction device
The virtual POS application data updated is sent, has been installed by central control unit using virtual POS application data substitution
Virtual POS application data.In the whole process, without carrying out physics dimension to bus IC card on-line transaction device
Shield, therefore the maintenance cost of bus IC card on-line transaction device can be effectively reduced.
In specific implementation, central control unit, can be to service after the update for completing virtual POS application data
Whether device feedback reception is as a result, currently complete the reception of the virtual POS application data updated with tell the server.
In specific implementation, server can be to the transaction key that bus IC card on-line transaction device is sent by encryption
Transaction key.At this point, what bus IC card on-line transaction device received is by encrypted transaction key.For convenient for public transport
The transaction key of the encryption received can be decrypted in IC card on-line transaction device, and bus IC card on-line transaction device can be with
Maintenance key request is sent to bus IC card card issuer.Server, can be to bus IC card after receiving maintenance key request
On-line transaction device sends the maintenance key for the transaction key of encryption to be decrypted.
It can be seen that in embodiments of the present invention, in entire process of exchange, bus IC card on-line transaction device only needs
It is once communicated, is communicated with server without one step of every execution, therefore public transport IC can be reduced with server
Card unlocks the time of shared bicycle, improves unlock success rate.
Below by concrete example, the bus IC card on-line transaction method provided in the embodiment of the present invention is illustrated.
Referring to Fig. 3, another bus IC card on-line transaction method in the embodiment of the present invention is given, is carried out below in conjunction with Fig. 1 and Fig. 2
Explanation.
Step S301, bus IC card on-line transaction device obtain the information of bus IC card.
In specific implementation, it can be read by the IC card read-write interface in bus IC card on-line transaction device in its work
Make the information of the bus IC card in range.When user holds within the working range that bus IC card enters IC card read-write interface,
IC card read-write interface is the information that the bus IC card can be read.IC card read-write interface sends the information of the bus IC card read
Central control unit into bus IC card on-line transaction device.
Step S302, bus IC card on-line transaction device generate transaction application.
In specific implementation, the central control unit in bus IC card on-line transaction device can be according to the IC card got
Information, generate corresponding transaction and apply.
Transaction application is sent to server by step S303, bus IC card on-line transaction device.
Step S304, server send transaction key application request to card issuer's server.
Step S305, card issuer's server send transaction key to server.
Step S306, server send process of exchange data and transaction key to IC card on-line transaction device.
Step S307, bus IC card on-line transaction device generate trading instruction.
Trading instruction is sent to bus IC card by step S308, bus IC card on-line transaction device.
Step S309, bus IC card on-line transaction device obtain the transaction results of bus IC card feedback.
Step S310, bus IC card on-line transaction device verify transaction results.
Step S311, bus IC card on-line transaction device generate to unlock and order and be sent to lock control unit.
In specific implementation, when the central control unit verifying in bus IC card on-line transaction device knows that transaction results are
When trading successfully, central control unit can be generated unlocking and order and be sent to lock control unit.Lock control unit is connecing
Lock is opened after receiving unlocking order.
Transaction results are fed back to server by step S312, bus IC card on-line transaction device.
In specific implementation, when the central control unit verifying in bus IC card on-line transaction device knows that transaction results are
When trading successfully, transaction results can also be fed back to server by central control unit, so that server knows this transaction
Success.
Referring to Fig. 4, one of embodiment of the present invention bus IC card on-line transaction device 40 is given, comprising: read single
First 401, first transmission unit 402, receiving unit 403, generation unit 404, the second transmission unit 405, authentication unit 406 and
Third transmission unit 407, in which:
Reading unit 401, for when detecting bus IC card, reading the information of the bus IC card;
First transmission unit 402, for generating transaction application according to the information of the bus IC card, and by the transaction Shen
It please be sent to server;
Receiving unit 403, for receiving the transaction key and process of exchange data that the server issues;The transaction
Key is the server to the bus IC card card issuer request;
Generation unit 404, for generating trading instruction according to the process of exchange data and the transaction key;
Second transmission unit 405, for sending trading instruction to the bus IC card;
Authentication unit 406, for verifying the transaction results of the bus IC card feedback;
Third transmission unit 407, for exporting and unlocking to lock control unit when the transaction results are to trade successfully
Order is to open lock.
In specific implementation, first transmission unit 402 can be also used for knot of trading described in the server feedback
Fruit.
In specific implementation, the receiving unit 403, the card issuer for being also used to receive the update that the server issues hand over
Easily pretreatment script file;First transmission unit is also used to the server feedback reception result.
In specific implementation, the bus IC card on-line transaction device 40 can also include: installation unit 408, for connecing
The virtual POS application installation file and installation instruction that the server issues are received, and the virtual POS application installation text is installed
Part.
In specific implementation, the bus IC card on-line transaction device 40 can also include: output unit 409, for working as
The reading unit 401 is unread when trading the file specified in pretreatment script to the corresponding card issuer of the bus IC card,
Export Fail Transaction indication signal.
In specific implementation, the receiving unit 403, can be also used for receiving that the server sends for described
Maintenance key that transaction key is decrypted and storage;The maintenance key is the server to the bus IC card card issuer
Request.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium is non-
Volatile media or non-transitory media are stored thereon with computer instruction, execute in the present invention when computer instruction is run
The step of stating the bus IC card on-line transaction method provided in any embodiment, is not repeated herein.
The embodiment of the invention also provides another bus IC card on-line transaction device, including memory and processor, institutes
It states and is stored with computer instruction on memory, execute when the computer instruction is run and provided in any of the above-described embodiment of the present invention
Bus IC card on-line transaction method the step of, be not repeated herein.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: ROM, RAM, disk or CD etc..
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.
Claims (14)
1. a kind of bus IC card on-line transaction method characterized by comprising
When detecting bus IC card, the information of the bus IC card is read;
Transaction application is generated according to the information of the bus IC card, and transaction application is sent to server;Described in reception
The transaction key and process of exchange data that server issues;The transaction key is that the server is sent out to the bus IC card
Card side's request;
Trading instruction is generated according to the process of exchange data and the transaction key;
Trading instruction is sent to the bus IC card, and verifies the transaction results of the bus IC card feedback;
When the transaction results are to trade successfully, order of unlocking is exported to lock control unit to open lock.
2. bus IC card on-line transaction method as described in claim 1, which is characterized in that verifying the transaction results as friendship
Easily after success, further includes:
To transaction results described in the server feedback.
3. bus IC card on-line transaction method as described in claim 1, which is characterized in that further include:
The card issuer for receiving the update that the server issues, which trades, pre-processes script file;
To the server feedback reception result.
4. bus IC card on-line transaction method as described in claim 1, which is characterized in that before detecting bus IC card, also
Include:
Receive the virtual POS application installation file and installation instruction that the server issues;
The virtual POS application installation file is installed.
5. bus IC card on-line transaction method as described in claim 1, which is characterized in that detect the bus IC card it
Afterwards, further includes: when the unread file specified into the corresponding card issuer's transaction pretreatment script of the bus IC card, output
Fail Transaction indication signal.
6. bus IC card on-line transaction method as described in claim 1, which is characterized in that further include: receive the server
The maintenance key for the transaction key to be decrypted sent and storage;The maintenance key is the server to institute
State bus IC card card issuer's request.
7. a kind of bus IC card on-line transaction device characterized by comprising
Reading unit, for when detecting bus IC card, reading the information of the bus IC card;
First transmission unit for generating transaction application according to the information of the bus IC card, and the transaction is applied sending
To server;
Receiving unit, for receiving the transaction key and process of exchange data that the server issues;The transaction key is
The server is to the bus IC card card issuer request;
Generation unit, for generating trading instruction according to the process of exchange data and the transaction key;
Second transmission unit, for sending trading instruction to the bus IC card;
Authentication unit, for verifying the transaction results of the bus IC card feedback;
Third transmission unit, for when the transaction results be trade successfully when, to lock control unit output unlocking order with
Open lock.
8. bus IC card on-line transaction device as claimed in claim 7, which is characterized in that first transmission unit is also used
In to transaction results described in the server feedback.
9. bus IC card on-line transaction device as claimed in claim 7, which is characterized in that the receiving unit is also used to connect
The card issuer for receiving the update that the server issues, which trades, pre-processes script file;First transmission unit is also used to institute
State server feedback reception result.
10. bus IC card on-line transaction device as claimed in claim 7, which is characterized in that further include: installation unit is used for
The virtual POS application installation file and installation instruction that the server issues are received, and the virtual POS application installation is installed
File.
11. bus IC card on-line transaction device as claimed in claim 7, which is characterized in that further include: output unit is used for
It is defeated when the reading unit is unread trades the file for pre-processing and specifying in script to the corresponding card issuer of the bus IC card
Fail Transaction indication signal out.
12. bus IC card on-line transaction device as claimed in claim 7, which is characterized in that the receiving unit is also used to connect
Receive the maintenance key for the transaction key to be decrypted that the server is sent and storage;The maintenance key is institute
Server is stated to the bus IC card card issuer request.
13. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction
Perform claim requires the step of 1~6 described in any item bus IC card on-line transaction methods when operation.
14. a kind of bus IC card on-line transaction device, including memory and processor, computer is stored on the memory and is referred to
It enables, which is characterized in that perform claim requires 1~6 described in any item online friendships of bus IC card when the computer instruction is run
The step of easy method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810125495.9A CN110119942A (en) | 2018-02-07 | 2018-02-07 | Bus IC card on-line transaction method and device, computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810125495.9A CN110119942A (en) | 2018-02-07 | 2018-02-07 | Bus IC card on-line transaction method and device, computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110119942A true CN110119942A (en) | 2019-08-13 |
Family
ID=67520105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810125495.9A Pending CN110119942A (en) | 2018-02-07 | 2018-02-07 | Bus IC card on-line transaction method and device, computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110119942A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115102737A (en) * | 2022-06-15 | 2022-09-23 | 交通运输通信信息集团有限公司 | ESAM remote issuing method and system for traffic all-purpose card |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008094328A2 (en) * | 2007-01-30 | 2008-08-07 | Visa U.S.A. Inc. | Signature based negative list for off line payment device validation |
CN101908254A (en) * | 2010-08-23 | 2010-12-08 | 邓斌涛 | Intelligent card transaction platform, system and method |
CN103295320A (en) * | 2013-05-06 | 2013-09-11 | 深圳市国民电子商务有限公司 | All-purpose card interconnection system and method |
CN105023151A (en) * | 2015-07-22 | 2015-11-04 | 天地融科技股份有限公司 | Card transaction data processing method and device |
CN107507309A (en) * | 2017-08-24 | 2017-12-22 | 东峡大通(北京)管理咨询有限公司 | A kind of shared bicycle method for unlocking and server |
-
2018
- 2018-02-07 CN CN201810125495.9A patent/CN110119942A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008094328A2 (en) * | 2007-01-30 | 2008-08-07 | Visa U.S.A. Inc. | Signature based negative list for off line payment device validation |
CN101908254A (en) * | 2010-08-23 | 2010-12-08 | 邓斌涛 | Intelligent card transaction platform, system and method |
CN103295320A (en) * | 2013-05-06 | 2013-09-11 | 深圳市国民电子商务有限公司 | All-purpose card interconnection system and method |
CN105023151A (en) * | 2015-07-22 | 2015-11-04 | 天地融科技股份有限公司 | Card transaction data processing method and device |
CN107507309A (en) * | 2017-08-24 | 2017-12-22 | 东峡大通(北京)管理咨询有限公司 | A kind of shared bicycle method for unlocking and server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115102737A (en) * | 2022-06-15 | 2022-09-23 | 交通运输通信信息集团有限公司 | ESAM remote issuing method and system for traffic all-purpose card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102034323B (en) | Public traffic one-card service system and implementation method, service platform and point of sale (POS) machine thereof | |
US8978975B2 (en) | Systems and methods for authenticating near field communcation financial transactions | |
CN110462663A (en) | For indicating the static token system and method for dynamic authentic credential | |
JP6859519B2 (en) | Credit card payment methods and devices based on mobile terminal card emulation | |
KR101379710B1 (en) | Systems, devices, and methods for performing transactions using secured account numbers | |
CN104025137B (en) | System and method for authorizing the transaction using not expectable password | |
CN107111500A (en) | The wireless deposit of application library | |
CN107278307A (en) | Software layer is mutually authenticated | |
CN106527673A (en) | Method and apparatus for binding wearable device, and electronic payment method and apparatus | |
CN104951937A (en) | Authentication method and authentication system among mobile devices | |
CN105608562A (en) | Electronic payment system | |
CN106997527A (en) | Credit payment method and device based on mobile terminal P2P | |
CN101458853A (en) | On-line POS system and smart card on-line payment method | |
CN105957276A (en) | Android system-based intelligent POS security system, starting method and data management control method | |
CN107111694A (en) | Software tampering detection and reporting process | |
CN103152174B (en) | It is applied to the data processing method in parking lot, device and managing system of car parking | |
CN103577983A (en) | Load method of electronic currency for off-line consumption | |
CN106157013B (en) | Payment terminal, equipment, server, system and payment processing method | |
CN104272315A (en) | Id authentication | |
CN104240073A (en) | Offline payment method and offline payment system on basis of prepaid cards | |
CN104240074A (en) | Prepaid card online payment system based on identity authentication and payment method of prepaid card online payment system | |
CN102810189A (en) | Near field payment and payment completion confirming method for NFC (Near Field Communication) functional mobile phone | |
KR20160030342A (en) | Method of paying for a product or service on a commercial website via an internet connection and a corresponding terminal | |
CN110447213A (en) | Method and system for relay attack detection | |
CN103325038A (en) | System for realizing electronic payment through mobile terminals according to shopping lists provided by sale terminals and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190813 |
|
RJ01 | Rejection of invention patent application after publication |