CN106682892B - Transaction data acquisition method, NFC controller, application processor and terminal - Google Patents

Transaction data acquisition method, NFC controller, application processor and terminal Download PDF

Info

Publication number
CN106682892B
CN106682892B CN201510745364.7A CN201510745364A CN106682892B CN 106682892 B CN106682892 B CN 106682892B CN 201510745364 A CN201510745364 A CN 201510745364A CN 106682892 B CN106682892 B CN 106682892B
Authority
CN
China
Prior art keywords
transaction data
application
transaction
application processor
data
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.)
Active
Application number
CN201510745364.7A
Other languages
Chinese (zh)
Other versions
CN106682892A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Corp
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 China Mobile Communications Corp filed Critical China Mobile Communications Corp
Priority to CN201510745364.7A priority Critical patent/CN106682892B/en
Publication of CN106682892A publication Critical patent/CN106682892A/en
Application granted granted Critical
Publication of CN106682892B publication Critical patent/CN106682892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3278RFID or NFC payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/322Aspects of commerce using mobile devices [M-devices]
    • G06Q20/3229Use of the SIM of a M-device as secure element
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment 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/352Contactless payments by cards

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种交易数据的获取方法、NFC控制器、应用处理器及终端。所述交易数据的获取方法,应用于NFC控制器,包括:监听安全芯片SE和非接触读卡器之间的非接触交易通道;在SE和非接触读卡器之间有交易数据通信时,从所述非接触交易通道获取交易数据;将所述交易数据发送给应用处理器进行缓存。上述方案,通过进行SE和非接触读卡器之间的监听,在有交易进行时直接获取交易数据,然后将该交易数据在应用处理器中进行缓存,上层应用可以方便的在应用处理器中获取交易数据,避免了因SE功能限制,不能获取或不能实时获取交易数据,造成用户使用不便的问题,此种方式,扩展了非接触交易的应用范围。

Figure 201510745364

The invention provides a transaction data acquisition method, an NFC controller, an application processor and a terminal. The acquisition method of the transaction data, applied to the NFC controller, includes: monitoring the contactless transaction channel between the security chip SE and the contactless card reader; when there is transaction data communication between the SE and the contactless card reader, Acquire transaction data from the contactless transaction channel; and send the transaction data to an application processor for caching. In the above scheme, by monitoring between SE and the contactless card reader, transaction data is directly obtained when a transaction is in progress, and then the transaction data is cached in the application processor, and the upper-layer application can be conveniently stored in the application processor. Obtaining transaction data avoids the problem of user inconvenience caused by the inability to obtain or real-time transaction data due to the limitation of SE functions. This method expands the application scope of contactless transactions.

Figure 201510745364

Description

交易数据的获取方法、NFC控制器、应用处理器及终端Transaction data acquisition method, NFC controller, application processor and terminal

技术领域technical field

本发明涉及终端及电子商务领域,特别涉及一种交易数据的获取方法、NFC控制器、应用处理器及终端。The invention relates to the field of terminals and e-commerce, and in particular to a transaction data acquisition method, an NFC controller, an application processor and a terminal.

背景技术Background technique

近距离无线通讯(Near Field Communication,即NFC)现场支付即将成为现场支付的主流支付技术,但目前NFC非接触的信息获取需要NFC终端访问SIM卡获取,若SIM卡应用不提供交易的缓存,则NFC终端将无法获取;即使SIM卡应用提供相应的缓存,但由于信息分散于各个卡应用,导致终端对此获取不易,且上层应用需要对每一个卡应用逐一获取数据,其不能实现实时获取,从而无法进行相应的大数据的处理;可能还会存在上层应用无法访问有些卡应用的问题。Near Field Communication (NFC) on-site payment is about to become the mainstream payment technology for on-site payment, but the current NFC non-contact information acquisition requires the NFC terminal to access the SIM card for acquisition. If the SIM card application does not provide transaction cache, then The NFC terminal will not be able to obtain it; even if the SIM card application provides the corresponding cache, it is not easy for the terminal to obtain this information because the information is scattered in each card application, and the upper-layer application needs to obtain the data for each card application one by one, which cannot be obtained in real time. Therefore, the corresponding big data cannot be processed; there may also be a problem that the upper-layer application cannot access some card applications.

发明内容SUMMARY OF THE INVENTION

本发明要解决的技术问题是提供一种交易数据的获取方法、NFC控制器、应用处理器及终端,用以解决NFC终端无法实时方便地获取非接触交易数据的问题。The technical problem to be solved by the present invention is to provide a transaction data acquisition method, an NFC controller, an application processor and a terminal, so as to solve the problem that the NFC terminal cannot easily acquire contactless transaction data in real time.

为了解决上述技术问题,本发明实施例提供一种交易数据的获取方法,应用于一近距离无线通讯NFC控制器,包括:In order to solve the above technical problems, an embodiment of the present invention provides a method for acquiring transaction data, which is applied to a short-range wireless communication NFC controller, including:

监听安全芯片SE和非接触读卡器之间的非接触交易通道;Monitor the contactless transaction channel between the security chip SE and the contactless card reader;

在SE和非接触读卡器之间有交易数据通信时,从所述非接触交易通道获取交易数据;Obtain transaction data from the contactless transaction channel when there is transaction data communication between the SE and the contactless card reader;

将所述交易数据发送给应用处理器进行缓存。The transaction data is sent to the application processor for caching.

其中,所述SE设置于SWP-SIM卡中。Wherein, the SE is set in the SWP-SIM card.

本发明实施例提供一种NFC控制器,包括:An embodiment of the present invention provides an NFC controller, including:

监听模块,用于监听安全芯片SE和非接触读卡器之间的非接触交易通道;The monitoring module is used to monitor the contactless transaction channel between the security chip SE and the contactless card reader;

获取模块,用于在SE和非接触读卡器之间有交易数据通信时,从所述非接触交易通道获取交易数据;an acquisition module for acquiring transaction data from the contactless transaction channel when there is transaction data communication between the SE and the contactless card reader;

第一发送模块,用于将所述交易数据发送给应用处理器进行缓存。The first sending module is configured to send the transaction data to the application processor for buffering.

本发明实施例提供一种交易数据的获取方法,应用于一应用处理器,包括:An embodiment of the present invention provides a method for acquiring transaction data, applied to an application processor, including:

接收NFC控制器发送的交易数据,所述交易数据是NFC控制器从安全芯片SE和非接触读卡器之间的非接触交易通道监听到的;Receive transaction data sent by the NFC controller, where the transaction data is monitored by the NFC controller from the contactless transaction channel between the security chip SE and the contactless card reader;

缓存所述交易数据。The transaction data is cached.

进一步地,在所述缓存所述交易数据的步骤之后,所述交易数据的获取方法还包括:Further, after the step of caching the transaction data, the method for acquiring the transaction data further includes:

将所述交易数据发送给对应的上层应用。Send the transaction data to the corresponding upper-layer application.

进一步地,所述将所述交易数据发送给对应的上层应用的步骤包括:Further, the step of sending the transaction data to the corresponding upper-layer application includes:

判断应用处理器中是否存在所述交易数据对应的第一上层应用的注册信息;judging whether the registration information of the first upper-layer application corresponding to the transaction data exists in the application processor;

若存在所述第一上层应用的注册信息,则向所述第一上层应用发送交易数据更新消息;If there is registration information of the first upper-layer application, sending a transaction data update message to the first upper-layer application;

接收所述第一上层应用根据所述交易数据更新消息反馈的交易数据请求信息;receiving transaction data request information fed back by the first upper-layer application according to the transaction data update message;

根据所述交易数据请求信息,将所述交易数据发送给所述第一上层应用。According to the transaction data request information, the transaction data is sent to the first upper-layer application.

进一步地,所述交易数据的获取方法还包括:Further, the acquisition method of the transaction data also includes:

获取上层应用的注册信息,所述注册信息中包括上层应用的标识信息以及非接触交易应用的标识信息;Acquiring registration information of the upper-layer application, where the registration information includes the identification information of the upper-layer application and the identification information of the contactless transaction application;

将所述注册信息进行存储。The registration information is stored.

本发明实施例提供一种应用处理器,包括:An embodiment of the present invention provides an application processor, including:

接收模块,用于接收NFC控制器发送的交易数据,所述交易数据是NFC控制器从安全芯片SE和非接触读卡器之间的非接触交易通道监听到的;a receiving module, configured to receive transaction data sent by the NFC controller, the transaction data being monitored by the NFC controller from the contactless transaction channel between the security chip SE and the contactless card reader;

缓存模块,用于缓存所述交易数据。A cache module, configured to cache the transaction data.

进一步地,所述应用处理器还包括:Further, the application processor also includes:

第二发送模块,用于将所述交易数据发送给对应的上层应用。The second sending module is configured to send the transaction data to the corresponding upper-layer application.

进一步地,所述第二发送模块包括:Further, the second sending module includes:

判断单元,用于判断应用处理器中是否存在所述交易数据对应的第一上层应用的注册信息;a judging unit for judging whether the registration information of the first upper-layer application corresponding to the transaction data exists in the application processor;

更新消息发送单元,用于若存在所述第一上层应用的注册信息,则向所述第一上层应用发送交易数据更新消息;an update message sending unit, configured to send a transaction data update message to the first upper layer application if there is registration information of the first upper layer application;

请求信息接收单元,用于接收所述第一上层应用根据所述交易数据更新消息反馈的交易数据请求信息;a request information receiving unit, configured to receive transaction data request information fed back by the first upper-layer application according to the transaction data update message;

交易数据发送单元,用于根据所述交易数据请求信息,将所述交易数据发送给所述第一上层应用。A transaction data sending unit, configured to send the transaction data to the first upper-layer application according to the transaction data request information.

进一步地,所述应用处理器还包括:Further, the application processor also includes:

注册信息获取模块,用于获取上层应用的注册信息,所述注册信息中包括上层应用的标识信息以及非接触交易应用的标识信息;a registration information acquisition module, configured to acquire the registration information of the upper-layer application, the registration information including the identification information of the upper-layer application and the identification information of the contactless transaction application;

存储模块,用于将所述注册信息进行存储。The storage module is used for storing the registration information.

本发明实施例提供一种终端,包括上述的NFC控制器和上述的应用处理器。An embodiment of the present invention provides a terminal, including the above-mentioned NFC controller and the above-mentioned application processor.

本发明的有益效果是:The beneficial effects of the present invention are:

上述方案,通过进行SE和非接触读卡器之间的监听,在有交易进行时直接获取交易数据,然后将该交易数据在应用处理器中进行缓存,上层应用可以方便的在应用处理器中获取交易数据,避免了因SE功能限制,不能获取或不能实时获取交易数据,造成用户使用不便的问题,此种方式,扩展了非接触交易的应用范围。In the above scheme, through monitoring between SE and the contactless card reader, transaction data is directly obtained when a transaction is in progress, and then the transaction data is cached in the application processor, and the upper-layer application can be conveniently stored in the application processor. The acquisition of transaction data avoids the problem of inconvenience for users due to the limitation of SE functions, which may result in inconvenience to users. This method expands the application scope of contactless transactions.

附图说明Description of drawings

图1表示本发明实施例一的所述交易数据的获取方法的流程示意图;FIG. 1 shows a schematic flowchart of the method for acquiring the transaction data according to the first embodiment of the present invention;

图2表示本发明实施例的所述NFC控制器的模块示意图;FIG. 2 shows a schematic diagram of a module of the NFC controller according to an embodiment of the present invention;

图3表示本发明实施例三的所述交易数据的获取方法的流程示意图;FIG. 3 shows a schematic flowchart of the method for acquiring the transaction data according to Embodiment 3 of the present invention;

图4表示本发明实施例四的所述交易数据的获取方法的流程示意图;4 is a schematic flowchart of the method for acquiring the transaction data according to Embodiment 4 of the present invention;

图5表示本发明实施例四中步骤23的实现流程图;Fig. 5 shows the realization flow chart of step 23 in the fourth embodiment of the present invention;

图6表示本发明实施例的应用处理器的模块示意图;FIG. 6 is a schematic block diagram of an application processor according to an embodiment of the present invention;

图7表示终端与SWP-SIM卡实现交互的结构示意图;Fig. 7 shows the structural schematic diagram of the interaction between the terminal and the SWP-SIM card;

图8表示终端实现交易数据获取的流程示意图。FIG. 8 is a schematic diagram showing the flow of acquiring transaction data by the terminal.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

本发明针对现有的NFC终端无法实时方便地获取非接触交易数据的问题,提供一种交易数据的获取方法、NFC控制器、应用处理器及终端。Aiming at the problem that the existing NFC terminal cannot easily acquire contactless transaction data in real time, the present invention provides a transaction data acquisition method, an NFC controller, an application processor and a terminal.

实施例一Example 1

如图1所示,本发明实施例一的所述交易数据的获取方法,应用于一近距离无线通讯NFC控制器,包括:As shown in FIG. 1 , the method for acquiring transaction data according to Embodiment 1 of the present invention is applied to a short-range wireless communication NFC controller, including:

步骤11,监听安全芯片SE和非接触读卡器之间的非接触交易通道;Step 11, monitor the contactless transaction channel between the security chip SE and the contactless card reader;

需要说明的是,SE中增加了加密/解密逻辑电路,主要实现的是:防止外部恶意解析攻击,保护数据安全。该SE可以设置在SWP-SIM卡中,也可以独立的设置在电子设备中,还可以设置在一些外置存储卡上,例如SD卡中。因现有技术中主要是采用SWP-SIM卡进行非接触交易,因此,本发明中以SE设置在SWP-SIM卡上为例进行说明。It should be noted that an encryption/decryption logic circuit is added in SE, mainly to prevent external malicious analysis attacks and protect data security. The SE can be set in the SWP-SIM card, can also be set independently in the electronic device, and can also be set on some external memory cards, such as SD cards. Because the SWP-SIM card is mainly used for contactless transactions in the prior art, the present invention takes the SE setting on the SWP-SIM card as an example for description.

SWP-SIM卡为一种新规格的SIM卡,用以实现终端的非接触交易。因SWP-SIM卡和非接触读卡器在进行信息交互时,均通过NFC控制器实现对交互信息的传递,本步骤11中,直接对SWP-SIM卡中的SE和非接触读卡器之间的通信交互进行监听。SWP-SIM card is a new type of SIM card, which is used to realize the contactless transaction of the terminal. Because the SWP-SIM card and the contactless card reader communicate information through the NFC controller, in this step 11, the SE in the SWP-SIM card and the contactless card reader are directly communicated. Monitor the communication interaction between them.

步骤12,在SE和非接触读卡器之间有交易数据通信时,从所述非接触交易通道获取交易数据;Step 12, when there is transaction data communication between the SE and the contactless card reader, obtain transaction data from the contactless transaction channel;

在SE和非接触读卡器之间进行交易通信时,直接获取交易通信过程中的交易数据,SE中不会再存储该交易数据。During transaction communication between the SE and the contactless card reader, the transaction data in the process of transaction communication is directly obtained, and the transaction data is no longer stored in the SE.

步骤13,将所述交易数据发送给应用处理器进行缓存。Step 13: Send the transaction data to the application processor for caching.

因交易数据可以是银行卡应用、公交卡应用的交易数据,该交易数据最终要发送给上层应用进行处理,且因为上层应用不会和NFC控制器直接进行信息交互,所以,NFC控制器需将获取的交易数据发送给应用处理器,需要说明的是,所述应用处理器负责控制上层应用的运行。Because the transaction data can be the transaction data of bank card applications and bus card applications, the transaction data will eventually be sent to the upper-layer application for processing, and because the upper-layer application will not directly exchange information with the NFC controller, the NFC controller needs to The acquired transaction data is sent to the application processor. It should be noted that the application processor is responsible for controlling the operation of the upper-layer application.

需要说明的是,为了保证在后续的通信中,能将交易数据顺利传送给上层应用,所述交易数据中通常需要包括进行非接触交易的非接触交易应用的标识信息,以此用来区分该交易数据是属于哪个非接触交易应用的交易数据,从而保证了上层应用可以根据非接触交易应用的标识信息获取相应的交易数据。It should be noted that, in order to ensure that the transaction data can be successfully transmitted to the upper-layer application in the subsequent communication, the transaction data usually needs to include the identification information of the contactless transaction application that conducts the contactless transaction, so as to distinguish the contactless transaction application. The transaction data belongs to which non-contact transaction application transaction data, thereby ensuring that the upper-layer application can obtain the corresponding transaction data according to the identification information of the non-contact transaction application.

实施例二Embodiment 2

如图2所示,本发明实施例二提供一种NFC控制器,包括:As shown in FIG. 2, Embodiment 2 of the present invention provides an NFC controller, including:

监听模块110,用于监听安全芯片SE和非接触读卡器之间的非接触交易通道;The monitoring module 110 is used for monitoring the contactless transaction channel between the security chip SE and the contactless card reader;

获取模块120,用于在SE和非接触读卡器之间有交易数据通信时,从所述非接触交易通道获取交易数据;an acquisition module 120, configured to acquire transaction data from the contactless transaction channel when there is transaction data communication between the SE and the contactless card reader;

第一发送模块130,用于将所述交易数据发送给应用处理器进行缓存。The first sending module 130 is configured to send the transaction data to the application processor for buffering.

其中,该SE可以设置在SWP-SIM卡中,也可以独立的设置在电子设备中,还可以设置在一些外置存储卡上。Wherein, the SE can be set in the SWP-SIM card, can also be set independently in the electronic device, and can also be set on some external memory cards.

可选地,所述交易数据包括非接触交易应用的标识信息。Optionally, the transaction data includes identification information of a contactless transaction application.

需要说明的是,该NFC控制器实施例是与上述交易数据的获取方法实施例一一对应的NFC控制器,上述获取方法实施例中所有实现方式均适用于该NFC控制器的实施例中,也能达到相同的技术效果。It should be noted that this NFC controller embodiment is an NFC controller corresponding to the above-mentioned transaction data acquisition method embodiment one-to-one, and all implementations in the above-mentioned acquisition method embodiment are applicable to the NFC controller embodiment, The same technical effect can also be achieved.

实施例三Embodiment 3

如图3所示,本发明实施例三的所述交易数据的获取方法,应用于一应用处理器,包括:As shown in FIG. 3 , the method for acquiring transaction data according to Embodiment 3 of the present invention, applied to an application processor, includes:

步骤21,接收NFC控制器发送的交易数据;Step 21, receiving the transaction data sent by the NFC controller;

需要说明的是,所述交易数据是NFC控制器从SE和非接触读卡器之间的非接触交易通道监听到的。It should be noted that the transaction data is monitored by the NFC controller from the contactless transaction channel between the SE and the contactless card reader.

步骤22,缓存所述交易数据。Step 22: Cache the transaction data.

需要说明的是,应用处理器将交易数据进行缓存,在上层应用需要使用该交易数据时,可以在应用处理器的缓存数据中直接获取需要用到的交易数据。It should be noted that the application processor caches the transaction data, and when the upper-layer application needs to use the transaction data, the transaction data to be used can be directly obtained from the cached data of the application processor.

本实施例中,将交易数据缓存在应用处理器中,方便了上层应用对交易数据的获取,缩短了交易数据获取时延。In this embodiment, the transaction data is cached in the application processor, which facilitates the acquisition of the transaction data by the upper-layer application, and shortens the acquisition delay of the transaction data.

且为了保证在后续的通信中,能将交易数据顺利传送给上层应用,所述交易数据中通常需要包括非接触交易应用的标识信息,以此保证了交易数据与上层应用的对应。And in order to ensure that the transaction data can be smoothly transmitted to the upper-layer application in the subsequent communication, the transaction data usually needs to include the identification information of the contactless transaction application, so as to ensure the correspondence between the transaction data and the upper-layer application.

实施例四Embodiment 4

如图4所示,本发明实施例四的所述交易数据的获取方法,包括:As shown in FIG. 4 , the method for acquiring transaction data according to Embodiment 4 of the present invention includes:

步骤21,接收NFC控制器发送的交易数据;Step 21, receiving the transaction data sent by the NFC controller;

需要说明的是,所述交易数据是NFC控制器从SE和非接触读卡器之间的非接触交易通道监听到的。It should be noted that the transaction data is monitored by the NFC controller from the contactless transaction channel between the SE and the contactless card reader.

步骤22,缓存所述交易数据;Step 22, cache the transaction data;

步骤23,将所述交易数据发送给对应的上层应用。Step 23: Send the transaction data to the corresponding upper-layer application.

需要说明的是,为了保证非接触交易的顺利进行,缓存的交易数据需要发送给上层应用进行处理,通常情况下,应用处理器不会主动将交易数据发送给上层应用,因此,本实施例中,如图5所示,所述步骤23的具体实现包括:It should be noted that, in order to ensure the smooth progress of the contactless transaction, the cached transaction data needs to be sent to the upper-layer application for processing. Normally, the application processor will not actively send the transaction data to the upper-layer application. Therefore, in this embodiment, , as shown in Figure 5, the specific implementation of the step 23 includes:

步骤231,判断应用处理器中是否存在所述交易数据对应的第一上层应用的注册信息;Step 231, judging whether there is registration information of the first upper-layer application corresponding to the transaction data in the application processor;

步骤232,若存在所述第一上层应用的注册信息,则向所述第一上层应用发送交易数据更新消息;Step 232, if there is registration information of the first upper-layer application, send a transaction data update message to the first upper-layer application;

需要说明的是,该注册信息中主要包含上层应用的标识信息以及非接触交易应用的标识信息,只有在应用处理器中进行了注册的上层应用,才有权进行交易数据的获取,即应用处理器在查找到新缓存的交易数据所对应的上层应用在其上进行了注册时,才将获知该交易数据的信息告知上层应用。It should be noted that the registration information mainly includes the identification information of the upper-layer application and the identification information of the contactless transaction application. Only the upper-layer application that has been registered in the application processor has the right to obtain transaction data, that is, application processing. When it finds that the upper-layer application corresponding to the newly cached transaction data is registered on it, the browser notifies the upper-layer application of the information of the transaction data.

步骤233,接收所述第一上层应用根据所述交易数据更新消息反馈的交易数据请求信息;Step 233, receiving the transaction data request information fed back by the first upper-layer application according to the transaction data update message;

步骤234,根据所述交易数据请求信息,将所述交易数据发送给所述第一上层应用。Step 234: Send the transaction data to the first upper-layer application according to the transaction data request information.

需要说明的是,当应用处理器中缓存了新的交易数据时,需要判断该交易数据属于哪个上层应用,在得到确定的上层应用时,需要告知该上层应用进行交易数据的处理,此时,应用处理器根据上层应用反馈的获取交易数据请求将该交易数据发送给对应的上层应用。It should be noted that when new transaction data is cached in the application processor, it is necessary to determine which upper-layer application the transaction data belongs to. When the upper-layer application is determined, the upper-layer application needs to be informed to process the transaction data. At this time, The application processor sends the transaction data to the corresponding upper-layer application according to the transaction data acquisition request fed back by the upper-layer application.

为了保证交易数据的顺利发送,本实施例的交易数据的获取方法还包括:In order to ensure the smooth transmission of transaction data, the method for acquiring transaction data in this embodiment further includes:

获取上层应用的注册信息,所述注册信息中包括上层应用的标识信息以及非接触交易应用的标识信息;Acquiring registration information of the upper-layer application, where the registration information includes the identification information of the upper-layer application and the identification information of the contactless transaction application;

将所述注册信息进行存储。The registration information is stored.

可选地,所述注册信息中还可以包括上层应用登录该应用处理器的密码。Optionally, the registration information may further include a password for the upper-layer application to log in to the application processor.

本实施例中,应用处理器通过将新缓存的交易数据发送给对应的上层应用,且只有在应用处理器中进行注册的上层应用才可以接收到与其相关的交易数据的处理请求,依据该处理请求进行交易数据的获取,此种交易数据的传输方式,尽可能的保证了交易数据的安全性。In this embodiment, the application processor sends the newly cached transaction data to the corresponding upper-layer application, and only the upper-layer application registered in the application processor can receive the processing request of the transaction data related to it. The transaction data is requested to be acquired. This transmission method of transaction data ensures the security of transaction data as much as possible.

实施例五Embodiment 5

如图6所示,本发明实施例五的应用处理器,包括:As shown in FIG. 6 , the application processor according to Embodiment 5 of the present invention includes:

接收模块210,用于接收NFC控制器发送的交易数据;a receiving module 210, configured to receive transaction data sent by the NFC controller;

其中,所述交易数据是NFC控制器从SE和非接触读卡器之间的非接触交易通道监听到的;Wherein, the transaction data is monitored by the NFC controller from the contactless transaction channel between the SE and the contactless card reader;

缓存模块220,用于缓存所述交易数据。The cache module 220 is configured to cache the transaction data.

进一步地,所述应用处理器还包括:Further, the application processor also includes:

第二发送模块230,用于将所述交易数据发送给对应的上层应用。The second sending module 230 is configured to send the transaction data to the corresponding upper-layer application.

可选地,所述第二发送模块230在实现时,具体包括:Optionally, when the second sending module 230 is implemented, it specifically includes:

判断单元,用于判断应用处理器中是否存在所述交易数据对应的第一上层应用的注册信息;a judging unit for judging whether the registration information of the first upper-layer application corresponding to the transaction data exists in the application processor;

更新消息发送单元,用于若存在所述第一上层应用的注册信息,则向所述第一上层应用发送交易数据更新消息;an update message sending unit, configured to send a transaction data update message to the first upper layer application if there is registration information of the first upper layer application;

请求信息接收单元,用于接收所述第一上层应用根据所述交易数据更新消息反馈的交易数据请求信息;a request information receiving unit, configured to receive transaction data request information fed back by the first upper-layer application according to the transaction data update message;

交易数据发送单元,用于根据所述交易数据请求信息,将所述交易数据发送给所述第一上层应用。A transaction data sending unit, configured to send the transaction data to the first upper-layer application according to the transaction data request information.

可选地,所述应用处理器还包括:Optionally, the application processor further includes:

注册信息获取模块,用于获取上层应用的注册信息,所述注册信息中包括上层应用的标识信息以及非接触交易应用的标识信息;a registration information acquisition module, configured to acquire the registration information of the upper-layer application, the registration information including the identification information of the upper-layer application and the identification information of the contactless transaction application;

存储模块,用于将所述注册信息进行存储。The storage module is used for storing the registration information.

需要说明的是,该应用处理器实施例是与上述交易数据的获取方法实施例一一对应的应用处理器,上述获取方法实施例中所有实现方式均适用于该应用处理器的实施例中,也能达到相同的技术效果。It should be noted that this application processor embodiment is an application processor corresponding to the above-mentioned transaction data acquisition method embodiment one-to-one, and all implementations in the above-mentioned acquisition method embodiment are applicable to the application processor embodiment, The same technical effect can also be achieved.

实施例六Embodiment 6

本发明实施例六提供一种终端,包括上述的NFC控制器和应用处理器。Embodiment 6 of the present invention provides a terminal, including the above-mentioned NFC controller and application processor.

需要说明的是,本实施例中的所述终端,在进行非接触交易时,通过进行SWP-SIM卡中的SE和非接触读卡器之间的监听,在有交易进行时,直接获取交易数据,然后将该交易数据在应用处理器中进行缓存,上层应用可以方便的在应用处理器中获取交易数据,避免了因SWP-SIM卡中的SE功能限制,不能获取或不能实时获取交易数据,造成用户使用不便的问题,此种方式,扩展了终端的应用范围,提高了用户体验效果。It should be noted that the terminal in this embodiment, when conducting a contactless transaction, directly obtains the transaction when there is a transaction by monitoring between the SE in the SWP-SIM card and the contactless card reader. Then the transaction data is cached in the application processor, and the upper-layer application can easily obtain the transaction data in the application processor, avoiding the transaction data that cannot be obtained or cannot be obtained in real time due to the limitation of the SE function in the SWP-SIM card. , causing the problem of inconvenience for the user. This method expands the application scope of the terminal and improves the user experience effect.

需要说明的是,该终端可以为手机等具有NFC通信能力的任何电子设备。It should be noted that the terminal may be any electronic device with NFC communication capability, such as a mobile phone.

在实际应用中,本发明所述的终端的具体实现为(其中,终端通过SWP-SIM卡实现非接触交易):In practical application, the specific implementation of the terminal described in the present invention is (wherein, the terminal realizes contactless transaction through the SWP-SIM card):

如图7所示,在终端的NFC控制器中增加数据获取模块,用于实时监听SWP-SIM卡与非接触读卡器(例如POS终端)之间的交易,获取二者之间的非接触交易数据,若获取到新的非接触交易数据时,将该非接触交易数据传送给终端的应用处理器。As shown in Figure 7, a data acquisition module is added to the NFC controller of the terminal to monitor the transaction between the SWP-SIM card and the contactless card reader (such as a POS terminal) in real time, and obtain the contactless data between the two. For transaction data, if new contactless transaction data is acquired, the contactless transaction data is transmitted to the application processor of the terminal.

在应用处理器中增加数据缓存模块,用于缓存近期一段时间内产生的非接触交易数据,同时应用处理器提供访问接口以供上层应用对该非接触交易数据进行访问;建立上层应用访问的注册机制,上层应用若想访问数据缓存模块中的数据,必须在该数据缓存模块进行注册,登记相应的应用ID(该应用ID包含上层应用ID以及该上层应用可以处理的非接触交易应用的ID,以使数据缓存模块可以进行交易数据的区分以及确定交易数据属于哪个上层应用)。A data cache module is added to the application processor to cache the contactless transaction data generated in a recent period of time. At the same time, the application processor provides an access interface for the upper-layer application to access the contactless transaction data; establish a registration for the access of the upper-layer application Mechanism, if the upper-layer application wants to access the data in the data cache module, it must register in the data cache module and register the corresponding application ID (the application ID includes the upper-layer application ID and the ID of the contactless transaction application that the upper-layer application can handle, So that the data cache module can distinguish transaction data and determine which upper-layer application the transaction data belongs to).

同时增加IF5接口,用于实现上层应用访问数据缓存模块中的数据,当应用处理器的数据缓存模块有新的非接触交易数据增加时,可以通过该IF5接口通知对应的上层应用获取数据缓存模块中的非接触交易数据。At the same time, an IF5 interface is added to enable the upper-layer application to access the data in the data cache module. When new contactless transaction data is added to the data cache module of the application processor, the corresponding upper-layer application can be notified through the IF5 interface to obtain the data cache module. Contactless transaction data in .

同时还扩展了IF1接口,用于实现数据获取模块向数据缓存模块发送非接触交易数据。At the same time, the IF1 interface is also extended, which is used to realize that the data acquisition module sends contactless transaction data to the data cache module.

保持SWP-SIM卡与NFC控制器之间的IF2接口不变,基带芯片与SWP-SIM卡之间还沿用原来的IF4接口进行通信(需要说明的是,在本发明中,基带芯片与SWP-SIM卡之间没有通信交互)。The IF2 interface between the SWP-SIM card and the NFC controller remains unchanged, and the original IF4 interface is used for communication between the baseband chip and the SWP-SIM card (it should be noted that in the present invention, the baseband chip and the SWP-SIM There is no communication interaction between SIM cards).

如图8所示,通过终端实现非接触交易数据获取的流程为:As shown in Figure 8, the process of realizing contactless transaction data acquisition through the terminal is as follows:

步骤1、用户拿着NFC终端在非接触POS终端上进行刷卡交易,比如脱机消费、圈存等;Step 1. The user holds the NFC terminal and performs a card-swiping transaction on the contactless POS terminal, such as offline consumption, load deposit, etc.;

步骤2、NFC控制器中的数据获取模块一直监听SWP-SIM卡和POS终端之间的非接触通道,并获取其中的交易信息,比如交易时间、交易类型、交易金额等;Step 2. The data acquisition module in the NFC controller has been monitoring the non-contact channel between the SWP-SIM card and the POS terminal, and acquired transaction information therein, such as transaction time, transaction type, transaction amount, etc.;

步骤3、数据获取模块将获取到的交易信息上送至应用处理器的数据缓存模块;Step 3, the data acquisition module uploads the acquired transaction information to the data cache module of the application processor;

步骤4、数据缓存模块判断本身是否有数据更新,若有数据更新,则向上层的操作系统发送数据更新的通知,操作系统向相关的上层应用发送数据更新通知;Step 4, the data cache module judges whether there is data update itself, if there is data update, then sends a data update notification to the upper-layer operating system, and the operating system sends a data update notification to the relevant upper-layer application;

步骤5、上层应用通过操作系统与数据缓存模块进行交互,获取最新的交易信息。Step 5. The upper-layer application interacts with the data cache module through the operating system to obtain the latest transaction information.

本发明中,终端上的上层应用可以实时方便地获取NFC终端与非接触读卡器之间的所有交易数据,避免了因SWP-SIM卡功能限制,不能获取或不能实时获取交易数据,造成用户使用不便的问题,此种方式,扩展了终端的应用范围,提高了用户体验效果。In the present invention, the upper-layer application on the terminal can conveniently acquire all transaction data between the NFC terminal and the contactless card reader in real time, avoiding the inability to acquire or acquire transaction data in real time due to the functional limitation of the SWP-SIM card, causing users The problem of inconvenience in use, this method expands the application scope of the terminal and improves the user experience effect.

以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。The above are the preferred embodiments of the present invention, and it should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also included in the present invention. within the scope of protection of the invention.

Claims (12)

1. A method for acquiring transaction data is applied to a Near Field Communication (NFC) controller, and is characterized by comprising the following steps:
monitoring a non-contact transaction channel between a security chip SE and a non-contact card reader;
when transaction data communication exists between the SE and the non-contact card reader, transaction data are obtained from the non-contact transaction channel;
sending the transaction data to an application processor for caching, wherein the application processor is responsible for controlling the operation of upper-layer applications, and the upper-layer applications access the transaction data through an added IF5 interface;
the extended IF1 interface is used for realizing that the data acquisition module sends the non-contact transaction data to the data cache module; and keeping the IF2 interface between the SWP-SIM card and the NFC controller unchanged, and carrying out communication between the baseband chip and the SWP-SIM card by using the original IF4 interface.
2. The method for acquiring transaction data of claim 1, wherein the SE is disposed in an SWP-SIM card.
3. An NFC controller, comprising:
the monitoring module is used for monitoring a non-contact transaction channel between the security chip SE and the non-contact card reader;
the acquisition module is used for acquiring transaction data from the non-contact transaction channel when transaction data communication exists between the SE and the non-contact card reader;
the first sending module is used for sending the transaction data to an application processor for caching, the application processor is responsible for controlling the operation of upper-layer applications, and the upper-layer applications access the transaction data through an added IF5 interface; the extended IF1 interface is used for realizing that the data acquisition module sends the non-contact transaction data to the data cache module; and keeping the IF2 interface between the SWP-SIM card and the NFC controller unchanged, and carrying out communication between the baseband chip and the SWP-SIM card by using the original IF4 interface.
4. A method for acquiring transaction data is applied to an application processor, and is characterized by comprising the following steps:
receiving transaction data sent by an NFC controller, wherein the transaction data is monitored by the NFC controller from a non-contact transaction channel between a secure chip SE and a non-contact card reader;
caching the transaction data;
the application processor is responsible for controlling the operation of upper-layer applications, and the upper-layer applications access the transaction data through the added IF5 interface; the extended IF1 interface is used for realizing that the data acquisition module sends the non-contact transaction data to the data cache module; and keeping the IF2 interface between the SWP-SIM card and the NFC controller unchanged, and carrying out communication between the baseband chip and the SWP-SIM card by using the original IF4 interface.
5. The method for acquiring transaction data according to claim 4, wherein after the step of buffering the transaction data, the method for acquiring transaction data further comprises:
and sending the transaction data to a corresponding upper layer application.
6. The method for acquiring transaction data according to claim 5, wherein the step of sending the transaction data to the corresponding upper layer application comprises:
judging whether registration information of a first upper layer application corresponding to the transaction data exists in an application processor or not;
if the registration information of the first upper layer application exists, a transaction data updating message is sent to the first upper layer application;
receiving transaction data request information fed back by the first upper layer application according to the transaction data updating message;
and sending the transaction data to the first upper application according to the transaction data request information.
7. The method for acquiring transaction data according to claim 6, further comprising:
acquiring registration information of an upper application, wherein the registration information comprises identification information of the upper application and identification information of a non-contact transaction application;
and storing the registration information.
8. An application processor, comprising:
the receiving module is used for receiving transaction data sent by the NFC controller, wherein the transaction data are monitored by the NFC controller from a non-contact transaction channel between the security chip SE and the non-contact card reader;
the cache module is used for caching the transaction data, wherein the application processor is responsible for controlling the operation of upper-layer applications, and the upper-layer applications access the transaction data through the added IF5 interface; the extended IF1 interface is used for realizing that the data acquisition module sends the non-contact transaction data to the data cache module; and keeping the IF2 interface between the SWP-SIM card and the NFC controller unchanged, and carrying out communication between the baseband chip and the SWP-SIM card by using the original IF4 interface.
9. The application processor of claim 8, further comprising:
and the second sending module is used for sending the transaction data to the corresponding upper-layer application.
10. The application processor of claim 9, wherein the second sending module comprises:
the judging unit is used for judging whether registration information of the first upper layer application corresponding to the transaction data exists in the application processor or not;
an update message sending unit, configured to send a transaction data update message to the first upper layer application if registration information of the first upper layer application exists;
a request information receiving unit, configured to receive transaction data request information fed back by the first upper layer application according to the transaction data update message;
and the transaction data sending unit is used for sending the transaction data to the first upper application according to the transaction data request information.
11. The application processor of claim 10, further comprising:
the system comprises a registration information acquisition module, a transaction processing module and a transaction processing module, wherein the registration information acquisition module is used for acquiring registration information of upper-layer application, and the registration information comprises identification information of the upper-layer application and identification information of non-contact transaction application;
and the storage module is used for storing the registration information.
12. A terminal, characterized in that it comprises an NFC controller according to claim 3 and an application processor according to any of claims 8 to 11.
CN201510745364.7A 2015-11-05 2015-11-05 Transaction data acquisition method, NFC controller, application processor and terminal Active CN106682892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510745364.7A CN106682892B (en) 2015-11-05 2015-11-05 Transaction data acquisition method, NFC controller, application processor and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510745364.7A CN106682892B (en) 2015-11-05 2015-11-05 Transaction data acquisition method, NFC controller, application processor and terminal

Publications (2)

Publication Number Publication Date
CN106682892A CN106682892A (en) 2017-05-17
CN106682892B true CN106682892B (en) 2020-09-08

Family

ID=58857366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510745364.7A Active CN106682892B (en) 2015-11-05 2015-11-05 Transaction data acquisition method, NFC controller, application processor and terminal

Country Status (1)

Country Link
CN (1) CN106682892B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089931A (en) * 2017-11-30 2018-05-29 大唐微电子技术有限公司 A kind of method and device of synchronization SE information, wearable payment devices
CN116976884B (en) * 2023-08-06 2024-12-27 北京京孚信息技术有限公司 Transaction data processing method based on cloud storage and NFC
CN117155426B (en) * 2023-10-30 2024-03-29 北京紫光青藤微系统有限公司 Data transmission method for NFC device, NFC device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240075A (en) * 2013-06-07 2014-12-24 中兴通讯股份有限公司 Financial card, mobile terminal and mobile payment system
CN104485982A (en) * 2014-11-20 2015-04-01 广东欧珀移动通信有限公司 Intelligent accessory-based NFC (near field communication) method and system
CN204791094U (en) * 2015-07-20 2015-11-18 广东天波信息技术股份有限公司 Take electronics student card of NFC payment function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240075A (en) * 2013-06-07 2014-12-24 中兴通讯股份有限公司 Financial card, mobile terminal and mobile payment system
CN104485982A (en) * 2014-11-20 2015-04-01 广东欧珀移动通信有限公司 Intelligent accessory-based NFC (near field communication) method and system
CN204791094U (en) * 2015-07-20 2015-11-18 广东天波信息技术股份有限公司 Take electronics student card of NFC payment function

Also Published As

Publication number Publication date
CN106682892A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
US9602506B2 (en) Method and apparatus for supporting login through user terminal
US10650372B2 (en) Apparatuses and methods for managing payment applets on a secure element to conduct mobile payment transactions
US20160253664A1 (en) Attestation by proxy
JP6585823B2 (en) Method and terminal for processing order information
CN113115285B (en) Information processing method and device
CN110741370A (en) Biometric authentication using user input
US9549322B2 (en) Methods and systems for authentication of a communication device
CN103577983A (en) Load method of electronic currency for off-line consumption
WO2015103886A1 (en) Numerical value transferring method, terminal, server, and system
CN109643340B (en) Security element with multiple users
WO2016202108A1 (en) Nfc payment method, nfc payment system and mobile terminal
CN106682892B (en) Transaction data acquisition method, NFC controller, application processor and terminal
US9516006B2 (en) Re-programmable secure cryptographic device
US11250421B2 (en) Storing secure credential information in different regions
CN104901806A (en) Method, device and system for processing virtual resources
US20180025344A1 (en) Communicating authentication information between mobile devices
US9642010B2 (en) Management server, data processing method, and program
CN108122151B (en) Graphic code display method, graphic code processing method, device and system
CN110460567B (en) A kind of identity authentication method and device
WO2017166060A1 (en) Refill method
US20150186883A1 (en) Electronic Account Data Transfer Method And Related Device And System
CN105490810B (en) Method, device and system for processing virtual resource data
CN106161371B (en) Method, device and system for retrieving account information
US12165153B2 (en) Computationally efficient theft detection
WO2017166051A1 (en) Refill method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant