[go: up one dir, main page]

HK1214065B - Nfc device comprising configurable notification means and a communication method for the same - Google Patents

Nfc device comprising configurable notification means and a communication method for the same Download PDF

Info

Publication number
HK1214065B
HK1214065B HK16101824.2A HK16101824A HK1214065B HK 1214065 B HK1214065 B HK 1214065B HK 16101824 A HK16101824 A HK 16101824A HK 1214065 B HK1214065 B HK 1214065B
Authority
HK
Hong Kong
Prior art keywords
data
main processor
notification
application
field communication
Prior art date
Application number
HK16101824.2A
Other languages
Chinese (zh)
Other versions
HK1214065A1 (en
Inventor
Lerch Matthias
FERROUL Remy
Original Assignee
Verimatrix
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
Priority claimed from FR1260850A external-priority patent/FR2998121B1/en
Application filed by Verimatrix filed Critical Verimatrix
Publication of HK1214065A1 publication Critical patent/HK1214065A1/en
Publication of HK1214065B publication Critical patent/HK1214065B/en

Links

Description

包括可配置的通知部件的NFC装置及其通信方法NFC device including configurable notification component and communication method thereof

技术领域Technical Field

本发明涉及一种被设计来与外部装置建立近场通信信道的近场通信装置,并且将由外部装置发送的应用数据提供给该装置的第一主处理器。The present invention relates to a near field communication device designed to establish a near field communication channel with an external device and provide application data transmitted by the external device to a first main processor of the device.

背景技术Background Art

所谓的NFC技术(近场通信)使得其中每一个都包括天线线圈的两个装置能够通过电感耦合来交换数据。NFC信道的建立要求被称为“读取器”的该两个装置之一发射磁场,并且被称为“卡”的另一个装置使得其天线线圈与第一装置之一接近得足以使得磁场在后者中产生天线信号。在另一种已知的、被称为“对等”(或点到点)NFC方法中,每一个装置交替地发射磁场。近些年来,NFC装置已经因此被开发,其被提供以连接到主处理器,并且使得它们能够在读取器、卡模拟或对等模式中执行NFC应用。So-called NFC technology (Near Field Communication) enables two devices, each of which includes an antenna coil, to exchange data through inductive coupling. Establishing an NFC channel requires that one of the two devices, called a "reader," emit a magnetic field, and the other, called a "card," brings its antenna coil close enough to one of the first devices for the magnetic field to generate an antenna signal in the latter. In another known NFC method, known as "peer-to-peer" (or point-to-point), each device alternately emits a magnetic field. In recent years, NFC devices have been developed that are designed to connect to a host processor and enable them to execute NFC applications in reader, card emulation, or peer-to-peer mode.

图1示意地表示上述类型的传统NFC装置D1的结构。该装置包括CLF(无接触前端)通信接口电路、被指定为NFCC1的NFC控制器、程序和数据存储器MEM1、通信端口P1、P2,这些元件通过总线 BS而耦合。端口P1、P2使得主处理器HP1、HP2能够连接到装置D1。存储器MEM1接收处理器NFCC1的操作系统OS和由处理器NFCC1 执行的路由程序RPGR。接口电路CLF配备有天线线圈AC1,并且被配置为与包括天线线圈AC2的外部装置EDV本身建立NFC信道。Figure 1 schematically illustrates the structure of a conventional NFC device D1 of the type described above. The device comprises a CLF (Contactless Front End) communication interface circuit, an NFC controller designated NFCC1, a program and data memory MEM1, and communication ports P1 and P2, all coupled via a bus BS. Ports P1 and P2 enable connection of host processors HP1 and HP2 to the device D1. Memory MEM1 receives the operating system OS of processor NFCC1 and the routing program RPGR executed by processor NFCC1. The interface circuit CLF is equipped with an antenna coil AC1 and is configured to establish an NFC channel with an external device EDV, which includes an antenna coil AC2.

已经在专利或专利申请EP 1 327 222、EP 1 758 049、EP 1 855 229 和EP 1 855389中描述了这样的近场通信装置。EP 1327222教导提供卡模拟模式。EP 1 855 229描述了一种从当装置在卡模拟模式中时接收到的磁场对于该装置供电的方法。EP 1 855 389描述了一种方法,用于路由输入的数据(由接口电路CLF接收的数据),由此,可以确定数据所意欲去往的主处理器。EP 1 327 222描述了一种使用路由表的路由方法。而且,标准或规范更精确地限定了装置的某些特征,诸如:ETSI TS 102 622标准(“智能卡;UICC-无接触前端(CLF)接口;主控制器接口(HCI)”);ETSI TS 102 613标准,其限定了CLF接口电路的操作;或者,NCI规范(“NFC控制器接口”)。Such near field communication devices are described in patents or patent applications EP 1 327 222, EP 1 758 049, EP 1 855 229, and EP 1 855 389. EP 1 327 222 teaches providing a card emulation mode. EP 1 855 229 describes a method for powering the device from a magnetic field received when the device is in card emulation mode. EP 1 855 389 describes a method for routing incoming data (data received by the interface circuit CLF) so that the host processor to which the data is intended can be determined. EP 1 327 222 describes a routing method using a routing table. Moreover, standards or specifications define certain features of the device more precisely, such as: the ETSI TS 102 622 standard (“Smart Card; UICC - Contactless Front End (CLF) Interface; Host Controller Interface (HCI)”); the ETSI TS 102 613 standard, which defines the operation of the CLF interface circuitry; or the NCI specification (“NFC Controller Interface”).

在此假定,主处理器HP1是专用于要求某个安全水平的应用的安全组件,该应用特别是支付应用或直接地或间接地包含支付的应用,并且,处理器HP2是非安全处理器,其具有访问用于与用户进行通信的部件。处理器HP1例如是配备有NFC功能的UICC型卡(通用集成电路卡)或者更一般的安全元件型处理器(专用于NFC应用的安全处理器)。处理器HP2例如是移动电话的基带处理器,并且也控制各种人/机接口外围装置,诸如显示器和输入部件(真实或虚拟键盘)。It is assumed here that the main processor HP1 is a secure component dedicated to applications requiring a certain level of security, in particular payment applications or applications that directly or indirectly involve payment, and that the processor HP2 is a non-secure processor having access to components for communicating with the user. The processor HP1 is, for example, a UICC-type card (Universal Integrated Circuit Card) equipped with NFC functionality or a more general secure element-type processor (a secure processor dedicated to NFC applications). The processor HP2 is, for example, the baseband processor of a mobile phone and also controls various human/machine interface peripherals, such as a display and input components (real or virtual keyboard).

图1也表示应用的示例,其中,装置D1在用于主处理器HP1的卡模拟模式中运行,以便使得主处理器HP1能够与诸如销售点的外部装置EDV执行事务。在该事务期间,主处理器HP1和外部装置EDV 交换应用数据,例如由ISO 7816标准描述的类型的APDU(“应用协议数据单元”)数据。更具体地,外部装置发送命令CAPDU(在该标准中指定为C-APDU),并且主处理器HP1发回响应RAPDU(在该标准中被指定为R-APDU)。这样的数据通过装置D1,并且控制器保证它们从接口电路CLF路由到主处理器HP1或反之。FIG1 also illustrates an example application in which device D1 operates in card emulation mode for host processor HP1, enabling host processor HP1 to perform transactions with an external device EDV, such as a point-of-sale device. During this transaction, host processor HP1 and external device EDV exchange application data, such as APDU (Application Protocol Data Unit) data of the type described by the ISO 7816 standard. More specifically, the external device sends a command CAPDU (designated C-APDU in the standard), and host processor HP1 sends back a response RAPDU (designated R-APDU in the standard). Such data passes through device D1, and a controller ensures its routing from interface circuit CLF to host processor HP1 and vice versa.

当该事务结束时,主处理器HP1可以向处理器HP2提供关于该事务的信息。处理器HP2可以然后向用户呈现这样的信息。例如,处理器HP2可以可能与声音信号一起显示确认:在日期Y上执行产品“X 的购买事务”达到数量Z。When the transaction is complete, the main processor HP1 can provide information about the transaction to the processor HP2. The processor HP2 can then present such information to the user. For example, the processor HP2 can display a confirmation, possibly along with an audible signal: "Purchase transaction of product X for quantity Z on date Y."

而且,ETSI TS 102 613标准(版本V9.2.0)在其段落11.2中定义了一种使得两个主处理器能够交换关于事务的信息的方法。该方法定义了连接门、“PRO_HOST_REQUEST”命令和EVT_CONNECTIVITY、 EVT_OPERATION_ENDED、EVT_TRANSACTION事件。该后一种事件以下面指示的方式形成,并且包括所涉及的应用的“AID标识符” (“应用ID”)。Furthermore, the ETSI TS 102 613 standard (version V9.2.0) defines, in its paragraph 11.2, a method for enabling two host processors to exchange information about transactions. This method defines a connection gate, a "PRO_HOST_REQUEST" command, and the EVT_CONNECTIVITY, EVT_OPERATION_ENDED, and EVT_TRANSACTION events. The latter event is formed in the manner indicated below and includes the "AID identifier" ("application ID") of the application involved.

说明illustrate 代码Code 以字节计的长度Length in bytes AIDAID '81''81' 5至165 to 16 参数parameter '82''82' 0至255 0 to 255

关于事务的执行的信息的该通信取决于由处理器HP1执行的应用程序的配置或通过上述连接功能而启动应用的程序的配置。与事务相关的信息的向第三处理器的通信因此要求当指定应用程序时提供特定的编程线。This communication of information about the execution of a transaction depends on the configuration of the application executed by the processor HP1 or of the program that starts the application through the above-mentioned connection function.The communication of information related to a transaction to the third processor therefore requires the provision of specific programming lines when specifying the application.

发明内容Summary of the Invention

因此可以期望提供一种用于在考虑到要传送的信息可以从一个应用到另一个不同的情况的同时,传送与事务相关的信息的方法,所述事务不取决于由主处理器执行的应用程序,并且可以对于所有的应用以集中的方式来管理和配置所述事务。It would therefore be desirable to provide a method for transmitting information related to a transaction, taking into account that the information to be transmitted may differ from one application to another, wherein the transaction is independent of the application program executed by the host processor and the transaction can be managed and configured in a centralized manner for all applications.

因此,本发明的一些实施例涉及一种近场通信装置,所述近场通信装置被配置为与外部装置建立近场通信信道,并且向第一主处理器提供由所述外部装置发送的应用数据,向第二主处理器提供与向所述第一主处理器提供的应用数据的特性或内容相关的通知,并且根据在所述外部装置向所述第一主处理器发送数据的框架中的应用的特征参数来配置所述通知。Therefore, some embodiments of the present invention relate to a near field communication device, which is configured to establish a near field communication channel with an external device, and provide application data sent by the external device to a first main processor, provide notifications related to the characteristics or content of the application data provided to the first main processor to a second main processor, and configure the notifications according to characteristic parameters of the application in the framework of the data sent by the external device to the first main processor.

根据一个实施例,所述装置被设计来根据下面的特征参数的至少一个来配置所述通知:在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符;通过其形成所述近场通信信道的技术;或者,通过其形成所述近场通信信道的通信协议。According to one embodiment, the device is designed to configure the notification according to at least one of the following characteristic parameters: an identifier of the application in the framework in which the external device sends data to the first host processor; a technology by which the near-field communication channel is formed; or a communication protocol by which the near-field communication channel is formed.

根据一个实施例,所述装置被设计来向所述第二主处理器提供通知,所述通知包括在应用数据中存在的数据或关于在所述应用数据中存在的数据的信息项。According to one embodiment, the device is designed to provide a notification to the second host processor, the notification comprising data present in the application data or an item of information regarding data present in the application data.

根据一个实施例,所述装置被配置为向所述第二主处理器提供包含在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符的通知。According to one embodiment, the device is configured to provide a notification to the second host processor of an identifier of the application contained in a frame in which the external device sends data to the first host processor.

根据一个实施例,所述装置被配置为识别由所述外部装置发送的应用数据,根据所述数据识别的结果和所述应用的特征参数来选择数据分析程序,通过所述选择的分析程序来分析所述应用数据,并且根据所述数据分析的结果来配置通知。According to one embodiment, the device is configured to identify application data sent by the external device, select a data analysis program based on the result of the data identification and the characteristic parameters of the application, analyze the application data through the selected analysis program, and configure notification based on the result of the data analysis.

根据一个实施例,所述装置被配置为通过下述方式经由一系列识别掩码来识别所述应用数据:将每一个掩码与所述应用数据作比较,直到找出与所述数据对应的掩码。According to one embodiment, the apparatus is configured to identify the application data via a series of identification masks by comparing each mask with the application data until a mask corresponding to the data is found.

根据一个实施例,所述装置被配置为通过将所述应用数据与形成所述选择的分析程序或在所述选择的分析程序中包括的数据掩码组合来分析所述应用数据。According to one embodiment, the apparatus is configured to analyze the application data by combining the application data with a data mask forming or comprised in an analysis program of the selection.

根据一个实施例,所述应用数据是在ISO 7816标准的含义内的命令CAPDU。According to one embodiment, said application data are command CAPDUs within the meaning of the ISO 7816 standard.

根据一个实施例,所述装置被配置为:向所述外部装置提供由所述第一主处理器发送的应用数据,向所述第二主处理器提供与由所述第一主处理器发送的所述应用数据的特性或内容相关的通知,并且根据所述特征参数来配置所述通知。According to one embodiment, the device is configured to: provide application data sent by the first main processor to the external device, provide notification related to the characteristics or content of the application data sent by the first main processor to the second main processor, and configure the notification according to the characteristic parameters.

本发明的一些实施例也涉及一种近场通信方法,包括以下步骤:在外部装置和近场通信装置之间建立近场通信信道;向所述近场通信装置的第一主处理器提供由所述外部装置发送的应用数据;向所述近场通信装置的第二主处理器提供与向所述第一主处理器提供的所述应用数据的特性或内容相关的通知;并且,根据在所述外部装置向所述第一主处理器发送数据的框架中的应用的特征参数来配置所述通知。Some embodiments of the present invention also relate to a near field communication method, comprising the following steps: establishing a near field communication channel between an external device and a near field communication device; providing application data sent by the external device to a first main processor of the near field communication device; providing a notification related to the characteristics or content of the application data provided to the first main processor to a second main processor of the near field communication device; and configuring the notification according to characteristic parameters of the application in the framework of the data sent by the external device to the first main processor.

根据一个实施例,根据下面的特征参数的至少一个来配置所述通知:在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符;无接触通信技术,通过它来形成所述近场通信信道;或者,无接触通信协议,通过它来形成所述近场通信信道。According to one embodiment, the notification is configured according to at least one of the following characteristic parameters: an identifier of the application in the framework of the external device sending data to the first main processor; a contactless communication technology, through which the near-field communication channel is formed; or a contactless communication protocol, through which the near-field communication channel is formed.

根据一个实施例,向所述第二主处理器提供的所述通知包括在应用数据中存在的数据或关于在所述应用数据中存在的数据的信息的项目。According to one embodiment, said notification provided to said second host processor comprises an item of data present in application data or information about data present in said application data.

根据一个实施例,所述方法包括以下步骤:在接收由所述外部装置发送并且被提供到所述第一主处理器的应用选择命令之后,向所述第二主处理器提供通知,所述通知包含在所述外部装置向所述第一主处理器发送数据的框架中的应用的标识符。According to one embodiment, the method includes the following steps: after receiving an application selection command sent by the external device and provided to the first main processor, providing a notification to the second main processor, the notification containing an identifier of the application in the frame in which the external device sends data to the first main processor.

根据一个实施例,所述方法包括以下步骤:识别由所述外部装置发送的应用数据;根据所述数据识别的结果和所述应用的特征参数来选择数据分析程序;通过所述选择的分析程序来分析所述应用数据;并且,根据所述数据分析的结果来配置通知。According to one embodiment, the method includes the following steps: identifying application data sent by the external device; selecting a data analysis program based on the result of the data identification and the characteristic parameters of the application; analyzing the application data through the selected analysis program; and configuring notifications based on the result of the data analysis.

根据一个实施例,所述方法包括路由和通知表的使用,用于根据所述应用的一个特征参数来指定所述第一主处理器和所述第二主处理器。According to one embodiment, the method comprises the use of a routing and notification table for designating the first host processor and the second host processor according to a characteristic parameter of the application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

以下与附图相关但是不限于附图地描述本发明的一些实施例,在附图中:Some embodiments of the present invention are described below with reference to, but not limitation to, the accompanying drawings, in which:

- 如上所述的图1示意地示出了传统NFC装置的硬件和软件结构,- FIG1 as described above schematically shows the hardware and software structure of a conventional NFC device,

- 图2示意地示出了根据本发明的NFC装置的一个实施例的硬件和软件结构,- FIG2 schematically shows the hardware and software structure of an embodiment of an NFC device according to the present invention,

- 图3示出根据本发明的通知配置模块的一个实施例,- FIG3 shows an embodiment of a notification configuration module according to the present invention,

- 图4A、4B描述了使用图3的模块的通知方法的步骤,- Figures 4A and 4B describe the steps of a notification method using the module of Figure 3,

- 图5示出根据本发明的通知配置模块的另一个实施例和根据本发明的通知表的一个实施例,- FIG5 shows another embodiment of a notification configuration module according to the present invention and an embodiment of a notification table according to the present invention,

- 图6A、6B描述了使用图5的模块的通知方法的一个实施例的步骤,- Figures 6A and 6B describe the steps of an embodiment of a notification method using the module of Figure 5,

- 图7示出根据本发明的通知配置模块的另一个实施例,- FIG. 7 shows another embodiment of a notification configuration module according to the present invention,

- 图8示出根据本发明的通知表的另一个实施例,以及- Figure 8 shows another embodiment of a notification table according to the present invention, and

- 图9示出根据本发明的路由和通知表的一个实施例。- Figure 9 shows an embodiment of a routing and notification table according to the present invention.

具体实施方式DETAILED DESCRIPTION

图2示意地表示被指定为D2的根据本发明的NFC装置的结构。装置D2具有与前述的装置D1相同的总体结构,并且因此包括CLF通信接口电路(“无接触前端”)、NFC控制器“NFCC2”、程序和数据存储器MEM2、通信端口P1、P2,这些元件通过总线BS耦合。端口P1、P2使得主处理器HP1、HP2能够连接到装置D2。存储器MEM2 接收操作系统OS、可以包括路由表RT的路由程序RPGR和根据本发明的通知程序NPGR。接口电路CLF配备有天线线圈AC1,并且被配置为与包括天线线圈AC2的外部装置EDV本身建立近场通信信道。装置D2和主处理器HP1、HP2可以被布置在诸如移动电话的便携装置 MP中。Figure 2 schematically illustrates the structure of an NFC device according to the present invention, designated D2. Device D2 has the same general structure as device D1 described above and includes a CLF communication interface circuit ("contactless front end"), an NFC controller "NFCC2," a program and data memory MEM2, and communication ports P1 and P2, all coupled via a bus BS. Ports P1 and P2 enable connection to host processors HP1 and HP2. Memory MEM2 receives an operating system OS, a routing program RPGR, which may include a routing table RT, and a notification program NPGR according to the present invention. The interface circuit CLF is equipped with an antenna coil AC1 and is configured to establish a near-field communication channel with an external device EDV, which itself includes an antenna coil AC2. Device D2 and host processors HP1 and HP2 can be located in a portable device MP, such as a mobile phone.

当主处理器HP1和外部装置EDV执行事务时,控制器NFCC2执行路由程序RPGR,并且向主处理器HP1传送由外部装置EDV发送并且由接口电路CLF接收的命令CAPDU,或者向接口电路CPF发送由处理器HP1发送的响应RAPDU,使得它们被发送到外部装置EDV。控制器也执行根据本发明的通知程序NPGR,并且向处理器HP2发送由处理器HP1和外部装置EDV交换的、与数据CAPDU、RAPDU的特性和/或内容相关的通知。When the main processor HP1 and the external device EDV perform a transaction, the controller NFCC2 executes a routing procedure RPGR and transmits a command CAPDU sent by the external device EDV and received by the interface circuit CLF to the main processor HP1, or transmits a response RAPDU sent by the processor HP1 to the interface circuit CPF so that it is transmitted to the external device EDV. The controller also executes a notification procedure NPGR according to the present invention and transmits notifications related to the characteristics and/or content of the data CAPDUs and RAPDUs exchanged between the processor HP1 and the external device EDV to the processor HP2.

根据一个实施例,控制器向处理器HP2发送下面的通知:According to one embodiment, the controller sends the following notification to the processor HP2:

- N[AIDi]:应用选择通知,其包含在向处理器HP1传送的应用选择命令SELECT_AID中存在的应用标识符AIDi,- N[AIDi]: application selection notification containing the application identifier AIDi present in the application selection command SELECT_AID transmitted to the processor HP1,

- NCj:与由接口电路CLF接收并且被传送到处理器HP1的命令CAPDUj相关的通知,- NCj: notification related to the command CAPDUj received by the interface circuit CLF and transferred to the processor HP1,

- NRj:与由处理器HP1发送并且被传送到接口电路CLF的命令RAPDUj相关的通知。- NRj: notification related to the command RAPDUj sent by the processor HP1 and transferred to the interface circuit CLF.

与命令或响应相关的通知NCj、NRj可以包括任何类型的信息或数据,例如:The notifications NCj, NRj associated with a command or response may include any type of information or data, such as:

- 关于命令或响应的特性的信息(例如,命令的类型),- information about the characteristics of the command or response (e.g. the type of command),

- 关于命令或响应的内容的信息(例如,在命令或响应中存在给定数据的情况),以及/或者- information about the content of the command or response (e.g., the presence of given data in the command or response), and/or

- 在命令或响应中包含的一个或多个数据。- One or more data items to be included in a command or response.

根据在外部装置EDV和主处理器HP1交换数据APDU的框架中的应用的特征参数来产生通知NCj或NRj。在下述的一些实施例中,该特征参数是应用的标识符AID。The notification NCj or NRj is generated according to a characteristic parameter of the application in the framework of the data APDU exchange between the external device EDV and the host processor HP1. In some embodiments described below, this characteristic parameter is the identifier AID of the application.

为了这个目的,通知程序NPGR包括一组通知配置模块MAi (MA0,MA1,...MAn),每一个模块Mai都与标识符AIDi相关联。在图3上示意地表示了模块MAi的结构。每一个模块都包括:For this purpose, the notification program NPGR comprises a set of notification configuration modules MAi (MA0, MA1, ... MAn), each module Mai being associated with an identifier AIDi. The structure of the modules MAi is schematically represented in FIG3. Each module comprises:

- 命令识别程序CIP- Command Identification Program (CIP)

- 与程序CIP可以使得能够被识别的命令CAPDUj (CAPDU0,CAPDU1,..CAPDUNi)相关的一组命令分析规则(CAR0,CAR1,...CARNi),以及- a set of command analysis rules (CAR0, CAR1, ... CAR Ni ) associated with the commands CAPDUj (CAPDU0, CAPDU1, .. CAPDU Ni ) that the procedure CIP can enable to be recognized, and

- 与程序CIP可以使得能够被识别的响应RAPDUj (RAPDU0,RAPDU1,...RAPDUNi)相关的一组响应分析规则RARj(RAR0,RAR1,...RARNi)- a set of response analysis rules RARj (RAR0, RAR1, ... RAR Ni ) associated with the response RAPDUj (RAPDU0, RAPDU1, ... RAPDU Ni ) that the procedure CIP can enable to be identified

每个响应分析规则RARj都与命令分析规则CARj相关联,并且每一个命令分析规则CARj都与可以通过程序CIP识别的命令CAPDUj 相关联。每一个规则CARj使得控制器NFCC2能够产生向处理器HP2 传送的通知NCj。类似地,每一个规则RARj使得控制器能够产生向处理器HP2传送的通知NRj。Each response analysis rule RARj is associated with a command analysis rule CARj, and each command analysis rule CARj is associated with a command CAPDUj that can be recognized by the program CIP. Each rule CARj enables the controller NFCC2 to generate a notification NCj that is transmitted to the processor HP2. Similarly, each rule RARj enables the controller to generate a notification NRj that is transmitted to the processor HP2.

因此,因为通过其可以产生通知的规则CARj、RARj可能不同的情况,所以同一命令CAPDUj或同一响应RAPDUj可以根据在它被发送的框架中的应用而产生不同的通知NCj、NRj。Therefore, since the rules CARj, RARj by which notifications may be generated may be different, the same command CAPDUj or the same response RAPDUj may generate different notifications NCj, NRj depending on the application in the framework in which it is sent.

而且,与应用相关联的识别程序CIP不必然被设计来识别该应用易于使用的任何命令和任何响应。当设计程序CIP时,仅可以考虑期望其通知的命令或响应。而且,命令可以产生通知NCj,而对应的响应本身不产生通知NRj,或者反之亦然。Furthermore, the identification program CIP associated with an application is not necessarily designed to recognize any command or response that the application is likely to use. When designing the program CIP, only the commands or responses for which notifications are desired should be considered. Furthermore, a command may generate a notification NCj, while the corresponding response itself does not generate a notification NRj, or vice versa.

图4A、4B描述了通过通知程序NPGR实现的根据本发明的通知方法的一个实施例。在此假定处理器HP1在卡模拟模式中运行,使得输入的应用数据(被外部装置EDV发送并且被接口电路CLF接收的数据)是命令CAPDU,并且输出的应用数据(由主处理器HP1发送的数据)是响应RAPDU。4A and 4B illustrate an embodiment of the notification method according to the present invention implemented by the notification program NPGR. It is assumed here that the processor HP1 operates in card emulation mode, so that the input application data (data sent by the external device EDV and received by the interface circuit CLF) is a command CAPDU, and the output application data (data sent by the host processor HP1) is a response RAPDU.

参考图4A,该方法包括初始步骤S1:等待由接口电路CLF接收的输入数据CAPDUj的路由。当该数据被路由程序RPGR路由到处理器HP1时,控制器NFCC2前进到步骤S2,其中,确定命令CAPDUj 是否是应用选择命令“SELECT_AID”。如果回答是肯定的,则控制器前进到步骤S3,否则,控制器前进到步骤S6。Referring to FIG4A , the method includes an initial step S1 of waiting for the routing of incoming data CAPDUj received by the interface circuit CLF. When this data is routed to the processor HP1 by the routing program RPGR, the controller NFCC2 proceeds to step S2, where it determines whether the command CAPDUj is an application selection command "SELECT_AID." If so, the controller proceeds to step S3; otherwise, the controller proceeds to step S6.

在步骤S3中,控制器从命令CAPDUj提取标识符AIDi。在步骤 S4期间,控制器存储命令CAPDUj作为当前命令和标识符AIDi作为当前标识符。在步骤S5期间,控制器向处理器HP2发送包含标识符 AIDi的通知N[AIDi],然后前进到步骤S 12。In step S3, the controller extracts the identifier AIDi from the command CAPDUj. During step S4, the controller stores the command CAPDUj as the current command and the identifier AIDi as the current identifier. During step S5, the controller sends a notification N[AIDi] containing the identifier AIDi to the processor HP2 and then proceeds to step S12.

当输入数据CAPDUj不是应用选择命令时,在步骤S2后执行步骤S6。假定标识符AIDi已经在前一个步骤S4期间被存储为当前标识符,因为命令SELECT_AID是由外部装置EDV在应用开始处发送的第一命令。因此,在步骤S6中,控制器从所有的模块MA0至Man中选择与当前标识符AIDi相关联的通知配置模块MAi。在步骤S7期间,控制器通过在模块MAi中存在的程序CIP来识别命令CAPDUj,并且在步骤S8中将该命令存储为当前命令。在步骤S9中,控制器访问在模块 MAi中存在的分析规则CARj。在步骤S 10中,处理器使用规则CARj来分析命令CAPDUj,并且产生它在步骤S11中向主处理器HP2发送的通知NCj,然后前进到步骤S12。If the input data CAPDUj is not an application selection command, step S6 is executed after step S2. It is assumed that the identifier AIDi was already stored as the current identifier during the previous step S4, since the command SELECT_AID is the first command sent by the external device EDV at the start of the application. Therefore, in step S6, the controller selects the notification configuration module MAi associated with the current identifier AIDi from among all modules MA0 to Man. During step S7, the controller identifies the command CAPDUj using the program CIP present in module MAi and stores it as the current command in step S8. In step S9, the controller accesses the analysis rule CARj present in module MAi. In step S10, the processor uses the rule CARj to analyze the command CAPDUj and generates the notification NCj, which it sends to the main processor HP2 in step S11, before proceeding to step S12.

可以注意到,将标识符AIDi存储为当前标识符的步骤S4可以包含:存储该标识符在标识符列表中的秩“i”,并且使用与每一个秩i 相关联的索引来作为通知配置模块MAi。类似地,存储作为当前命令的命令CAPDUj的步骤S8可以包含:存储该命令在命令CAPDU0至CAPDUNi的列表(模块MAi的程序CIP使得能够被识别的命令的列表) 中的秩j,该参数j允许找出适用于命令CAPDUj的分析规则CARj、 RARj。It should be noted that the step S4 of storing the identifier AIDi as the current identifier may comprise storing the rank "i" of this identifier in the list of identifiers and using the index associated with each rank i as a notification to the configuration module MAi. Similarly, the step S8 of storing the command CAPDUj as the current command may comprise storing the rank j of this command in the list of commands CAPDU0 to CAPDUNi (a list of commands that the procedure CIP of the module MAi enables to be recognized), the parameter j allowing to find the analysis rules CARj, RARj applicable to the command CAPDUj.

在图4B的步骤S12中,控制器等待由主处理器HP1发送的输出数据RAPDUj被路由程序RPGR路由到接口电路CLF。假定该数据是对于当前命令CAPDUj的响应RAPDUj。当将该输出数据路由时,控制器在步骤S13期间访问与当前标识符AIDi相关联的模块MAi,然后在步骤S14期间访问与当前命令CAPDUj相关联的响应分析规则 RARj。在步骤S15中,控制器使用规则RARj来分析响应RAPDUj,并且产生它在步骤S16中向主处理器HP2发送的通知NRi。控制器然后返回到步骤S1,同时等待新的命令被路由到处理器HP1。In step S12 of FIG4B , the controller waits for outgoing data RAPDUj, sent by the main processor HP1, to be routed by the routing program RPGR to the interface circuit CLF. This data is assumed to be a response RAPDUj to the current command CAPDUj. When routing this outgoing data, the controller accesses the module MAi associated with the current identifier AIDi during step S13, and then accesses the response analysis rule RARj associated with the current command CAPDUj during step S14. In step S15, the controller uses the rule RARj to analyze the response RAPDUj and generates a notification NRi, which it sends to the main processor HP2 in step S16. The controller then returns to step S1, waiting for a new command to be routed to the processor HP1.

刚才描述的方法可以包括用于防止处理器NFCC2执行某些步骤的例外。在该情况下,可以提供要发送的默认通知。例如,如果在步骤S6看起来未预先存储当前标识符AIDi或没有与存储的当前标识符 AIDi相关联的通知配置模块MAi,则控制器前进到步骤S17a,其中,它向主处理器HP2发送与该例外相关的通知,然后前进到步骤S12。该通知指示例如没有应用标识符与被发送到处理器HP1的命令相关联,或者没有通知配置模块与当前标识符相关联。在步骤S7中,如果程序CIP不使得能够识别命令CAPDUj,则控制器前进到步骤S17b,其中,它向处理器HP2发送与该例外相关的通知,然后前进到步骤S12。类似地,在步骤S9中,如果当前模块MAi不包含任何命令分析规则 CARj,则控制器前进到步骤S17c,其中,它发送与该例外相关的通知,然后返回到步骤S12。在步骤S13中,如果未预先存储当前标识符AIDi,或者如果控制器未找到与当前标识符对应的任何模块MAi,则控制器前进到步骤S17d,其中,它向处理器HP2发送与该例外相关的通知,然后返回到步骤S1。最后,在步骤S14中,如果控制器未在模块MAi 中找到与当前命令CAPDUj相关联的任何响应分析规则RARj,或者如果未预先存储当前命令CAPDUj,则控制器前进到步骤S17e,其中,它向处理器HP2发送与该例外相关的通知,然后返回到步骤S1。The method just described can include exceptions that prevent the processor NFCC2 from executing certain steps. In this case, a default notification can be provided. For example, if, in step S6, it appears that the current identifier AIDi is not pre-stored or that there is no notification configuration module MAi associated with the stored current identifier AIDi, the controller proceeds to step S17a, where it sends a notification related to the exception to the host processor HP2, and then proceeds to step S12. This notification indicates, for example, that no application identifier is associated with the command sent to the processor HP1, or that no notification configuration module is associated with the current identifier. In step S7, if the program CIP does not recognize the command CAPDUj, the controller proceeds to step S17b, where it sends a notification related to the exception to the processor HP2, and then proceeds to step S12. Similarly, in step S9, if the current module MAi does not contain any command analysis rules CARj, the controller proceeds to step S17c, where it sends a notification related to the exception, and then returns to step S12. In step S13, if the current identifier AIDi is not pre-stored, or if the controller does not find any module MAi corresponding to the current identifier, the controller proceeds to step S17d, in which it sends a notification related to the exception to the processor HP2, and then returns to step S1. Finally, in step S14, if the controller does not find any response analysis rule RARj associated with the current command CAPDUj in the module MAi, or if the current command CAPDUj is not pre-stored, the controller proceeds to step S17e, in which it sends a notification related to the exception to the processor HP2, and then returns to step S1.

在该方法的一个替代实施例中,同时执行等待输入数据的路由的步骤S1和等待输出数据的路由的步骤S12,使得控制器可以向处理器HP2通知两个连续命令的路由,而处理器HP1不发送对于第一命令的任何响应(无输出数据)。而且,可以注意到,如果在第一命令后接收到第二命令,而没有对于已经被处理器HP1发送的第一命令的响应,则由后者在接收第二命令后发送的响应关于其向处理器HP2发送通知的处理被认为是对于第二命令而不是对于第一命令的响应。In an alternative embodiment of the method, the step S1 of waiting for the routing of the input data and the step S12 of waiting for the routing of the output data are performed simultaneously, so that the controller can notify the processor HP2 of the routing of two consecutive commands without the processor HP1 sending any response to the first command (no output data). Moreover, it should be noted that if a second command is received after the first command without a response to the first command already sent by the processor HP1, the response sent by the latter after receiving the second command is considered to be a response to the second command and not to the first command.

图5示出替代了如上所述的模块MAi的通知配置模块MBi(MB0 至MBn)的一个实施例。每一个模块MBi都包括3列和Ni+1行(可以从一个模块到另一个不同的行的数量)。每一行在第一列中包括命令识别掩码IMj,在第二列中包括分析规则CARj,并且在第三列中包括分析规则RARj。掩码IMj是比特串,其被提供来通过异或函数逐比特地与要识别的命令CAPDU组合。根据一个实施例,每一个掩码IMj 伴随有值掩码,该值掩码意欲通过与函数被应用到命令以从其去除非有效比特或不能使用掩码识别的比特(不可预测的值比特),然后通过异或函数将结果(“清洁”命令)与掩码IMj组合。如果命令识别掩码IMj的每一个比特与命令的对应的比特的组合的结果等于0,则将该命令看作被这个掩码识别,并且在包括掩码IMj的行中读取分析规则CARj、RARj。在另一个实施例中,可以通过保证值掩码和识别掩码的组合函数的、可配置的硬连线的逻辑函数来保证命令的识别。FIG5 illustrates an embodiment of a notification configuration module MBi (MB0 to MBn) that replaces the module MAi described above. Each module MBi comprises three columns and Ni+1 rows (the number of rows can vary from module to module). Each row includes a command identification mask IMj in the first column, analysis rules CARj in the second column, and analysis rules RARj in the third column. Mask IMj is a bit string that is combined bit by bit with the command CAPDU to be identified using an XOR function. According to one embodiment, each mask IMj is accompanied by a value mask that is applied to the command using an AND function to remove insignificant bits or bits that cannot be identified using the mask (unpredictable value bits). The result ("clean" command) is then combined with the mask IMj using an XOR function. If the result of combining each bit of the command identification mask IMj with the corresponding bit of the command is equal to 0, the command is considered identified by this mask, and the analysis rules CARj and RARj are read in the row containing the mask IMj. In another embodiment, recognition of the command may be ensured by a configurable, hard-wired logic function that is a combined function of the value mask and the recognition mask.

如图5中所示,通知表AT1也被提供来与模块MAi的每一个应用标识符AIDi相关联。表AT1包括:第一列,其包含标识符AIDi或标识符的秩i;以及,第二列,其包含值A(MBi)(A(MB0),A(MB1)... A(MBn)),其指定与标识符AIDi相关联的模块MBi。这些值可以是在模块MBi的存储器MEM2中的地址或这些模块的被索引地址,例如,在地址索引中的模块的秩。通知表AT1因此形成在应用标识符和对应的通知配置模块之间的查找表。As shown in FIG5 , a notification table AT1 is also provided, associated with each application identifier AIDi of a module MAi. Table AT1 comprises a first column containing the identifier AIDi or the rank i of the identifier, and a second column containing values A(MBi) (A(MB0), A(MB1), ... A( MBn )) specifying the module MBi associated with the identifier AIDi. These values can be addresses in the memory MEM2 of the module MBi or indexed addresses of these modules, for example, the module's rank in the address index. Notification table AT1 thus forms a lookup table between application identifiers and corresponding notification configuration modules.

而且,命令分析规则CARj可以包括数据掩码DMj或比数据掩码更复杂的命令分析程序。事实上,某些已知命令具有位于固定位置处的固定大小的数据字段,其可以通过数据掩码被提取。因此,当规则 CARj包括数据掩码DMj时,通过与逻辑函数将该掩码与命令组合,并且,该组合的结果是要被通知到处理器HP2的数据。然而,其它已知的命令具有可变位置和长度字段,例如,以TLV(“类型长度值”) 格式的命令。然后,需要在这样的命令中定位使得能够找到被搜索的值的标签,其要求提供比简单的数据掩码更复杂的分析程序。Furthermore, the command analysis rule CARj may include a data mask DMj or a more complex command analysis procedure than a data mask. Indeed, some known commands have a fixed-size data field located at a fixed position, which can be extracted using a data mask. Therefore, when the rule CARj includes a data mask DMj, this mask is combined with the command via an AND logic function, and the result of this combination is the data to be communicated to the processor HP2. However, other known commands have fields with variable positions and lengths, such as commands in TLV ("Type Length Value") format. Such commands then require locating a tag within them that allows the searched value to be found, which requires a more complex analysis procedure than a simple data mask.

然而,在此假定不能在响应分析规则RARj中使用数据掩码,因为要求分析程序的、一般以TLV或LV格式的、由ISO 7816标准提供的响应RAPDU的可变结构。However, it is assumed here that no data mask can be used in the response analysis rule RARj, since the analysis program is required to analyze the variable structure of the response RAPDU, generally in TLV or LV format, provided by the ISO 7816 standard.

图6A、6B表示使用通知配置模块MBi和通知表AT1的通知方法的一个实施例。该方法包括下面的步骤:6A and 6B show an embodiment of a notification method using a notification configuration module MBi and a notification table AT1. The method comprises the following steps:

- 步骤S20(图6A):控制器等待要被路由程序路由的输入数据CAPDUj,然后前进到步骤S21,- Step S20 (FIG. 6A): The controller waits for input data CAPDUj to be routed by the routing program, then proceeds to step S21,

- 步骤S21:通过异或函数(XOR),控制器将命令CAPDUj 与专用于识别命令SELECT_AID的掩码MAID1组合(参见在附录2中的示例)。如果结果等于0,则该命令是标识符选择命令,并且控制器前进到步骤S22,否则控制器前进到步骤S25,- Step S21: The controller combines the command CAPDUj with the mask MAID1 dedicated to identifying the command SELECT_AID (see the example in Appendix 2) by means of an exclusive OR function (XOR). If the result is equal to 0, the command is an identifier selection command and the controller proceeds to step S22, otherwise the controller proceeds to step S25,

- 步骤S22:通过与逻辑函数,控制器将命令CAPDUj与专用于提取标识符AIDi的掩码MAID2组合,这形成该操作的结果(参见在附录2中的示例),- step S22: by means of an AND logic function, the controller combines the command CAPDUj with the mask MAID2 dedicated to extracting the identifier AIDi, which forms the result of this operation (see the example in Appendix 2),

- 步骤S23:控制器存储掩码MAID1作为当前掩码和标识符 AIDi作为当前标识符或该标识符的秩“i”,- Step S23: The controller stores the mask MAID1 as the current mask and the identifier AIDi as the current identifier or the rank "i" of the identifier,

- 步骤S24:控制器向处理器HP2发送包含标识符AIDi的通知N[AIDi],然后前进到步骤S32,- Step S24: the controller sends a notification N[AIDi] containing the identifier AIDi to the processor HP2, then proceeds to step S32,

- 步骤S25:通过通知表AT1,控制器选择与当前标识符AIDi 对应的通知配置模块MBi,- Step S25: The controller selects the notification configuration module MBi corresponding to the current identifier AIDi through the notification table AT1,

- 步骤S26:控制器在模块MAi中读取第一命令识别掩码IM0或如果已经在前一个步骤S26期间读取了掩码则读取下一个掩码IM,- step S26: the controller reads in the module MAi the first command identification mask IM0 or the next mask IM if the mask has already been read during a previous step S26,

- 步骤S27:控制器可能在已经向其应用值掩码后通过异或函数将命令CAPDUj与掩码IM组合;如果结果是等于0 的比特串,则控制器前进到步骤S28,否则它返回到步骤S26以读取下一个掩码,- step S27: the controller combines the command CAPDUj with the mask IM by an XOR function, possibly after having applied the value mask to it; if the result is a bit string equal to 0, the controller proceeds to step S28, otherwise it returns to step S26 to read the next mask,

- 步骤S28:控制器存储掩码IM作为当前掩码IMj,或者仅存储该掩码的秩“j”,- Step S28: The controller stores the mask IM as the current mask IMj, or only stores the rank "j" of the mask,

- 步骤S29:控制器在模块MAi中读取与掩码IMj相关联的分析规则CARj。如果规则CARj包括数据掩码DMj,则控制器前进到步骤S30a;如果规则包括分析程序,则控制器前进到步骤S30b,- Step S29: The controller reads the analysis rule CARj associated with the mask IMj in the module MAi. If the rule CARj includes the data mask DMj, the controller proceeds to step S30a; if the rule includes the analysis procedure, the controller proceeds to step S30b,

- 步骤S30a:控制器通过与逻辑函数将掩码DMi与命令 CAPDUj组合,以提取要通知的命令数据,- Step S30a: The controller combines the mask DMi with the command CAPDUj through an AND logic function to extract the command data to be notified,

- 步骤S30b:控制器通过规则CARj分析命令CAPDUj,以获得要通知的信息的项目,其可以包括从命令提取的数据,- Step S30b: The controller analyzes the command CAPDUj by means of the rule CARj to obtain the items of information to be notified, which may include data extracted from the command,

- 步骤S31:控制器向处理器HP2发送包含数据和/或信息的通知NCj,然后进行到步骤S32。- Step S31: The controller sends a notification NCj containing data and/or information to the processor HP2, then proceeds to step S32.

- 步骤S32:(图6B):控制器等待输出数据RAPDUj被路由到接口电路CLF。如上所述,控制器可以在步骤S20同时等待第二命令被路由,以涵盖其中接收到两个同时命令的情况,- Step S32: (FIG. 6B): The controller waits for the output data RAPDUj to be routed to the interface circuit CLF. As described above, the controller may simultaneously wait for the second command to be routed in step S20 to cover the case where two simultaneous commands are received,

- 步骤S33:控制器在当前模块MBi中读取与当前掩码IMj 或与掩码MAID1相关联的规则RARj,- Step S33: the controller reads the rule RARj associated with the current mask IMj or with the mask MAID1 in the current module MBi,

- 步骤S34:控制器使用规则RARj来分析响应RAPDUj(参见在附录2中的示例),并且产生可以包括在响应中存在的数据或由其构成的响应通知,- step S34: the controller analyses the response RAPDUj using the rule RARj (see the example in Appendix 2) and generates a response notification which may include or consist of the data present in the response,

- 步骤S35:控制器向处理器HP2发送包含这样的信息的通知NRj。- Step S35: The controller sends a notification NRj containing such information to the processor HP2.

如上,该方法可以包括下面的执行例外的全部或一部分:As above, the method may include all or part of the following execution exceptions:

- 在步骤S25中,如果未预先存储当前标识符AIDi或如果没有模块MBi与当前标识符相关联,则控制器进行到步骤S36a,其中,它向处理器HP2发送与该例外相关的通知,然后进行到步骤S32,- in step S25, if the current identifier AIDi is not previously stored or if no module MBi is associated with the current identifier, the controller proceeds to step S36a, in which it sends a notification related to the exception to the processor HP2, and then proceeds to step S32,

- 在步骤S26中,如果模块MBi的掩码IM0至IMNi都不对应于当前命令CAPDUj,则控制器进行到步骤S36b,其中,它向处理器HP2发送指示还没有识别命令的通知,然后进行到步骤S32,- in step S26, if none of the masks IM0 to IM Ni of the module MBi corresponds to the current command CAPDUj, the controller proceeds to step S36b, in which it sends a notification to the processor HP2 indicating that the command has not been recognized, and then proceeds to step S32,

- 在步骤S33中,如果控制器未找到任何当前的标识符AIDi,则它进行到步骤S36c,其中,它向处理器HP2发送默认通知,其指示由处理器HP1已经发送了未链接到任何已知应用的不可识别的数据。如果控制器未找到与当前的标识符 AIDi相关联的任何模块MBi,则它进行到步骤S36d,其中,它向处理器HP2发送默认通知,其指示由处理器HP1 已经发送了链接到标识符应用AIDi的不可识别的数据。最后,如果控制器未找到与当前标识符AIDi相关联并且与存储的当前掩码IMj相关联的任何分析规则RARj,则它进行到步骤S36e,其中,它向处理器HP2发送默认通知,其指示由处理器HP1已经发送了不可识别的响应。- In step S33, if the controller does not find any current identifier AIDi, it proceeds to step S36c, in which it sends a default notification to processor HP2, indicating that unrecognizable data not linked to any known application has been sent by processor HP1. If the controller does not find any module MBi associated with the current identifier AIDi, it proceeds to step S36d, in which it sends a default notification to processor HP2, indicating that unrecognizable data linked to the identifier application AIDi has been sent by processor HP1. Finally, if the controller does not find any analysis rule RARj associated with the current identifier AIDi and with the stored current mask IMj, it proceeds to step S36e, in which it sends a default notification to processor HP2, indicating that an unrecognizable response has been sent by processor HP1.

图7示出根据本发明的通知配置模块MCi的另一个实施例。识别程序CIP对于所有的模块MCi共同,并且每一个模块MCi仅包括分析规则CARj、RARj。在这个实施例中,模块MCi不再需要作为单独可选择的元件。该通知程序可以直接地访问来自当前标识符AIDi和来自当前命令CAPDUj的分析规则CARj、RARj的对NRi,j。FIG7 shows another embodiment of a notification configuration module MCi according to the present invention. The identification program CIP is common to all modules MCi, and each module MCi includes only analysis rules CARj, RARj. In this embodiment, the module MCi no longer needs to be a separately selectable element. The notification program can directly access the pair NRi,j from the current identifier AIDi and the analysis rules CARj, RARj from the current command CAPDUj.

已经上述了通知方法的示例,其在仅主处理器HP2接收到关于被路由到处理器HP1或被后者发送的数据的通知的情况下被应用到链接到两个主处理器HP1、HP2的装置D2。实际上,该装置可以包括三个主处理器或更多,并且每一个处理器都易于接收与其它主处理器的行为相关的通知。根据本发明的通知方法因此也可以被配置为产生多个通知。The above describes an example of a notification method applied to a device D2 linked to two main processors HP1 and HP2, where only the main processor HP2 receives notifications regarding data routed to or sent by the processor HP1. In practice, the device may include three or more main processors, each of which is susceptible to receiving notifications regarding the activities of the other main processors. The notification method according to the present invention can therefore also be configured to generate multiple notifications.

类似地,已经在上面假定主处理器HP1可以一次仅管理一个应用,使得向主处理器HP2发送的通知被附加到被称为“当前标识符”的同一应用标识符。根据一个实施例,处理器HP1和外部装置EDV可以同时进行几个应用。在该情况下,通过逻辑信道将在一个应用的框架中交换的数据与在另一个应用的框架中交换的数据进行区分。因此,ISO 7816标准通过参数化命令或响应的第一字节CLASS(其默认值在一次仅执行一个应用的情况下是0)的比特0和1来提供使用4至20个逻辑信道的可能。“全局平台”规范提供了4个附加比特,其除了被ISO 7816标准提供的4个逻辑信道之外也限定了16个逻辑信道,即,总共 20个信道。Similarly, it has been assumed above that the main processor HP1 can manage only one application at a time, so that the notifications sent to the main processor HP2 are attached to the same application identifier, called the "current identifier". According to one embodiment, the processor HP1 and the external device EDV can carry out several applications simultaneously. In this case, the data exchanged in the framework of one application are distinguished from the data exchanged in the framework of another application by logical channels. Therefore, the ISO 7816 standard provides for the possibility of using 4 to 20 logical channels by parameterizing bits 0 and 1 of the first byte CLASS of a command or response (whose default value is 0 when only one application is executed at a time). The "global platform" specification provides for 4 additional bits, which define 16 logical channels in addition to the 4 logical channels provided by the ISO 7816 standard, that is, a total of 20 channels.

在该情况下,应用标识符的存储不足以选择适用于由装置D2路由的命令和响应的分析规则。事实上,标识符AIDi存在于命令 SELECT_AID中,但是不被包括在接下来的命令或响应中。根据本发明的通知方法在该情况下使用在图8中表示的类型的通知表AT2,其除了包含标识符AID0至AIDn(或它们的秩i)的列或包含通信配置模块MBi的地址A(MBi)的列之外也包括“逻辑信道”列。该“逻辑信道”列初始是空的,并且当包含逻辑信道编号的命令SELECT_AID被接收和被取路由到主处理器时被动态地更新。In this case, the storage of application identifiers is insufficient for selecting analysis rules applicable to commands and responses routed by device D2. Indeed, the identifier AIDi is present in the command SELECT_AID, but is not included in subsequent commands or responses. The notification method according to the invention uses in this case a notification table AT2 of the type represented in FIG8 , which, in addition to the columns containing the identifiers AID0 to AIDn (or their rank i) or the column containing the address A(MBi) of the communication configuration module MBi, also includes a "logical channel" column. This "logical channel" column is initially empty and is dynamically updated when a command SELECT_AID containing a logical channel number is received and routed to the main processor.

在图6A中表示的方法的步骤然后被修改如下:The steps of the method represented in FIG6A are then modified as follows:

- 在步骤S23中,当已经从所接收的第一命令SELECT_AID 提取了标识符AIDi时,与这个标识符相关地在通知表AT2 中记录对应的逻辑信道。假定该标识符是“AID0”并且由外部装置选择的逻辑信道编号是“CH01”,在通知表AT2 中,信道CH01与该标识符相关联,如图8上所示。In step S23, when the identifier AIDi has been extracted from the received first command SELECT_AID, the corresponding logical channel is recorded in the notification table AT2 in association with this identifier. Assuming that the identifier is "AID0" and the logical channel number selected by the external device is "CH01", the channel CH01 is associated with this identifier in the notification table AT2, as shown in Figure 8.

- 在步骤S23的另一个迭代期间,当从另一个命令 SELECT_AID提取了诸如标识符“AID2”另一个标识符并且假定作为示例在命令中找到逻辑信道编号“CH02”时,在通知表AT2中,该逻辑信道编号CH02与标识符AID2 相关联。- During another iteration of step S23, when another identifier such as identifier "AID2" is extracted from another command SELECT_AID and assuming as an example that the logical channel number "CH02" is found in the command, in the notification table AT2, this logical channel number CH02 is associated with the identifier AID2.

- 然后,当执行步骤S25时,在所接收的命令中存在的逻辑信道编号被用作通知表AT2的输入点,以确定必须选择哪个模块MA0或MA2。因此,在该实施例中不必在步骤S23 中存储标识符AIDi。而是存储与其中可以接收到命令的每一个逻辑信道相关联的模块MA0、MA2的身份(在存储器中的地址或被索引的地址)。- Then, when step S25 is executed, the logical channel number present in the received command is used as an entry point for the notification table AT2 to determine which module MA0 or MA2 must be selected. Therefore, in this embodiment, it is not necessary to store the identifier AIDi in step S23. Instead, the identity (address in memory or indexed address) of the module MA0, MA2 associated with each logical channel on which a command may be received is stored.

已经上述了根据本发明的路由方法的一些实施例,其中,被选择来配置通知的特征参数是该应用的标识符AIDi或与该标识符相关联的逻辑信道。Some embodiments of the routing method according to the present invention have been described above, wherein the characteristic parameter selected to configure the notification is the identifier AIDi of the application or a logical channel associated with the identifier.

在根据本发明的路由方法的其它实施例中,可以使用应用的其它特征参数来配置通知。具体地说,这些参数可以是被路由程序RPGR 使用来确定形成输入数据的目的地点的主处理器的那些。在这样的情况下,因此有可能将由路由程序RPGR使用的路由表RT和由通知程序 NPGR使用的通知表合并,以获得替代传统的路由表RT的路由和通知表RNT。In other embodiments of routing method according to the present invention, can use other characteristic parameters of application to configure notification.Specifically, these parameters can be those that are used by routing program RPGR to determine the main processor of the destination point that forms input data.Under such situation, therefore might merge the routing table RT that will be used by routing program RPGR and the notification table that is used by notification program NPGR, to obtain route and the notification table RNT that substitutes traditional routing table RT.

路由和通知表RNT的一个具体示例被在附录1中的表1描述,并且在图9中被表示。在此与NFC论坛(TC DEV NCI 00058R013 NFCForum TS NCI 1.0)的NCI规范相结合设计表RNT。A specific example of a routing and notification table RNT is described in Table 1 in Appendix 1 and is shown in Figure 9. The table RNT is designed here in conjunction with the NCI specification of the NFC Forum (TC DEV NCI 00058R013 NFCForum TS NCI 1.0).

NCI规范段落5.3当NFC装置在“收听”模式中时基于下面三个参数来推荐路由方法:NCI specification paragraph 5.3 recommends a routing method when the NFC device is in "listening" mode based on the following three parameters:

- 应用标识符AID,- Application Identifier AID,

- 如果不能找到标识符AID,则协议,- If the identifier AID cannot be found, the protocol,

- 如果不能确定协议,则技术。- If agreement cannot be determined, then technology.

在NFC论坛的“数字1.0”规范中定义了“协议”和“技术”。该协议可以是“Type1Tag”、“Type2Tag”、“Type3Tag”、“Type4ATag”、“Type4B”、“ISO-DEP”、“NFC-DEP”。该技术可以是:“类型A”、“类型B”或“类型F”,它们全部使用13.56MHz 的载波频率;或者任意其它所谓的“拥有者”协议,例如,ISO15。NCI 规范定义了作为一组发送参数的技术,该一组发送参数例如是RF载波、通信模式、比特率、模块方案、比特级编码、帧格式、协议等。The NFC Forum's "Digital 1.0" specifications define "protocols" and "technologies." The protocols can be "Type 1 Tag," "Type 2 Tag," "Type 3 Tag," "Type 4 ATag," "Type 4B," "ISO-DEP," or "NFC-DEP." The technologies can be "Type A," "Type B," or "Type F," all of which use a 13.56 MHz carrier frequency, or any other so-called "proprietary" protocol, such as ISO 15. The NFC Forum's specifications define a technology as a set of transmission parameters, such as the RF carrier, communication mode, bit rate, module scheme, bit-level encoding, frame format, and protocol.

该路由和通知表RNT因此包括用于配置路由和通知的下面的特征参数:The routing and notification table RNT therefore comprises the following characteristic parameters for configuring routing and notification:

- AID:应用标识符,- AID: Application Identifier,

- “PROT”:在NCI规范的含义内的“协议”,- "PROT": "Protocol" within the meaning of NCI specifications,

- “TECH”:在NCI规范的含义内的“技术”。- "TECH": "Technology" within the meaning of NCI regulations.

- “BAT”,装置D2(在图2上未示出)的电池的状态。- "BAT", the state of the battery of the device D2 (not shown in FIG. 2 ).

在如上所述命令SELECT_AID中找到标识符AID(步骤S3或 S22)。然而,路由程序RPGR在此检测标识符AID以用于将输入数据路由的目的,并且这样的检测因此不需要被通知程序再一次执行。因此可以提供通知程序的简化。一般而言,该通知程序和路由程序可以基于应用的相同特征参数在路由和通知的管理的框架中被合并。在NCI 规范中提供的所谓的“发现”步骤期间检测到协议。也在“发现”步骤期间检测到技术。更精确地,在标题为“行为”的章节中,该规范提供了下面的步骤:1–技术检测;2–冲突处理(选用);3–该装置的激活;4–数据交换;5–装置的失活。在步骤1中识别技术,并且在步骤1和3中识别协议。The identifier AID is found in the SELECT_AID command as described above (step S3 or S22). However, the routing program RPGR detects the identifier AID here for the purpose of routing the incoming data, and such detection therefore does not need to be performed again by the notification program. This can thus provide a simplification of the notification program. Generally speaking, the notification program and the routing program can be combined within the framework of routing and notification management based on the same characteristic parameters of the application. The protocol is detected during the so-called "discovery" step provided in the NCI specification. The technology is also detected during the "discovery" step. More precisely, in the section entitled "Behavior", the specification provides the following steps: 1 - Technology detection; 2 - Conflict handling (selection); 3 - Activation of the device; 4 - Data exchange; 5 - Deactivation of the device. The technology is identified in step 1, and the protocol is identified in steps 1 and 3.

电池的状态可以是“导通”(具有满意的充电水平的电池)、“低”(低于阈值的电平)或“截止”(空电池或具有不足以使得装置的特定单元工作的电池)。装置D2可以通过从由外部装置EDV发射的磁场获取能量来具有电池空的操作模式,如在EP 1 855 229中所述。在一种替代方式中,可以考虑在电池的状态和主处理器的状态(用于启动的“导通”和用于失活的“截止”)之间的组合。应当然后提供与主处理器的状态相关的另外的列。The state of the battery can be "on" (battery with a satisfactory charge level), "low" (a level below a threshold), or "off" (battery empty or with insufficient charge to operate a particular unit of the device). Device D2 can have an empty battery mode of operation by obtaining energy from a magnetic field emitted by an external device EDV, as described in EP 1 855 229. In an alternative, a combination between the state of the battery and the state of the main processor ("on" for activation and "off" for deactivation) can be considered. A further column related to the state of the main processor should then be provided.

而且,路由和通知表RNT包括下面的变量,该变量根据特征参数 AID、PROT、TECH、BAT而改变:Furthermore, the routing and notification table RNT includes the following variables, which vary according to the feature parameters AID, PROT, TECH, BAT:

- TargProc1:指定用于输入数据的路由的目标处理器。在此假定装置D2耦合到三个主处理器HP1、HP2、HP3,处理器HP3在图2上以虚线被表示,并且连接到端口P3,- TargProc1: specifies the target processor for routing the incoming data. It is assumed here that the device D2 is coupled to three main processors HP1, HP2, HP3, the processor HP3 being represented by a dotted line in FIG2 and connected to the port P3,

- TargProc2:指定用于发送根据本发明的通知的目标处理器。- TargProc2: specifies the target processor for sending notifications according to the present invention.

- A(MB):该列包含如上所述的值A(MB0)、A(MB1)、...、 A(MBn),其指定模块MBi,由此,有可能配置向处理器 TargProc2发送的通知。- A(MB): this column contains the values A(MB 0 ), A(MB 1 ), ..., A(MB n ) as described above, which specify the module MBi, thanks to which it is possible to configure the notifications sent to the processor TargProc2 .

NCI规范提供如果已知标识符AID则从标识符AID或如果未知标识符则从协议(某些NFC应用不使用标识符AID)或甚至如果不能确定标识符AID和协议则从技术确定目标处理器(在此为“TargProc1”) 的身份。The NCI specification provides for determining the identity of the target processor (here "TargProc1") from the identifier AID if known or from the protocol if unknown (some NFC applications do not use the identifier AID) or even from the technology if neither the identifier AID nor the protocol can be determined.

由表RNT示出的路由因此考虑三种可能:已知标识符AID、未知标识符但是已知协议、未知标识符和协议但是已知技术。在表RNT中包含的指定“PROT0”、“PROT2”、“PROT4”、“TECH1”、“TECH2”是示意性的,并且每一个对应于上述协议或技术之一或任何其它适用技术或协议。The routing shown by table RNT thus takes into account three possibilities: known identifier AID, unknown identifier but known protocol, unknown identifier and protocol but known technology. The designations "PROT0", "PROT2", "PROT4", "TECH1", "TECH2" contained in table RNT are schematic and each corresponds to one of the above-mentioned protocols or technologies or any other applicable technology or protocol.

该路由和通知表的架构示出用于确定用于输入数据的路由的目标处理器TargProc1的规则也可以用于确定通知被发送到的处理器和要用于配置这些通知的通知配置模块。The architecture of the routing and notification table shows that the rules used to determine the target processor TargProc1 for routing input data can also be used to determine the processors to which notifications are sent and the notification configuration module to be used to configure these notifications.

根据未示出的一个实施例,路由和通知表RNT包括列“TargProc3”,其指定接收通知的第二处理器。它可以因此包括第二列“MB”,以指定可以用于产生被发送到由列“TargProc3”指定的处理器的通知的通知配置模块。在该情况下,可以根据通知被发送到的处理器来不同地配置该通知。According to one embodiment (not shown), the routing and notification table RNT includes a column "TargProc3" that specifies the second processor to receive the notification. It may also include a second column "MB" to specify a notification configuration module that can be used to generate the notification sent to the processor specified by the column "TargProc3". In this case, the notification can be configured differently depending on the processor to which the notification is sent.

附录1Appendix 1

形成描述的组成部分Forming the components of a description

表1(路由和通知表RNT)Table 1 (Routing and Notification Table RNT)

附录2Appendix 2

形成描述的组成部分Forming the components of a description

1–用于识别命令SELECT-AID的识别掩码的示例1 – Example of identification mask for identifying command SELECT-AID

1.1–命令SELECT-AID的格式1.1 – Format of the command SELECT-AID

CLACLA INSINS P1P1 P2P2 LcLc InfInf LeLe 0000 A4A4 0404 0000 xxxx AIDAID 00 00

(十六进制表示)(Hexadecimal representation)

命令的识别:Command identification:

1.2–值掩码VM1.2 – Value Mask VM

(二进制表示)(binary representation)

1.3–识别掩码IM1.3 – Identifying Mask IM

(二进制表示)(binary representation)

1.4–要通过掩码进行的操作1.4 – Operations to be performed via mask

Match1=[要分析的命令]XOR VM(XOR=“异或”)Match1 = [command to be analyzed] XOR VM (XOR = "exclusive OR")

Match2=Match1 AND IM(AND=“与”函数)Match2 = Match1 AND IM (AND = "and" function)

如果Match2=00 00 00 00…,(十六进制),则识别命令。If Match2=00 00 00 00..., (hexadecimal), the command is recognized.

2–用于提取命令SELECT-AID的标识符AID的掩码的示例2 – Example of a mask for extracting the identifier AID of the command SELECT-AID

2.1–命令的示例2.1 – Command Examples

CLACLA INSINS P1P1 P2P2 LcLc Da0Da0 Da1Da1 Da2Da2 Da3Da3 Da4Da4 Da5Da5 Da6Da6 LeLe 0000 A4A4 0404 0000 0707 A0A0 0000 0000 0000 0303 1010 1010 00 00

(十六进制表示)(Hexadecimal representation)

2.2–掩码的示例2.2 – Mask Example

该参数Lc指定在命令APDU的数据字段中存在的字节的数量。在这个示例中,使用参数Lc=0来计算掩码。The parameter Lc specifies the number of bytes present in the data field of the command APDU.In this example, the mask is calculated using parameter Lc=0.

CLACLA INSINS P1P1 P2P2 LcLc D0D0 D1D1 D2D2 D3D3 D4D4 D5D5 D6D6 LeLe B0B0 B1B1 B2B2 B3B3 B4B4 B5B5 B6B6 B7B7 B8B8 B9B9 B10B10 B11B11 B12B12 0000 0000 0000 0000 0000 FFFF FFFF FFFF FFFF FFFF FFFF FFFF 00 00

(十六进制表示)(Hexadecimal representation)

Bx=命令的秩x的字节Bx = byte of command rank x

00=不使用的字节00 = unused byte

FF=要使用的字节FF = byte to use

2.3–提取标识符2.3 – Extracting Identifiers

AID_TEMP=[要分析的命令]AND掩码AID_TEMP = [command to be analyzed] AND mask

AID=字节B5直到字节B(5+Lc-1)AID = byte B5 to byte B(5+Lc-1)

AID=字节B5直到字节B11AID = Byte B5 to Byte B11

3–用于识别命令CAPDUj的识别掩码的示例3 – Example of identification mask used to identify command CAPDUj

3.1命令的示例3.1 Command Examples

“READ RECORD(读取记录)”命令(MasterCard/PayPass事务命令)。命令的一般格式:"READ RECORD" command (MasterCard/PayPass transaction command). General format of the command:

字段Field 字段值Field Value 描述describe CLACLA 0000 用于支付应用的可以等于00的Class字节Class byte that can be equal to 00 for payment applications INSINS B2B2 命令(Command)=READ RECORDCommand = READ RECORD P1P1 0101 P1(“记录编号”)P1("Record Number") P2P2 xxxx x100xxxx x100 P2(“参考控制参数”)P2 (“reference control parameter”) LeLe 0000 响应长度 Response length

上面的字段P2以二进制表达,并且其它以十六进制表达。值“x”的比特是可变值的比特。The field P2 above is expressed in binary, and the others are expressed in hexadecimal. The bits of value "x" are bits of variable value.

这样的命令对于每一个字段¨P1(“记录编号”)要求不同掩码,因为具有字段P1的每一个READ RECORD命令调用不同的响应。掩码的数量取决于要提取和要向主处理器通知的数据的数量。在这个示例中,掩码可以如下:Such a command requires a different mask for each field ¨P1 ("record number"), since each READ RECORD command with field P1 invokes a different response. The number of masks depends on the amount of data to be retrieved and notified to the host processor. In this example, the mask can be as follows:

3.2值和识别掩码的示例3.2 Examples of Value and Identification Masks

CLACLA INSINS P1P1 P2P2 LcLc InfInf LeLe 0000 00000000 0000 1011 00101011 0010 0000 00010000 0001 xxxx x 100xxxx x 100 0000 00000000 0000

(二进制表示)(binary representation)

该掩码是值掩码(比特“x”:要忽略的比特)和识别掩码(关于0或1的比特),它可以被分解为:值掩码,其中,比特“x”等于0,并且所有其它值等于1,该值掩码通过与函数与要分析的命令组合;以及,识别掩码,其中,所有的比特“x”被替换为0,而保持其它比特,以通过异或函数与和值掩码的组合的结果组合。The mask is a value mask (bit "x": bit to be ignored) and an identification mask (bits about 0 or 1), which can be decomposed into: a value mask, in which bit "x" is equal to 0 and all other values are equal to 1, which is combined with the command to be analyzed through the AND function; and an identification mask, in which all bits "x" are replaced with 0, while the other bits are kept to be combined with the result of the combination of the XOR function and the value mask.

4–用于分析响应的分析程序的示例(分析规则RARj)4 – Example of an analysis procedure for analyzing a response (analysis rule RARj)

响应的示例:Example of a response:

响应为TLV格式(类型-长度-值)。为了分析其内容,必须定位使得能够找出被搜索的值的标签。The response is in TLV format (Type-Length-Value). In order to analyze its content, it is necessary to locate the tag that enables the value being searched to be found.

用于“占位符的名称”字段的搜索的分析程序的示例:Example of a parser for a search on the "Placeholder Name" field:

该程序必须执行下面的步骤:The program must perform the following steps:

-查看SW1-SW2=‘9000’- Check SW1-SW2 = ‘9000’

-在响应的开始处定位标签‘70’- Locate tag '70' at the beginning of the response

-在标签‘70’的值中定位标签‘56’- Position label '56' within the value of label '70'

该值在包含以特定格式(在此,因为与磁条卡相关的历史原因而没有TLV格式,但是具有字段隔离符)的名称的“Track 1 data(轨道 1数据)”字段中。在这个示例中,可以向接收通知的主处理器发送“Track 1 data”,因为用于提取名称的分析将在通知的框架中太具体,所以接收到通知的主处理器可以如此进行。The value is in a "Track 1 data" field that contains the name in a specific format (here, not a TLV format for historical reasons related to magnetic stripe cards, but with field delimiters). In this example, the "Track 1 data" can be sent to the host processor receiving the notification because the analysis used to extract the name would be too specific in the framework of the notification.

Claims (13)

1.一种近场通信装置,包括通信接口电路、控制器、存储器和通信端口,并且被连接到第一主处理器和第二主处理器,其中所述近场通信装置被配置为:经由所述通信接口电路与外部装置建立近场通信信道、并且向所述第一主处理器提供由所述外部装置发送的应用数据,1. A near-field communication device, comprising a communication interface circuit, a controller, a memory, and a communication port, and connected to a first main processor and a second main processor, wherein the near-field communication device is configured to: establish a near-field communication channel with an external device via the communication interface circuit, and provide the first main processor with application data sent by the external device. 其中,所述控制器被配置为,一旦接收到通过所述外部装置发出的应用数据:The controller is configured to, upon receiving application data transmitted via the external device: -识别由所述外部装置发送的所述应用数据,- Identify the application data sent by the external device. -根据所述数据识别的结果并且根据在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的特征参数来选择数据分析程序,- Select a data analysis program based on the results of the data identification and based on the characteristic parameters of the application within the framework of the external device sending data to the first main processor. -通过所选择的分析程序来分析所述应用数据,- Analyze the application data using the selected analysis program. -根据所述数据分析的结果来配置通知,所述通知关于提供给所述第一主处理器的所述应用数据的特性或内容,以及- Configure notifications based on the results of the data analysis, the notifications relating to the characteristics or content of the application data provided to the first main processor, and -向所述第二主处理器提供所述通知。- Provide the notification to the second main processor. 2.根据权利要求1所述的近场通信装置,被设计为根据下面的特征参数的至少一个来配置所述通知:2. The near-field communication device according to claim 1, wherein the notification is configured according to at least one of the following characteristic parameters: -在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符;以及- The identifier of the application within the framework of the external device sending data to the first main processor; and -通过其形成所述近场通信信道的技术;或者,-The technique by which the near-field communication channel is formed; or... -通过其形成所述近场通信信道的通信协议。- The communication protocol that forms the near-field communication channel. 3.根据权利要求1和2之一所述的近场通信装置,被配置为向所述第二主处理器提供通知,该通知包括:在应用数据中存在的数据或关于在所述应用数据中存在的数据的信息项。3. The near-field communication device according to any one of claims 1 and 2, configured to provide a notification to the second main processor, the notification including: data present in application data or information items about data present in the application data. 4.根据权利要求1至2之一所述的近场通信装置,被配置为向所述第二主处理器提供通知,该通知包含所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符。4. The near-field communication device according to any one of claims 1 to 2, configured to provide a notification to the second main processor, the notification including an identifier of the application in the framework of the external device sending data to the first main processor. 5.根据权利要求1和2之一所述的近场通信装置,被配置为通过一系列识别掩码通过下述方式来识别所述应用数据:将每一个掩码都与所述应用数据作比较,直到找到与所述数据对应的掩码。5. The near-field communication device according to any one of claims 1 and 2, configured to identify the application data by means of a series of identification masks in such a way that each mask is compared with the application data until a mask corresponding to the data is found. 6.根据权利要求1和2之一所述的近场通信装置,被配置为通过下述方式来分析所述应用数据:将所述应用数据与形成所选择的分析程序或包括在所选择的分析程序中的数据掩码进行组合。6. The near-field communication device according to any one of claims 1 and 2, configured to analyze the application data by combining the application data with a data mask that forms a selected analysis program or is included in the selected analysis program. 7.根据权利要求1和2之一所述的近场通信装置,其中,所述应用数据是在ISO 7816标准的含义内的命令。7. The near-field communication device according to any one of claims 1 and 2, wherein the application data is a command within the meaning of the ISO 7816 standard. 8.根据权利要求1和2之一所述的近场通信装置,被配置为:8. The near-field communication device according to any one of claims 1 and 2, configured as follows: -向所述外部装置提供由所述第一主处理器发送的应用数据,- Provide the external device with application data sent by the first main processor. -向所述第二主处理器提供与由所述第一主处理器发送的所述应用数据的特性或内容相关的通知;并且- Provide the second main processor with a notification related to the characteristics or content of the application data sent by the first main processor; and -根据所述特征参数来配置所述通知。Configure the notification based on the aforementioned feature parameters. 9.一种在近场通信装置中实施的近场通信方法,所述近场通信装置包括通信接口电路、控制器、存储器和通信端口,并且被连接到第一主处理器和第二主处理器,所述方法包括以下步骤:9. A near-field communication method implemented in a near-field communication device, the near-field communication device including a communication interface circuit, a controller, a memory, and a communication port, and connected to a first main processor and a second main processor, the method comprising the following steps: -经由所述通信接口电路在外部装置和近场通信装置之间建立近场通信信道;- A near-field communication channel is established between the external device and the near-field communication device via the communication interface circuit; -向所述近场通信装置的所述第一主处理器提供由所述外部装置发送的应用数据;- Provide the first main processor of the near-field communication device with application data sent by the external device; 所述方法进一步包括以下步骤:The method further includes the following steps: 一旦接收到通过所述外部装置发出的应用数据:Once application data is received via the external device: -识别由所述外部装置发送的所述应用数据,- Identify the application data sent by the external device. -根据所述数据识别的结果并且根据在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的特征参数来选择数据分析程序,- Select a data analysis program based on the results of the data identification and based on the characteristic parameters of the application within the framework of the external device sending data to the first main processor. -通过所选择的分析程序来分析所述应用数据,- Analyze the application data using the selected analysis program. -根据所述数据分析的结果来配置通知,所述通知关于提供给所述第一主处理器的所述应用数据的特性或内容,以及- Configure notifications based on the results of the data analysis, the notifications relating to the characteristics or content of the application data provided to the first main processor, and -向所述第二主处理器提供所述通知。- Provide the notification to the second main processor. 10.根据权利要求9所述的方法,其中,根据下面的特征参数的至少一个来配置所述通知:10. The method of claim 9, wherein the notification is configured according to at least one of the following characteristic parameters: -在所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符;以及- The identifier of the application within the framework of the external device sending data to the first main processor; and -通过其形成所述近场通信信道的无接触通信技术;或者,- A contactless communication technology that forms the near-field communication channel; or... -通过其形成所述近场通信信道的无接触通信协议。- A contactless communication protocol that forms the near-field communication channel. 11.根据权利要求9和10之一所述的方法,其中,向所述第二主处理器提供的所述通知包括:在应用数据中存在的数据或关于在所述应用数据中存在的数据的信息项。11. The method according to any one of claims 9 and 10, wherein the notification provided to the second main processor comprises: data present in the application data or information items about data present in the application data. 12.根据权利要求9和10之一所述的方法,包括以下步骤:一旦接收到由所述外部装置发送并且被提供到所述第一主处理器的应用选择命令,就向所述第二主处理器提供通知,该通知包含所述外部装置向所述第一主处理器发送数据的框架中的所述应用的标识符。12. The method according to any one of claims 9 and 10, comprising the step of: upon receiving an application selection command sent by the external device and provided to the first main processor, providing a notification to the second main processor, the notification containing an identifier of the application in the framework of data sent by the external device to the first main processor. 13.根据权利要求9和10之一所述的方法,包括:根据所述应用的至少一个特征参数来使用路由和通知表,所述通知表指定了所述第一主处理器和所述第二主处理器。13. The method according to any one of claims 9 and 10, comprising: using a routing and notification table based on at least one characteristic parameter of the application, the notification table specifying the first main processor and the second main processor.
HK16101824.2A 2012-11-14 2013-11-14 Nfc device comprising configurable notification means and a communication method for the same HK1214065B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
FR1260850 2012-11-14
FR1260850A FR2998121B1 (en) 2012-11-14 2012-11-14 NFC DEVICE COMPRISING CONFIGURABLE NOTIFICATION MEANS
PCT/FR2013/052742 WO2014076427A1 (en) 2012-11-14 2013-11-14 Nfc device comprising configurable notification means

Publications (2)

Publication Number Publication Date
HK1214065A1 HK1214065A1 (en) 2016-07-15
HK1214065B true HK1214065B (en) 2021-02-26

Family

ID=

Similar Documents

Publication Publication Date Title
CN104854883B (en) NFC device including configurable notification component and communication method thereof
US10902411B2 (en) Host-formatted select proximity payment system environment response
US11334862B2 (en) Terminal transaction method, and terminal
CN205407821U (en) A near field communication device
US11120424B2 (en) Systems and methods for providing near field communications
US10397276B2 (en) Secure element management method and terminal
KR101788691B1 (en) Method for realizing selection of security unit in near field communication, mobile terminal and pos machine
CN101681442A (en) Dynamic Programmable RFID Transponder
JP6516133B2 (en) Communication device and communication system
CN105592403B (en) NFC-based communication device and method
CN104685520A (en) Method for protecting sensitive data transmitted in an NFC system
CN103414497B (en) For communication between electronic by the control method forwarded and corresponding equipment
HK1214065B (en) Nfc device comprising configurable notification means and a communication method for the same
CN117997382A (en) Intelligent card selecting method and device and electronic equipment
CN106462845B (en) A configuration method and terminal of a non-contact front end
EP4030632A1 (en) Multi-use near field communication front end on a point of sale system
CN116720859A (en) Transaction method and configuration method of hard wallet, hard wallet and intelligent terminal
JP2008129822A (en) Communication system that enables communication based on individual authentication
HK1224879A (en) Nfc-based communication device and method
HK1224879A1 (en) Nfc-based communication device and method
HK1224879B (en) Nfc-based communication device and method
HK1186552A (en) Security information interactive system, device and method based on a spreading parameter set