TWI777248B - Data processing method and system based on asynchronous pre-authorization and offline data authentication, industry terminal, industry background, computer readable medium and computer equipment - Google Patents
Data processing method and system based on asynchronous pre-authorization and offline data authentication, industry terminal, industry background, computer readable medium and computer equipment Download PDFInfo
- Publication number
- TWI777248B TWI777248B TW109132527A TW109132527A TWI777248B TW I777248 B TWI777248 B TW I777248B TW 109132527 A TW109132527 A TW 109132527A TW 109132527 A TW109132527 A TW 109132527A TW I777248 B TWI777248 B TW I777248B
- Authority
- TW
- Taiwan
- Prior art keywords
- information
- industry
- outbound
- card information
- background
- Prior art date
Links
Images
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/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/102—Bill distribution or payments
-
- 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/34—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
- G06Q20/341—Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07B—TICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
- G07B15/00—Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
- G07B15/02—Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems
- G07B15/04—Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems comprising devices to free a barrier, turnstile, or the like
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Networks & Wireless Communication (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
- Communication Control (AREA)
Abstract
本發明涉及資料處理方法及其系統。該方法包括:進站時,獲取卡資訊以及進站資訊,若進站場景為連線狀態,則將資訊連線上傳到行業後臺並由行業後臺發起預授權請求,若進站場景為離線狀態,則在本地保存資訊並在聯網後上傳;出站時,獲取卡資訊以及出站資訊,連線情況下,將資訊上傳到行業後臺,若為離線則在本地保存資訊,行業後臺判斷是否存在預授權請求成功記錄,若存在則發起預授權完成交易,若不存在預授權請求,則發出即時交易請求。根據本發明既能夠降低交易耗時又能夠避免斷網對交易造成影響。The present invention relates to a data processing method and a system thereof. The method includes: when entering the station, obtaining card information and entering station information, if the entering scene is in a connected state, uploading the information connection to the industry background and the industry background initiates a pre-authorization request, if the entering scene is in an offline state , then save the information locally and upload it after connecting to the Internet; when going out, get the card information and outgoing information, when connected, upload the information to the industry background, if it is offline, save the information locally, and the industry background determines whether it exists The pre-authorization request is successfully recorded. If there is a pre-authorization request to complete the transaction, if there is no pre-authorization request, an instant transaction request is issued. According to the present invention, the transaction time can be reduced and the influence of the disconnection of the network on the transaction can be avoided.
Description
本發明涉及電腦技術,具體地涉及一種資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統、行業終端、行業後臺、電腦可讀介質以及電腦設備。The invention relates to computer technology, in particular to a data processing method and a data processing system, industry terminal, industry background, computer readable medium and computer equipment based on asynchronous pre-authorization and offline data authentication.
目前在公交地鐵過閘場景,通過手機當做交通卡進行支付的主要基於兩種模式:即時連線以及離線資料認證。At present, in the scene of passing the bus and subway, the payment through the mobile phone as the transportation card is mainly based on two modes: instant connection and offline data authentication.
實際應用中根據現有行業方的網路情況以及對交易耗時的不同要求,選擇相應方案。In practical applications, the corresponding solution is selected according to the network conditions of the existing industry and the different requirements for transaction time.
然而,現有技術還存在如下缺點:However, the prior art also has the following disadvantages:
即時連線方案對於地鐵網路依賴度較高,且交易耗時相對較長, 離線資料認證方案雖然在過閘速度上具備優勢且不依賴於網路環境,但是存在單邊交易的風險。The real-time connection scheme is highly dependent on the subway network, and the transaction time is relatively long. Although the offline data authentication scheme has advantages in the speed of crossing the gate and does not depend on the network environment, it has the risk of unilateral transactions.
鑒於上述問題,本發明旨在提出一種既能夠降低交易耗時又能夠避免斷網對交易造成影響的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統。In view of the above problems, the present invention aims to provide a data processing method and a data processing system based on asynchronous pre-authorization and offline data authentication, which can not only reduce transaction time, but also avoid the impact of disconnection on transactions.
本發明的一方面的資料處理方法,其中,包括下述步驟:The data processing method of one aspect of the present invention, wherein, comprises the following steps:
進站資料處理步驟,行業終端獲取卡資訊以及進站資訊並基於卡資訊進行離線資料認證處理,當離線資料認證成功的情況下,若進站時行業終端為連線狀態,則行業終端將卡資訊以及進站資訊上傳到行業後臺,並且在從行業後臺收到返回的預授權請求發出通知後行業終端執行閘機開啟動作,其中,所述預授權請求發出通知是在行業後臺基於所述卡資訊發起預授權請求之後並且在行業後臺接收到基於該預授權請求返回的預授權請求結果之前先從行業後臺向行業終端返回;以及Inbound data processing steps, the industry terminal obtains card information and inbound information, and performs offline data authentication processing based on the card information. When the offline data authentication is successful, if the industry terminal is connected when entering the station, the industry terminal will The information and entry information are uploaded to the industry background, and the industry terminal executes the gate opening action after receiving the notification of the pre-authorization request returned from the industry background, wherein the notification of the pre-authorization request is issued in the industry background based on the card After the information initiates the pre-authorization request and before the industry background receives the pre-authorization request result returned based on the pre-authorization request, it returns from the industry background to the industry terminal; and
出站資料處理步驟,行業終端獲取卡資訊並基於卡資訊進行離線資料認證處理,當離線資料認證成功的情況下,行業終端執行閘機開啟動作。In the outbound data processing step, the industry terminal obtains the card information and performs offline data authentication processing based on the card information. When the offline data authentication is successful, the industry terminal executes the gate opening action.
可選地,在所述出站資料處理步驟中,行業終端獲取卡資訊以及出站資訊並基於卡資訊進行離線資料認證處理之後進行黑名單檢查,當離線資料認證成功並且黑名單檢查通過的情況下,則行業終端執行閘機開啟動作。Optionally, in the outbound data processing step, the industry terminal obtains the card information and outbound information, and performs offline data authentication processing based on the card information, and then performs a blacklist check. When the offline data authentication is successful and the blacklist check is passed. down, the industry terminal executes the gate opening action.
可選地,在所述進站資料處理步驟中,行業終端獲取卡資訊以及進站資訊並基於卡資訊進行離線資料認證處理,當離線資料認證成功的情況下,若進站時行業終端為離線狀態,則行業終端在本地保存卡資訊以及進站資訊,並且行業終端執行閘機開啟動作,在後續聯網之後行業終端再將卡資訊以及進站資訊上傳到行業後臺。Optionally, in the entry data processing step, the industry terminal obtains card information and entry information and performs offline data authentication processing based on the card information. When the offline data authentication is successful, if the industry terminal is offline when entering the station. In the state, the industry terminal saves the card information and entry information locally, and the industry terminal performs the gate opening action. After the subsequent networking, the industry terminal uploads the card information and entry information to the industry background.
可選地,在所述出站資料處理步驟中,行業終端獲取卡資訊以及出站資訊並基於卡資訊進行離線資料認證處理,當離線資料認證成功的情況下,若出站時行業終端為連線狀態,行業終端將卡資訊以及出站資訊上傳到行業後臺,行業終端根據從行業後臺返回的通知判斷是否執行閘機開啟動作。Optionally, in the outbound data processing step, the industry terminal obtains card information and outbound information, and performs offline data authentication processing based on the card information. The industry terminal uploads the card information and outbound information to the industry background, and the industry terminal judges whether to execute the gate opening action according to the notification returned from the industry background.
可選地,在所述出站資料處理步驟中,行業終端獲取卡資訊以及出站資訊並基於卡資訊進行離線資料認證處理,當離線資料認證成功的情況下,若出站時行業終端為離線狀態,行業終端執行閘機開啟動作,在後續聯網之後行業終端再將卡資訊以及出站資訊上傳到行業後臺。Optionally, in the outbound data processing step, the industry terminal obtains card information and outbound information and performs offline data authentication processing based on the card information. When the offline data authentication is successful, if the industry terminal is offline when going outbound. state, the industry terminal performs the gate opening action, and after the subsequent networking, the industry terminal uploads the card information and outbound information to the industry background.
可選地,在所述出站資料處理步驟中包括下述步驟:Optionally, the steps of processing outbound data include the following steps:
行業終端獲取卡資訊以及出站資訊;The industry terminal obtains card information and outbound information;
基於卡資訊進行離線資料認證處理;Perform offline data authentication processing based on card information;
當離線資料認證成功的情況下,行業終端將卡資訊以及出站資訊上傳到行業後臺;When the offline data authentication is successful, the industry terminal will upload the card information and outbound information to the industry background;
行業後臺進行進站記錄檢查以及黑名單檢查,若沒有通過進站記錄檢查以及黑名單檢查,則行業後臺使得行業終端不執行閘機開啟動作,若通過進站記錄檢查以及黑名單檢查,則行業後臺使得行業終端執行閘機開啟動作。The industry background checks the entry record and blacklist check. If the entry record check and blacklist check are not passed, the industry background makes the industry terminal not perform the gate opening action. If it passes the entry record check and blacklist check, the industry The background enables the industry terminal to perform the gate opening action.
可選地,在所述出站資料處理步驟中包括下述步驟:Optionally, the steps of processing outbound data include the following steps:
行業終端獲取卡資訊以及出站資訊;The industry terminal obtains card information and outbound information;
基於卡資訊進行離線資料認證處理;Perform offline data authentication processing based on card information;
當離線資料認證成功的情況下,行業終端將卡資訊以及出站資訊上傳到行業後臺;When the offline data authentication is successful, the industry terminal will upload the card information and outbound information to the industry background;
行業後臺進行進站記錄檢查以及黑名單檢查;在通過進站記錄檢查以及黑名單檢查的情況下,行業後臺判斷是否存在預授權請求結果;以及The industry background checks inbound records and blacklists; after passing the inbound records and blacklist checks, the industry background determines whether there is a pre-authorization request result; and
當存在預授權請求結果的情況下,行業後臺發起預授權完成交易。When there is a pre-authorization request result, the industry background initiates pre-authorization to complete the transaction.
可選地,在所述出站資料處理步驟中包括下述步驟:Optionally, the steps of processing outbound data include the following steps:
行業終端獲取卡資訊以及出站資訊;The industry terminal obtains card information and outbound information;
基於卡資訊進行離線資料認證處理;Perform offline data authentication processing based on card information;
當離線資料認證成功的情況下,行業終端將卡資訊以及出站資訊上傳到行業後臺;When the offline data authentication is successful, the industry terminal will upload the card information and outbound information to the industry background;
行業後臺進行進站記錄檢查以及黑名單檢查;在通過進站記錄檢查以及黑名單檢查的情況下,行業後臺判斷是否存在預授權請求結果;以及The industry background checks inbound records and blacklists; after passing the inbound records and blacklist checks, the industry background determines whether there is a pre-authorization request result; and
當不存在預授權請求結果的情況下,行業後臺發起基於進站資訊和出站資訊的即時交易請求。When there is no pre-authorization request result, the industry background initiates an instant transaction request based on inbound information and outbound information.
可選地,在所述出站資料處理步驟中,若出站時行業終端為連線狀態,則行業終端將卡資訊以及出站資訊連線上傳到行業後臺。Optionally, in the outbound data processing step, if the industry terminal is in a connected state when outbound, the industry terminal uploads the card information and the outbound information to the industry background via connection.
可選地,在所述進站資料處理步驟中,若進站時行業終端為離線狀態,則行業終端在本地保存卡資訊以及進站資訊,當後續聯網之後再將卡資訊以及進站資訊上傳到行業後臺,Optionally, in the entry data processing step, if the industry terminal is in an offline state when entering the station, the industry terminal saves the card information and entry information locally, and uploads the card information and entry information after subsequent networking. to the backstage of the industry,
在所述出站資料處理步驟中,若出站時行業終端為離線狀態,則行業終端在本地保存卡資訊以及出站資訊並且當後續聯網之後再將卡資訊以及出站資訊上傳到行業後臺。In the outbound data processing step, if the industry terminal is offline when going out, the industry terminal saves the card information and outbound information locally and uploads the card information and outbound information to the industry background after subsequent networking.
可選地,在所述出站資料處理步驟中,若出站時行業終端為離線狀態,則行業終端在本地保存卡資訊以及出站資訊並且當後續聯網之後再將卡資訊以及出站資訊上傳到行業後臺。Optionally, in the outbound data processing step, if the industry terminal is offline when going out, the industry terminal locally saves the card information and outbound information, and uploads the card information and outbound information after subsequent networking. to the backstage of the industry.
可選地,在所述進站資料處理步驟中,若進站時行業終端為離線狀態,則行業終端在本地保存卡資訊以及進站資訊,當後續聯網之後再將卡資訊以及進站資訊上傳到行業後臺,Optionally, in the entry data processing step, if the industry terminal is in an offline state when entering the station, the industry terminal saves the card information and entry information locally, and uploads the card information and entry information after subsequent networking. to the backstage of the industry,
在所述出站資料處理步驟中,若出站時行業終端為連線狀態,則行業終端將卡資訊以及出站資訊連線上傳到行業後臺。In the outbound data processing step, if the industry terminal is in a connected state when going out, the industry terminal will upload the card information and the outbound information to the industry background via connection.
可選地,所述預授權完成交易是在預授權請求的額度中扣除按照進站資訊和出站資訊計算的額度。Optionally, the pre-authorization to complete the transaction is to deduct the quota calculated according to the inbound information and the outbound information from the pre-authorization request quota.
可選地,所述即時交易請求基於進站資訊和出站資訊計算的金額生成。Optionally, the instant transaction request is generated based on the amount calculated from the inbound information and the outbound information.
本發明的資料處理系統,其中,包括行業終端以及行業後臺,The data processing system of the present invention includes an industry terminal and an industry background,
所述行業終端包括:The industry terminal includes:
第一資訊獲取模組,用於獲取卡資訊、進站資訊以及出站資訊;The first information acquisition module is used to acquire card information, inbound information and outbound information;
第一資訊儲存模組,用於儲存所述第一資訊獲取模組獲取的卡資訊、進站資訊以及出站資訊;a first information storage module for storing card information, inbound information and outbound information acquired by the first information acquisition module;
第一離線認證模組,用於基於所述第一資訊獲取模組獲取的卡資訊進行離線資料認證並輸出離線資料認證結果;a first offline authentication module, configured to perform offline data authentication based on the card information obtained by the first information acquisition module and output an offline data authentication result;
第一資訊收發模組,用於將卡資訊、進站資訊以及出站資訊上傳到所述行業後臺並接受來自所述行業後臺的控制指令;以及a first information transceiver module for uploading card information, inbound information and outbound information to the industry background and accepting control instructions from the industry background; and
第一閘機控制模組,用於來自行業後臺的控制指令或者來自所述第一離線資料認證模組的離線資料認證結果控制是否執行閘機開啟動作,The first gate control module is used to control whether to execute the gate opening action by the control instruction from the industry background or the offline data authentication result from the first offline data authentication module,
所述行業後臺包括:The industry background includes:
第二資訊獲取模組,用於從所述行業終端獲取卡資訊、進站資訊以及出站資訊;The second information acquisition module is used to acquire card information, inbound information and outbound information from the industry terminal;
第二資訊儲存模組,用於儲存所述第二資訊獲取模組獲取的卡資訊、進站資訊以及出站資訊;以及a second information storage module for storing the card information, inbound information and outbound information acquired by the second information acquisition module; and
交易處理模組,用於基於卡資訊以及進站資訊發起預授權請求並且在發起預授權請求之後且在行業後臺接收到基於該預授權請求返回的預授權請求結果之前先向所述行業終端返回預授權請求發出通知作為所述控制指令,以及用於基於卡資訊、進站資訊以及出站資訊完成即時交易。A transaction processing module, used for initiating a pre-authorization request based on card information and entry information, and returning to the industry terminal after the pre-authorization request is initiated and before the pre-authorization request result returned based on the pre-authorization request is received in the industry background The pre-authorization request issues a notification as the control command and is used to complete instant transactions based on card information, inbound information, and outbound information.
可選地,所述行業終端進一步包括:Optionally, the industry terminal further includes:
第一黑名單檢查模組,用於基於所述第一資訊獲取模組獲取的卡資訊進行黑名單檢查並輸出第一黑名單檢查結果;a first blacklist checking module, configured to perform blacklist checking based on the card information obtained by the first information obtaining module and output the first blacklist checking result;
其中,所述第一閘機控制模組還根據來自所述第一黑名單檢查模組的第一黑名單檢查結果控制行業終端是否執行閘機開啟動作。Wherein, the first gate control module also controls whether the industry terminal performs the gate opening action according to the first blacklist check result from the first blacklist check module.
可選地,所述行業後臺進一步包括:Optionally, the industry background further includes:
第二黑名單檢查模組,用於基於卡資訊進行黑名單檢查並輸出第二黑名單檢查結果;以及The second blacklist checking module is used to perform blacklist checking based on card information and output the second blacklist checking result; and
進站記錄檢查模組,用於基於卡資訊進行進站記錄檢查並輸出進站記錄檢查結果,Inbound record check module, used for inbound record inspection based on card information and output of inbound record inspection results,
所述第一閘機控制模組進一步根據所述第二黑名單檢查結果和所述進站記錄檢查結果控制行業終端是否執行閘機開啟動作。The first gate control module further controls whether the industry terminal performs the gate opening action according to the second blacklist check result and the entry record check result.
本發明的行業終端,其中,包括:The industry terminal of the present invention includes:
第一資訊獲取模組,用於獲取卡資訊、進站資訊以及出站資訊;The first information acquisition module is used to acquire card information, inbound information and outbound information;
第一離線認證模組,用於基於所述第一資訊獲取模組獲取的卡資訊進行離線資料認證並輸出離線資料認證結果;a first offline authentication module, configured to perform offline data authentication based on the card information obtained by the first information acquisition module and output an offline data authentication result;
第一資訊收發模組,用於將卡資訊、進站資訊以及出站資訊上傳到外部的行業後臺;以及The first information transceiver module, used for uploading card information, inbound information and outbound information to an external industry background; and
第一閘機控制模組,用於控制是否執行閘機開啟動作,The first gate control module is used to control whether to execute the gate opening action,
其中,在進站資料處理中,當所述第一離線認證模組的離線資料認證結果為成功的情況下,若進站時行業終端為連線狀態,則所述第一資訊收發模組將卡資訊以及進站資訊上傳到外部的行業後臺,並且在從行業後臺收到返回的預授權請求發出通知後所述第一閘機控制模組進行控制以執行閘機開啟動作,其中,所述預授權請求發出通知是在行業後臺基於所述卡資訊發起預授權請求之後並且在行業後臺接收到基於該預授權請求返回的預授權請求結果之前先從行業後臺向行業終端返回。Wherein, in the inbound data processing, when the offline data authentication result of the first offline authentication module is successful, if the industry terminal is in a connected state when entering the station, the first information transceiver module will The card information and the entry information are uploaded to the external industry background, and the first gate control module controls to execute the gate opening action after receiving the returned pre-authorization request from the industry background. The notification of pre-authorization request is returned from the industry background to the industry terminal after the industry background initiates the pre-authorization request based on the card information and before the industry background receives the pre-authorization request result returned based on the pre-authorization request.
可選地,在出站資料處理中,在所述第一離線認證模組輸出的離線資料認證結果為成功的情況下,所述第一閘機控制模組進行控制以執行閘機開啟動作。Optionally, in the outbound data processing, when the offline data authentication result output by the first offline authentication module is successful, the first gate control module performs control to perform a gate opening action.
可選地,進一步包括:Optionally, further include:
第一資訊儲存模組,用於儲存所述第一資訊獲取模組獲取的卡資訊、進站資訊以及出站資訊。The first information storage module is used for storing card information, inbound information and outbound information acquired by the first information acquisition module.
可選地,所述第一資訊收發模組還用於接受來自行業後臺的控制指令,Optionally, the first information transceiver module is also used to accept control instructions from the industry background,
所述第一閘機控制模組用於根據來自行業後臺的控制指令或者來自所述第一離線資料認證模組的離線資料認證結果控制是否執行閘機開啟動作。The first gate control module is used for controlling whether to execute the gate opening action according to the control instruction from the industry background or the offline data authentication result from the first offline data authentication module.
可選地,所述行業終端進一步包括:Optionally, the industry terminal further includes:
第一黑名單檢查模組,用於基於所述第一資訊獲取模組獲取的卡資訊進行黑名單檢查並輸出第一黑名單檢查結果;a first blacklist checking module, configured to perform blacklist checking based on the card information obtained by the first information obtaining module and output the first blacklist checking result;
其中,所述第一閘機控制模組還根據來自所述第一黑名單檢查模組的第一黑名單檢查結果控制行業終端是否執行閘機開啟動作。Wherein, the first gate control module also controls whether the industry terminal performs the gate opening action according to the first blacklist check result from the first blacklist check module.
可選地,若為連線狀態,所述第一資訊收發模組直接將第一資訊獲取模組獲取的卡資訊、進站資訊以及出站資訊上傳到外部的行業後臺;Optionally, in the connected state, the first information transceiver module directly uploads the card information, inbound information and outbound information acquired by the first information acquisition module to an external industry background;
若為離線狀態,所述第一資訊收發模組將接收到的卡資訊、進站資訊以及出站資訊暫存在所述第一資訊儲存模組並且在後續聯網之後所述第一資訊收發模組將第一資訊儲存模組儲存的卡資訊、進站資訊以及出站資訊上傳到外部的行業後臺。In the offline state, the first information transceiver module temporarily stores the received card information, inbound information and outbound information in the first information storage module, and the first information transceiver module after subsequent networking Upload the card information, inbound information and outbound information stored in the first information storage module to the external industry background.
本發明的行業後臺,其中,包括:The industry background of the present invention includes:
第二資訊獲取模組,用於從行業終端獲取卡資訊、進站資訊以及出站資訊;The second information acquisition module is used to acquire card information, inbound information and outbound information from the industry terminal;
第二資訊儲存模組,用於儲存所述第二資訊獲取模組獲取的卡資訊、進站資訊以及出站資訊;以及a second information storage module for storing the card information, inbound information and outbound information acquired by the second information acquisition module; and
交易處理模組,用於基於卡資訊以及進站資訊發起預授權請求並且在發起預授權請求之後且在行業後臺接收到基於該預授權請求返回的預授權請求結果之前先向外部的行業終端返回預授權請求發出通知作為控制指令,以及用於基於卡資訊、進站資訊以及出站資訊完成交易。The transaction processing module is used to initiate a pre-authorization request based on the card information and entry information, and after the pre-authorization request is initiated and before the pre-authorization request result returned based on the pre-authorization request is received in the industry background, it is returned to the external industry terminal. The pre-authorization request issues notifications as control instructions and is used to complete transactions based on card information, inbound information, and outbound information.
可選地,所述行業後臺進一步包括:Optionally, the industry background further includes:
第二黑名單檢查模組,用於基於卡資訊進行黑名單檢查並輸出第二黑名單檢查結果;以及The second blacklist checking module is used to perform blacklist checking based on card information and output the second blacklist checking result; and
進站記錄檢查模組,用於基於卡資訊進行進站記錄檢查並輸出進站記錄檢查結果。Inbound record check module, used to check the inbound record based on card information and output the result of the inbound record inspection.
可選地,所述基於卡資訊、進站資訊以及出站資訊完成交易包括:Optionally, completing the transaction based on card information, inbound information and outbound information includes:
基於進站資訊和出站資訊進行的即時交易請求;instant transaction requests based on incoming and outgoing information;
基於預授權請求進行預授權完成交易。The transaction is pre-authorized based on the pre-authorization request.
本發明的電腦可讀介質,其上儲存有電腦程式,其中,The computer-readable medium of the present invention has a computer program stored thereon, wherein,
該電腦程式被處理器執行時實現上述的資料處理方法。The computer program implements the above-mentioned data processing method when executed by the processor.
本發明的電腦設備,包括儲存模組、處理器以及儲存在儲存模組上並可在處理器上運行的電腦程式,其中,所述處理器執行所述電腦程式時實現上述的資料處理方法。The computer equipment of the present invention includes a storage module, a processor, and a computer program stored on the storage module and running on the processor, wherein the processor implements the above-mentioned data processing method when executing the computer program.
如上所述,根據本發明的基於非同步預授權與離線資料認證的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統,能夠將預授權方案和離線資料認證方案相結合,即能夠減少公共交通場景交易對網路環境的要求,又能夠同時準確地進行公共交通場景的計費。而且,根據本發明的公共交通場景的基於非同步預授權與離線資料認證的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統既能夠降低交易耗時又能夠避免斷網對交易造成影響。As mentioned above, according to the data processing method based on asynchronous pre-authorization and offline data authentication and the data processing system based on asynchronous pre-authorization and offline data authentication, the pre-authorization scheme and the offline data authentication scheme can be combined, namely It can reduce the requirements on the network environment for transactions in public transportation scenarios, and at the same time accurately perform billing in public transportation scenarios. Moreover, the data processing method based on asynchronous pre-authorization and offline data authentication and the data processing system based on asynchronous pre-authorization and offline data authentication according to the public transportation scene of the present invention can not only reduce transaction time, but also avoid disconnection of the transaction. cause an impact.
下面介紹的是本發明的多個實施例中的一些,旨在提供對本發明的基本瞭解。並不旨在確認本發明的關鍵或決定性的要素或限定所要保護的範圍。Introduced below are some of the various embodiments of the present invention and are intended to provide a basic understanding of the present invention. It is not intended to identify key or critical elements of the invention or to delineate the scope of what is claimed.
出於簡潔和說明性目的,本文主要參考其示範實施例來描述本發明的原理。但是,本領域技術人員將容易地認識到,相同的原理可等效地應用於所有類型的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統,並且可以在其中實施這些相同的原理,以及任何此類變化不背離本專利申請的真實精神和範圍。For the purposes of brevity and illustration, the principles of the invention are described herein primarily with reference to exemplary embodiments thereof. However, those skilled in the art will readily recognize that the same principles are equally applicable to all types of data processing methods and data processing systems based on asynchronous pre-authorization and offline data authentication, and in which these same principles can be implemented principles, and any such variations do not depart from the true spirit and scope of this patent application.
而且,在下文描述中,參考了附圖,這些附圖圖示特定的示範實施例。在不背離本發明的精神和範圍的前提下可以對這些實施例進行電、機械、邏輯和結構上的更改。此外,雖然本發明的特徵是結合若干實施/實施例的僅其中之一來公開的,但是如針對任何給定或可識別的功能可能是期望和/或有利的,可以將此特徵與其他實施/實施例的一個或多個其他特徵進行組合。因此,下文描述不應視為在限制意義上的,並且本發明的範圍由所附請求項及其等效物來定義。Furthermore, in the following description, reference is made to the accompanying drawings, which illustrate specific exemplary embodiments. Electrical, mechanical, logical, and structural changes may be made to these embodiments without departing from the spirit and scope of the present invention. Furthermore, although a feature of the invention is disclosed in connection with only one of several implementations/embodiments, this feature may be combined with other implementations as may be desired and/or advantageous for any given or identifiable function / One or more other features of the embodiments are combined. Therefore, the following description should not be taken in a limiting sense, and the scope of the invention is defined by the appended claims and their equivalents.
諸如“具備”和“包括”之類的用語表示除了具有在說明書和請求項中有直接和明確表述的單元(模組)和模組以外,本發明的技術方案也不排除具有未被直接或明確表述的其它單元(模組)和模組的情形。Terms such as "have" and "include" mean that in addition to having units (modules) and modules that are directly and clearly expressed in the specification and claims, the technical solutions of the present invention also do not exclude those that are not directly or The situation of other units (modules) and modules clearly stated.
首先,對於本發明的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統的概要進行說明。First, the outline of the data processing method and data processing system based on asynchronous pre-authorization and offline data authentication of the present invention will be described.
在以下的說明中對於本發明的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統來說,以應用於地鐵場景為例進行說明,當然本發明不限定於地鐵場景,還可以適用於其他各種場景,在適用於公共交通場景的情況下,例如可以適用公車、船舶、磁懸浮等等。In the following description, for the data processing method and the data processing system based on asynchronous pre-authorization and offline data authentication of the present invention, the application to the subway scene is taken as an example for description. Of course, the present invention is not limited to the subway scene, and can also It is suitable for various other scenarios. In the case of public transportation scenarios, for example, it can be applied to buses, ships, magnetic levitation and so on.
圖1是表示本發明的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法中的進站資料處理的流程示意圖。圖2是表示本發明的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法中出站資料處理的流程示意圖。FIG. 1 is a schematic flow chart showing incoming data processing in the data processing method based on asynchronous pre-authorization and offline data authentication for subways of the present invention. FIG. 2 is a schematic flow chart showing the outbound data processing in the data processing method based on asynchronous pre-authorization and offline data authentication for subways of the present invention.
首先,參照圖1對於進站資料處理進行說明。First, the inbound data processing will be described with reference to FIG. 1 .
如圖1所示,本發明的用於地鐵的基於非同步預授權與離線資料認證的進站資料處理包括下述步驟:As shown in Figure 1, the inbound data processing based on asynchronous pre-authorization and offline data authentication for the subway of the present invention comprises the following steps:
步驟S101:用戶刷卡進站以後,閘機進行ODA(離線資料認證)以確保卡片真偽,具體地:發出離線資料交互,若認證成功(即圖中的“Y”,下同)則繼續步驟S102,否則(即圖中的“N”,下同)跳至步驟S111;Step S101: After the user swipes the card to enter the station, the gate performs ODA (offline data authentication) to ensure the authenticity of the card, specifically: send out the offline data interaction, if the authentication is successful (ie "Y" in the figure, the same below), continue to the step S102, otherwise (ie "N" in the figure, the same below), skip to step S111;
步驟S102:判斷閘機是否有訊號,若有訊號則繼續步驟S103,若閘機無訊號,則跳至步驟S112;Step S102: determine whether the gate has a signal, if there is a signal, go to step S103, if there is no signal from the gate, go to step S112;
步驟S103:閘機向地鐵後臺上送卡片資訊(即卡資訊)和進站資料;Step S103: The turnstile sends card information (ie card information) and entry information to the subway background;
步驟S104:地鐵後臺進行黑名單檢查,若檢查通過則繼續步驟S105,否則跳至步驟S115;Step S104: The subway background checks the blacklist. If the check is passed, continue to Step S105, otherwise, skip to Step S115;
步驟S105:地鐵後臺進行的單邊或者重複進站檢查,若檢查通過則繼續步驟S106,否則跳至步驟S115;Step S105: unilateral or repeated entry inspection performed by the subway background, if the inspection passes, continue to step S106, otherwise skip to step S115;
步驟S106:地鐵後臺向銀行轉接系統上送最高票價的非同步預授權請求;Step S106: The subway background sends an asynchronous pre-authorization request for the highest fare to the bank transfer system;
步驟S107:地鐵後臺發出控制指令使得閘機打開,用戶進站;Step S107: The subway background sends a control command to make the gate open and the user enters the station;
步驟S108:銀行轉接系統向銀行發起非同步預授權請求;Step S108: the bank transfer system initiates an asynchronous pre-authorization request to the bank;
步驟S109:銀行後臺根據非同步預授權請求進行預授權處理,凍結最高票價的資金;Step S109: the bank background performs pre-authorization processing according to the asynchronous pre-authorization request, and freezes the funds of the highest fare;
步驟S110:銀行後臺將預授權結果返回到地鐵後臺,地鐵後臺保存進站記錄和預授權狀態(即卡片資訊、進站資訊以及預授權成功記錄);Step S110: The bank background returns the pre-authorization result to the subway background, and the subway background saves the entry record and pre-authorization status (ie card information, entry information, and pre-authorization success record);
步驟S111:閘機不打開,拒絕進站;Step S111: the gate is not opened, and the entry is refused;
步驟S112:閘機在本地保存卡片資料以及進站資訊,其中,獲取到ARQC(連線交易請求密文),該ARQC用來做連線預授權交易,然後繼續步驟S113;Step S112: The gate saves the card data and the entry information locally, wherein, the ARQC (request cipher text for online transaction) is obtained, and the ARQC is used for the online pre-authorization transaction, and then proceeds to step S113;
步驟S113:閘機打開,使用者進站,然後繼續步驟S114;Step S113: the gate is opened, the user enters the station, and then proceeds to step S114;
步驟S114:待有訊號後,閘機向地鐵後臺系統上送卡片資料以及進站資訊;Step S114: After the signal is received, the turnstile sends the card information and the entry information to the subway background system;
步驟S115:閘機不打開,拒絕進站。Step S115: the gate is not opened, and the entry is refused.
其中,ODA是指Offline Data Authentication(離線資料驗證),是指終端無需獲得發卡銀行的授權回應也可驗證卡片的真偽。DDA是指Dynamic Data Authentication (動態資料認證)。ARQC是指Authorization Request Cryptogram(授權請求密文),是指進行連線預授權交易的授權請求密文。Among them, ODA refers to Offline Data Authentication, which means that the terminal can verify the authenticity of the card without obtaining an authorization response from the issuing bank. DDA refers to Dynamic Data Authentication (dynamic data authentication). ARQC refers to Authorization Request Cryptogram, which refers to the authorization request cipher text for pre-authorization transactions.
這裡,步驟S106和步驟S107是本發明的一個發明點,對此這裡進行詳細說明。Here, step S106 and step S107 are an inventive point of the present invention, which will be described in detail here.
在步驟S106中,地鐵後臺向銀行轉接系統上送最高票價預授權資訊(即發起預授權請求),在地鐵後臺基於卡資訊發起預授權請求之後並且在地鐵後臺接收到基於該預授權請求從銀行轉接系統返回的預授權請求結果之前先從地鐵後臺向閘機返回“預授權請求發出通知”,接到該“預授權請求發出通知”時閘機打開。這樣就不需要等到從銀行轉接系統返回預授權請求結果,能夠更早地將“預授權請求發出通知”返回到閘機,閘機收到該通知即打開,由此,能夠提高連線處理的速度。接著,參照圖2對於出站資料處理進行說明。In step S106, the subway background sends the highest fare pre-authorization information to the bank transfer system (that is, initiates a pre-authorization request), after the subway background initiates a pre-authorization request based on the card information and receives the pre-authorization request based on the card information in the subway background Before the result of the pre-authorization request returned from the bank transfer system, the "Notice of Pre-authorization Request" will be returned from the subway backstage to the turnstile, and the turnstile will be opened when the "Notice of Pre-authorization Request" is received. In this way, there is no need to wait until the result of the pre-authorization request is returned from the bank switching system, and the "pre-authorization request notification" can be returned to the gate earlier, and the gate will be opened upon receiving the notification, thereby improving the connection processing. speed. Next, outbound data processing will be described with reference to FIG. 2 .
如圖2所示,本發明的用於地鐵的基於非同步預授權與離線資料認證的出站資料處理包括下述步驟:As shown in Figure 2, the outbound data processing based on asynchronous pre-authorization and offline data authentication for the subway of the present invention includes the following steps:
步驟S201:用戶刷卡進站以後,閘機進行離線資料認證以確保卡片真偽,具體地:發出離線資料交互,若認證成功則繼續步驟S202,否則跳至步驟S212;Step S201: After the user swipes the card to enter the station, the gate performs offline data authentication to ensure the authenticity of the card, specifically: sends an offline data interaction, if the authentication is successful, continue to step S202, otherwise skip to step S212;
步驟S202:判斷閘機是否有訊號,若有訊號則繼續步驟S203,若閘機無訊號,則跳至步驟S213;Step S202: determine whether the gate has a signal, if there is a signal, continue to step S203, if there is no signal from the gate, skip to step S213;
步驟S203:閘機向地鐵後臺上送卡片資訊和出站資料;Step S203: the turnstile sends the card information and exit information to the subway background;
步驟S204:地鐵後臺進行黑名單檢查,若檢查通過則繼續步驟S205,否則跳至步驟S216;Step S204: The subway background checks the blacklist. If the check is passed, continue to Step S205, otherwise, skip to Step S216;
步驟S205:地鐵後臺進行的單邊或者重複進站檢查,若檢查通過則繼續步驟S206,否則跳至步驟S216;Step S205: unilateral or repeated entry inspection performed by the subway background, if the inspection passes, continue to step S206, otherwise skip to step S216;
步驟S206:地鐵後臺確認預授權是否成功(即確認是否存在預授權成功記錄),若成功則繼續步驟S207,若失敗跳至步驟S216;Step S206: The subway background confirms whether the pre-authorization is successful (that is, confirms whether there is a pre-authorization success record), if successful, proceed to step S207, and if it fails, skip to step S216;
步驟S207:閘機打開,使用者出站,繼續步驟S208;Step S207: the gate is opened, and the user exits the station, proceed to step S208;
步驟S208:地鐵後臺按照進站資料和出站資料計算票價,向銀行轉接系統非同步發起預授權完成請求;Step S208: The subway background calculates the fare according to the entry data and the exit data, and asynchronously initiates a pre-authorization completion request to the bank transfer system;
步驟S209:銀行轉接系統接收到預授權完成請求後向銀行發起預授權完成請求;Step S209: After receiving the pre-authorization completion request, the bank transfer system initiates a pre-authorization completion request to the bank;
步驟S210:銀行後臺根據預授權完成請求進行預授權完成處理,並返回交易結果;Step S210: the bank background performs pre-authorization completion processing according to the pre-authorization completion request, and returns the transaction result;
步驟S211:銀行後臺將交易結果返回到地鐵後臺,地鐵後臺標記行程匹配且扣款成功;Step S211: The bank background returns the transaction result to the subway background, the subway background marks the itinerary matching and the deduction is successful;
步驟S212:閘機不打開,拒絕出站;Step S212: the gate is not opened, and the exit is refused;
步驟S213:閘機在本地保存卡片資料以及出站資訊,繼續步驟S214;Step S213: The turnstile saves the card data and outbound information locally, and proceeds to step S214;
步驟S214:閘機打開,使用者出站,然後繼續步驟S215;Step S214: the gate is opened, the user exits the station, and then proceeds to step S215;
步驟S215:待有訊號後,閘機向地鐵後臺系統上送卡片資料以及出站資訊;Step S215: After the signal is received, the turnstile sends the card data and exit information to the subway background system;
步驟S216:閘機不打開,拒絕進站。Step S216: the gate is not opened, and the entry is refused.
其中,ODA是指Offline Data Authentication(離線資料驗證),是指終端無需獲得發卡銀行的授權回應也可驗證卡片的真偽。DDA是指Dynamic Data Authentication (動態資料認證)。ARQC是指Authorization Request Cryptogram(授權請求密文),是指進行連線預授權交易的授權請求密文。Among them, ODA refers to Offline Data Authentication, which means that the terminal can verify the authenticity of the card without obtaining an authorization response from the issuing bank. DDA refers to Dynamic Data Authentication (dynamic data authentication). ARQC refers to Authorization Request Cryptogram, which refers to the authorization request cipher text for pre-authorization transactions.
另外,在圖1和圖2中雖然示例在地鐵後臺側(即行業後臺側)進行黑名單檢查,作為一個可選方式,也可以在閘機側(即行業終端側)進行黑名單檢查。而且,可以是行業後臺側和行業終端側都進行黑名單檢查,也可以在行業後臺側和行業終端側中選擇其一進行黑名單檢查。In addition, in Figures 1 and 2, although the blacklist check is performed on the subway back-end side (ie, the industry back-end side) as an example, the blacklist check can also be performed on the gate side (ie, the industry terminal side) as an optional method. Moreover, the blacklist check may be performed on both the industry backend side and the industry terminal side, or one of the industry backend side and the industry terminal side may be selected to perform the blacklist check.
接著,對於本發明的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法的4種實施形態進行說明。Next, four embodiments of the data processing method based on asynchronous pre-authorization and offline data authentication for subways according to the present invention will be described.
第一實施形態first embodiment
本發明第一實施方式的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法表示進站連線、出站連線的情況下的資料處理方法。該方法包括進站資料處理步驟和出站資料處理步驟。The data processing method based on asynchronous pre-authorization and offline data authentication for subways according to the first embodiment of the present invention represents the data processing method in the case of inbound connection and outbound connection. The method includes inbound data processing steps and outbound data processing steps.
以下,對於進站資料處理步驟和出站資料處理步驟分別進行說明。Hereinafter, the inbound data processing procedure and the outbound data processing procedure will be described separately.
首先,進站資料處理步驟包括以下子步驟:First, the inbound data processing step includes the following sub-steps:
(1)進站時,用戶刷卡後,閘機進行離線資料認證,若認證通過則閘機打開,繼續後續步驟,若失敗的情況下閘機不打開,拒絕進站;(1) When entering the station, after the user swipes the card, the gate will perform offline data authentication. If the authentication is passed, the gate will be opened, and the next steps will continue. If the gate fails, the gate will not be opened and the entry will be refused;
(2)閘機為連線狀態下(即判斷閘機有訊號的情況下),閘機將卡片資訊以及進站資料上傳到地鐵後臺;(2) When the gate is connected (that is, when it is judged that the gate has a signal), the gate will upload the card information and entry information to the subway background;
(3)地鐵後臺進行黑名單檢查,即確認用戶卡號不在地鐵後臺的黑名單,若通過則繼續以下步驟(4),否則直接返回通知閘機不打開,拒絕用戶出站;(3) Check the blacklist in the subway background, that is, confirm that the user's card number is not in the blacklist of the subway background. If it passes, proceed to the following step (4), otherwise it will directly return to notify that the gate will not be opened, and the user will not be allowed to leave the station;
(4)地鐵後臺進一步進行單邊或者重複進站檢查,判斷用戶不存單邊進站記錄且沒有重複進站,若不滿足條件則直接返回通知閘機不打開,拒絕用戶進站,例如提醒使用者卡片異常以及需前往服務台處理;若滿足條件則繼續下述步驟(5);(4) The subway background further conducts unilateral or repeated entry inspections, and determines that the user does not have a unilateral entry record and does not enter the station repeatedly. If the conditions are not met, it will directly return to notify the gate not to open, and refuse the user to enter the station, such as a reminder The user card is abnormal and needs to go to the service desk for processing; if the conditions are met, continue to the following step (5);
(5)地鐵後臺基於卡片資訊向銀行轉接系統發起非同步預授權請求(例如以最高票價的金額發起預授權請求),所謂的“非同步預授權請求”是指,地鐵後臺向銀行轉接系統發起預授權請求,在地鐵後臺基於卡資訊發起預授權請求之後並且在地鐵後臺接收到基於該預授權請求從銀行轉接系統返回的預授權請求結果之前先從地鐵後臺向閘機返回“預授權請求發出通知”,在接到該“預授權請求發出通知”之後閘機打開;(5) The subway background initiates an asynchronous pre-authorization request to the bank transfer system based on the card information (for example, a pre-authorization request is initiated with the highest fare amount). The system initiates a pre-authorization request. After the subway background initiates the pre-authorization request based on the card information and before the subway background receives the pre-authorization request result returned from the bank transfer system based on the pre-authorization request, the subway background first returns to the turnstile "" Notification of pre-authorization request", the gate will be opened after receiving the notification of pre-authorization request;
(6)銀行轉接系統收到請求後,向發卡銀行的銀行卡系統發起預授權請求,以凍結卡內資金,並將預授權結果返回地鐵後臺。(6) After receiving the request, the bank transfer system initiates a pre-authorization request to the bank card system of the issuing bank to freeze the funds in the card, and returns the pre-authorization result to the subway background.
通過上述的“非同步預授權請求”,不需要等到從銀行轉接系統返回預授權請求結果,而能夠更早地將“預授權請求發出通知”返回到閘機,閘機收到該通知即打開,由此,能夠提高連線處理的速度。Through the above-mentioned "asynchronous pre-authorization request", there is no need to wait until the result of the pre-authorization request is returned from the bank switching system, but the "pre-authorization request notification" can be returned to the gate earlier, and the gate receives the notification immediately. By opening, the speed of connection processing can be increased.
接著,當用戶出站時,出站資料處理步驟包括以下子步驟:Next, when the user goes out, the outbound data processing step includes the following sub-steps:
(1)出站時,用戶刷卡後,閘機進行離線動態資料認證以驗證卡片為真,若離線資料認證成功的情況下繼續後續步驟,若離線資料認證失敗的情況下閘機不打開,拒絕出站;(1) When leaving the station, after the user swipes the card, the gate will perform offline dynamic data authentication to verify that the card is true. If the offline data authentication is successful, continue with the next steps. If the offline data authentication fails, the gate will not open and reject it. outbound;
(2)閘機將卡片資訊和出站資訊發送到地鐵後臺;(2) The gate sends the card information and outbound information to the subway background;
(3)地鐵後臺進行黑名單檢查,用於確認用戶卡號不在地鐵後臺的黑名單,若通過則繼續以下步驟(4),否則直接返回通知閘機不打開,拒絕用戶出站;(3) Check the blacklist in the subway background to confirm that the user's card number is not in the blacklist of the subway background. If it passes, continue to the following step (4), otherwise it will return directly to notify that the gate will not be opened, and the user will not be allowed to leave the station;
(4)地鐵後臺進行單邊或者重複進站檢查,判斷用戶不存單邊進站記錄且沒有重複進站,若不滿足條件,則直接返回通知閘機不打開,拒絕用戶出站,若滿足條件則繼續下述步驟(5);(4) The subway background checks for unilateral or repeated entry, and judges that the user does not have a unilateral entry record and does not enter the station repeatedly. If the conditions are not met, it will directly return to notify the gate not to open, and refuse the user to exit the station. Condition, continue to the following step (5);
(5)地鐵後臺判斷該卡片資訊對應的卡號是否有預授權成功記錄,若有則通知閘機開閘,同時地鐵後臺基於卡片資訊、進站資料以及出站資料即時向銀行轉接系統發起預授權完成請求,另一方面,若沒有預授權成功記錄,則通知閘機不打開,拒絕用戶出站;(5) The subway background determines whether the card number corresponding to the card information has a successful pre-authorization record, and if so, notifies the gate to open, and the subway background immediately initiates a pre-authorization to the bank transfer system based on the card information, entry information and exit information. Authorization completes the request. On the other hand, if there is no successful pre-authorization record, the gate will be notified that the gate will not be opened, and the user will be refused to leave the station;
(6)由銀行轉接系統收到授權完成請求後,向發卡銀行的銀行後臺發起預授權完成交易,由銀行後臺扣除乘客車資並將結果返回地鐵後臺;以及(6) After receiving the authorization completion request, the bank transfer system initiates a pre-authorization transaction to the bank background of the issuing bank, and the bank background deducts the passenger fare and returns the result to the subway background; and
(7)地鐵後臺標記行程匹配且扣款成功。(7) The itinerary marked in the subway background matches and the deduction is successful.
第二實施形態Second Embodiment
本發明第二實施方式的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法表示進站離線、出站離線的情況下的資料處理方法。該方法包括進站資料處理步驟和出站資料處理步驟。The data processing method for subway based on asynchronous pre-authorization and offline data authentication according to the second embodiment of the present invention represents the data processing method in the case of inbound offline and outbound offline. The method includes inbound data processing steps and outbound data processing steps.
以下,對於進站資料處理步驟和出站資料處理步驟分別進行說明。Hereinafter, the inbound data processing procedure and the outbound data processing procedure will be described separately.
首先,進站資料處理步驟包括以下子步驟:First, the inbound data processing step includes the following sub-steps:
(1)進站時,用戶刷卡後,閘機進行離線資料認證,若認證通過則閘機打開,繼續後續步驟,若失敗的情況下閘機不打開,拒絕進站;(1) When entering the station, after the user swipes the card, the gate will perform offline data authentication. If the authentication is passed, the gate will be opened, and the next steps will continue. If the gate fails, the gate will not be opened and the entry will be refused;
(2)閘機為離線的情況下(即判斷閘機無訊號的情況下),閘機將卡片資訊以及進站資料保存在本地,當後續閘機聯網後再向地鐵後臺上送卡片資訊以及進站資料(ODA交易資料)以用於後續出站時進行行程匹配。(2) When the turnstile is offline (that is, when it is judged that the turnstile has no signal), the turnstile saves the card information and entry information locally, and then sends the card information to the subway background when the subsequent turnstiles are connected to the Internet. Inbound data (ODA transaction data) for subsequent outbound trip matching.
接著,出站資料處理包括以下子步驟:Next, outbound data processing includes the following sub-steps:
(1)出站時,用戶刷卡後,閘機進行離線動態資料認證(DDA驗證)以驗證卡片為真,若認證通過則閘機打開,繼續下述步驟(2),若認證失敗則閘機不打開,拒絕用戶出站;(1) When leaving the station, after the user swipes the card, the gate will perform offline dynamic data authentication (DDA verification) to verify that the card is true. If the authentication is passed, the gate will be opened, and the following steps (2) will continue. If the authentication fails, the gate will be turned off. If it is not opened, the user will be refused to go out;
(2)閘機為離線的情況下(即判斷閘機無訊號的情況下),閘機將卡片資訊以及出站資料保存在本地,當後續閘機聯網後再向地鐵後臺上送卡片資訊以及出站資料(ODA交易資料)以用於後續出站時進行行程匹配;(2) When the turnstile is offline (that is, when it is judged that the turnstile has no signal), the turnstile saves the card information and outbound data locally. Outbound data (ODA transaction data) for subsequent outbound trip matching;
(3)地鐵後臺在收到卡片資訊以及出站資料之後,確認該卡片資訊有對應的進站資料但不存在預授權成功記錄的情況下,地鐵後臺匹配進站資料和出站資料,成功匹配形成並按照地鐵計費規則進行計費,向銀行轉接系統發起即時交易請求;(3) After the subway background receives the card information and exit information, it confirms that the card information has corresponding entry information but there is no successful pre-authorization record, the subway background matches the entry information and exit information, and the match is successful. Form and charge according to the subway charging rules, and initiate an instant transaction request to the bank transfer system;
(4)銀行轉接系統收到即時交易請求後向發卡銀行的銀行後臺即時交易,由發卡銀行的銀行後臺扣除乘客車資並將結果返回地鐵後臺;以及(4) After the bank transfer system receives the instant transaction request, it conducts an instant transaction to the bank backstage of the card issuing bank, and the bank backstage of the card issuing bank deducts the passenger fare and returns the result to the subway backstage; and
(5)地鐵後臺標記行程匹配且扣款成功。(5) The itinerary marked in the subway background matches and the deduction is successful.
第三實施形態third embodiment
本發明第三實施方式的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法表示進站連線、出站離線的情況下的資料處理方法。該方法包括進站資料處理步驟和出站資料處理步驟。The data processing method based on asynchronous pre-authorization and offline data authentication for subways according to the third embodiment of the present invention represents the data processing method in the case of inbound connection and outbound offline. The method includes inbound data processing steps and outbound data processing steps.
以下,對於進站資料處理步驟和出站資料處理步驟分別進行說明。Hereinafter, the inbound data processing procedure and the outbound data processing procedure will be described separately.
首先,進站資料處理步驟包括以下子步驟:First, the inbound data processing step includes the following sub-steps:
(1)進站時,用戶刷卡後,閘機進行離線資料認證,若認證通過則閘機打開,繼續後續步驟,若失敗的情況下閘機不打開,拒絕進站;(1) When entering the station, after the user swipes the card, the gate will perform offline data authentication. If the authentication is passed, the gate will be opened, and the next steps will continue. If the gate fails, the gate will not be opened and the entry will be refused;
(2)閘機為連線狀態下(即判斷閘機有訊號的情況下),閘機將卡片資訊以及進站資料上傳到地鐵後臺;(2) When the gate is connected (that is, when it is judged that the gate has a signal), the gate will upload the card information and entry information to the subway background;
(3)地鐵後臺進行黑名單檢查,即確認用戶卡號不在地鐵後臺的黑名單,若通過則繼續以下步驟(4),否則直接返回通知閘機不打開,拒絕用戶出站;(3) Check the blacklist in the subway background, that is, confirm that the user's card number is not in the blacklist of the subway background. If it passes, proceed to the following step (4), otherwise it will directly return to notify that the gate will not be opened, and the user will not be allowed to leave the station;
(4)地鐵後臺進一步進行單邊或者重複進站檢查,判斷用戶不存單邊進站記錄且沒有重複進站,若不滿足條件則直接返回通知閘機不打開,拒絕用戶進站,例如提醒使用者卡片異常以及需前往服務台處理,若滿足條件則繼續下述步驟(5);(4) The subway background further conducts unilateral or repeated entry inspections, and determines that the user does not have a unilateral entry record and does not enter the station repeatedly. If the conditions are not met, it will directly return to notify the gate not to open, and refuse the user to enter the station, such as a reminder If the user's card is abnormal and needs to go to the service desk for processing, if the conditions are met, proceed to the following step (5);
(5)地鐵後臺基於卡片資訊向銀行轉接系統發起非同步預授權請求(例如以最高票價的金額發起預授權請求),所謂的“非同步預授權請求”是指,地鐵後臺向銀行轉接系統發起預授權請求,在地鐵後臺基於卡資訊發起預授權請求之後並且在地鐵後臺接收到基於該預授權請求從銀行轉接系統返回的預授權請求結果之前先從地鐵後臺向閘機返回“預授權請求發出通知”,在接到該“預授權請求發出通知”之後閘機打開;(5) The subway background initiates an asynchronous pre-authorization request to the bank transfer system based on the card information (for example, a pre-authorization request is initiated with the highest fare amount). The system initiates a pre-authorization request. After the subway background initiates the pre-authorization request based on the card information and before the subway background receives the pre-authorization request result returned from the bank transfer system based on the pre-authorization request, the subway background first returns to the turnstile "" Notification of pre-authorization request", the gate will be opened after receiving the notification of pre-authorization request;
(6)銀行轉接系統收到請求後,向發卡銀行的銀行卡系統發起預授權請求,以凍結卡內資金,並將預授權結果返回地鐵後臺。(6) After receiving the request, the bank transfer system initiates a pre-authorization request to the bank card system of the issuing bank to freeze the funds in the card, and returns the pre-authorization result to the subway background.
通過上述的“非同步預授權請求”,不需要等到從銀行轉接系統返回預授權請求結果,而能夠更早地將“預授權請求發出通知”返回到閘機,閘機收到該通知即打開,由此,能夠提高連線處理的速度。Through the above-mentioned "asynchronous pre-authorization request", there is no need to wait until the result of the pre-authorization request is returned from the bank switching system, but the "pre-authorization request notification" can be returned to the gate earlier, and the gate receives the notification immediately. By opening, the speed of connection processing can be increased.
接著,當用戶出站時,出站資料處理步驟包括以下子步驟:Next, when the user goes out, the outbound data processing step includes the following sub-steps:
(1)出站時,用戶刷卡後,閘機進行離線動態資料認證以驗證卡片為真,若離線資料認證成功的情況下繼續後續步驟,若離線資料認證失敗的情況下閘機不打開,拒絕出站;(1) When leaving the station, after the user swipes the card, the gate will perform offline dynamic data authentication to verify that the card is true. If the offline data authentication is successful, continue with the next steps. If the offline data authentication fails, the gate will not open and reject it. outbound;
(2)閘機為離線的情況下(即判斷閘機無訊號的情況下),閘機將卡片資訊以及出站資料保存在本地,當後續閘機聯網後再向地鐵後臺上送卡片資訊以及出站資料(ODA交易資料)以用於後續出站時進行行程匹配;(2) When the turnstile is offline (that is, when it is judged that the turnstile has no signal), the turnstile saves the card information and outbound data locally. Outbound data (ODA transaction data) for subsequent outbound trip matching;
(3)地鐵後臺在收到卡片資訊以及出站資料之後,確認該卡片資訊有對應的進站資料並且存在預授權成功記錄的情況下,地鐵後臺基於卡片資訊、進站資料以及出站資料向銀行轉接系統發起預授權完成請求;(3) After the subway backend receives the card information and outbound data, it confirms that the card information has corresponding inbound data and there is a successful pre-authorization record. The bank transfer system initiates a pre-authorization completion request;
(4)由銀行轉接系統收到授權完成請求後,向發卡銀行的銀行後臺發起預授權完成交易,由銀行後臺扣除乘客車資並將結果返回地鐵後臺;以及(4) After receiving the authorization completion request, the bank transfer system initiates a pre-authorization transaction to the bank background of the card-issuing bank, and the bank background deducts the passenger fare and returns the result to the subway background; and
(5)地鐵後臺標記行程匹配且扣款成功。(5) The itinerary marked in the subway background matches and the deduction is successful.
第四實施形態Fourth Embodiment
本發明第四實施方式的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法表示進站離線、出站連線的情況下的資料處理方法。該方法包括進站資料處理步驟和出站資料處理步驟。The data processing method for subway based on asynchronous pre-authorization and offline data authentication according to the fourth embodiment of the present invention represents the data processing method in the case of inbound offline and outbound connection. The method includes inbound data processing steps and outbound data processing steps.
以下,對於進站資料處理步驟和出站資料處理步驟分別進行說明。Hereinafter, the inbound data processing procedure and the outbound data processing procedure will be described separately.
首先,進站資料處理步驟包括以下子步驟:First, the inbound data processing step includes the following sub-steps:
(1)進站時,用戶刷卡後,閘機進行離線資料認證,若認證通過則閘機打開,繼續後續步驟,若失敗的情況下閘機不打開,拒絕進站;(1) When entering the station, after the user swipes the card, the gate will perform offline data authentication. If the authentication is passed, the gate will be opened, and the next steps will continue. If the gate fails, the gate will not be opened and the entry will be refused;
(2)閘機為離線的情況下(即判斷閘機無訊號的情況下),閘機將卡片資訊以及進站資料保存在本地,當後續閘機聯網後再向地鐵後臺上送卡片資訊以及進站資料(ODA交易資料)以用於後續出站時進行行程匹配。(2) When the turnstile is offline (that is, when it is judged that the turnstile has no signal), the turnstile saves the card information and entry information locally, and then sends the card information to the subway background when the subsequent turnstiles are connected to the Internet. Inbound data (ODA transaction data) for subsequent outbound trip matching.
接著,當用戶出站時,出站資料處理步驟包括以下子步驟:Next, when the user goes out, the outbound data processing step includes the following sub-steps:
(1)出站時,用戶刷卡後,閘機進行離線動態資料認證以驗證卡片為真,若離線資料認證成功的情況下繼續後續步驟,若離線資料認證失敗的情況下閘機不打開,拒絕出站;(1) When leaving the station, after the user swipes the card, the gate will perform offline dynamic data authentication to verify that the card is true. If the offline data authentication is successful, continue with the next steps. If the offline data authentication fails, the gate will not open and reject it. outbound;
(2)閘機將卡片資訊和出站資訊發送到地鐵後臺;(2) The gate sends the card information and outbound information to the subway background;
(3)地鐵後臺進行黑名單檢查,用於確認用戶卡號不在地鐵後臺的黑名單,若通過則繼續以下步驟(4),否則直接返回通知閘機不打開,拒絕用戶出站;(3) Check the blacklist in the subway background to confirm that the user's card number is not in the blacklist of the subway background. If it passes, continue to the following step (4), otherwise it will return directly to notify that the gate will not be opened, and the user will not be allowed to leave the station;
(4)地鐵後臺進行單邊或者重複進站檢查,判斷用戶不存單邊進站記錄且沒有重複進站,若不滿足條件,則直接返回通知閘機不打開,拒絕用戶出站,若滿足條件則繼續下述步驟(5);(4) The subway background checks for unilateral or repeated entry, and judges that the user does not have a unilateral entry record and does not enter the station repeatedly. If the conditions are not met, it will directly return to notify the gate not to open, and refuse the user to exit the station. Condition, continue to the following step (5);
(5)地鐵後臺判斷該卡片資訊對應的卡號存在進站資料但沒有預授權成功記錄的情況下,地鐵後臺通知閘機開閘,同時地鐵後臺基於卡片資訊、進站資料以及出站資料按照地鐵計費規則進行計費,向銀行轉接系統發起即時交易請求;(5) Under the circumstance that the subway background judges that the card number corresponding to the card information has in-station data but no successful pre-authorization record, the subway back-end notifies the gate to open, and the subway back-end is based on the card information, in-station data and out-station data according to the subway system. The charging rules are used for charging, and an instant transaction request is initiated to the bank transfer system;
(6)銀行轉接系統收到即時交易請求後向發卡銀行的銀行後臺即時交易,由發卡銀行的銀行後臺扣除乘客車資並將結果返回地鐵後臺;以及(6) After the bank transfer system receives the instant transaction request, it conducts an instant transaction to the bank background of the card-issuing bank, and the bank background of the card-issuing bank deducts the passenger fare and returns the result to the subway background; and
(7)地鐵後臺標記行程匹配且扣款成功。(7) The itinerary marked in the subway background matches and the deduction is successful.
以上例子主要說明了本發明的資料處理方法,接著,對於本發明的以上例子主要說明了資料處理系統進行說明。The above examples mainly describe the data processing method of the present invention. Next, the above examples of the present invention mainly describe the data processing system.
圖3是表示本發明的資料處理系統的方塊示意圖。FIG. 3 is a block diagram showing the data processing system of the present invention.
如圖3所示,本發明的資料處理系統包括:行業終端100、行業後臺200、銀行轉接系統300以及銀行後臺400。As shown in FIG. 3 , the data processing system of the present invention includes: an
其中,行業終端100包括:Wherein, the
第一資訊獲取模組110,用於獲取卡資訊以及進出站資訊;The first
第一離線認證模組120,用於基於所述第一資訊獲取模組110獲取的卡資訊進行離線資料認證並輸出離線資料認證結果;The first
第一資訊儲存模組130,用於儲存所述第一資訊獲取模組110獲取的資訊;a first
第一資訊收發模組140,用於將卡資訊、進出站資訊上傳到所述行業後臺200並接受來自所述行業後臺200的控制指令;以及The first
第一閘機控制模組150,用於根據所述離線認證結果以及來自行業後臺200的控制指令對行業終端100的閘機進行控制。The first
其中,在進站資料處理中,當所述第一離線認證模組120的離線資料認證結果為成功的情況下,若進站時行業終端100為連線狀態,則所述第一資訊收發模組140將卡資訊以及進站資訊上傳到外部的行業後臺200,並且在從行業後臺200收到返回的預授權請求發出通知後第一閘機控制模組150進行控制以執行閘機開啟動作,其中,所述預授權請求發出通知是在行業後臺200基於所述卡資訊向銀行轉接系統300發起預授權請求之後並且在行業後臺200接收到基於該預授權請求從銀行轉接系統300返回的預授權請求結果之前先從行業後臺200向行業終端100返回。其中,在出站資料處理中,在第一離線認證模組120輸出的離線資料認證結果為成功的情況下,第一閘機控制模組150進行控制以執行閘機開啟動作。行業後臺200包括:Wherein, in the inbound data processing, when the offline data authentication result of the first
第二資訊獲取模組210,用於從所述行業終端100獲取卡資訊以及進出站資訊;The second
第二資訊儲存模組220,用於儲存所述第二資訊獲取模組210獲取的資訊;以及The second
交易處理模組230,用於基於卡資訊以及/或者進出站資訊發起預授權請求或者發起即時交易請求,以及用於判斷是否存在預授權請求並且若存在預授權請求則發起預授權完成交易,若不存在預授權請求,則發起即時交易請求。The
銀行轉接系統300,用於將來自行業後臺200的交易請求轉發到與卡資訊相應的銀行的銀行後臺400,並且將來自銀行後臺400的交易處理回饋返回到行業後臺200。The
銀行後臺400用於根據交易請求(包括預授權請求、預授權完成請求、即時交易請求等)完成交易處理。The
作為一個優選的方式,行業後臺200進一步包括:As a preferred way, the
黑名單檢查模組240,用於基於卡資訊進行黑名單檢查並輸出第一控制指令;以及The
進站記錄檢查模組250,用於基於卡資訊進行進站記錄檢查(例如,有無單邊記錄,有無重複進站等)並輸出第二控制指令。The inbound
這樣,第一閘機控制模組150可以設置為進一步根據來自行業後臺200的第一控制指令和第二控制指令控制行業終端100的閘機打開或關閉。In this way, the first
其中,交易處理模組230基於卡資訊以最高票價發起預授權請求以及基於卡資訊以及/或者進出站資訊發起即時交易請求,而且,另一方面,用於判斷是否存在預授權請求並且若存在預授權請求則發起預授權完成交易,若不存在預授權請求,則發起即時交易請求。其中,所述預授權完成交易是指在以最高票價發起預授權請求的金額中扣除根據進站資訊和出站資訊匹配的實際交通費金額而完成交易的情況。Wherein, the
圖4是表示本發明的用於地鐵場景的基於非同步預授權與離線資料認證的資料處理系統的方塊示意圖。FIG. 4 is a block diagram illustrating a data processing system based on asynchronous pre-authorization and offline data authentication for subway scenarios according to the present invention.
如圖4所示,本發明的用於地鐵的基於非同步預授權與離線資料認證的資料處理系統包括:閘機終端10(地鐵終端,也可簡稱為閘機)、地鐵後臺20、銀行轉接系統30以及銀行後臺40。As shown in FIG. 4 , the data processing system based on asynchronous pre-authorization and offline data authentication for the subway of the present invention includes: a gate terminal 10 (subway terminal, also referred to as a gate), a
其中,閘機終端10包括:Wherein, the
第一資訊獲取模組11,用於獲取卡資訊以及進出站資訊;The first information acquisition module 11 is used to acquire card information and inbound and outbound information;
第一離線認證模組12,用於基於所述第一資訊獲取模組11獲取的卡資訊進行離線認證並輸出離線認證結果;The first
第一資訊儲存模組13,用於儲存所述第一資訊獲取模組11獲取的資訊;a first
第一資訊收發模組14,用於將卡資訊、進出站資訊上傳到所述地鐵後臺20並接受來自所述地鐵後臺20的控制指令;以及The first
第一閘機控制模組15,用於根據所述離線認證結果以及來自地鐵後臺20的控制指令對閘機終端10的閘機的打開或關閉進行控制。The first
地鐵後臺20包括:
第二資訊獲取模組21,用於從閘機終端10獲取卡資訊以及進出站資訊;The second
第二資訊儲存模組22,用於儲存第二資訊獲取模組21獲取的資訊;以及The second
交易處理模組23,用於基於卡資訊以及/或者進出站資訊發起預授權請求或者發起即時交易請求,以及用於判斷是否存在預授權請求並且若存在預授權請求則發起預授權完成交易,若不存在預授權請求,則發起即時交易請求。The
銀行轉接系統30用於將來自地鐵後臺20的交易請求轉發到與卡資訊相應的銀行的銀行後臺40,並且將來自銀行後臺40的交易處理回饋返回到地鐵後臺20。The
銀行後臺40用於根據交易請求(包括預授權請求、預授權完成請求、即時交易請求等)完成交易處理。The
另外,在這裡說明的是銀行後臺40,作為替代方式也可以銀聯轉接系統後臺、協力廠商後臺等。In addition, the bank backstage 40 is described here, and as an alternative, the backstage of the UnionPay transfer system, the backstage of a third-party manufacturer, etc. can also be used.
作為一個優選的方式,地鐵後臺20進一步包括:As a preferred way, the
黑名單檢查模組24,用於基於卡資訊進行黑名單檢查並輸出第一控制指令;以及The
進站記錄檢查模組25,用於基於卡資訊進行進站記錄檢查(例如,有無單邊記錄,有無重複進站等)並輸出第二控制指令。The entry
這樣,第一閘機控制模組15可以設置為進一步根據來自地鐵後臺20的第一控制指令和第二控制指令控制閘機終端10的閘機打開或關閉。In this way, the first
其中,交易處理模組23基於卡資訊以最高票價發起預授權請求以及基於卡資訊以及/或者進出站資訊發起即時交易請求,而且,另一方面,用於判斷是否存在預授權請求並且若存在預授權請求則發起預授權完成交易,若不存在預授權請求,則發起即時交易請求。其中,所述預授權完成交易是指在以最高票價發起預授權請求的金額中扣除根據進站資訊和出站資訊匹配的實際交通費金額而完成交易的情況。Wherein, the
這樣,利用本實施方式的用於地鐵場景的基於非同步預授權與離線資料認證的進站資料處理系統能夠實現以下資料處理方法。In this way, the following data processing methods can be implemented by using the inbound data processing system based on asynchronous pre-authorization and offline data authentication for subway scenarios in this embodiment.
在進站時,進站資料處理包括以下步驟:When entering the station, the data processing of the station includes the following steps:
使用者刷卡進站以後,第一資訊獲取模組11獲取卡資訊以及進站資訊,第一離線認證模組12進行離線認證並輸出離線認證結果;After the user enters the station by swiping the card, the first information obtaining module 11 obtains the card information and the entering station information, and the first
若認證成功則繼續下述步驟,若認證失敗第一閘機控制模組15根據所述離線認證失敗的情況下控制閘機終端10的閘機的關閉;If the authentication succeeds, the following steps are continued, and if the authentication fails, the first
當閘機終端10有聯網訊號的情況下,第一資訊收發模組14將卡資訊以及進站資訊上傳到地鐵後臺20,而當閘機終端10沒有聯網訊號的情況下,第一資訊儲存模組13儲存第一資訊獲取模組11獲取的資訊,並且等待有聯網訊號後再由第一資訊收發模組14上傳到地鐵後臺20;When the
當閘機終端10連線向地鐵後臺20上送卡資訊和進站資料的情況下,地鐵後臺10的黑名單檢查模組24基於卡資訊進行黑名單檢查並輸出第一控制指令,若黑名單檢查為通過則第一控制指令為打開閘機終端10的閘機,若黑名單檢查為未通過則第一控制指令為關閉閘機終端10的閘機;When the
由進站記錄檢查模組25進一步基於卡資訊進行進站記錄檢查(例如,有無單邊記錄,有無重複進站等)並輸出第二控制指令,若進站記錄檢查為通過則第二控制指令為打開閘機終端10的閘機,若進站記錄檢查為未通過則第二控制指令為關閉閘機終端10的閘機;The inbound
地鐵後臺20的交易處理模組23向銀行轉接系統30上送最高票價的非同步預授權請求;The
銀行轉接系統30向銀行後臺40發起非同步預授權請求;The
銀行後臺40根據非同步預授權請求進行預授權處理,凍結最高票價的資金;The
銀行後臺40將預授權結果返回到地鐵後臺20,地鐵後臺20保存進站記錄(包括卡片資訊以及預授權成功確認資訊)。The
當出站時,包括出站資料處理包括下述步驟:When outbound, including outbound data processing includes the following steps:
使用者刷卡出站時,第一資訊獲取模組11獲取卡資訊以及出站資訊;When the user swipes the card out of the station, the first information acquisition module 11 acquires the card information and the outbound information;
第一離線認證模組12基於第一資訊獲取模組11獲取的卡資訊進行離線認證並輸出離線認證結果;The first
若認證成功則繼續下述步驟,若認證失敗第一閘機控制模組15根據所述離線認證結果為失敗的情況控制閘機終端10的閘機的關閉;If the authentication is successful, continue the following steps, if the authentication fails, the first
當閘機終端10有聯網訊號的情況下,第一資訊收發模組14將卡資訊以及出站資訊上傳到地鐵後臺20,而當閘機終端10沒有聯網訊號的情況下,第一資訊儲存模組13儲存第一資訊獲取模組11獲取的資訊,並且等待有聯網訊號後再由第一資訊收發模組14上傳到地鐵後臺20;When the
當閘機終端10連線向地鐵後臺20上送卡資訊和出站資料的情況下,地鐵後臺10的黑名單檢查模組24基於卡資訊進行黑名單檢查並輸出第一控制指令,若黑名單檢查為通過則第一控制指令為打開閘機終端10的閘機,若黑名單檢查為未通過則第一控制指令為關閉閘機終端10的閘機;When the
由進站記錄檢查模組25進一步基於卡資訊進行進站記錄檢查(例如,有無單邊記錄,有無重複進站等)並輸出第二控制指令,若進站記錄檢查為通過則第二控制指令為打開閘機,若進站記錄檢查為未通過則第二控制指令為關閉閘機;The inbound
地鐵後臺20的交易處理模組23確認是否存在預授權成功記錄,若存在預授權成功記錄,則地鐵後臺20的交易處理模組23按照行程計算票價,向銀行轉接系統30非同步發起預授權完成請求,銀行轉接系統30接收到預授權完成請求後向銀行後臺40發起預授權完成請求,銀行後臺40根據預授權完成請求進行預授權完成處理,並返回交易結果,銀行後臺40將交易結果返回到地鐵後臺20,地鐵後臺20標記行程匹配且扣款成功,而另一方面,當不存在預授權成功記錄,則地鐵後臺20的交易處理模組23按照進站資訊和出站資訊計算票價,向銀行轉接系統30即時交易請求,銀行轉接系統30接收到即時交易請求後向銀行後臺40發起即時交易請求,銀行後臺40根據即時交易請求進行預即時交易,並返回交易結果,銀行後臺40將交易結果返回到地鐵後臺20,地鐵後臺20標記行程匹配且扣款成功。The
本發明還提供一種電腦可讀介質,其上儲存有電腦程式,其中,The present invention also provides a computer-readable medium on which a computer program is stored, wherein,
該電腦程式被處理器執行時實現上述的資料處理方法。The computer program implements the above-mentioned data processing method when executed by the processor.
本發明還提供一種電腦設備,包括儲存模組、處理器以及儲存在儲存模組上並可在處理器上運行的電腦程式,其中,所述處理器執行所述電腦程式時實現上述的資料處理方法。The present invention also provides a computer device, comprising a storage module, a processor, and a computer program stored on the storage module and running on the processor, wherein the processor implements the above-mentioned data processing when executing the computer program method.
如上所述,根據本發明的公共交通場景的基於非同步預授權與離線資料認證的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統,能夠將預授權方案和離線資料認證方案相結合,即能夠減少公共交通場景交易對網路環境的要求,又能夠同時準確地進行公共交通場景的計費。而且,根據本發明的公共交通場景的基於非同步預授權與離線資料認證的資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統既能夠降低交易耗時又能夠避免斷網對交易造成影響。As described above, according to the data processing method based on asynchronous pre-authorization and offline data authentication and the data processing system based on asynchronous pre-authorization and offline data authentication in the public transportation scene of the present invention, the pre-authorization scheme and the offline data authentication scheme can be combined. Combined, it can reduce the requirements on the network environment for transactions in public transport scenarios, and at the same time accurately perform billing in public transport scenarios. Moreover, the data processing method based on asynchronous pre-authorization and offline data authentication and the data processing system based on asynchronous pre-authorization and offline data authentication according to the public transportation scene of the present invention can not only reduce transaction time, but also avoid disconnection of the transaction. cause an impact.
以上例子主要說明了資料處理方法以及基於非同步預授權與離線資料認證的資料處理系統。儘管只對其中一些本發明的具體實施方式進行了描述,但是本領域普通技術人員應當瞭解,本發明可以在不偏離其主旨與範圍內以許多其他的形式實施。因此,所展示的例子與實施方式被視為示意性的而非限制性的,在不脫離如所附各請求項所定義的本發明精神及範圍的情況下,本發明可能涵蓋各種的修改與替換。The above examples mainly illustrate the data processing method and the data processing system based on asynchronous pre-authorization and offline data authentication. Although only a few of these specific embodiments of the present invention have been described, it will be understood by those of ordinary skill in the art that the present invention may be embodied in many other forms without departing from the spirit and scope thereof. Accordingly, the examples and embodiments shown are to be regarded as illustrative and not restrictive, and the present invention may cover various modifications and replace.
10:地鐵終端 11:第一資訊獲取模組 12:第一離線認證模組 13:第一資訊儲存模組 14:第一資訊收發模組 15:第一閘機控制模組 20:地鐵後臺 21:第二資訊獲取模組 22:第二資訊儲存模組 23:交易處理模組 24:黑名單檢查模組 25:進站記錄檢查模組 30:銀行轉接系統 40:銀行後臺 100:行業終端 110:第一資訊獲取模組 120:第一離線認證模組 130:第一資訊儲存模組 140:第一資訊收發模組 150:第一閘機控制模組 200:行業後臺 210:第二資訊獲取模組 220:第二資訊儲存模組 230:交易處理模組 240:黑名單檢查模組 250:進站記錄檢查模組 300:銀行轉接系統 400:銀行後臺10: Metro Terminal 11: The first information acquisition module 12: The first offline authentication module 13: The first information storage module 14: The first information transceiver module 15: The first gate control module 20: Subway Backstage 21: Second information acquisition module 22: Second information storage module 23: Transaction Processing Module 24: Blacklist Check Module 25: Inbound record check module 30: Bank Transfer System 40: Bank background 100: Industry Terminal 110: The first information acquisition module 120: The first offline authentication module 130: The first information storage module 140: The first information transceiver module 150: The first gate control module 200: Industry background 210: Second information acquisition module 220: Second information storage module 230: Transaction Processing Module 240: Blacklist Check Module 250:Pit stop record check module 300: Bank Transfer System 400: Bank background
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是表示本發明的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法中的進站資料處理的流程示意圖; 圖2是表示本發明的用於地鐵的基於非同步預授權與離線資料認證的資料處理方法中出站資料處理的流程示意圖; 圖3是表示本發明的資料處理系統的方塊示意圖;及 圖4是表示本發明的用於地鐵場景的基於非同步預授權與離線資料認證的資料處理系統的方塊示意圖。Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, wherein: Fig. 1 is the schematic flow chart representing the inbound data processing in the data processing method based on asynchronous pre-authorization and offline data authentication for subway of the present invention; 2 is a schematic flow chart showing the processing of outbound data in the data processing method based on asynchronous pre-authorization and offline data authentication for the subway of the present invention; FIG. 3 is a block diagram showing the data processing system of the present invention; and FIG. 4 is a block diagram illustrating a data processing system based on asynchronous pre-authorization and offline data authentication for subway scenarios according to the present invention.
Claims (28)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010074891.0A CN111540100B (en) | 2020-01-22 | 2020-01-22 | Data processing method and system based on asynchronous pre-authorization and offline data authentication |
CN202010074891.0 | 2020-01-22 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202129572A TW202129572A (en) | 2021-08-01 |
TWI777248B true TWI777248B (en) | 2022-09-11 |
Family
ID=71980025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109132527A TWI777248B (en) | 2020-01-22 | 2020-09-21 | Data processing method and system based on asynchronous pre-authorization and offline data authentication, industry terminal, industry background, computer readable medium and computer equipment |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN111540100B (en) |
TW (1) | TWI777248B (en) |
WO (1) | WO2021147294A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113869850A (en) * | 2021-09-17 | 2021-12-31 | 南京熊猫电子股份有限公司 | Method and system for electronic card service degradation in rail transit industry |
CN115862201B (en) * | 2023-02-01 | 2024-05-28 | 深圳市深圳通有限公司 | Abnormal record processing method, device, equipment and computer readable storage medium |
CN117974128B (en) * | 2024-03-29 | 2024-07-19 | 成都智元汇信息技术股份有限公司 | Accounting method based on active subway complement |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107093074A (en) * | 2017-04-26 | 2017-08-25 | 广州地铁设计研究院有限公司 | The ticket checking payment system and method for a kind of urban track traffic financial IC card |
CN107135194A (en) * | 2017-02-09 | 2017-09-05 | 中国银联股份有限公司 | Safety information interaction method and equipment |
CN108234517A (en) * | 2018-01-29 | 2018-06-29 | 成都智元汇信息技术股份有限公司 | A kind of subway based on offline Quick Response Code ticket card is ridden off-line processing system and method |
US20190188666A1 (en) * | 2016-11-11 | 2019-06-20 | Kevin Sunlin Wang | System and method for geo-aware transportation billing verification |
TW201931205A (en) * | 2017-12-29 | 2019-08-01 | 香港商阿里巴巴集團服務有限公司 | Traffic detection method, device, and system |
CN110223398A (en) * | 2019-06-12 | 2019-09-10 | 浙江机电职业技术学院 | A kind of Subway Automatic Fare Collection System and method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831686B (en) * | 2012-09-03 | 2015-12-16 | 深圳达实信息技术有限公司 | A kind of access control system and visitor's access permission control method |
GB2516939A (en) * | 2013-08-07 | 2015-02-11 | Eus Associates Ltd | Access authorisation system and secure data communications system |
US10254749B2 (en) * | 2015-03-27 | 2019-04-09 | Rockwell Automation Technologies, Inc. | Systems and methods for virtually tagging and securing industrial equipment |
CN106997527A (en) * | 2016-01-25 | 2017-08-01 | 阿里巴巴集团控股有限公司 | Credit payment method and device based on mobile terminal P2P |
CN106022819A (en) * | 2016-05-13 | 2016-10-12 | 昆山爱贝儿网络科技有限公司 | Method and system of carfare payment via mobile terminal for rail transit |
CN206684807U (en) * | 2016-11-22 | 2017-11-28 | 深圳市微付充科技有限公司 | gate and gate system |
CN107393085A (en) * | 2017-07-27 | 2017-11-24 | 福州台江区超人电子有限公司 | A kind of bicycle shared system based on internet |
CN107871353A (en) * | 2017-11-03 | 2018-04-03 | 东峡大通(北京)管理咨询有限公司 | A kind of intelligent bicycle lock control method and device |
CN110084941A (en) * | 2019-05-07 | 2019-08-02 | 中国核电工程有限公司 | Access and exit control method and control system with global anti-back pass function |
-
2020
- 2020-01-22 CN CN202010074891.0A patent/CN111540100B/en active Active
- 2020-07-31 WO PCT/CN2020/106272 patent/WO2021147294A1/en active Application Filing
- 2020-09-21 TW TW109132527A patent/TWI777248B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190188666A1 (en) * | 2016-11-11 | 2019-06-20 | Kevin Sunlin Wang | System and method for geo-aware transportation billing verification |
CN107135194A (en) * | 2017-02-09 | 2017-09-05 | 中国银联股份有限公司 | Safety information interaction method and equipment |
CN107093074A (en) * | 2017-04-26 | 2017-08-25 | 广州地铁设计研究院有限公司 | The ticket checking payment system and method for a kind of urban track traffic financial IC card |
TW201931205A (en) * | 2017-12-29 | 2019-08-01 | 香港商阿里巴巴集團服務有限公司 | Traffic detection method, device, and system |
CN108234517A (en) * | 2018-01-29 | 2018-06-29 | 成都智元汇信息技术股份有限公司 | A kind of subway based on offline Quick Response Code ticket card is ridden off-line processing system and method |
CN110223398A (en) * | 2019-06-12 | 2019-09-10 | 浙江机电职业技术学院 | A kind of Subway Automatic Fare Collection System and method |
Also Published As
Publication number | Publication date |
---|---|
CN111540100B (en) | 2022-05-17 |
WO2021147294A1 (en) | 2021-07-29 |
TW202129572A (en) | 2021-08-01 |
CN111540100A (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI777248B (en) | Data processing method and system based on asynchronous pre-authorization and offline data authentication, industry terminal, industry background, computer readable medium and computer equipment | |
US10614460B2 (en) | Transaction initiation determination system utilizing transaction data elements | |
US20210406905A1 (en) | Hosted Thin-Client Interface In A Payment Authorization System | |
US8554685B2 (en) | Method and system using universal ID and biometrics | |
US9160741B2 (en) | Remote authentication system | |
US10332110B2 (en) | System and method for authenticating a payment transaction | |
WO2014057272A1 (en) | System and method for enrolment of payment transaction services | |
CN105678546B (en) | Digital asset processing method based on distributed shared general ledger | |
CN106997527A (en) | Credit payment method and device based on mobile terminal P2P | |
US20120303534A1 (en) | System and method for a secure transaction | |
WO2014057262A1 (en) | System and method for authenticating a payment transaction | |
US11797650B2 (en) | Data value routing system and method | |
US10607213B2 (en) | Method and system of providing financial transactions for the visually impaired | |
CN117236965A (en) | Payment processing method and system | |
CN111435914A (en) | Authentication with an offline device | |
KR20190134900A (en) | System and method for payment of car service using car number recognition | |
WO2015101057A1 (en) | Data processing method and related device and system | |
WO2014032206A1 (en) | Quick payment system and corresponding method | |
JP6846755B1 (en) | Systems, readers, and controls | |
CN114358758A (en) | Recharging method for digital currency hardware wallet and related equipment | |
CN117557262B (en) | Payment method, device, terminal equipment and storage medium | |
US10453044B2 (en) | Open payment fare method and system | |
JP7258378B2 (en) | Systems and methods for processing payment transactions over blockchain networks | |
TWM603541U (en) | Mobile parking lot payment system | |
KR20210062232A (en) | System for providing currency exchange service based on drive-thru and method performing thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent |