[go: up one dir, main page]

CN104717599A - NFC event reporting method for mobile terminal and device - Google Patents

NFC event reporting method for mobile terminal and device Download PDF

Info

Publication number
CN104717599A
CN104717599A CN201310685322.XA CN201310685322A CN104717599A CN 104717599 A CN104717599 A CN 104717599A CN 201310685322 A CN201310685322 A CN 201310685322A CN 104717599 A CN104717599 A CN 104717599A
Authority
CN
China
Prior art keywords
event
nfc
reporting
information
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310685322.XA
Other languages
Chinese (zh)
Other versions
CN104717599B (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 Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310685322.XA priority Critical patent/CN104717599B/en
Publication of CN104717599A publication Critical patent/CN104717599A/en
Application granted granted Critical
Publication of CN104717599B publication Critical patent/CN104717599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种移动终端的NFC事件上报方法,CLF模块根据NFC事件的发生时间以及对应的NFC SIM卡生成事件信息,并由NFC协议栈将该事件以及事件信息透传至事件管理器,在事件管理器根据事件信息确定上报信息后,通过移动终端的操作系统将NFC事件上报至目的应用,不仅解决了具有NFC SIM卡移动终端中的NFC事件的识别以及上报冲突问题,而且还使上报过程的安全性得到了保障。

The invention discloses a method for reporting an NFC event of a mobile terminal. The CLF module generates event information according to the occurrence time of the NFC event and the corresponding NFC SIM card, and transparently transmits the event and the event information to the event manager by the NFC protocol stack. After the event manager determines the reporting information according to the event information, the NFC event is reported to the target application through the operating system of the mobile terminal, which not only solves the identification and reporting conflicts of the NFC event in the mobile terminal with an NFC SIM card, but also enables the reporting Process safety is guaranteed.

Description

一种移动终端的NFC事件上报方法及设备A mobile terminal NFC event reporting method and device

技术领域technical field

本发明涉及通信技术领域,特别涉及一种移动终端的NFC事件上报方法。本发明同时还涉及一种移动终端。The invention relates to the field of communication technology, in particular to a method for reporting an NFC event of a mobile terminal. The present invention also relates to a mobile terminal.

背景技术Background technique

近场通信(Near Field Communication,NFC),又称近距离无线通信,是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式点对点数据传输(在十厘米内)交换数据。这个技术由免接触式射频识别(RFID)演变而来,并向下兼容RFID,最早由Sony和Philips各自开发成功,主要用于手机等手持设备中提供M2M(Machine to Machine)的通信。由于近场通讯具有天然的安全性,因此,NFC技术被认为在手机支付等领域具有很大的应用前景。Near Field Communication (NFC), also known as short-range wireless communication, is a short-range high-frequency wireless communication technology that allows non-contact point-to-point data transmission (within ten centimeters) between electronic devices to exchange data . This technology evolved from contactless radio frequency identification (RFID) and is backward compatible with RFID. It was first developed by Sony and Philips respectively, and is mainly used to provide M2M (Machine to Machine) communication in handheld devices such as mobile phones. Due to the natural security of near-field communication, NFC technology is considered to have great application prospects in fields such as mobile payment.

如图1所示,为现有技术中移动终端的NFC交易事件上报实现流程,其步骤如下:As shown in Figure 1, it is the implementation process of reporting the NFC transaction event of the mobile terminal in the prior art, and its steps are as follows:

(1)NFC手机终端在NFC受理环境中进行NFC非接交易;(1) NFC mobile phone terminal conducts NFC contactless transactions in the NFC acceptance environment;

(2)NFC SIM中的安全模块(Security element)感知到NFC非接交易事件,完成交易处理后,将该NFC非接交易事件上报至NFC终端的CLF模块;(2) The security module (Security element) in the NFC SIM perceives the NFC contactless transaction event, and after completing the transaction processing, reports the NFC contactless transaction event to the CLF module of the NFC terminal;

(3)CLF将该事件透传至NFC手机终端中的NFC协议栈;(3) CLF transparently transmits the event to the NFC protocol stack in the NFC mobile terminal;

(4)NFC协议栈将该事件上报Android操作系统;(4) The NFC protocol stack reports the event to the Android operating system;

(5)操作系统(例如Android)将该事件广播至所有手机应用应用。(5) The operating system (such as Android) broadcasts the event to all mobile applications.

然而,现有的NFC终端硬件中的CLF不具备针对NFC事件与SIM卡之间关系的判断功能,因此对于多SIM卡的移动终端,在其中的安全模块上报了NFC非接交易事件至CLF模块后,CLF模块无法判断该NFC非接交易事件对应哪一个SIM卡;并且,在经NFC协议栈透传至操作系统后,该事件会被推送至所有的与NFC相关的应用,无法有效地保证交易的安全性。However, the CLF in the existing NFC terminal hardware does not have the function of judging the relationship between the NFC event and the SIM card, so for a mobile terminal with multiple SIM cards, the security module in it reports the NFC contactless transaction event to the CLF module Finally, the CLF module cannot determine which SIM card the NFC contactless transaction event corresponds to; and, after being transparently transmitted to the operating system through the NFC protocol stack, the event will be pushed to all NFC-related applications, which cannot effectively guarantee Transaction security.

发明内容Contents of the invention

本发明提供了一种移动终端的NFC事件上报方法,用以解决现有技术中无法对多SIM卡移动终端中的NFC事件进行有效上报的技术问题,该方法应用于设置有NFC SIM卡、NFC协议栈、事件管理器以及CLF模块的移动终端中,该方法还包括:The invention provides a method for reporting NFC events of a mobile terminal, which is used to solve the technical problem that the NFC events in the mobile terminal with multiple SIM cards cannot be effectively reported in the prior art. The method is applied to NFC SIM cards, NFC In the mobile terminal of the protocol stack, the event manager and the CLF module, the method also includes:

所述CLF模块接收NFC事件;The CLF module receives NFC events;

所述CLF模块确定与所述NFC事件对应的发生时间以及NFC SIM卡,根据所述发生时间以及所述NFC SIM卡的标识生成与所述NFC事件对应的事件信息;The CLF module determines the time of occurrence corresponding to the NFC event and the NFC SIM card, and generates event information corresponding to the NFC event according to the time of occurrence and the identification of the NFC SIM card;

所述CLF模块将所述NFC事件以及所述事件信息透传至所述NFC协议栈;The CLF module transparently transmits the NFC event and the event information to the NFC protocol stack;

所述NFC协议栈将所述NFC事件以及所述事件信息发送至所述事件管理器;The NFC protocol stack sends the NFC event and the event information to the event manager;

所述事件管理器根据所述事件信息确定所述NFC事件的上报信息,并将所述NFC事件以及所述上报信息发送至所述移动终端的操作系统;The event manager determines the reporting information of the NFC event according to the event information, and sends the NFC event and the reporting information to the operating system of the mobile terminal;

所述操作系统按照所述上报信息将所述NFC事件上报至目的应用。The operating system reports the NFC event to the target application according to the reporting information.

相应地,本发明还提出了一种移动终端,该移动终端设置有NFC SIM卡,还包括:Correspondingly, the present invention also proposes a kind of mobile terminal, and this mobile terminal is provided with NFC SIM card, also comprises:

CLF模块,用于接收NFC事件,确定与所述NFC事件对应的发生时间以及NFC SIM卡,根据所述发生时间以及所述NFC SIM卡的标识生成与所述NFC事件对应的事件信息,并将所述NFC事件以及所述事件信息透传至所述NFC协议栈;The CLF module is used to receive the NFC event, determine the occurrence time corresponding to the NFC event and the NFC SIM card, generate event information corresponding to the NFC event according to the occurrence time and the identification of the NFC SIM card, and send The NFC event and the event information are transparently transmitted to the NFC protocol stack;

NFC协议栈,用于将所述NFC事件以及所述事件信息发送至所述事件管理器;NFC protocol stack, for sending the NFC event and the event information to the event manager;

事件管理器,用于根据所述事件信息确定所述NFC事件的上报信息,并将所述NFC事件以及所述上报信息发送至所述移动终端的操作系统;An event manager, configured to determine the reporting information of the NFC event according to the event information, and send the NFC event and the reporting information to the operating system of the mobile terminal;

操作系统,用于按照所述上报信息将所述NFC事件上报至目的应用。An operating system, configured to report the NFC event to a target application according to the reporting information.

由此可见,通过应用以上技术方案,CLF模块根据NFC事件的发生时间以及对应的NFC SIM卡生成事件信息,并由NFC协议栈将该事件以及事件信息透传至事件管理器,在事件管理器根据事件信息确定上报信息后,通过移动终端的操作系统将NFC事件上报至目的应用,不仅解决了具有NFC SIM卡移动终端中的NFC事件的识别以及上报冲突问题,而且还使上报过程的安全性得到了保障。It can be seen that by applying the above technical solutions, the CLF module generates event information according to the occurrence time of the NFC event and the corresponding NFC SIM card, and the event and event information are transparently transmitted to the event manager by the NFC protocol stack. After the reporting information is determined according to the event information, the NFC event is reported to the target application through the operating system of the mobile terminal, which not only solves the problem of identification and reporting conflicts of NFC events in mobile terminals with NFC SIM cards, but also makes the reporting process more secure. secured.

附图说明Description of drawings

图1为现有技术中NFC交易事件上送实现方案示意图;FIG. 1 is a schematic diagram of an implementation scheme for sending an NFC transaction event in the prior art;

图2为本发明实施例中改进后的移动终端的结构示意图;FIG. 2 is a schematic structural diagram of an improved mobile terminal in an embodiment of the present invention;

图3为本发明提出的一种移动终端的NFC事件上报方法流程示意图;Fig. 3 is a schematic flow chart of a method for reporting an NFC event of a mobile terminal proposed by the present invention;

图4为本发明具体实施例提出的一种NFC交易事件上送实现方案示意图;Fig. 4 is a schematic diagram of an implementation scheme for sending an NFC transaction event proposed by a specific embodiment of the present invention;

图5为本发明提出的一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal proposed by the present invention.

具体实施方式Detailed ways

针对现有技术中无法针对多SIM的移动终端进行有效NFC事件上报的问题,本发明提出了一种移动终端的NFC事件上报方法,通过改造使移动终端增加事件甄选功能,从而支持双卡手机NFC事件冲突的问题,同时在NFC协议栈上层增加NFC事件上送事件管理器,负责所有终端应用的敏感事件注册及管理,当NFC事件上送后,负责事件的筛选与甄别。具体地,作为示例,改进后的移动终端的示意图可如图2所示。Aiming at the problem in the prior art that effective NFC event reporting cannot be carried out for multi-SIM mobile terminals, the present invention proposes a method for reporting NFC events of mobile terminals. Through transformation, the mobile terminal is added with an event selection function, thereby supporting dual-card mobile phone NFC For the problem of event conflicts, at the same time, an NFC event uploading event manager is added on the upper layer of the NFC protocol stack, which is responsible for the registration and management of sensitive events for all terminal applications. After the NFC event is sent, it is responsible for event screening and screening. Specifically, as an example, a schematic diagram of an improved mobile terminal may be shown in FIG. 2 .

基于以上说明,本发明所提出的方法应用于设置有NFC SIM卡、NFC协议栈、事件管理器以及CLF模块的移动终端中,其流程如图3所示,包括以下步骤:Based on the above explanation, the method proposed by the present invention is applied in the mobile terminal provided with NFC SIM card, NFC protocol stack, event manager and CLF module, and its flow process as shown in Figure 3, comprises the following steps:

S301,所述CLF模块接收NFC事件。S301. The CLF module receives an NFC event.

具体地,本发明在移动终端的NFC SIM卡中设置安全模块,该安全模块能够感知所述NFC SIM卡的NFC事件,并在确认所述NFC事件完成之后将所述NFC事件上送至所述CLF模块。Specifically, the present invention sets a security module in the NFC SIM card of the mobile terminal, and the security module can perceive the NFC event of the NFC SIM card, and after confirming that the NFC event is completed, the NFC event is sent to the CLF module.

此外,由于本发明的最终目的是将NFC事件上报至对应的目的应用(该目的应用可以为适配于移动终端的APP),因此在该步骤之前,所述操作系统接收来自于所述移动终端的应用的注册请求,所述注册请求中携带所述应用及其对应的NFC SIM卡的标识;In addition, since the ultimate goal of the present invention is to report the NFC event to the corresponding target application (the target application can be an APP adapted to the mobile terminal), before this step, the operating system receives the NFC event from the mobile terminal A registration request of the application, the registration request carrying the application and the identification of the corresponding NFC SIM card;

所述操作系统根据所述标识生成所述注册信息,注册并声明所述应用;The operating system generates the registration information according to the identification, registers and declares the application;

所述操作系统将所述注册信息以及所述标识发送至所述事件管理器。The operating system sends the registration information and the identifier to the event manager.

在如图4所示的NFC交易事件上送实现方案示意图中,NFC手机终端在NFC受理环境中进行NFC非接交易,NFC SIM中的安全模块(Security element)感知到NFC非接交易事件,完成交易处理后,将该NFC非接交易事件上送至NFC终端的CLF模块。而在所有的应用在操作系统注册时,需由操作系统通知所述事件管理器,包括事件上送的敏感的事件类型、敏感的交易时间及优先级。其中事件类型包括但不限于:交易消费是否需要敏感、交易记录查询是否需要敏感、充值交易是否需要敏感等,交易时间是指在所述事件管理器注册时,声明交易信息上报的时间段(譬如8:00-17:00),在这个时间段之外,所述事件管理器将不会上送交易事件,优先级则是指当交易事件队列发送时,优先上报的顺序。In the schematic diagram of the NFC transaction event sending implementation scheme shown in Figure 4, the NFC mobile phone terminal performs NFC contactless transactions in the NFC acceptance environment, and the security module (Security element) in the NFC SIM senses the NFC contactless transaction event and completes After the transaction is processed, the NFC contactless transaction event is sent to the CLF module of the NFC terminal. When all applications are registered in the operating system, the operating system needs to notify the event manager, including the sensitive event type, sensitive transaction time and priority sent by the event. The event types include but are not limited to: whether the transaction consumption needs to be sensitive, whether the transaction record query needs to be sensitive, whether the recharge transaction needs to be sensitive, etc., and the transaction time refers to the time period when the transaction information is reported when the event manager is registered (such as 8:00-17:00), outside this time period, the event manager will not send transaction events, and the priority refers to the order of priority reporting when the transaction event queue is sent.

S302,所述CLF模块确定与所述NFC事件对应的发生时间以及NFC SIM卡,根据所述发生时间以及所述NFC SIM卡的标识生成与所述NFC事件对应的事件信息。S302. The CLF module determines the occurrence time and the NFC SIM card corresponding to the NFC event, and generates event information corresponding to the NFC event according to the occurrence time and the identifier of the NFC SIM card.

在移动终端中仅有一个NFC SIM卡的情况下,CLF模块可直接将该NFCSIM卡作为与NFC事件对应的NFC SIM卡。但在移动终端中同时包含有多个NFC SIM卡时,CLF模块通过识别上送所述NFC事件的安全模块,将设置所述安全模块的NFC SIM卡作为与所述NFC事件对应的NFC SIM卡。In the case of only one NFC SIM card in the mobile terminal, the CLF module can directly use the NFC SIM card as the NFC SIM card corresponding to the NFC event. But when multiple NFC SIM cards are included in the mobile terminal, the CLF module will set the NFC SIM card of the security module as the NFC SIM card corresponding to the NFC event by identifying the security module sending the NFC event .

具体地,当CLF模块收到交易事件后,需要将该交易事件打上交易戳,该交易戳包括了交易发生的SIM卡以及交易发生的时间,之后CLF模块将之上送至NFC协议栈。Specifically, when the CLF module receives a transaction event, it needs to put a transaction stamp on the transaction event. The transaction stamp includes the SIM card where the transaction occurred and the time when the transaction occurred, and then the CLF module sends it to the NFC protocol stack.

S303,所述CLF模块将所述NFC事件以及所述事件信息透传至所述NFC协议栈。S303. The CLF module transparently transmits the NFC event and the event information to the NFC protocol stack.

S304,所述NFC协议栈将所述NFC事件以及所述事件信息发送至所述事件管理器。S304. The NFC protocol stack sends the NFC event and the event information to the event manager.

S305,所述事件管理器根据所述事件信息确定所述NFC事件的上报信息,并将所述NFC事件以及所述上报信息发送至所述移动终端的操作系统。S305. The event manager determines the reporting information of the NFC event according to the event information, and sends the NFC event and the reporting information to the operating system of the mobile terminal.

该步骤中,事件管理器首先将已注册的应用中与所述事件信息中的标识对应的应用作为所述上报目的应用;然后获取所述上报目的应用的注册信息,并根据所述注册信息以及事件信息确定所述NFC事件的优先级标识以及是否需要立即上报;In this step, the event manager first takes the application corresponding to the identifier in the event information among the registered applications as the reporting target application; then obtains the registration information of the reporting target application, and according to the registration information and The event information determines the priority identification of the NFC event and whether it needs to be reported immediately;

若是,所述事件管理器根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及立即上报的指示生成所述上报信息;If yes, the event manager generates the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of immediate reporting;

若否,所述事件管理器根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及非立即上报的指示生成所述上报信息。If not, the event manager generates the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of non-immediate reporting.

在具体的实现过程中,本发明进一步将注册信息分为敏感事件类型以及上报时间段,事件管理器通过以下方式确定NFC事件的优先级标识以及是否需要立即上报:In the specific implementation process, the present invention further divides the registration information into sensitive event types and reporting time periods, and the event manager determines the priority identification of the NFC event and whether it needs to be reported immediately in the following manner:

(1)若所述事件管理器识别所述NFC事件为所述敏感事件类型,所述事件管理器为所述NFC事件设置高优先级标识;(1) If the event manager identifies the NFC event as the sensitive event type, the event manager sets a high priority flag for the NFC event;

(2)若所述事件管理器识别所述NFC事件非所述敏感事件类型,所述事件管理器为所述NFC事件设置低优先级标识;(2) If the event manager recognizes that the NFC event is not the sensitive event type, the event manager sets a low priority flag for the NFC event;

(3)若所述事件管理器判断所述事件信息中的发生时间在所述上报时间段内,所述事件管理器确定需要立即上报;(3) If the event manager judges that the occurrence time in the event information is within the reporting time period, the event manager determines that it needs to be reported immediately;

(4)若所述事件管理器判断所述事件信息中的发生时间不在所述上报时间段内,所述事件管理器确定不需要立即上报。(4) If the event manager judges that the occurrence time in the event information is not within the reporting time period, the event manager determines that it is not necessary to report immediately.

S306,所述操作系统按照所述上报信息将所述NFC事件上报至目的应用。S306. The operating system reports the NFC event to the target application according to the reporting information.

基于S305中事件管理器所生成的上报信息,所述操作系统首先将携带立即上报指示的上报信息所对应的NFC事件加入上报队列,然后将上报队列中具有高优先级标识的NFC事件优先上报至所述目的应用。Based on the reporting information generated by the event manager in S305, the operating system first adds the NFC event corresponding to the reporting information carrying the immediate reporting instruction to the reporting queue, and then reports the NFC event with a high priority identifier in the reporting queue to the The stated purpose applies.

在具体实施方案中,事件管理器将该交易时间的时间戳添加上优先级、该事件对应的应用包名及类名(用于操作系统定位对应的应用),然后上送至操作系统,操作系统将该事件的交易戳信息上送至对应应用。最终上报的事件交易戳包括了如下信息:In a specific implementation solution, the event manager adds the priority, the application package name and class name corresponding to the event to the timestamp of the transaction time (used for the operating system to locate the corresponding application), and then sends it to the operating system to operate The system sends the transaction stamp information of the event to the corresponding application. The final reported event transaction stamp includes the following information:

事件类型ID、事件时间、优先级、事件触发的SIM卡、事件对应应用的包名、事件对应应用的类名。Event type ID, event time, priority, SIM card triggered by the event, package name of the application corresponding to the event, and class name of the application corresponding to the event.

为达到以上技术目的,本发明同时还提出了一种移动终端,如图5所示,,该移动终端设置有NFC SIM卡510,还包括:In order to achieve the above technical purpose, the present invention also proposes a mobile terminal, as shown in Figure 5, the mobile terminal is provided with an NFC SIM card 510, and also includes:

CLF模块520,用于接收NFC事件,确定与所述NFC事件对应的发生时间以及NFC SIM卡,根据所述发生时间以及所述NFC SIM卡的标识生成与所述NFC事件对应的事件信息,并将所述NFC事件以及所述事件信息透传至所述NFC协议栈530;The CLF module 520 is configured to receive an NFC event, determine the occurrence time corresponding to the NFC event and the NFC SIM card, generate event information corresponding to the NFC event according to the occurrence time and the identifier of the NFC SIM card, and Transparently transmit the NFC event and the event information to the NFC protocol stack 530;

NFC协议栈530,用于将所述NFC事件以及所述事件信息发送至所述事件管理器;NFC protocol stack 530, configured to send the NFC event and the event information to the event manager;

事件管理器540,用于根据所述事件信息确定所述NFC事件的上报信息,并将所述NFC事件以及所述上报信息发送至所述移动终端的操作系统;The event manager 540 is configured to determine the reporting information of the NFC event according to the event information, and send the NFC event and the reporting information to the operating system of the mobile terminal;

操作系统550,用于按照所述上报信息将所述NFC事件上报至目的应用。The operating system 550 is configured to report the NFC event to the target application according to the reporting information.

在具体的应用场景中,还包括:安全模块,设置于所述NFC SIM卡510中,用于在所述CLF模块520接收NFC事件之前感知所述NFC SIM卡510的NFC事件,并在确认所述NFC事件完成之后将所述NFC事件上送至所述CLF模块520。In a specific application scenario, it also includes: a security module, arranged in the NFC SIM card 510, for sensing the NFC event of the NFC SIM card 510 before the CLF module 520 receives the NFC event, and confirming the NFC event of the NFC SIM card 510 After the NFC event is completed, the NFC event is sent to the CLF module 520.

在具体的应用场景中,当所述移动终端中设置有多个所述NFC SIM卡时,所述CLF模块520具体用于:识别上送所述NFC事件的安全模块,将设置所述安全模块的NFC SIM卡作为与所述NFC事件对应的NFC SIM卡。In a specific application scenario, when multiple NFC SIM cards are set in the mobile terminal, the CLF module 520 is specifically used to: identify the security module that sends the NFC event, and set the security module The NFC SIM card as the NFC SIM card corresponding to the NFC event.

在具体的应用场景中,所述事件管理器540具体用于:将已注册的应用中与所述事件信息中的标识对应的应用作为所述上报目的应用;获取所述上报目的应用的注册信息,并根据所述注册信息以及事件信息确定所述NFC事件的优先级标识以及是否需要立即上报;In a specific application scenario, the event manager 540 is specifically configured to: use the application corresponding to the identifier in the event information among the registered applications as the reporting target application; obtain the registration information of the reporting target application , and determine the priority identification of the NFC event and whether it needs to be reported immediately according to the registration information and event information;

若是,根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及立即上报的指示生成所述上报信息;If so, generating the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of immediate reporting;

若否,根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及非立即上报的指示生成所述上报信息。If not, generating the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of non-immediate reporting.

在具体的应用场景中,所述注册信息包括敏感事件类型以及上报时间段,所述事件管理器540具体用于:In a specific application scenario, the registration information includes sensitive event types and reporting time periods, and the event manager 540 is specifically used for:

若识别所述NFC事件为所述敏感事件类型,为所述NFC事件设置高优先级标识;If the NFC event is identified as the sensitive event type, a high priority flag is set for the NFC event;

若识别所述NFC事件非所述敏感事件类型,为所述NFC事件设置低优先级标识;If it is identified that the NFC event is not the sensitive event type, a low priority flag is set for the NFC event;

若判断所述事件信息中的发生时间在所述上报时间段内,确定需要立即上报;If it is judged that the occurrence time in the event information is within the reporting time period, it is determined that immediate reporting is required;

若判断所述事件信息中的发生时间不在所述上报时间段内,确定不需要立即上报。If it is determined that the occurrence time in the event information is not within the reporting time period, it is determined that immediate reporting is not required.

在具体的应用场景中,所述操作系统550具体用于:在所述CLF模块520接收NFC事件之前接收来自于所述移动终端的应用的注册请求,所述注册请求中携带所述应用及其对应的NFC SIM卡的标识;根据所述标识生成所述注册信息,注册并声明所述应用;将所述注册信息以及所述标识发送至所述事件管理器540。In a specific application scenario, the operating system 550 is specifically configured to: receive a registration request from an application of the mobile terminal before the CLF module 520 receives an NFC event, and the registration request carries the application and its The identification of the corresponding NFC SIM card; generate the registration information according to the identification, register and declare the application; send the registration information and the identification to the event manager 540.

在具体的应用场景中,所述操作系统550,具体用于将携带立即上报指示的上报信息所对应的NFC事件加入上报队列,并将上报队列中具有高优先级标识的NFC事件优先上报至所述目的应用。In a specific application scenario, the operating system 550 is specifically configured to add the NFC event corresponding to the reporting information carrying the immediate reporting instruction to the reporting queue, and report the NFC event with a high priority identifier in the reporting queue to the corresponding NFC event first. application for the stated purpose.

通过应用以上技术方案,CLF模块根据NFC事件的发生时间以及对应的NFC SIM卡生成事件信息,并由NFC协议栈将该事件以及事件信息透传至事件管理器,在事件管理器根据事件信息确定上报信息后,通过移动终端的操作系统将NFC事件上报至目的应用,不仅解决了具有NFC SIM卡移动终端中的NFC事件的识别以及上报冲突问题,而且还使上报过程的安全性得到了保障。By applying the above technical solutions, the CLF module generates event information according to the occurrence time of the NFC event and the corresponding NFC SIM card, and the event and the event information are transparently transmitted to the event manager by the NFC protocol stack, and the event manager determines according to the event information After the information is reported, the NFC event is reported to the target application through the operating system of the mobile terminal, which not only solves the problem of identification and reporting conflicts of NFC events in the mobile terminal with an NFC SIM card, but also ensures the security of the reporting process.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施场景所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be realized by hardware, or by software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present invention can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various implementation scenarios of the present invention.

本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present invention.

本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the devices in the implementation scenario can be distributed among the devices in the implementation scenario according to the description of the implementation scenario, or can be located in one or more devices different from the implementation scenario according to corresponding changes. The modules of the above implementation scenarios can be combined into one module, or can be further split into multiple sub-modules.

上述本发明序号仅仅为了描述,不代表实施场景的优劣。The above serial numbers of the present invention are for description only, and do not represent the pros and cons of the implementation scenarios.

以上公开的仅为本发明的几个具体实施场景,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。The above disclosures are only some specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present invention.

Claims (14)

1.一种近场通信NFC事件上报方法,其特征在于,所述方法应用于设置有NFC客户识别模块SIM卡、NFC协议栈、事件管理器以及非接触式前端CLF模块的移动终端中,该方法包括:1. A near-field communication NFC event reporting method, is characterized in that, described method is applied in the mobile terminal that is provided with NFC client identification module SIM card, NFC protocol stack, event manager and non-contact front-end CLF module, the Methods include: 所述CLF模块接收NFC事件;The CLF module receives NFC events; 所述CLF模块确定与所述NFC事件对应的发生时间以及NFC SIM卡,根据所述发生时间以及所述NFC SIM卡的标识生成与所述NFC事件对应的事件信息;The CLF module determines the time of occurrence corresponding to the NFC event and the NFC SIM card, and generates event information corresponding to the NFC event according to the time of occurrence and the identification of the NFC SIM card; 所述CLF模块将所述NFC事件以及所述事件信息透传至所述NFC协议栈;The CLF module transparently transmits the NFC event and the event information to the NFC protocol stack; 所述NFC协议栈将所述NFC事件以及所述事件信息发送至所述事件管理器;The NFC protocol stack sends the NFC event and the event information to the event manager; 所述事件管理器根据所述事件信息确定所述NFC事件的上报信息,并将所述NFC事件以及所述上报信息发送至所述移动终端的操作系统;The event manager determines the reporting information of the NFC event according to the event information, and sends the NFC event and the reporting information to the operating system of the mobile terminal; 所述操作系统按照所述上报信息将所述NFC事件上报至目的应用。The operating system reports the NFC event to the target application according to the reporting information. 2.如权利要求1所述的方法,其特征在于,所述NFC SIM卡中设有安全模块,在所述CLF模块接收NFC事件之前,还包括:2. The method according to claim 1, wherein a security module is provided in the NFC SIM card, and before the CLF module receives the NFC event, it also includes: 所述安全模块感知所述NFC SIM卡的NFC事件,并在确认所述NFC事件完成之后将所述NFC事件上送至所述CLF模块。The security module perceives the NFC event of the NFC SIM card, and sends the NFC event to the CLF module after confirming that the NFC event is completed. 3.如权利要求2所述的方法,其特征在于,当所述移动终端中设置有多个所述NFC SIM卡时,所述CLF模块确定与所述NFC事件对应的NFC SIM卡,具体为:3. The method according to claim 2, wherein, when the mobile terminal is provided with a plurality of NFC SIM cards, the CLF module determines the NFC SIM card corresponding to the NFC event, specifically : 所述CLF模块识别上送所述NFC事件的安全模块,将设置所述安全模块的NFC SIM卡作为与所述NFC事件对应的NFC SIM卡。The CLF module identifies the security module that sends the NFC event, and sets the NFC SIM card of the security module as the NFC SIM card corresponding to the NFC event. 4.如权利要求1所述的方法,其特征在于,所述事件管理器根据所述事件信息确定所述NFC事件的上报信息,具体为:4. The method according to claim 1, wherein the event manager determines the reporting information of the NFC event according to the event information, specifically: 所述事件管理器将已注册的应用中与所述事件信息中的标识对应的应用作为所述上报目的应用;The event manager uses the application corresponding to the identifier in the event information among the registered applications as the reporting target application; 所述事件管理器获取所述上报目的应用的注册信息,并根据所述注册信息以及事件信息确定所述NFC事件的优先级标识以及是否需要立即上报;The event manager obtains the registration information of the reporting target application, and determines the priority identification of the NFC event and whether it needs to be reported immediately according to the registration information and event information; 若是,所述事件管理器根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及立即上报的指示生成所述上报信息;If yes, the event manager generates the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of immediate reporting; 若否,所述事件管理器根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及非立即上报的指示生成所述上报信息。If not, the event manager generates the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of non-immediate reporting. 5.如权利要求4所述的方法,其特征在于,所述注册信息包括敏感事件类型以及上报时间段,所述事件管理器根据所述注册信息以及事件信息确定所述NFC事件的优先级标识以及是否需要立即上报,具体为:5. The method according to claim 4, wherein the registration information includes a sensitive event type and a reporting time period, and the event manager determines the priority identification of the NFC event according to the registration information and event information And whether it needs to be reported immediately, specifically: 若所述事件管理器识别所述NFC事件为所述敏感事件类型,所述事件管理器为所述NFC事件设置高优先级标识;If the event manager identifies the NFC event as the sensitive event type, the event manager sets a high priority flag for the NFC event; 若所述事件管理器识别所述NFC事件非所述敏感事件类型,所述事件管理器为所述NFC事件设置低优先级标识;If the event manager recognizes that the NFC event is not the sensitive event type, the event manager sets a low priority flag for the NFC event; 若所述事件管理器判断所述事件信息中的发生时间在所述上报时间段内,所述事件管理器确定需要立即上报;If the event manager judges that the occurrence time in the event information is within the reporting time period, the event manager determines that it needs to be reported immediately; 若所述事件管理器判断所述事件信息中的发生时间不在所述上报时间段内,所述事件管理器确定不需要立即上报。If the event manager judges that the occurrence time in the event information is not within the reporting time period, the event manager determines that immediate reporting is not required. 6.如权利要求5所述的方法,其特征在于,在所述CLF模块接收NFC事件之前,还包括:6. The method according to claim 5, wherein, before the CLF module receives the NFC event, further comprising: 所述操作系统接收来自于所述移动终端的应用的注册请求,所述注册请求中携带所述应用及其对应的NFC SIM卡的标识;The operating system receives a registration request from an application of the mobile terminal, and the registration request carries the identification of the application and its corresponding NFC SIM card; 所述操作系统根据所述标识生成所述注册信息,注册并声明所述应用;The operating system generates the registration information according to the identification, registers and declares the application; 所述操作系统将所述注册信息以及所述标识发送至所述事件管理器。The operating system sends the registration information and the identifier to the event manager. 7.如权利要求5所述的方法,其特征在于,所述操作系统按照所述上报信息将所述NFC事件上报至目的应用,具体为:7. The method according to claim 5, wherein the operating system reports the NFC event to the target application according to the reporting information, specifically: 所述操作系统将携带立即上报指示的上报信息所对应的NFC事件加入上报队列;The operating system adds the NFC event corresponding to the reporting information carrying the immediate reporting instruction to the reporting queue; 所述操作信息将上报队列中具有高优先级标识的NFC事件优先上报至所述目的应用。In the operation information, NFC events with high priority identifiers in the reporting queue are reported to the target application first. 8.一种移动终端,其特征在于,该移动终端设置有近场通信NFC客户识别模块SIM卡,还包括:8. A kind of mobile terminal, it is characterized in that, this mobile terminal is provided with near field communication NFC customer identification module SIM card, also comprises: 非接触式前端CLF模块,用于接收NFC事件,确定与所述NFC事件对应的发生时间以及NFC SIM卡,根据所述发生时间以及所述NFC SIM卡的标识生成与所述NFC事件对应的事件信息,并将所述NFC事件以及所述事件信息透传至所述NFC协议栈;The non-contact front-end CLF module is used to receive the NFC event, determine the occurrence time and the NFC SIM card corresponding to the NFC event, and generate the event corresponding to the NFC event according to the occurrence time and the identification of the NFC SIM card information, and transparently transmit the NFC event and the event information to the NFC protocol stack; NFC协议栈,用于将所述NFC事件以及所述事件信息发送至所述事件管理器;NFC protocol stack, for sending the NFC event and the event information to the event manager; 事件管理器,用于根据所述事件信息确定所述NFC事件的上报信息,并将所述NFC事件以及所述上报信息发送至所述移动终端的操作系统;An event manager, configured to determine the reporting information of the NFC event according to the event information, and send the NFC event and the reporting information to the operating system of the mobile terminal; 操作系统,用于按照所述上报信息将所述NFC事件上报至目的应用。An operating system, configured to report the NFC event to a target application according to the reporting information. 9.如权利要求8所述的移动终端,其特征在于,还包括:9. The mobile terminal according to claim 8, further comprising: 安全模块,设置于所述NFC SIM卡中,用于在所述CLF模块接收NFC事件之前感知所述NFC SIM卡的NFC事件,并在确认所述NFC事件完成之后将所述NFC事件上送至所述CLF模块。A security module, set in the NFC SIM card, is used to perceive the NFC event of the NFC SIM card before the CLF module receives the NFC event, and after confirming that the NFC event is completed, the NFC event is sent to The CLF module. 10.如权利要求9所述的移动终端,其特征在于,当所述移动终端中设置有多个所述NFC SIM卡时,所述CLF模块具体用于:10. mobile terminal as claimed in claim 9, is characterized in that, when described mobile terminal is provided with a plurality of described NFC SIM cards, described CLF module is specifically used for: 识别上送所述NFC事件的安全模块,将设置所述安全模块的NFC SIM卡作为与所述NFC事件对应的NFC SIM卡。Identify and send the security module of the NFC event, and set the NFC SIM card of the security module as the NFC SIM card corresponding to the NFC event. 11.如权利要求8所述的移动终端,其特征在于,所述事件管理器具体用于:11. The mobile terminal according to claim 8, wherein the event manager is specifically used for: 将已注册的应用中与所述事件信息中的标识对应的应用作为所述上报目的应用;Using the application corresponding to the identifier in the event information among the registered applications as the reporting target application; 获取所述上报目的应用的注册信息,并根据所述注册信息以及事件信息确定所述NFC事件的优先级标识以及是否需要立即上报;Obtain the registration information of the reporting target application, and determine the priority identification of the NFC event and whether it needs to be reported immediately according to the registration information and event information; 若是,根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及立即上报的指示生成所述上报信息;If yes, generating the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of immediate reporting; 若否,根据所述优先级标识、所述上报目的应用的标识、所述事件信息、以及非立即上报的指示生成所述上报信息。If not, generating the reporting information according to the priority identifier, the identifier of the reporting destination application, the event information, and an indication of non-immediate reporting. 12.如权利要求11所述的移动终端,其特征在于,所述注册信息包括敏感事件类型以及上报时间段,所述事件管理器具体用于:12. The mobile terminal according to claim 11, wherein the registration information includes a sensitive event type and a reporting time period, and the event manager is specifically used for: 若识别所述NFC事件为所述敏感事件类型,为所述NFC事件设置高优先级标识;If the NFC event is identified as the sensitive event type, a high priority flag is set for the NFC event; 若识别所述NFC事件非所述敏感事件类型,为所述NFC事件设置低优先级标识;If it is identified that the NFC event is not the sensitive event type, a low priority flag is set for the NFC event; 若判断所述事件信息中的发生时间在所述上报时间段内,确定需要立即上报;If it is judged that the occurrence time in the event information is within the reporting time period, it is determined that immediate reporting is required; 若判断所述事件信息中的发生时间不在所述上报时间段内,确定不需要立即上报。If it is determined that the occurrence time in the event information is not within the reporting time period, it is determined that immediate reporting is not required. 13.如权利要求12所述的移动终端,其特征在于,所述操作系统具体用于:13. The mobile terminal according to claim 12, wherein the operating system is specifically used for: 在所述CLF模块接收NFC事件之前接收来自于所述移动终端的应用的注册请求,所述注册请求中携带所述应用及其对应的NFC SIM卡的标识;Receive a registration request from an application of the mobile terminal before the CLF module receives the NFC event, and the registration request carries the application and the identification of its corresponding NFC SIM card; 根据所述标识生成所述注册信息,注册并声明所述应用;generating the registration information according to the identification, registering and declaring the application; 将所述注册信息以及所述标识发送至所述事件管理器。sending the registration information and the identification to the event manager. 14.如权利要求12所述的移动终端,其特征在于,14. The mobile terminal of claim 12, wherein: 所述操作系统,具体用于将携带立即上报指示的上报信息所对应的NFC事件加入上报队列,并将上报队列中具有高优先级标识的NFC事件优先上报至所述目的应用。The operating system is specifically configured to add the NFC event corresponding to the reporting information carrying the immediate reporting instruction to the reporting queue, and preferentially report the NFC event with a high priority identifier in the reporting queue to the target application.
CN201310685322.XA 2013-12-13 2013-12-13 A kind of the NFC events report method and equipment of mobile terminal Active CN104717599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310685322.XA CN104717599B (en) 2013-12-13 2013-12-13 A kind of the NFC events report method and equipment of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310685322.XA CN104717599B (en) 2013-12-13 2013-12-13 A kind of the NFC events report method and equipment of mobile terminal

Publications (2)

Publication Number Publication Date
CN104717599A true CN104717599A (en) 2015-06-17
CN104717599B CN104717599B (en) 2018-08-24

Family

ID=53416468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310685322.XA Active CN104717599B (en) 2013-12-13 2013-12-13 A kind of the NFC events report method and equipment of mobile terminal

Country Status (1)

Country Link
CN (1) CN104717599B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774793A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of method and terminal for realizing reporting events treatment
CN106888451A (en) * 2015-12-15 2017-06-23 中国移动通信集团公司 Credible performing environment TEE initial methods and equipment
CN107977564A (en) * 2016-10-21 2018-05-01 中国移动通信有限公司研究院 A kind of transaction authentication processing method, certificate server, terminal and traction equipment
CN108604342A (en) * 2017-01-20 2018-09-28 华为技术有限公司 Based on the NFC methods carried out data transmission and mobile device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080162312A1 (en) * 2006-12-29 2008-07-03 Motorola, Inc. Method and system for monitoring secure applet events during contactless rfid/nfc communication
CN101841604A (en) * 2010-06-02 2010-09-22 中兴通讯股份有限公司 Method and device for automatically displaying near field communication transaction information on mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080162312A1 (en) * 2006-12-29 2008-07-03 Motorola, Inc. Method and system for monitoring secure applet events during contactless rfid/nfc communication
CN101841604A (en) * 2010-06-02 2010-09-22 中兴通讯股份有限公司 Method and device for automatically displaying near field communication transaction information on mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜启宏,郭达: "基于智能卡的NFC技术的研究", 《移动通信》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888451A (en) * 2015-12-15 2017-06-23 中国移动通信集团公司 Credible performing environment TEE initial methods and equipment
CN106888451B (en) * 2015-12-15 2020-02-18 中国移动通信集团公司 Trusted execution environment TEE initialization method and device
CN107977564A (en) * 2016-10-21 2018-05-01 中国移动通信有限公司研究院 A kind of transaction authentication processing method, certificate server, terminal and traction equipment
CN107977564B (en) * 2016-10-21 2020-07-10 中国移动通信有限公司研究院 Transaction authentication processing method, authentication server, terminal and transaction equipment
CN106774793A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of method and terminal for realizing reporting events treatment
CN108604342A (en) * 2017-01-20 2018-09-28 华为技术有限公司 Based on the NFC methods carried out data transmission and mobile device

Also Published As

Publication number Publication date
CN104717599B (en) 2018-08-24

Similar Documents

Publication Publication Date Title
US20160299754A1 (en) Method for Updating Application Program, and Terminal
US20100330904A1 (en) Method, apparatus, and computer program product for refreshing a configuration of a contactless frontend device
JP2014042260A5 (en) Management system, registration method, and program
CN105556492B (en) Near-field communication(NFC)Data transmission
CN105592403B (en) NFC-based communication device and method
CN104717599B (en) A kind of the NFC events report method and equipment of mobile terminal
US9477917B1 (en) System and method of context specific identity in a radio frequency identity (RFID) chip
WO2016155572A1 (en) Service processing method, terminal and server
CN115103336A (en) Card information activation method and device and storage medium
CN103793816A (en) NFC equipment payment method and NFC equipment
CN111242608A (en) Payment method, terminal, server and system
EP2680657B1 (en) Emulation of multiple nfc devices inside a communication device
US20220256344A1 (en) Communication Method and Apparatus
KR101952793B1 (en) Improvements to Subscriber Identity Module (SIM) Access Profile (SAP)
CN110717752B (en) Electronic resource processing method, device, server and readable storage medium
CN104661220B (en) A method and device for realizing authentication processing
CN110069955B (en) Non-contact card swiping method and device and terminal equipment
JP2015103037A (en) Information collection system, information collection method, program, information transmission device, portable terminal, and collection device
US9332374B2 (en) Communication interface method for SE equipped on mobile terminal and SE using the same
US20220385670A1 (en) Method and device for setting state of bundle after transfer of bundle between apparatuses
CN104104646B (en) Security information interaction system, device and method based on safety barrier proactive command
CN108668271B (en) A smart card number transfer method and device
CN104184699B (en) Security information interaction system, device and method
CN102957713B (en) Method, device and system for service operation
KR20140142996A (en) Method for processing data of applet included in a plurity of secure element and apparatus for the same

Legal Events

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