Movatterモバイル変換


[0]ホーム

URL:


CN105488668B - Method and system for reporting offline transaction information of SIM card payment application in real time - Google Patents

Method and system for reporting offline transaction information of SIM card payment application in real time
Download PDF

Info

Publication number
CN105488668B
CN105488668BCN201410473232.9ACN201410473232ACN105488668BCN 105488668 BCN105488668 BCN 105488668BCN 201410473232 ACN201410473232 ACN 201410473232ACN 105488668 BCN105488668 BCN 105488668B
Authority
CN
China
Prior art keywords
sms
data
backpack
transaction
module
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.)
Expired - Fee Related
Application number
CN201410473232.9A
Other languages
Chinese (zh)
Other versions
CN105488668A (en
Inventor
喻子蛟
孙泽俊
曹巍
邱继红
王启勇
毛银华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ke Si Software Inc Co
Shenyang Siasun Robot and Automation Co Ltd
China Mobile Group Liaoning Co Ltd Shenyang Branch
Original Assignee
Shanghai Ke Si Software Inc Co
Shenyang Siasun Robot and Automation Co Ltd
China Mobile Group Liaoning Co Ltd Shenyang Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ke Si Software Inc Co, Shenyang Siasun Robot and Automation Co Ltd, China Mobile Group Liaoning Co Ltd Shenyang BranchfiledCriticalShanghai Ke Si Software Inc Co
Priority to CN201410473232.9ApriorityCriticalpatent/CN105488668B/en
Publication of CN105488668ApublicationCriticalpatent/CN105488668A/en
Application grantedgrantedCritical
Publication of CN105488668BpublicationCriticalpatent/CN105488668B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明涉及SIM卡支付应用脱机交易信息实时上报的方法和系统,方法包括:SIM卡的交易监听模块监听SIM卡内的离线支付应用;当余额变化时,记录交易信息并向背包短信上发模块提交实时交易信息的数据;背包短信上发模块接收数据并进行缓存,根据缓存的信息状态进行背包短信的上发,并根据背包短信的发送情况来清理缓存的信息。系统包括交易监听模块和背包短信上发模块;背包短信上发模块包括交易信息缓存池子模块和背包短信上发模块。本发明能达到对发行的带有手机支付应用的SIM卡的脱机交易使用情况的实时监控、数据采集以及必要统计目的,为SIM卡中的支付应用提供额外的安全保护和交易风险监控。

Figure 201410473232

The invention relates to a method and system for real-time reporting of offline transaction information for SIM card payment applications. The method includes: a transaction monitoring module of the SIM card monitors offline payment applications in the SIM card; when the balance changes, recording the transaction information and sending it to a backpack short message The module submits the data of real-time transaction information; the backpack SMS uploading module receives the data and caches it, uploads the backpack SMS according to the cached information status, and clears the cached information according to the sending status of the backpack SMS. The system includes a transaction monitoring module and a backpack short message sending module; the backpack short message sending module includes a transaction information buffer pool sub-module and a backpack short message sending module. The invention can achieve real-time monitoring, data collection and necessary statistical purposes of the offline transaction usage of the issued SIM card with mobile phone payment application, and provide additional security protection and transaction risk monitoring for the payment application in the SIM card.

Figure 201410473232

Description

Translated fromChinese
SIM卡支付应用脱机交易信息实时上报的方法和系统Method and system for real-time reporting of offline transaction information for SIM card payment applications

技术领域technical field

本发明属于通信技术和移动支付技术领域,具体说是一种SIM卡支付应用交易信息实时上报的方法和系统。The invention belongs to the technical field of communication technology and mobile payment, in particular to a method and system for real-time reporting of transaction information of SIM card payment applications.

背景技术Background technique

随着移动支付的快速普及,新的业务和应用不断涌现,人们开始大量使用手机移动支付来代替传统的银行卡、公交卡、门禁卡、电子优惠券等。作为移动支付技术中的重要组成部分:SIM(Subscriber Identity Module,用户身份识别模块)卡,除了承载通信应用,同时承载了越来越多的支付应用。With the rapid popularization of mobile payment, new businesses and applications continue to emerge, and people begin to use mobile mobile payment to replace traditional bank cards, bus cards, access control cards, and electronic coupons. As an important part of mobile payment technology: SIM (Subscriber Identity Module, subscriber identity module) card, in addition to carrying communication applications, it also carries more and more payment applications.

现实环境中,SIM卡的发行方和支付应用的提供方可能并不是同一个机构(大多数情况是这样)。通常的情况是,SIM卡的发行方只是单纯的提供SIM卡空间,可以加载任何经过认证的第三方支付应用,SIM卡发行方承担了部分支付应用发行方义务,因此SIM卡发行方通常享有支付应用发行方的支付结算收益分成的权利。SIM卡发行方需要了解SIM卡上的支付应用的交易数据,而一般情况下支付应用提供商不会和SIM卡的发行方进行实质的结算网络对接,原因是商业壁垒和建网成本极高。这样就会出现SIM卡发行方很难对支付应用的交易情况进行把控和数据采集,从而带来运营服务困难,无法保证交易数据准确,进而影响收益。In a real environment, the issuer of the SIM card and the provider of the payment application may not be the same institution (in most cases). Usually, the issuer of the SIM card simply provides space for the SIM card and can load any certified third-party payment application. The issuer of the SIM card assumes some of the obligations of the issuer of the payment application, so the issuer of the SIM card usually enjoys payment. The right to apply the issuer's payment settlement revenue share. The SIM card issuer needs to know the transaction data of the payment application on the SIM card. Generally, the payment application provider will not connect with the SIM card issuer for a substantial settlement network because of the high commercial barriers and network construction costs. In this way, it will be difficult for the SIM card issuer to control the transaction situation of the payment application and collect data, which will bring difficulties in operating services, and cannot guarantee the accuracy of transaction data, which will affect revenue.

手机SIM卡中的支付应用目前主要用于脱机小额支付,结算只能发生在支付终端将交易数据发送到清算方后,若出现网络故障,则运营各方都有可能发生损失。The payment application in the mobile phone SIM card is currently mainly used for offline micropayment. The settlement can only occur after the payment terminal sends the transaction data to the clearing party. If there is a network failure, all operators may suffer losses.

发明内容SUMMARY OF THE INVENTION

针对上述技术不足,本发明目的是提供一种SIM卡支付应用交易信息实时上报的方法和系统,以解决上述技术问题。In view of the above technical deficiencies, the purpose of the present invention is to provide a method and system for real-time reporting of transaction information of a SIM card payment application, so as to solve the above technical problems.

本发明解决其技术问题所采用的技术方案是:SIM卡支付应用脱机交易信息实时上报的方法和系统,包括以下步骤:The technical solution adopted by the present invention to solve the technical problem is: a method and a system for real-time reporting of offline transaction information for SIM card payment applications, comprising the following steps:

SIM卡的交易监听模块监听SIM卡内的脱机支付应用;当支付应用余额发生变化时,记录交易信息并向背包短信上发模块实时提交交易信息的数据;The transaction monitoring module of the SIM card monitors the offline payment application in the SIM card; when the balance of the payment application changes, the transaction information is recorded and the data of the transaction information is submitted in real time to the SMS uploading module in the backpack;

背包短信上发模块接收交易数据并进行格式化、组包、缓存,根据缓存的信息状态进行背包短信的上发,并根据背包短信的发送情况来清理缓存的数据。The backpack SMS sending module receives the transaction data, formats, packs, and caches it, uploads the backpack SMS according to the cached information status, and clears the cached data according to the sending status of the backpack SMS.

所述交易信息为本次交易和上一次交易的信息。The transaction information is the information of the current transaction and the previous transaction.

所述背包短信上发模块接收交易数据并进行格式化、组包、缓存,包括以下步骤:The backpack SMS sending module receives transaction data and performs formatting, grouping, and caching, including the following steps:

背包短信上发模块的交易信息缓存池子模块保存交易监听模块提交的交易信息数据,同时对保存的数据进行格式化、组包形成背包短信数据。The transaction information cache pool sub-module of the backpack SMS uploading module saves the transaction information data submitted by the transaction monitoring module, and at the same time formats and packs the stored data to form the backpack SMS data.

所述根据缓存的信息状态进行背包短信的上发,并根据背包短信的发送情况来清理缓存的信息包括以下步骤:The uploading of the backpack short message according to the cached information state, and the clearing of the cached information according to the sending situation of the backpack short message includes the following steps:

数据短信上发子模块注册手机Get Status事件;当手机产生Get Status指令时,数据短信上发子模块响应事件,执行检查交易信息缓存池子模块动作;如果交易信息缓存池子模块存在未发送的背包短信数据,则数据短信上发子模块将交易信息缓存池子模块中的背包短信数据上发至短信网关;如果交易信息缓存池子模块不存在背包短信数据,则完成事件响应;短信发送成功后,数据短信上发子模块立即清空交易信息缓存池子模块缓存的数据;若短信发送不成功,则仍然完成事件响应,在下一次Get Status事件发生时,重新发送。The data SMS uploading submodule registers the Get Status event of the mobile phone; when the mobile phone generates the Get Status command, the data SMS uploading submodule responds to the event and executes the action of checking the transaction information cache pool submodule; if the transaction information cache pool submodule has unsent backpack SMS messages If there is no backpack SMS data in the transaction information cache pool sub-module, the event response is completed; after the SMS is sent successfully, the data SMS The sending sub-module immediately clears the data cached by the sub-module in the transaction information buffer pool; if the SMS sending is unsuccessful, the event response will still be completed, and will be resent when the next Get Status event occurs.

所述将交易信息缓存池子模块中的背包短信数据上发至短信网关,具体为:手机Get Status事件周期内实时将交易信息缓存池子模块中的数据以二进制短信方式上发至短信网关。The sending of the backpack short message data in the transaction information buffer pool submodule to the short message gateway is specifically: sending the data in the transaction information buffer pool submodule to the short message gateway in real time in the form of binary short messages during the Get Status event period of the mobile phone.

SIM卡支付应用脱机交易信息实时上报的系统,包括:A system for real-time reporting of offline transaction information for SIM card payment applications, including:

交易监听模块:用于监听SIM卡支付应用的脱机支付应用,当支付应用余额变化时,记录交易信息并向背包短信上发模块提交脱机交易信息的数据;Transaction monitoring module: an offline payment application used to monitor SIM card payment applications, when the payment application balance changes, record transaction information and submit offline transaction information data to the backpack SMS uploading module;

背包短信上发模块:用于接收交易数据并进行格式化、组包、缓存,根据缓存的信息状态进行背包短信的上发,并根据短信的发送情况来清理缓存的信息。Backpack SMS uploading module: used to receive transaction data, format, package, and cache, send backpack SMS according to the status of the cached information, and clear the cached information according to the sending status of the SMS.

所述背包短信上发模块包括:The backpack SMS sending module includes:

交易信息缓存池子模块:用于保存交易监听模块提交的交易信息数据,同时对保存的数据进行组包和格式化形成背包短信数据;Transaction information buffer pool sub-module: used to save the transaction information data submitted by the transaction monitoring module, and at the same time package and format the saved data to form backpack SMS data;

数据短信上发子模块:用于注册手机的Get Status事件;当手机产生Get Status指令时,数据短信上发子模块响应事件,执行检查交易信息缓存池子模块动作;如果交易信息缓存池子模块存在未发送的数据,则数据短信上发子模块将交易信息缓存池子模块中的背包短信数据上发至短信网关;如果不存在,则完成事件响应;短信发送成功后,数据短信上发子模块立即清空交易信息缓存池子模块,完成事件响应;若短信发送不成功,则仍然完成事件响应,在下一次Get Status事件发生时,重新发送。Data SMS uploading submodule: used to register the Get Status event of the mobile phone; when the mobile phone generates the Get Status command, the data SMS uploading submodule responds to the event and executes the action of checking the transaction information cache pool submodule; If the data is sent, the data SMS uploading sub-module will upload the backpack SMS data in the transaction information cache pool sub-module to the SMS gateway; if it does not exist, the event response will be completed; after the SMS is successfully sent, the data SMS uploading sub-module will be cleared immediately The transaction information cache pool sub-module completes the event response; if the SMS sending is unsuccessful, the event response is still completed, and is resent when the next Get Status event occurs.

所述背包短信为二进制短信。The backpack short message is a binary short message.

本发明具有以下有益效果及优点:The present invention has the following beneficial effects and advantages:

1.本发明的方法仅仅在支付应用内设计一个交易监听模块,对支付应用改造成本极小,监听模模块实现方式简单,架构清晰,容易开发和维护。1. The method of the present invention only designs a transaction monitoring module in the payment application, and the cost of transforming the payment application is extremely small. The monitoring module has a simple implementation method, a clear structure, and is easy to develop and maintain.

2.监听模块作为支付应用的一个附属模块,获取数据的方式为应用内函数调用方式,因此交易监听模块与支付应用本身是完全耦合关系,高度的耦合度保证了SIM卡支付应用的安全性;监听模块获得数据的时机为支付应用交易完成时,因此不对SIM卡支付应用原来的安全性和性能产生任何影响。2. The monitoring module, as an auxiliary module of the payment application, acquires data by calling functions within the application. Therefore, the transaction monitoring module and the payment application are completely coupled, and the high degree of coupling ensures the security of the SIM card payment application; The time when the monitoring module obtains the data is when the payment application transaction is completed, so it will not have any impact on the original security and performance of the SIM card payment application.

3.采用的数据采集方式为数据短信方式,考虑一般SIM卡的提供商都是GSM网络运营商,短信通道覆盖面最广,成本低,数据短信无法直接阅读,安全性高,因此能很好的为本方法和系统服务。3. The data collection method adopted is the data short message method. Considering that the providers of general SIM cards are all GSM network operators, the short message channel has the widest coverage, low cost, data short messages cannot be read directly, and the security is high, so it can be well The method and system services.

4.交易监听模块和背包短信上发模块的配合,对交易数据能达到实时上报,相比通过终端设备进行数据采集要更快速,同时节约采集成本。4. The cooperation between the transaction monitoring module and the backpack SMS uploading module can achieve real-time reporting of transaction data, which is faster than data collection through terminal equipment and saves collection costs.

5.本发明能达到对发行的带有手机支付应用的SIM卡的脱机交易使用情况的实时监控、数据采集以及必要统计目的,为SIM卡中的支付应用提供额外的安全保护和交易风险监控。5. The present invention can achieve the real-time monitoring, data collection and necessary statistical purposes of the offline transaction usage of the issued SIM card with mobile payment application, and provide additional security protection and transaction risk monitoring for the payment application in the SIM card .

附图说明Description of drawings

图1为本发明的模块系统架构图;Fig. 1 is the module system architecture diagram of the present invention;

图2为产生一条背包上送的完整流程图。Figure 2 is a complete flow chart for generating a backpack for delivery.

具体实施方式Detailed ways

下面结合实施例对本发明做进一步的详细说明。The present invention will be further described in detail below in conjunction with the embodiments.

如图1所示,一种SIM卡支付应用脱机交易信息实时上报的系统,包括:SIM卡支付应用交易监听模块,由交易信息缓存池子模块和数据短信上发子模块构成的背包短信上发模块。As shown in Figure 1, a system for real-time reporting of offline transaction information for SIM card payment applications includes: a SIM card payment application transaction monitoring module, a backpack SMS uploading submodule consisting of a transaction information buffer pool submodule and a data SMS uploading submodule. module.

SIM卡支付应用交易监听模块:主要用于监听SIM卡支付应用的实时交易情况,对于造成支付应用余额变化的交易(消费、圈存等)进行交易信息的记录并向背包短信上发模块进行数据提交。数据记录在交易完成后进行,不影响支付交易的执行流程。SIM card payment application transaction monitoring module: It is mainly used to monitor the real-time transaction status of SIM card payment application, record transaction information for transactions (consumption, load storage, etc.) that cause changes in the payment application balance, and send data to the backpack SMS module for data submit. Data recording is performed after the transaction is completed and does not affect the execution process of the payment transaction.

背包短信上发模块:主要负责根据交易信息缓存模块的信息状态进行背包短信的上发,并根据数据短信的发送情况来清理交易信息缓存模块;Backpack SMS uploading module: It is mainly responsible for uploading backpack SMS according to the information status of the transaction information cache module, and clears the transaction information cache module according to the sending status of data SMS;

所述背包短信上发模块包括:The backpack SMS sending module includes:

交易信息缓存池子模块:用于保存SIM卡支付应用监听模块提交的实时交易信息数据,同时对保存的数据进行分类和格式化Transaction information cache pool sub-module: used to save the real-time transaction information data submitted by the SIM card payment application monitoring module, and to classify and format the saved data at the same time

数据短信上发子模块:负责注册手机的Get Status事件,保证手机产生GetStatus指令时,事件能马上通知到背包短信上发模块;同时在收到事件时,将信息缓存池中有效交易信息进行数据短信格式化并上发至指定的短信接收号码。Data SMS uploading sub-module: responsible for registering the Get Status event of the mobile phone, to ensure that when the mobile phone generates the GetStatus command, the event can be immediately notified to the backpack SMS uploading module; at the same time, when the event is received, the valid transaction information in the information buffer pool is sent to data. The SMS is formatted and sent to the designated SMS receiving number.

本发明的方法包括:在SIM卡支付应用(MOC、PBOC等)中设计交易监听模块,用于监听和记录每一笔交易数据,并保存最近的两笔交易记录;在SIM卡支付应用中加入背包短信上发模块;当SIM卡支付应用产生一笔交易时,交易监听模块通过监听交易获得交易明细,并连同前一笔交易一起提交给背包短信上发模块;交易信息缓存池子模块保存交易监听模块提交的明细,待手机发起获取状态事件时,背包短信上发模块发送缓存池中的所有交易信息,并清空缓存池,过程结束。The method of the present invention includes: designing a transaction monitoring module in a SIM card payment application (MOC, PBOC, etc.), for monitoring and recording each transaction data, and saving the latest two transaction records; adding in the SIM card payment application Backpack SMS uploading module; when the SIM card payment application generates a transaction, the transaction monitoring module obtains transaction details by monitoring the transaction, and submits it to the backpack SMS uploading module together with the previous transaction; the transaction information cache pool sub-module saves transaction monitoring The details submitted by the module, when the mobile phone initiates the get status event, the backpack SMS uploading module sends all the transaction information in the buffer pool and clears the buffer pool, and the process ends.

如图2所示,一种SIM卡支付应用脱机交易信息实时上报的方法,具体包括如下步骤:As shown in Figure 2, a method for real-time reporting of offline transaction information for a SIM card payment application specifically includes the following steps:

SIM卡交易监听模块实时监视SIM卡内的离线支付应用,一旦发生余额变化的交易(充值或消费),则在交易完成后自动记录最近的两条交易记录(交易发生前的1笔交易和本次交易),随即向背包短信上发模块提交记录数据;The SIM card transaction monitoring module monitors the offline payment application in the SIM card in real time. Once a transaction with a balance change (recharge or consumption) occurs, it will automatically record the latest two transaction records after the transaction is completed (1 transaction before the transaction and the current transaction record). transactions), and then submit the record data to the backpack SMS uploading module;

背包短信上发模块接收并保存记录数据于本模块缓存池;背包短信上发模块注册手机Get Status命令事件并设置事件间隔为30秒;The backpack SMS uploading module receives and saves the recorded data in the buffer pool of this module; the backpack SMS uploading module registers the Get Status command event of the mobile phone and sets the event interval to 30 seconds;

手机每次产生Get Status命令事件时,通知背包短信上发模块检查交易信息缓存池子模块,如果缓存池存在有效数据,则实时将数据以二进制短信方式上发,短信发送成功后,立即清空缓存池。Every time the mobile phone generates a Get Status command event, it notifies the backpack SMS uploading module to check the transaction information cache pool sub-module. If there is valid data in the cache pool, the data will be sent in a binary SMS in real time. After the SMS is successfully sent, the cache pool will be emptied immediately. .

其中,依据当前SIM卡支付应用根据当前交易情况(脱机或联机)决定是否给背包短信上发模块提交交易记录数据包含如下步骤:Among them, according to the current SIM card payment application, according to the current transaction situation (offline or online), whether to submit transaction record data to the backpack SMS uploading module includes the following steps:

监控SIM卡支付应用是否发生余额变化的交易;Monitor the SIM card payment application for transactions with balance changes;

如果发生了余额变化的交易,则记录最近的两条交易信息,并提交给背包短信上发模块;If there is a transaction with a balance change, record the latest two transaction information and submit it to the backpack SMS uploading module;

另外,依据当前背包短信上发模块是否进行短信发送包含如下步骤:In addition, according to whether the SMS sending module of the current backpack performs SMS sending, it includes the following steps:

背包短信上发模块收到手机的Get Status命令事件;The SMS upload module of the backpack receives the Get Status command event of the mobile phone;

查询背包短信上发模块交易信息缓存池中是否存在有效交易信息;Query whether there is valid transaction information in the transaction information buffer pool of the SMS upload module of the backpack;

如果接收到了Get Status命令事件,并且交易信息缓存池中存在有效信息,背包短信上发模块进行交易信息背包短信的上发。If the Get Status command event is received and there is valid information in the transaction information buffer pool, the backpack SMS sending module will send the transaction information backpack SMS.

下面结合实例对本发明做进一步的详细说明。The present invention will be further described in detail below in conjunction with examples.

本发明的方法包括以下步骤:The method of the present invention comprises the following steps:

1:在SIM卡中设置一个或多个带有交易监听模块的SIM卡支付应用和背包短信上发模块。1: Set one or more SIM card payment applications with transaction monitoring module and backpack SMS sending module in the SIM card.

2:SIM卡提供商在背包短信上发模块中配置背包短信接收平台目标号码。2: The SIM card provider configures the target number of the backpack SMS receiving platform in the backpack SMS sending module.

3:背包短信上发模块注册手机Get Status命令事件,设置时间间隔为30秒,这样手机会在开机完成SIM卡登网之后,每30秒给背包短信上发模块发送一次Get Status事件,用于触发背包短信上发模块背包短信上发动作。3: The backpack SMS uploading module registers the Get Status command event of the mobile phone, and the time interval is set to 30 seconds, so that the mobile phone will send a Get Status event to the backpack SMS uploading module every 30 seconds after the phone completes the SIM card login. Trigger the Backpack SMS Upstream module to activate the Backpack SMS Upstream action.

3.1:Get Status命令事件的注册方式如下:3.1: The registration method of the Get Status command event is as follows:

A:手机开机过程会自动给SIM卡发送Terminal Profile命令,此时SIM卡返回91XX;A: The mobile phone will automatically send the Terminal Profile command to the SIM card during the boot process, and the SIM card will return to 91XX at this time;

B:手机通过Fetch指令获取SIM卡主动式命令,主动式命令说明参考国际规范:《ETSI TS 101267》;B: The mobile phone obtains the active command of the SIM card through the Fetch command, and the active command description refers to the international standard: "ETSI TS 101267";

C:SIM卡发送Poll Interval命令给手机,要求手机每30s给卡片发送一次GetStatus命令,这样待手机开机过程完成后,手机会自动每30s给SIM卡发送一次Get Status命令;C: The SIM card sends the Poll Interval command to the mobile phone, and the mobile phone is required to send a GetStatus command to the card every 30s, so that after the mobile phone boot process is completed, the mobile phone will automatically send a Get Status command to the SIM card every 30s;

4:卡外消费或充值终端设备发送交易指令给卡片内的SIM卡支付应用,SIM卡支付应用按业务规范执行交易流程请求,对于余额发生变化的交易(消费或充值),SIM卡支付应用在钱包余额变更完成,产生交易日志,并将结果回送给消费终端POS后,向交易监听模块提交一次交易发生通知,交易监听模块此时得知交易产生,执行读取SIM卡支付应用中的交易明细文件来获取最近的两笔支付应用交易记录,然后将读取的交易信息数据提交给背包短信上发模块。4: The off-card consumption or recharge terminal device sends transaction instructions to the SIM card payment application in the card, and the SIM card payment application executes the transaction process request according to the business specification. After the wallet balance is changed, a transaction log is generated, and the result is sent back to the consumer terminal POS, and a transaction notification is submitted to the transaction monitoring module. The transaction monitoring module learns that the transaction has occurred at this time, and executes to read the transaction details in the SIM card payment application. file to obtain the latest two payment application transaction records, and then submit the read transaction information data to the backpack SMS uploading module.

4.1:交易监听模块获取交易明细的方式4.1: How the transaction monitoring module obtains transaction details

A:每笔交易完成前,SIM卡支付应用都必须去进行交易明细文件的修改。SIM卡支付应用提供一个读取交易明细的函数接口;A: Before each transaction is completed, the SIM card payment application must modify the transaction details file. The SIM card payment application provides a function interface for reading transaction details;

B:交易监听模块监听每一条指令,即每条指令均先被交易监听模块进行拦截,然后再传送给SIM卡支付应用,指令执行后,返回数据同样经由交易监听模块返回给外界设备例如:POS机。B: The transaction monitoring module monitors each instruction, that is, each instruction is intercepted by the transaction monitoring module first, and then sent to the SIM card payment application. After the instruction is executed, the returned data is also returned to the external device through the transaction monitoring module. For example: POS machine.

C:当收到交易指令,例如:MOC的credit for purchase指令,模块立即设立交易指令标志位,待指令被支付应用执行完成返回时,易监听模块调用SIM卡支付应用的交易明细读取函数接口,从而获取到最近发生的交易的交易明细数据。C: When receiving a transaction instruction, such as the MOC credit for purchase instruction, the module immediately sets up the transaction instruction flag, and when the instruction is executed and returned by the payment application, the EasyMonitor module calls the transaction details read function interface of the SIM card payment application , so as to obtain transaction details of the most recent transaction.

5:背包短信上发模块收到交易监听模块提交的交易信息数据,将此信息提交至交易信息缓存池子模块;该模块进行交易信息的格式化操作,将交易信息拼装成一条标准的数据短信,并保存于缓存池中。5: The backpack SMS sending module receives the transaction information data submitted by the transaction monitoring module, and submits the information to the transaction information buffer pool sub-module; this module formats the transaction information and assembles the transaction information into a standard data short message. and stored in the cache pool.

5.1:拼装的短信的说明如下:5.1: The description of the assembled SMS is as follows:

A:拼装的短信是数据短信,而非文本短信,数据短信的发送和接受用户不会感知,同时具有更好的安全性。用户不感知能给用户更好的体验,用户只是关心刷卡消费/充值的过程和结果,后台如何进行交易明细的采集和统计对于用户是透明的。数据短信在组包交易数据内容过程中,会对敏感内容进行特殊处理,如仅截取账户号码末4位,从而确保数据短信内容不泄露用户隐私。A: The assembled short message is a data message, not a text message. The user will not perceive the sending and receiving of the data message, and it has better security. The user does not perceive a better experience for the user. The user only cares about the process and results of swiping the card for consumption/recharge. The collection and statistics of the transaction details in the background are transparent to the user. In the process of package transaction data content of data SMS, special processing will be performed on sensitive content, such as intercepting only the last 4 digits of the account number, so as to ensure that the content of data SMS does not reveal user privacy.

B:数据短信编码格式符合国际规范:《ETSI TS 100901》;B: The encoding format of the data message conforms to the international standard: "ETSI TS 100901";

C:数据短信中的数据区内容包含:最近的两笔交易明细数据。C: The content of the data area in the data message includes: detailed data of the last two transactions.

6:手机产生Status时间事件,事件通知给注册了事件的背包短信上发模块。6: The mobile phone generates a Status time event, and the event is notified to the backpack SMS uploading module that has registered the event.

7:背包短信上发模块接收到手机的时间事件,通知数据短信上发子模块,数据短信上发子模块从交易信息缓存池子模块中读取有效的数据短信数据;若读取到有效数据则立即发送数据短信至指定的背包短信接收平台,短信发送成功后,删除缓存池中的短信数据;若短信发送失败,则不对缓存池中的数据进行处理,继续等待下一次时间事件;若没有查询你到有效数据,不做任何处理。7: The backpack SMS uploading module receives the time event of the mobile phone and notifies the data SMS uploading sub-module. The data SMS uploading sub-module reads valid data SMS data from the transaction information buffer pool sub-module; if valid data is read, the Immediately send data SMS to the designated backpack SMS receiving platform. After the SMS is sent successfully, delete the SMS data in the cache pool; if the SMS fails to send, the data in the cache pool will not be processed, and continue to wait for the next time event; if there is no query You get valid data without any processing.

7.1:对于短信上发过程在SIM卡上的指令交互如下:7.1: The command interaction on the SIM card for the SMS uploading process is as follows:

A:手机发送Get Status命令给SIM卡;A: The mobile phone sends the Get Status command to the SIM card;

B:SIM卡背包短信上发模块查询是否存在有效的数据短信数据,如果存在的话,返回91XX(XX表示SIM卡需要向手机返回XX字节的数据),如果不存在,直接返回9000;B: The SIM card backpack SMS sending module queries whether there is valid data SMS data. If it exists, it returns 91XX (XX indicates that the SIM card needs to return XX bytes of data to the mobile phone). If it does not exist, it returns 9000 directly;

C:手机收到91XX后,向卡片发送Fetch指令来获取SIM卡主动式命令;C: After the mobile phone receives 91XX, it sends the Fetch command to the card to obtain the active command of the SIM card;

D:SIM卡给手机发送Send Short Message命令,手机即向目标平台发送数据短信;D: The SIM card sends the Send Short Message command to the mobile phone, and the mobile phone sends a data short message to the target platform;

E:手机发送数据短信,同时将发送结果通过Terminal Response命令返回给SIM卡背包短信上发模块,背包短信上发模块判断如果发送成功,则删除缓冲池中的交易数据,如果发送失败,则不做任何处理;E: The mobile phone sends a data short message, and at the same time returns the sending result to the SIM card backpack short message sending module through the Terminal Response command. The backpack short message sending module judges that if the sending is successful, the transaction data in the buffer pool will be deleted. If the sending fails, it will not be sent. do any processing;

7.2:缓冲池数据的管理方式如下:7.2: The management of buffer pool data is as follows:

A:缓冲池数据使用记录的管理方式,每个记录长度257个字节,格式为有效标志位+短信长度+短信内容;A: The buffer pool data uses the record management method, each record has a length of 257 bytes, and the format is valid flag bit + SMS length + SMS content;

B:每次写入短信数据,就是在缓冲池加入一个记录,有效标志位为01;B: Every time SMS data is written, a record is added to the buffer pool, and the valid flag bit is 01;

C:背包短信上发模块查询缓冲池的每个记录,如果标志位是01,则为有效短信,为00的话,则为无效短信;C: The backpack SMS upload module queries each record in the buffer pool. If the flag bit is 01, it is a valid SMS; if it is 00, it is an invalid SMS;

D:当背包短信上发模块发送短信成功后,则将对上发过的缓冲短信记录的标志位设置为00即可。D: When the backpack SMS uploading module sends the SMS successfully, the flag bit of the buffered SMS record that has been sent can be set to 00.

8:过程结束;8: The process ends;

其中,SIM卡支付应用包含MOC,PBOC等支付应用;MOC:一种支付类应用,符合标准《建设事业非接触式CPU卡》,标准号:CJ/T 304-2008;PBOC:金融卡电子现金应用,复合标准《中国金融集成电路(IC)卡规范第15部分:电子现金双币支付应用规范》,标准号:JR/T0025.15—2013;SIM卡主动式命令对应规范:ETSI TS 101267;数字短信编码规范:ETSI TS100901。Among them, SIM card payment applications include MOC, PBOC and other payment applications; MOC: a payment application, in line with the standard "Contactless CPU Card for Construction Business", standard number: CJ/T 304-2008; PBOC: financial card electronic cash Application, composite standard "China Financial Integrated Circuit (IC) Card Specification Part 15: Application Specification for Electronic Cash Dual Currency Payment", standard number: JR/T0025.15-2013; SIM card active command corresponding specification: ETSI TS 101267; Digital SMS Coding Specification: ETSI TS100901.

Claims (4)

Translated fromChinese
1.SIM卡支付应用脱机交易信息实时上报的方法,其特征在于包括以下步骤:1. The method for real-time reporting of offline transaction information of SIM card payment application is characterized in that comprising the following steps:SIM卡的交易监听模块监听SIM卡内的脱机支付应用;当支付应用余额发生变化时,记录交易信息并向背包短信上发模块实时提交交易信息的数据;The transaction monitoring module of the SIM card monitors the offline payment application in the SIM card; when the balance of the payment application changes, the transaction information is recorded and the data of the transaction information is submitted in real time to the SMS uploading module in the backpack;背包短信上发模块接收交易数据并进行格式化、组包、缓存,根据缓存的信息状态进行背包短信的上发,并根据背包短信的发送情况来清理缓存的数据;The backpack SMS sending module receives the transaction data, formats, packs and caches it, uploads the backpack SMS according to the status of the cached information, and clears the cached data according to the sending status of the backpack SMS;所述根据缓存的信息状态进行背包短信的上发,并根据背包短信的发送情况来清理缓存的信息包括以下步骤:The uploading of the backpack short message according to the cached information state, and the clearing of the cached information according to the sending situation of the backpack short message includes the following steps:数据短信上发子模块注册手机Get Status事件;当手机产生Get Status指令时,数据短信上发子模块响应事件,执行检查交易信息缓存池子模块动作;如果交易信息缓存池子模块存在未发送的背包短信数据,则数据短信上发子模块将交易信息缓存池子模块中的背包短信数据上发至短信网关;如果交易信息缓存池子模块不存在背包短信数据,则完成事件响应;短信发送成功后,数据短信上发子模块立即清空交易信息缓存池子模块缓存的数据;若短信发送不成功,则仍然完成事件响应,在下一次Get Status事件发生时,重新发送;The data SMS uploading submodule registers the Get Status event of the mobile phone; when the mobile phone generates the Get Status command, the data SMS uploading submodule responds to the event and executes the action of checking the transaction information cache pool submodule; if the transaction information cache pool submodule has unsent backpack SMS messages If there is no backpack SMS data in the transaction information cache pool sub-module, the event response is completed; after the SMS is sent successfully, the data SMS The sending sub-module immediately clears the data cached by the sub-module in the transaction information cache pool; if the SMS sending is unsuccessful, the event response is still completed, and the next time the Get Status event occurs, it will be resent;所述背包短信上发模块接收交易数据并进行格式化、组包、缓存,包括以下步骤:The backpack SMS sending module receives transaction data and performs formatting, grouping, and caching, including the following steps:背包短信上发模块的交易信息缓存池子模块保存交易监听模块提交的交易信息数据,同时对保存的数据进行格式化、组包形成背包短信数据;The transaction information cache pool sub-module of the backpack SMS uploading module saves the transaction information data submitted by the transaction monitoring module, and at the same time formats and packs the saved data to form the backpack SMS data;所述将交易信息缓存池子模块中的背包短信数据上发至短信网关,具体为:手机GetStatus事件周期内实时将交易信息缓存池子模块中的数据以二进制短信方式上发至短信网关。The method of sending the backpack short message data in the transaction information buffer pool submodule to the short message gateway is specifically: sending the data in the transaction information buffer pool submodule to the short message gateway in a binary short message mode in real time during the GetStatus event period of the mobile phone.2.根据权利要求1所述的SIM卡支付应用脱机交易信息实时上报的方法,其特征在于所述交易信息为本次交易和上一次交易的信息。2. The method for real-time reporting of offline transaction information of SIM card payment application according to claim 1, wherein the transaction information is the information of this transaction and the last transaction.3.SIM卡支付应用脱机交易信息实时上报的系统,其特征在于包括:3. The system of real-time reporting of offline transaction information of SIM card payment application is characterized in that comprising:交易监听模块:用于监听SIM卡支付应用的脱机支付应用,当支付应用余额变化时,记录交易信息并向背包短信上发模块提交脱机交易信息的数据;Transaction monitoring module: an offline payment application used to monitor SIM card payment applications, when the payment application balance changes, record transaction information and submit offline transaction information data to the backpack SMS uploading module;背包短信上发模块:用于接收交易数据并进行格式化、组包、缓存,根据缓存的信息状态进行背包短信的上发,并根据短信的发送情况来清理缓存的信息;Backpack SMS uploading module: used to receive transaction data, format, package, and cache, send backpack SMS according to the status of the cached information, and clear the cached information according to the sending status of the SMS;所述背包短信上发模块包括:The backpack short message sending module includes:交易信息缓存池子模块:用于保存交易监听模块提交的交易信息数据,同时对保存的数据进行组包和格式化形成背包短信数据;Transaction information buffer pool sub-module: used to save the transaction information data submitted by the transaction monitoring module, and at the same time package and format the saved data to form backpack SMS data;数据短信上发子模块:用于注册手机的Get Status事件;当手机产生Get Status指令时,数据短信上发子模块响应事件,执行检查交易信息缓存池子模块动作;如果交易信息缓存池子模块存在未发送的数据,则数据短信上发子模块将交易信息缓存池子模块中的背包短信数据上发至短信网关;如果不存在,则完成事件响应;短信发送成功后,数据短信上发子模块立即清空交易信息缓存池子模块,完成事件响应;若短信发送不成功,则仍然完成事件响应,在下一次Get Status事件发生时,重新发送。Data SMS uploading submodule: used to register the Get Status event of the mobile phone; when the mobile phone generates the Get Status command, the data SMS uploading submodule responds to the event and executes the action of checking the transaction information cache pool submodule; If the data is sent, the data SMS uploading submodule will upload the backpack SMS data in the transaction information cache pool submodule to the SMS gateway; if it does not exist, the event response will be completed; after the SMS is successfully sent, the data SMS uploading submodule will be cleared immediately The transaction information buffer pool sub-module completes the event response; if the SMS sending is unsuccessful, the event response is still completed, and is resent when the next Get Status event occurs.4.根据权利要求3所述的SIM卡支付应用脱机交易信息实时上报的系统,其特征在于所述背包短信为二进制短信。4. The system for real-time reporting of offline transaction information of SIM card payment application according to claim 3, is characterized in that described backpack short message is binary short message.
CN201410473232.9A2014-09-162014-09-16Method and system for reporting offline transaction information of SIM card payment application in real timeExpired - Fee RelatedCN105488668B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410473232.9ACN105488668B (en)2014-09-162014-09-16Method and system for reporting offline transaction information of SIM card payment application in real time

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410473232.9ACN105488668B (en)2014-09-162014-09-16Method and system for reporting offline transaction information of SIM card payment application in real time

Publications (2)

Publication NumberPublication Date
CN105488668A CN105488668A (en)2016-04-13
CN105488668Btrue CN105488668B (en)2020-03-17

Family

ID=55675637

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410473232.9AExpired - Fee RelatedCN105488668B (en)2014-09-162014-09-16Method and system for reporting offline transaction information of SIM card payment application in real time

Country Status (1)

CountryLink
CN (1)CN105488668B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106412041B (en)*2016-09-202020-03-03徐蔚System for connecting mobile terminal with service providing equipment and service providing method
CN109583872A (en)*2018-11-302019-04-05阿里巴巴集团控股有限公司Method of payment and device
CN116167759A (en)*2023-04-262023-05-26北京大也智慧数据科技服务有限公司Off-line payment method and system based on SIM card

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101789151A (en)*2009-12-312010-07-28中兴通讯股份有限公司Application method of mobile terminal E-wallet and mobile terminal
CN102426720A (en)*2011-11-222012-04-25浙江省公众信息产业有限公司Mobile phone intelligent card, mobile phone terminal, system and method for electronic purse transfer in air
CN103108277A (en)*2012-12-292013-05-15深圳市康索特软件有限公司Air business implement method and system based on mobile phone client-side
CN103699994A (en)*2014-01-032014-04-02深圳中科讯联科技有限公司Method and system for loading credit over air for electronic purse of mobile terminal
CN103839340A (en)*2012-11-272014-06-04中国电信股份有限公司Method and system for synchronizing electronic purse information and over-the-air earmarking service platform
CN104008481A (en)*2014-04-022014-08-27上海柯斯软件股份有限公司Loading-in-air system and method based on non-contact type mobile payment mobile phone terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7255264B2 (en)*2004-04-242007-08-14De Leon Hilary LaingCellular phone-based automatic payment system
CN101599191B (en)*2008-06-042012-07-04中国移动通信集团公司Method and mobile terminal equipment for displaying trading information
CN101354802B (en)*2008-09-052010-12-22中国网通集团宽带业务应用国家工程实验室有限公司Method and system for processing consumption recording information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101789151A (en)*2009-12-312010-07-28中兴通讯股份有限公司Application method of mobile terminal E-wallet and mobile terminal
CN102426720A (en)*2011-11-222012-04-25浙江省公众信息产业有限公司Mobile phone intelligent card, mobile phone terminal, system and method for electronic purse transfer in air
CN103839340A (en)*2012-11-272014-06-04中国电信股份有限公司Method and system for synchronizing electronic purse information and over-the-air earmarking service platform
CN103108277A (en)*2012-12-292013-05-15深圳市康索特软件有限公司Air business implement method and system based on mobile phone client-side
CN103699994A (en)*2014-01-032014-04-02深圳中科讯联科技有限公司Method and system for loading credit over air for electronic purse of mobile terminal
CN104008481A (en)*2014-04-022014-08-27上海柯斯软件股份有限公司Loading-in-air system and method based on non-contact type mobile payment mobile phone terminal

Also Published As

Publication numberPublication date
CN105488668A (en)2016-04-13

Similar Documents

PublicationPublication DateTitle
US20230252449A1 (en)Systems, Methods, and Computer Program Products for Providing a Contactless Protocol
US9788205B2 (en)System and method for second factor authentication
US9100222B2 (en)System and method for mobile user authentication
US20140149285A1 (en)Effecting payments via mobile phones
US20180181951A1 (en)Apparatus and methods for processing commercial transaction data
CN103269326A (en)Safety equipment, multi-application system and safety method for ubiquitous networks
US20080288384A1 (en)System for automatic financial transaction notifications over wireless network or other network
KR20110020820A (en) Monetary transfer approval via mobile device
CN105488668B (en)Method and system for reporting offline transaction information of SIM card payment application in real time
US20200280840A1 (en)System and method for selectively enabling a data transfer method
US9209994B2 (en)System and method for enhanced application server
US20230119328A1 (en)Computer-based systems and device configured for temporary electronic account linking to disposable tags and methods thereof
CN105225152A (en)A kind of electronic bill of exchange system and collection method thereof
KR101363753B1 (en)Method and system for changing key on SE in mobile device
CN103685145B (en)Security information interaction system, device and method
US20150294379A1 (en)Method and apparatus to introduce billing architecture for different utility events and to grant cross domain promotions
CN101354802A (en) Method and system for processing consumption record information
TWM621128U (en)System for providing formal receipts
CN113222735A (en)Method for inquiring transaction associated information and related device
CN201364616Y (en)Home payment terminal
CN106899493A (en)Based on information push method and its device that UDP and Https is realized
CN106600257A (en)Security-unit-based near-filed payment data exchange system and method of mobile device
CN110673965A (en)Method and device for capturing second-killing commodities
CN103854175A (en)Customer service terminal system based on mobile internet of things technology
TWI705402B (en)A membership system based on a community website and its operating method and an operating method for a membership meal ordering system based on a community website

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20200317


[8]ページ先頭

©2009-2025 Movatter.jp