WO2016049852A1 - 一种信息处理方法及nfc终端 - Google Patents

一种信息处理方法及nfc终端 Download PDF

Info

Publication number
WO2016049852A1
WO2016049852A1 PCT/CN2014/087945 CN2014087945W WO2016049852A1 WO 2016049852 A1 WO2016049852 A1 WO 2016049852A1 CN 2014087945 W CN2014087945 W CN 2014087945W WO 2016049852 A1 WO2016049852 A1 WO 2016049852A1
Authority
WO
WIPO (PCT)
Prior art keywords
aid
command
value
response message
nonvolatile memory
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.)
Ceased
Application number
PCT/CN2014/087945
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2014/087945 priority Critical patent/WO2016049852A1/zh
Priority to US15/515,576 priority patent/US9992616B2/en
Priority to EP14903253.4A priority patent/EP3203645B1/en
Priority to CN201480075753.7A priority patent/CN106031050B/zh
Publication of WO2016049852A1 publication Critical patent/WO2016049852A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/20Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by the transmission technique; characterised by the transmission medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/30Security of mobile devices; Security of mobile applications
    • H04W12/35Protecting application or service provisioning, e.g. securing SIM application provisioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3278RFID or NFC payments by means of M-devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/45Security arrangements using identity modules using multiple identity modules

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an information processing method and an NFC terminal.
  • the NFC terminal includes a near field communication controller (English: Near Field Communication Controller; NFCC for short), an NFC antenna, and at least one security unit (English: Secure Element; SE: abbreviation).
  • NFCC Near Field Communication Controller
  • SE Secure Element
  • an NFC terminal can contain multiple SEs, and multiple non-contact applications can be installed in each SE.
  • each non-contact application usually has an application identifier (English: Application Identification; abbreviation: AID).
  • AID Application Identification
  • the NFC terminal enters the RF field of the NFC card reader, the NFC antenna generates an induced current, and the NFCC connected to the NFC antenna receives the contactless application selection command sent by the NFC card reader.
  • the device host English: Device Host; DH
  • the mapping between the AID and the SE and other routing information are configured to the NFCC. in. In this way, the NFCC can forward the command to the correct SE and select the correct contactless application.
  • the method for the DH to configure routing information to the NFCC is to provide a method for statically reporting the AID of the contactless application by using the companion application of the contactless application and the configuration file written to the NFC terminal.
  • the non-contact application is installed in the SE
  • the companion application of the non-contact application is installed to the NFC terminal
  • the companion application includes a configuration file
  • the configuration file indicates the AID of the contactless application
  • the application manager is refreshed
  • the partner application is found, then the AID in the profile in the companion application is obtained and configured into the NFCC.
  • this method is not flexible enough. For a contactless application without a companion application, even if it is installed to the SE, the terminal cannot obtain the AID.
  • the existing technology has the drawback that the NFC terminal cannot obtain the non-contact in the SE in real time.
  • the AID used.
  • the embodiment of the present invention provides an information processing method and an NFC terminal, which are used to solve the technical problem that the NFC terminal in the prior art cannot obtain the AID of the non-contact application in the SE in real time, and provides an NFC terminal to obtain the SE in real time.
  • the technical solution of the AID of the contactless application enables the NFC terminal to obtain the AID of the contactless application in the SE in real time, thereby making the DH of the NFC terminal more reasonable and effective for the configuration of the NFCC routing table.
  • a first aspect of the embodiments of the present invention provides an information processing method, where the method includes:
  • the obtaining an application identifier AID of the contactless application in the first SE includes:
  • Parsing the response message of the first command obtaining a first global update counter GUC value, where the first GUC value is a number of times that all non-contact applications in the first SE are updated;
  • the first GUC value is different from the second GUC value, obtaining a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value is a value of the NFC terminal.
  • the method further includes:
  • the method further includes:
  • the obtaining an application identifier AID of the contactless application in the first SE includes:
  • the method further includes:
  • the saving the third AID and the non-volatile memory of the NFC terminal After all AIDs are compared the method further includes:
  • the third AID is the same as an AID saved in the nonvolatile memory, comparing the first update counter UC value with a second UC value, the first UC value having the third AID The number of times the non-contact application is updated, the second UC value being the number of times the non-contact application having the third AID saved in the non-volatile memory is updated;
  • a second aspect of the present invention provides an information processing method, the method comprising:
  • An application identifier AID of the contactless application within the first security unit SE is obtained, the first SE being an SE communicating with the server within the near field communication NFC terminal.
  • the obtaining the AID of the contactless application in the first SE includes:
  • the application change notification information is parsed to obtain an AID in the application change notification information.
  • the obtaining the AID of the contactless application in the first SE includes:
  • Parsing the response message of the first command obtaining a first global update counter GUC value, where the first GUC value is a number of times that all non-contact applications in the first SE are updated;
  • the first GUC value is different from the second GUC value, obtaining a first AID
  • the first AID For the AID in the response message of the first command
  • the second GUC value is the number of times that all non-contact applications in the first SE saved in the non-volatile memory of the NFC terminal are updated.
  • the obtaining the AID of the contactless application in the first SE includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the saving the third AID and the non-volatile memory of the NFC terminal After the AID is compared the method further includes:
  • the third AID is the same as an AID saved in the nonvolatile memory, comparing the first update counter UC value with a second UC value, the first UC value having the third AID The number of times the non-contact application is updated, the second UC value being the number of times the non-contact application having the third AID saved in the non-volatile memory is updated;
  • a third aspect of the present invention provides a near field communication NFC terminal, including:
  • a security unit SE interface configured to connect the SE and the NFC terminal
  • a non-volatile memory for storing an application identifier AID of the contactless application in the SE
  • a processor connected to the nonvolatile memory, the SE interface, and the TCP port by a bus, for:
  • the processor is further configured to:
  • Parsing the response message of the first command obtaining a first global update counter GUC value, where the first GUC value is a number of times that all non-contact applications in the first SE are updated;
  • the first GUC value is different from the second GUC value, obtaining a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value is a value of the NFC terminal.
  • the processor is further configured to: after obtaining the first AID, the first AID Comparing with all AIDs stored in the non-volatile memory;
  • the processor is further configured to:
  • the second command is used to query a lifecycle state of the first AID, and receive a response message of the second command sent by the first SE;
  • the processor is further configured to:
  • the processor is further configured to:
  • the processor is further configured to:
  • the third AID After comparing the third AID with all AIDs stored in the non-volatile memory of the NFC terminal, if the third AID is the same as an AID saved in the non-volatile memory, the first The update counter UC value is compared with a second UC value, the first UC value being the number of times the non-contact application having the third AID is updated, the second UC value being stored in the non-volatile memory The number of times the contactless application having the third AID is updated;
  • the processor is further configured to:
  • An application identifier AID of the contactless application within the first security unit SE is obtained, the first SE being an SE communicating with the server within the near field communication NFC terminal.
  • the processor is further configured to:
  • the application change notification information is parsed to obtain an AID in the application change notification information.
  • the processor is further configured to:
  • the first GUC value is the number of times that all non-contact applications in the first SE are updated
  • the first GUC value is different from the second GUC value, obtaining a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value is a value of the NFC terminal.
  • the processor is further configured to:
  • the processor is further configured to:
  • the processor is further configured to:
  • the second command is used to query a lifecycle state of the first AID, and receive a response message of the second command sent by the first SE;
  • the processor is further configured to:
  • the processor is further configured to:
  • the second command is used to query a lifecycle state of the first AID, and receive a response message of the second command sent by the first SE;
  • the processor is further configured to:
  • the processor is further configured to:
  • the third AID After comparing the third AID with all AIDs stored in the non-volatile memory of the NFC terminal, if the third AID is the same as an AID saved in the non-volatile memory, the first The update counter UC value is compared with a second UC value, the first UC value is the number of times the non-contact application having the third AID is updated, and the second UC value is the non-easy The number of times the non-contact application having the third AID saved in the memory is updated;
  • the state of the TCP connection established by the at least one security unit SE in the NFC terminal of the near field communication through the transmission control protocol TCP port of the NFC terminal is detected; when the state of the TCP connection is detected as disconnected, The SE corresponding to the TCP port disconnecting the TCP connection is determined in the at least one SE; and the application identifier AID of the contactless application in the SE corresponding to the TCP port disconnecting the TCP connection is obtained. Or receiving application change notification information sent by the server; obtaining an application identifier AID of the contactless application in the SE communicating with the server in the NFC terminal.
  • the state of the TCP connection between the NFC terminal and the server is changed to the disconnected state, or the application change notification message sent by the server is received by the NFC terminal as a trigger condition, and the DH of the triggering NFC terminal is different according to the trigger condition.
  • the AID in the SE corresponding to the TCP port disconnecting the TCP connection or the AID in the SE communicating with the server is obtained in a different manner.
  • the DH real-time obtains the AID in the SE, which makes the DH of the NFC terminal more reasonable and effective for the configuration of the NFCC routing table.
  • FIG. 1 is a structural diagram of a possible communication system suitable for inventing an information processing method in the embodiment
  • FIG. 2 is a flowchart of an information processing method according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of a method for obtaining an application identifier AID of a contactless application in a first SE according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of another method for obtaining an application identifier AID of a contactless application in a first SE according to Embodiment 1 of the present invention
  • FIG. 5 is a detailed flowchart of an information processing method according to a first mode in Embodiment 1 of the present invention.
  • FIG. 6 is a detailed flowchart of an information processing method according to a first mode in Embodiment 1 of the present invention.
  • FIG. 7 is another flowchart of an information processing method according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of an NFC terminal according to Embodiment 3 of the present invention.
  • the embodiment of the present invention provides an information processing method and an NFC terminal, which are used to solve the technical problem that the NFC terminal in the prior art cannot obtain the AID of the non-contact application in the SE in real time, and provides an NFC terminal to obtain the SE in real time.
  • the technical solution of the AID of the contactless application enables the NFC terminal to obtain the AID of the contactless application in the SE in real time, thereby making the DH of the NFC terminal more reasonable and effective for the configuration of the NFCC routing table.
  • the state of the TCP connection established by the at least one security unit SE in the NFC terminal of the near field communication through the transmission control protocol TCP port of the NFC terminal is detected; when the state of the TCP connection is detected as disconnected, The SE corresponding to the TCP port disconnecting the TCP connection is determined in the at least one SE; and the application identifier AID of the contactless application in the SE corresponding to the TCP port disconnecting the TCP connection is obtained. Or receiving application change notification information sent by the server; obtaining an application identifier AID of the contactless application in the SE communicating with the server in the NFC terminal.
  • the state of the TCP connection between the NFC terminal and the server is changed to
  • the open state or the NFC terminal receives the application change notification message sent by the server as a trigger condition, and the DH that triggers the NFC terminal obtains the AID in the SE corresponding to the TCP port disconnected from the TCP connection or obtains the method according to different trigger conditions.
  • the DH real-time obtains the AID in the SE, which makes the DH of the NFC terminal more reasonable and effective for the configuration of the NFCC routing table.
  • FIG. 1 is a schematic diagram of a possible communication system applicable to the information processing method in the embodiment of the present invention, including: NFC (English: Near Field Communication; : NFC) terminal 10 and NFC card reader 11.
  • NFC English: Near Field Communication
  • NFC card reader 11 NFC card reader
  • the NFC terminal 10 includes:
  • DH Device Host 101
  • CPU Central Progress Unit
  • DH is a responsible management.
  • the NFC Forum certifies the operating environment of the device and all its peripheral circuits, and is used to manage the initialization, configuration, and power supply of all peripheral circuits and devices, including the near field communication controller.
  • DH usually runs a common operating system, such as BlackBerry operating system (the operating system used by BlackBerry's BlackBerry in Canada), Windows Phone operating system (Microsoft's operating system for mobile devices), Android operating system (a Linux-based free and open source operating system, Mainly used in mobile devices), iOS operations System (mobile operating system developed by Apple), etc.;
  • BlackBerry operating system the operating system used by BlackBerry's BlackBerry in Canada
  • Windows Phone operating system Microsoft's operating system for mobile devices
  • Android operating system a Linux-based free and open source operating system, Mainly used in mobile devices
  • iOS operations System mobile operating system developed by Apple
  • the security unit (English: Secure Element; SE) interface 102 is set in the NFC terminal.
  • the most common SE is integrated on the Subscriber Identity Module (SIM) card.
  • SIM Subscriber Identity Module
  • the SIM card is inserted through the SE interface.
  • the SE is part of the SIM card, and the SE is connected to the NFCC through a pin of the SIM card, and the SE can communicate with the DH through the NFCC. It should be noted that the SE is not limited to being integrated on the SIM card.
  • the SE runs a lightweight and different operating system than DH, such as Oracle's Java Card platform (including the JavaCard platform, the Java Card runtime environment, JCRE and Java Card API), so between SE and DH
  • the communication is communication across operating systems, and the application protocol data unit (English: Application Protocol Data Unit, referred to as: ADPU) carries information.
  • ADPU refers to a data unit with a fixed format for communication within an SE application or security domain with an SE external entity.
  • the APDU commands related to the embodiments of the present invention are defined by the Global Platform Card Specification V2.2.1 specification and related amendments (ie, amendment C: Contactless Services, contactless services).
  • the SE is a microcontroller with anti-content tampering capabilities that provides a secure storage and operating environment for contactless applications installed on the SE.
  • SE is responsible for the secure storage and operation of key transaction data, ensuring that sensitive transactions are securely authenticated and non-repudiation, and also supports multi-application dynamic management and operational security.
  • common SEs include: UICC SE (English: Universal Integrated Circuit Card with Secure Element; Chinese: Universal Integrated Circuit with Integrated Security Unit), ⁇ SD SE (English: microSD Secure Element; Chinese: Micro SD Card Type) SE) and eSE (English: embedded Secure Element; Chinese: SE embedded in the terminal board).
  • Near field communication controller 103 (English: Near Field Communication Controller; NFCC for short), communicates with DH through NCI (English: NFC Controller Interface; Chinese: Near Field Communication Controller Interface), and SE generally adopts single line protocol (English: Single Wire Protocol (SWP) interface connection and communication.
  • SWP Single Wire Protocol
  • NFCC is the logical entity responsible for sending and receiving data through the NFC radio interface.
  • NFCC can send and receive data through the antenna, when the NFC terminal enters NFC read
  • the contactless application (English: Contactless Application; CA: abbreviation)
  • CA contactless Application
  • the SWP interface is activated, so that the NFC card reader can communicate with the non-contact application in the SE
  • the contactless application (English: Contactless Application; CA: abbreviation)
  • CA contactless Application
  • the contactless application Refers to an application that is installed on an SE or NFC terminal to communicate with the outside world through a contactless interface (NFC interface).
  • application identifiers (English: Application Identification; AID) are used to identify different CAs. The AID is unique and not duplicated in an SE environment.
  • the AID used in the present invention refers to an AID defined and referenced in the GP (Global Platform) specification, and has a length of 5-16 bytes, and the AID conforms to ISO (English: International Standard Organization; Chinese: International Organization for Standardization)/IEC (English) : International Electrotechnical Commission Chinese: International Electrotechnical Commission) 7816-52004 and ETSI (English: European Telecommunications Standards Institute; Chinese: European Telecommunications Standards Institute) TS 101220V3.0.0 (2000-05) specification, including 5 bytes of RID (English: Registered application provider Identifier; Chinese: application provider registration identifier) and up to 11 bytes of PIX (English: Proprietary application Identifier eXtension; Chinese: business application identifier extension) two parts, of which RID mandatory field, and PIX Is an optional field.
  • the information processing method provided by the embodiment of the present invention is described below from the NFC terminal side.
  • the NFC terminal establishes a TCP connection with the server by using a fixed set of TCP ports.
  • each SE in the NFC terminal establishes a TCP connection with the server by using a preset TCP port, for example, a secure hypertext.
  • Transmission Protocol English: Hyper Text Transfer Protocol over Secure Socket Layer; HTTPS) port number 443, or WAP-push-http (HTTP-based wap push) port number 4035, or wap-push-https (https based on HTTPS) Push) Port number 4036, or other vendor-defined port number.
  • FIG. 2 is a flowchart of an information processing method according to Embodiment 1 of the present invention. Includes the following steps:
  • Step 21 Monitor a state of a TCP connection established by the at least one security unit SE in the near field communication NFC terminal with the server through the transmission control protocol TCP port of the NFC terminal;
  • Step 22 When it is detected that the state of the TCP connection is disconnected, determining a first SE from the at least one SE, the first SE is an SE corresponding to a TCP port disconnecting the TCP connection;
  • Step 23 Obtain an application identifier AID of the contactless application in the first SE.
  • At least one SE is installed in the NFC terminal, and each SE establishes a TCP connection with a server through a TCP port in the NFC terminal, and multiple SEs can establish a TCP connection with the server by using the same TCP port, respectively.
  • the SE establishes a TCP connection with a different server, and the SE communicates with the server through a TCP connection.
  • the remote server sends a content management command through a TCP connection, such as a command to install a contactless application or a command to update an application's configuration parameters to the SE, after which the SE executes the received command and sends it to the remote server under a specific configuration.
  • the command performs a successful confirmation message, and then disconnects from the server.
  • the establishment and disconnection of the connection, especially the disconnection, is related to the new application installation or the change of the application state in the SE, so the NFC terminal is related.
  • the DH can monitor the status of the TCP connection. When the status of the TCP connection is disconnected, it indicates that the non-contact application is newly installed in the SE corresponding to the TCP port disconnecting the TCP connection, or the TCP port disconnecting the TCP connection is corresponding.
  • the lifecycle state of the contactless application within the SE has changed.
  • the SE corresponding to the TCP port disconnecting the TCP connection is referred to as a first SE.
  • the SE When the DH detects that the status of the TCP connection is disconnected, the SE establishes a TCP connection with the server by using the preset TCP port number, so the identifier of the first SE can be determined according to the correspondence between the preset TCP port number and the SE.
  • the SE ID, SE ID refers to the ID assigned by the NFCC to each SE, where the SE ID is equivalent to the NFC Execution Environment NFCEE ID in the NFC Forum specification.
  • the corresponding TCP port number and the Internet Protocol (English: Internet Protocol; IP address) of the remote server can be compared with the SE.
  • the relationship determines the identifier SE ID of the first SE.
  • the IP address of the server is obtained and saved during an initialization process performed when the NFC terminal first activates the SE.
  • the monitor can check whether the IP address of the remote server that establishes the connection using the port number is the same as the IP address of the remote server that was resolved when the SE was initialized. In order to eliminate interference, there is no SE and remote service at this time. Communication.
  • the application identifier AID of the contactless application in the first SE can be obtained in the following two ways:
  • FIG. 3 is a flowchart of a method for obtaining an application identifier AID of a contactless application in a first SE according to Embodiment 1 of the present invention. Includes the following steps:
  • Step 31 Send a first command to the first SE, where the first command is used to query the number of times that all non-contact applications in the first SE are updated, and receive the first a command response message;
  • Step 32 Parsing the response message of the first command, and obtaining a first global update counter GUC value, where the first GUC value is the number of times that all non-contact applications in the first SE are updated;
  • Step 33 When the first GUC value is different from the second GUC value, obtain a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value is the The number of times that all non-contact applications in the first SE saved in the non-volatile memory of the NFC terminal are updated.
  • FIG. 4 is a flowchart of another method for obtaining an application identifier AID of a contactless application in a first SE according to Embodiment 1 of the present invention. Includes the following steps:
  • Step 41 Send a third command to the first SE, where the third command is used to obtain an AID of all contactless applications in the first SE, and receive the third command sent by the first SE. Reply message
  • Step 42 Parsing the response message of the third command to obtain a third AID, where the third AID is an AID in the response message of the third command.
  • the SELECT CRS APP command is first sent to the first SE, where the CRS (English: Contactless Registry Service) is a management application in the SE, defined by the Global Platform.
  • the AID of the CRS application is 'A00000015143525300'. Therefore, the SELECT 'A00000015143525300' command is sent to the SE corresponding to the TCP port disconnecting the TCP connection.
  • the format of the SELECT CRS APP command is as shown in Table 1. Show.
  • CRS refers to a function provided by the software in the SE to manage actions such as installation, update, deletion, activation, deactivation, and priority modification related to contactless applications, and application-related contactless communication protocols, CRS. It also includes an application programming interface (English: Application Programming Interface; Chinese: API) provided to the authorized entity.
  • the SE external entity accesses the CRS function through the CRS application (CRS APP).
  • the first SE sends a response message of the SELECT CRS APP command to the DH, and the DH determines whether the response message of the received SELECT CRS APP command is correct. If it is correct, it confirms that the CRS application is selected.
  • the format of the response message of the SELECT CRS APP command is shown in Table 2.
  • the status words SW1 and SW2 must be "9000" to be considered as a correct response. Otherwise, if the status word takes other values, that is, other values other than "9000", the command response is abnormal and abnormal processing is performed.
  • step 31 may be performed: sending a first command to the first SE, where the first command is used to query the number of times that all non-contact applications in the first SE are updated, and receive the The response message of the first command sent by the first SE, that is, the DH sends a first command to the first SE, where the first command is used to query the number of times that all non-contact applications in the first SE are updated.
  • the first command may be a GET DATA command
  • the response message of the first command may be a reply message of the GET DATA command. It should be noted that the first command is not limited to the GET DATA command, and the response message of the first command is not limited to the response message of the GET DATA command.
  • the response message of the first command is a response message of the GET DATA command.
  • the operating system inside the first SE distributes the GET DATA command to the CRS application in the first SE, and the CRS application generates a response message of the GET DATA command and sends it to the DH.
  • the format of the GET DATA command is shown in Table 3.
  • the GET DATA command The format of the response message is shown in Table 4.
  • the response message of the GET DATA command in the prior art is extended.
  • the format of the response message of the GET DATA command in the prior art is shown in Table 5.
  • At least one AID number TLV is added (Tag: 'xx', Length: Var, Value Description: The number of APPs installed after SE responding to the last GET DATA command and APPs whose The state has been changed), which is used to inform the DH that sends the GET DATA command that the first SE has newly installed a number of contactless applications and how many non-contact applications have changed state before the GET DATA command is received. If there are more than 0 contactless applications with changes in the application state, then the AID number of TLVs is followed by at least one AID TLV. Specifically, the AID of the first SE, the AID of the second SE, the AID of the second SE, the AID of the nth SE, which are newly installed or whose application state has changed, are listed in order after the AID number TLV.
  • TLV (English: Type-Length-Value; Chinese: Type/Length/Data Triplet) is a structure used when transmitting information by using APDU, and has a fixed length Tag/Type field and a fixed length Length field. Consisting of variable length Value fields, the TLV format follows the ISO/IEC 8825-1:2002 standard.
  • the CREL is a software inside the SE that listens to the state changes of the associated contactless application. Changes include application updates, deletions, activations, and deactivations.
  • Changes include application updates, deletions, activations, and deactivations.
  • a CREL application For each contactless application installed in the SE, a CREL application must be set up during installation.
  • the role of the CREL application is to monitor the state change of the contactless application, so that when the server manages the contactless application and causes the application state to change, the CREL application call is triggered, and the AID of the contactless application and the change of the application state are recorded in the CREL.
  • the data of the CREL record is read when the response message of the GET DATA command is constructed. In the first embodiment of the present invention, only the AID is read, and of course, the AID and the operation type for each AID, such as application installation, deletion, configuration modification, etc., can also be read. .
  • the DH may perform the step 32: parsing the response message of the first command to obtain a first global update counter GUC value, where the first GUC value is within the first SE The number of times all contactless applications have been updated.
  • the response message of the first command is a response message of the GET DATA command.
  • the response message of the GET DATA command is parsed, and the global update counter GUC value of the first SE is obtained, which is convenient for description.
  • the GUC value of the first SE is referred to as the first GUC value.
  • the GUC is used to identify the number of updates of all non-contact applications in the SE, and the application state of any contactless application changes (application installation, deletion, configuration modification, etc.), or the contactless application update performs an increment of 1 on the counter. .
  • the first GUC value is then compared with the GUC value of the first SE stored in the non-volatile memory of the NFC terminal.
  • the GUC value of the first SE stored in the non-volatile memory of the NFC terminal is referred to as the first A GUC value in which the GUC value stored in the nonvolatile memory is initialized when the SE is first activated, and is updated according to the reply message of the GET DATA command each time the GET DATA command is called.
  • step 33 is performed: when the first GUC value is different from the second GUC value, obtaining a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value The number of times the update occurs for all non-contact applications in the first SE saved in the non-volatile memory of the NFC terminal. That is, if the obtained GUC value is different from the saved GUC value, the AID in the response message of the first command is obtained.
  • the response message of the first command is a response message of the GET DATA command.
  • the message contains the AID in which the application state changes in the first SE, that is, the configuration or the newly installed AID is modified, so the AID carried in the response message of the GET DATA command obtained here is not equal to all in the first SE. AID.
  • FIG. 5 is a detailed flowchart of an information processing method according to a first embodiment of the present invention. Step 21 - Step 22 and Step 31 - Step 38 are included. As shown in FIG. 5, after step 33 is performed, after obtaining the first AID, step 34 may be performed: comparing the first AID with all AIDs saved in the nonvolatile memory.
  • the response message of the first command is a response message of the GET DATA command.
  • the first AID is compared with all AIDs stored in the nonvolatile memory, and it is determined whether the first AID is a newly added AID or has been installed and the status is updated.
  • AID For the newly added AID, add a record to the AID list of the NFC terminal; for the non-added AID, that is, the AID that has been installed and the status is updated, query the lifecycle status.
  • step 35 or step 36-step 38 may be performed based on the comparison result.
  • Step 35 If the first AID is different from all AIDs stored in the nonvolatile memory, obtain an identifier SE ID of the first SE, and save at least the storage in the nonvolatile memory. Data records of the first AID and the SE ID;
  • Step 36 If the first AID is the same as an AID saved in the non-volatile memory, send a second command to the first SE, where the second command is used to query the life of the first AID. a periodic state, and receiving a response message of the second command sent by the first SE;
  • Step 37 Parse the response message of the second command, and obtain a lifecycle state of the first AID.
  • Step 38 Update a life cycle state of the first AID saved in the nonvolatile memory.
  • the response message of the first command is a response message of the GET DATA command.
  • the response message of the GET DATA command may have M AIDs, and M is an integer greater than or equal to 1. Take m from 1 to M in order, which will be the GET DATA command.
  • the mth AID in the response message is treated as the first AID, and the first AID is compared with all AIDs stored in the nonvolatile memory.
  • the first AID is not saved in the nonvolatile memory.
  • the first AID is the newly added AID.
  • the newly added AID it is necessary to save a new AID and a SE ID data record of the first SE in the nonvolatile memory. How many new AIDs are in the response message of the GET DATA command, and how many data records should be saved accordingly. Since the first AID is a newly added AID, a data record of the first AID and the SE ID of the first SE is saved in the nonvolatile memory.
  • the first AID In the process of comparing the first AID with all AIDs stored in the nonvolatile memory, if the first AID is the same as an AID held in the nonvolatile memory, the first AID has been saved in the nonvolatile memory. And the first AID is an AID in which the application state is updated.
  • the second command needs to be sent to the first SE, and the second command is used to query the lifecycle state of the first AID.
  • the second command may be a GET STATUS command having a first format
  • the response message of the second command may be a reply message having a GET STATUS command in a first format. It should be noted that the second command is not limited to the GET STATUS command having the first format, and the response message of the second command is not limited to the response message having the GET STATUS command of the first format.
  • the response message of the second command is a response message with the GET STATUS command of the first format
  • the format of the GET STATUS command having the first format is as shown in Table 6.
  • the format of the response message with the GET STATUS command in the first format is shown in Table 7.
  • Table 6 has the GET STATUS command in the first format
  • 'XXXX' represents the first AID. ‘##’ represents the length of the first AID.
  • the Application AID is the first AID included in the GET STATUS command with the first format
  • the Application Lifecycle State is the lifecycle state of the first AID included in the GET STATUS command with the first format.
  • the GET STATUS command having the first format is sent to the first SE, the first AID is filled in the 'XXXX', and the response message having the GET STATUS command in the first format is received.
  • the Application AID is the first AID, and the Application Lifecycle State is the lifecycle state of the first AID.
  • the lifecycle state includes: installed, locked, selectable, and app specific.
  • the installed and locked states are abnormal, selectable and app. Specific is normal.
  • the response message of the second command is a response message with a GET STATUS command of the first format, and parsing the response message with the GET STATUS command of the first format
  • the life of the AID of the application state update is updated with the life of the AID before the application state that has been saved in the nonvolatile memory is updated.
  • the cycle state is compared, if different, the lifecycle state of the AID is updated to the lifecycle state in the reply message with the GET STATUS command of the first format.
  • the response message of the GET STATUS command having the first format is parsed, and the life cycle state of the first AID can be obtained, and then The life cycle state of the first AID is compared with the life cycle state of the first AID before the application state that has been saved in the nonvolatile memory is updated, and if not, the life cycle state of the first AID is updated to have the first The lifecycle state in the response message of a formatted GET STATUS command.
  • the life cycle state of each AID in the AID whose application state is updated is obtained. That is to say, for each AID in the newly added AID, a response message with a second command to receive and parse the second command is sent to the SE corresponding to the TCP port disconnecting the TCP connection, and used to obtain the lifecycle state. .
  • the DH selects only the AID whose lifecycle state is the normal state to generate. Routing information to facilitate configuring the routing table to the NFCC at the appropriate time DH.
  • the appropriate timing may be when the user selects and activates a contactless application through the graphical user interface of the mobile phone, for example, the user opens the mobile wallet application, clicks to select a virtual bank card, and the AID of the bank card application is needed at this time.
  • Configured in the NFCC routing table you need to reconfigure the routing table; or an SE is removed, some AIDs are invalid, and the routing table of the NFCC needs to be refreshed.
  • the user manually disables the SE on a body, causing the AID in the SE to be temporarily unavailable. In this case, it is necessary to refresh the routing table and delete the routing entry corresponding to the AID in the disabled SE in the routing table.
  • the SELECT CRS APP command is first sent to the first SE.
  • the format of the SELECT CRS APP command is as shown in Table 1.
  • the first SE sends a response message of the SELECT CRS APP command to the DH, and the DH determines whether the response message of the received SELECT CRS APP command is correct. If it is correct, it confirms that the CRS application is selected.
  • the format of the response message of the SELECT CRS APP command is shown in Table 2.
  • the status words SW1 and SW2 must be "9000" to be considered as a correct response. Otherwise, if the status word takes other values, that is, other values other than "9000", the command response is abnormal and abnormal processing is performed.
  • step 41 may be performed: sending a third command to the first SE, where the third command is used to obtain an AID of all contactless applications in the first SE, and receive the first The response message of the third command sent by the SE. That is, the DH sends a third command to the first SE, and the third command is used to obtain the AIDs of all contactless applications in the first SE.
  • Table 8 has a GET STATUS command in the second format
  • the third command may be a GET STATUS command having a second format
  • the response message of the third command may be a reply message having a GET STATUS command in a second format. It should be noted that the third command is not limited to the GET STATUS command having the second format, and the response message of the third command is not limited to the response message having the GET STATUS command of the second format.
  • the response message of the third command is a response message with the GET STATUS command of the second format.
  • the operating system inside the first SE distributes the GET STATUS command in the second format to the CRS application in the first SE, and the CRS application generates a response message with the GET STATUS command in the second format, and sends the response message to the DH.
  • the format of the GET STATUS command having the second format is as shown in Table 8, and the format of the response message having the GET STATUS command in the second format is as shown in Table 9.
  • the Data Field carries all AIDs in the first SE and an update counter (English: Update Counter; UC) value of each AID.
  • Update Counter Edinburgh: Update Counter; UC
  • step 42 parse the response message of the third command to obtain a third AID, where the third AID is the AID in the response message of the third command.
  • the response message of the third command is a response message with a GET STATUS command of the second format.
  • the response message of the GET STATUS command having the second format shown in Table 9 includes all the AIDs in the first SE, among them, the AID in which the application state changes, and the AID in which the application state does not change. Therefore, the AID carried in the response message of the GET STATUS command having the second format obtained here is all AIDs in the first SE.
  • FIG. 6 is a detailed flowchart of an information processing method according to a second mode in the first embodiment of the present invention. Step 21 - Step 22 and Step 41 - Step 48 are included. As shown in FIG. 6 , in order to distinguish which AIDs in the obtained AIDs are new AIDs and which AIDs are AIDs in which the application state is updated, step 43 is performed to: perform the third AID and the nonvolatiles of the NFC terminal. All AIDs saved in memory are compared.
  • the response message of the third command is a response message with a GET STATUS command of the second format.
  • the third AID is compared with all AIDs stored in the nonvolatile memory, and it is determined whether the third AID is a newly added AID or has Installed and the status has an updated AID. For the newly added AID, add a record to the AID list of the NFC terminal; for the non-added AID, that is, the AID that has been installed and updated, the UC value is used to query the life cycle status and update the UC value.
  • step 44 or step 45-step 48 can be performed.
  • Step 44 If the third AID is different from all AIDs stored in the nonvolatile memory, obtain an identifier SE ID of the first SE, and save at least the storage in the nonvolatile memory. Determining a data record of the third AID and the SE ID;
  • Step 45 If the third AID is the same as an AID saved in the nonvolatile memory, And comparing the first update counter UC value with a second UC value, the first UC value is a number of times the non-contact application having the third AID is updated, and the second UC value is the non-volatile The number of times the non-contact application having the third AID saved in the memory is updated;
  • Step 46 If the first UC value is different from the second UC value, send a fourth command to the first SE, where the fourth command is used to query a life cycle state of the third AID, and Receiving a response message of the fourth command sent by the first SE;
  • Step 47 Parse the response message of the fourth command, and obtain a lifecycle state of the third AID.
  • Step 48 Update a life cycle state and a UC value of the third AID saved in the nonvolatile memory.
  • the response message of the third command is a response message with a GET STATUS command of the second format.
  • the response message of the GET STATUS command having the second format has M AIDs, and M is an integer greater than or equal to 1. Taking m from 1 to M in turn, the mth AID in the response message of the GET STATUS command having the second format is regarded as the third AID, and the third AID is compared with all AIDs held in the nonvolatile memory.
  • the third AID is not saved in the nonvolatile memory.
  • the third AID is the newly added AID.
  • the UC value of each AID is included in the response message of the GET STATUS command in the second format
  • the UC value of the newly added AID can also be saved in the data record, so as to monitor the application state of the contactless application with the AID. Variety. How many new AIDs are in the response message of the GET STATUS command with the second format, and how many data records are saved accordingly.
  • the third AID is a new AID
  • a data record of the third AID and the SE ID of the first SE is stored in the nonvolatile memory.
  • the UC value of the third AID can also be saved in the data record, so as to monitor the non-third AID.
  • Contact application changes in the application state.
  • the third AID In the process of comparing the third AID with all AIDs stored in the nonvolatile memory, if the third AID is the same as an AID held in the nonvolatile memory, the third AID has been saved in the nonvolatile memory. And the third AID is an AID in which the application state is updated.
  • the UC value of the third AID needs to be compared with the UC value of the third AID stored in the nonvolatile memory, and if the UC value is different, Sending a fourth command to the first SE, where the fourth command is used for the lifecycle state of the third AID, receiving and parsing the fourth response message, thereby obtaining an application state update and the UC value is different from the UC value in the nonvolatile memory.
  • the life cycle state of the third AID when the third AID is an AID in which the application state is updated, the UC value of the third AID needs to be compared with the UC value of the third AID stored in the nonvolatile memory, and if the UC value is different, Sending a fourth command to the first SE, where the fourth command is used for the lifecycle state of the third AID, receiving and parsing the fourth response message, thereby obtaining an application state update and the UC value is different from the UC value in the nonvolatile memory.
  • the fourth command may be a GET STATUS command having a first format
  • the response message of the fourth command may be a response message having a GET STATUS command in a first format.
  • the fourth command is not limited to the GET STATUS command having the first format
  • the response message of the fourth command is not limited to the response message having the GET STATUS command of the first format.
  • the format of the GET STATUS command having the first format is as shown in Table 6, and the format of the response message having the GET STATUS command in the first format is as shown in Table 7.
  • the response message of the fourth command is a response message having the GET STATUS command in the first format.
  • the third AID is an AID in which the application state is updated and the UC value is different from the UC value in the nonvolatile memory
  • the GET STATUS command having the first format is transmitted to the first SE, and is filled at 'XXXX'
  • the third AID receives the response message of the GET STATUS command in the first format
  • the Application AID is the third AID
  • the Application Lifecycle State is the life cycle state of the third AID.
  • the response message of the fourth command is a response message having the GET STATUS command in the first format.
  • the lifecycle state of the AID in which the application state is updated is already AID before the application state saved in non-volatile memory is updated Comparing the lifecycle states, if different, updating the lifecycle state of the AID to the lifecycle state in the response message with the GET STATUS command of the first format, and updating the UC value of the AID to the GET with the first format
  • the third AID is an AID in which the application state is updated and the UC value is different from the UC value in the nonvolatile memory, the response message of the GET STATUS command having the first format is parsed, and the life cycle state of the third AID can be obtained.
  • the life cycle state of each AID in the AID in which the application state is updated but also the life cycle state of each AID in the newly added AID, and the UC value and the nonvolatile state are obtained.
  • the life cycle state of the AID with different UC values in the memory That is, for each AID in the newly added AID, and each AID having a UC value different from the UC value in the nonvolatile memory, a GET STATUS command having the first format is sent to the first SE, and the receiving is performed. And parse the response message with the GET STATUS command in the first format for obtaining the lifecycle state.
  • the format of the GET STATUS command having the first format is as shown in Table 6, and the format of the response message having the GET STATUS command of the first format is as shown in Table 7.
  • DH after obtaining the life cycle state of each AID in the newly added AID, and the life cycle state of each AID whose UC value is different from the UC value in the nonvolatile memory, DH only selects
  • the life cycle state is the normal state AID to generate routing information to facilitate configuring the routing table to the NFCC at the appropriate time DH.
  • an SE on the NFC terminal completes the installation or modification configuration of a contactless application
  • the card is installed, updated, and deleted.
  • the SE performs the non-contact application installation, lifecycle state modification, and deletion commands
  • the SE generally needs to report the successful execution of the command to the server.
  • the server learns that a contactless application is successfully installed or an application state of a contactless application is updated, and the server pushes an application change notification message to the DH of the NFC terminal.
  • FIG. 7 is another flowchart of an information processing method according to Embodiment 2 of the present invention. Includes the following steps:
  • Step 51 Receive application change notification information sent by the server.
  • Step 52 Obtain an application identifier AID of the contactless application in the first security unit SE, the first SE being an SE communicating with the server in the near field communication NFC terminal.
  • the application change notification message received by the DH of the NFC terminal has various forms.
  • the application change notification message when the server pushes the application change notification message to the DH of the NFC terminal by using the HTTP message, the application change notification message includes at least the message type, the AID of the newly installed contactless application, or the contactless application whose application status is updated.
  • the AID, the newly installed contactless application, or the SE ID of the SE where the contactless application whose application status is updated is located in the following three formats:
  • the application change notification message includes only the sending source, that is, the IP address of the server that sends the application change notification message. According to the correspondence between the IP address of the server and the SE, it can be determined which SE is newly installed. The application state of the contact application or contactless application has been updated.
  • the first SE that is, the SE communicating with the server in the near field communication NFC terminal may be first determined.
  • the application change notification message is parsed, or the application change notification message and the correspondence between the IP address of the server and the SE are used to determine the SE that communicates with the server, that is, the SE that reports the successful execution of the command to the server, and considers the server.
  • the contactless application is newly installed in the SE of the communication, or the application state of the contactless application in the SE communicating with the server has changed.
  • step 52 is performed.
  • the step 52 has at least three specific implementation manners:
  • the first specific implementation manner is: parsing the application change notification information, and obtaining an AID in the application change notification information.
  • the second specific implementation manner is: sending a first command to the first SE, where the first command is used to query the number of times that all non-contact applications in the first SE are updated, and receive the first SE sending The response message of the first command; parsing the response message of the first command, obtaining a first global update counter GUC value, where the first GUC value is updated by all non-contact applications in the first SE
  • the first AID is obtained when the obtained first GUC value is different from the second GUC value, the first AID is an AID in the response message of the first command, and the second GUC value is The number of times that all non-contact applications in the first SE stored in the non-volatile memory of the NFC terminal are updated.
  • the application change notification message can be directly parsed to obtain the AID in the first SE. Only reflected in the app change notification message The AID of the application state changes, so only the partial AID in the first SE, that is, the newly added AID and the AID whose lifecycle status is updated, is obtained, and all the AIDs in the first SE are not obtained.
  • the SE that is in communication with the server may be equivalent to the SE corresponding to the TCP port in the first embodiment, and the first command is sent. Obtain an AID in the response message of the first command, or send a third command to obtain an AID in the response message of the third command.
  • the application change notification message includes an AID in which the application state changes in the first SE, that is, the configuration or newly installed AID is modified, and is not equal to all AIDs in the first SE. Therefore, after obtaining the AID in the application change notification information, the following steps can also be performed:
  • the response message of the first command includes the AID in which the application state changes in the first SE, that is, the configuration or the newly installed AID is modified
  • the AID carried in the response message of the first command is not equal to the first All AIDs in the SE. So after getting the first AID, you can also perform the following steps:
  • the response message of the third command includes all the AIDs in the first SE, where there is an AID in which the application state changes, and an AID in which the application state does not change, after the third AID is obtained, the following steps may also be performed. :
  • the third AID is the same as an AID saved in the nonvolatile memory, comparing the first update counter UC value with a second UC value, the first UC value having the third AID The number of times the non-contact application is updated, the second UC value being the number of times the non-contact application having the third AID saved in the non-volatile memory is updated;
  • FIG. 8 is a schematic structural diagram of an NFC terminal according to Embodiment 3 of the present invention.
  • the NFC terminal 80 includes a processor 81, a bus 82, a nonvolatile memory 83, a security unit SE interface 102, and a transmission control protocol TCP port. 84.
  • the non-volatile memory 83 is configured to store an application identifier AID of the contactless application in the SE;
  • a security unit SE interface 102 configured to connect the SE and the NFC terminal
  • the processor 81 is connected to the nonvolatile memory 83, the SE interface 102, and the TCP port 84 via a bus for:
  • the processor 81 is further configured to:
  • Parsing the response message of the first command obtaining a first global update counter GUC value, where the first GUC value is a number of times that all non-contact applications in the first SE are updated;
  • the first GUC value is different from the second GUC value, obtaining a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value is a value of the NFC terminal.
  • the processor 81 is further configured to:
  • the processor 81 is further configured to:
  • the second command is used to query a lifecycle state of the first AID, and receive a response message of the second command sent by the first SE;
  • the processor 81 is further configured to:
  • the processor 81 is further configured to:
  • the processor 81 is further configured to:
  • the third AID After comparing the third AID with all AIDs stored in the non-volatile memory of the NFC terminal, if the third AID is the same as an AID saved in the non-volatile memory, the first The update counter UC value is compared with a second UC value, the first UC value being the number of times the non-contact application having the third AID is updated, the second UC value being stored in the non-volatile memory The number of times the contactless application having the third AID is updated;
  • the processor 81 is further configured to:
  • An application identifier AID of the contactless application within the first security unit SE is obtained, the first SE being an SE communicating with the server within the near field communication NFC terminal.
  • the processor 81 is further configured to:
  • the application change notification information is parsed to obtain an AID in the application change notification information.
  • the processor 81 is further configured to:
  • Parsing the response message of the first command obtaining a first global update counter GUC value, where the first GUC value is a number of times that all non-contact applications in the first SE are updated;
  • the first GUC value is different from the second GUC value, obtaining a first AID, where the first AID is an AID in the response message of the first command, and the second GUC value is a value of the NFC terminal.
  • the processor 81 is further configured to:
  • the processor 81 is further configured to:
  • the processor 81 is further configured to:
  • the second command is used to query a lifecycle state of the first AID, and receive a response message of the second command sent by the first SE;
  • the processor 81 is further configured to:
  • the processor 81 is further configured to:
  • the second command is used to query a lifecycle state of the first AID, and receive a response message of the second command sent by the first SE;
  • the processor 81 is further configured to:
  • the third AID and the non-volatile of the NFC terminal Compare all AIDs saved in the memory;
  • the processor 81 is further configured to:
  • the third AID After comparing the third AID with all AIDs stored in the non-volatile memory of the NFC terminal, if the third AID is the same as an AID saved in the non-volatile memory, the first The update counter UC value is compared with a second UC value, the first UC value being the number of times the non-contact application having the third AID is updated, the second UC value being stored in the non-volatile memory The number of times the contactless application having the third AID is updated;
  • bus 82 may include any number of interconnected buses and bridges, and bus 82 will include one or more processors and nonvolatiles represented by processor 81.
  • the various circuits of the memory 83 are connected together.
  • the bus 82 can also connect various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art, and therefore, will not be further described herein.
  • the processor 81 is responsible for managing the bus 82 and the usual processing, and the non-volatile memory 83 can be used to store data used by the processor 81 when performing operations.
  • the NFC terminal 80 of the third embodiment may be the NFC terminal in FIG. 1 , wherein the NFC terminal has been described in detail above, and details are not described herein again.
  • the NFC terminal in the third embodiment can perform various changes and specific examples in the information processing method in the foregoing embodiments of FIG. 2 to FIG. 7. Through the foregoing detailed description of the information processing method, The implementation method of the NFC terminal in the third embodiment can be clearly understood by those skilled in the art, and therefore, for the sake of brevity of the description, details are not described herein.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供一种信息处理方法及NFC终端,所述方法包括:监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;获得所述第一SE内的非接触应用的应用标识符AID。

Description

一种信息处理方法及NFC终端 技术领域
本发明涉及通信技术领域,尤其涉及一种信息处理方法及NFC终端。
背景技术
随着移动通信技术及近场通信(英文:Near Field Communication;简称:NFC)技术的发展,越来越多的移动终端支持对安全级别要求较高的支付业务,这样的移动终端被称为NFC终端。通常NFC终端包含近场通信控制器(英文:Near Field Communication Controller;简称:NFCC)、NFC天线及至少一个安全单元(英文:Secure Element;简称:SE)。
随着移动支付产业的发展,一个NFC终端能够包含多个SE,每个SE内都可安装多个非接触应用。为了便于区分多个非接触应用,通常每个非接触应用都有一个应用标识符(英文:Application Identification;简称:AID)。当NFC终端进入NFC读卡器的射频场时,NFC天线会产生感应电流,与NFC天线相连的NFCC会接收到NFC读卡器发送的非接触应用选择命令。为了将该命令转发到正确的SE中,需要由NFC终端的设备主机(英文:Device Host;简称:DH)向NFCC配置路由信息,即将AID和SE的对应关系,和其他路由信息都配置到NFCC中。这样,NFCC就可以把该命令转发到正确的SE,进而选中正确的非接触应用。
现有技术中,DH向NFCC配置路由信息的方法是:利用非接触应用的伴侣应用及向NFC终端写入的配置文件,提供一种静态地报告非接触应用的AID的方法。具体来说,向SE内安装非接触应用,同时向NFC终端安装该非接触应用的伴侣应用,该伴侣应用中包含配置文件,该配置文件指明了该非接触应用的AID,当刷新应用管理器时,会发现该伴侣应用,然后获得该伴侣应用中的配置文件中的AID,并配置到NFCC中。但是,该方法不够灵活,对于没有伴侣应用的非接触应用,即使安装到SE,终端也无法获得AID。
因此,现有技术存在的缺陷是:NFC终端无法实时获得SE内的非接触应 用的AID。
发明内容
本发明实施例提供一种信息处理方法及NFC终端,用于解决现有技术中存在的NFC终端无法实时获得SE内的非接触应用的AID的技术问题,提供了一种NFC终端实时获得SE内的非接触应用的AID的技术方案,使得NFC终端实时获得SE内的非接触应用的AID,进而使得NFC终端的DH对NFCC路由表的配置更加合理有效。
本发明实施例第一方面提供了一种信息处理方法,所述方法包括:
监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;
当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;
获得所述第一SE内的非接触应用的应用标识符AID。
结合第一方面,在第一方面的第一种可能的实现方式中,所述获得所述第一SE内的非接触应用的应用标识符AID,具体包括:
向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,在所述获得第一AID之后,所述方法还包括:
将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,在所述将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
结合第一方面,在第一方面的第四种可能的实现方式中,所述获得所述第一SE内的非接触应用的应用标识符AID,具体包括:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
结合第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,在所述获得第三AID之后,所述方法还包括:
将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第三AID和所述SE ID的数据记录。
结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,在所述将所述第三AID与所述NFC终端的非易失存储器中保存的 所有AID进行比较之后,所述方法还包括:
若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
本发明第二方面提供了一种信息处理方法,所述方法包括:
接收服务器发送的应用变更通知信息;
获得第一安全单元SE内的非接触应用的应用标识符AID,所述第一SE为近场通信NFC终端内的与所述服务器通信的SE。
结合第二方面,在第二方面的第一种可能的实现方式中,所述获得第一SE内的非接触应用的AID,具体包括:
对所述应用变更通知信息进行解析,获得所述应用变更通知信息中的AID。
结合第二方面,在第二方面的第二种可能的实现方式中,所述获得第一SE内的非接触应用的AID,具体包括:
向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID 为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
结合第二方面,在第二方面的第三种可能的实现方式中,所述获得第一SE内的非接触应用的AID,具体包括:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
结合第二方面的第一种可能的实现方式,在第二方面的第四种可能的实现方式中,在所述获得所述应用变更通知信息中的AID之后,所述方法还包括:
将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
结合第二方面的第四种可能的实现方式,在第二方面的第五种可能的实现方式中,在所述将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
结合第二方面的第二种可能的实现方式,在第二方面的第六种可能的实现方式中,在所述获得第一AID之后,所述方法还包括:
将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
结合第二方面的第六种可能的实现方式,在第二方面的第七种可能的实现方式中,在所述将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
结合第二方面的第三种可能的实现方式,在第二方面的第八种可能的实现方式中,在所述获得第三AID之后,所述方法还包括:
将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述参与比较的一个AID和所述SE ID的数据记录。
结合第二方面的第八种可能的实现方式,在第二方面的第九种可能的实现方式中,在所述将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一 SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
本发明第三方面提供了一种近场通信NFC终端,其特征在于,包括:
安全单元SE接口,用于连接SE与所述NFC终端;
非易失存储器,用于存储所述SE内的非接触应用的应用标识符AID;
传输控制协议TCP端口;
处理器,与所述非易失存储器、所述SE接口及所述TCP端口通过总线连接,用于:
监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;
当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;
获得所述第一SE内的非接触应用的应用标识符AID。
结合第三方面,在第三方面的第一种可能的实现方式中,所述处理器还用于:
向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述处理器还用于:在获得所述第一AID之后,将所述第一AID 与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述处理器还用于:
在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
结合第三方面,在第三方面的第四种可能的实现方式中,所述处理器还用于:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
结合第三方面的第四种可能的实现方式,在第三方面的第五种可能的实现方式中,所述处理器还用于:
在获得所述第三AID之后,将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第三AID和所述SE ID的数据记录。
结合第三方面的第五种可能的实现方式,在第三方面的第六种可能的实 现方式中,所述处理器还用于:
在将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
结合第三方面,在第三方面的第七种可能的实现方式中,所述处理器还用于:
接收服务器发送的应用变更通知信息;
获得第一安全单元SE内的非接触应用的应用标识符AID,所述第一SE为近场通信NFC终端内的与所述服务器通信的SE。
结合第三方面的第七种可能的实现方式,在第三方面的第八种可能的实现方式中,所述处理器还用于:
对所述应用变更通知信息进行解析,获得所述应用变更通知信息中的AID。
结合第三方面的第七种可能的实现方式,在第三方面的第九种可能的实现方式中,所述处理器还用于:
向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述 第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
结合第三方面的第七种可能的实现方式,在第三方面的第十种可能的实现方式中,所述处理器还用于:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
结合第三方面的第八种可能的实现方式,在第三方面的第十一种可能的实现方式中,所述处理器还用于:
在获得所述应用变更通知信息中的AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
结合第三方面的第十一种可能的实现方式,在第三方面的第十二种可能的实现方式中,所述处理器还用于:
在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
结合第三方面的第九种可能的实现方式,在第三方面的第十三种可能的 实现方式中,所述处理器还用于:
在获得所述第一AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
结合第三方面的第十三种可能的实现方式,在第三方面的第十四种可能的实现方式中,所述处理器还用于:
在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
结合第三方面的第十种可能的实现方式,在第三方面的第十五种可能的实现方式中,所述处理器还用于:
在获得所述第三AID之后,将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述参与比较的一个AID和所述SE ID的数据记录。
结合第三方面的第十五种可能的实现方式,在第三方面的第十六种可能的实现方式中,所述处理器还用于:
在将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易 失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:
本发明实施例中,监测近场通信NFC终端内的至少一个安全单元SE通过NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;当监测到TCP连接的状态为断开时,从所述至少一个SE中确定断开TCP连接的TCP端口对应的SE;获得断开TCP连接的TCP端口对应的SE内的非接触应用的应用标识符AID。或者接收服务器发送的应用变更通知信息;获得NFC终端内的与服务器通信的SE内的非接触应用的应用标识符AID。
因此,本发明实施例中,以NFC终端与服务器的TCP连接的状态变为断开状态或者以NFC终端接收到服务器发送的应用变更通知消息为触发条件,触发NFC终端的DH根据触发条件的不同,采用不同的方式获得断开TCP连接的TCP端口对应的SE内的AID或者获得与服务器通信的SE内的AID。实现了DH实时获得SE内的AID,进而使得NFC终端的DH对NFCC路由表的配置更加合理有效。
附图说明
为了更清楚地说明本发明或现有技术中的技术方案,下面将对本发明或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为适用于发明本实施例中信息处理方法的一种可能的通信系统架构图;
图2为本发明实施例一中一种信息处理方法的流程图;
图3为本发明实施例一中获得第一SE内的非接触应用的应用标识符AID的一个方法的流程图;
图4为本发明实施例一中获得第一SE内的非接触应用的应用标识符AID的另一个方法的流程图;
图5为本发明实施例一中采用第一种方式的信息处理方法的详细流程图;
图6为本发明实施例一中采用第一种方式的信息处理方法的详细流程图;
图7为本发明实施例二中一种信息处理方法的另一流程图;
图8为本发明实施例三中NFC终端的结构示意图。
具体实施方式
本发明实施例提供一种信息处理方法及NFC终端,用于解决现有技术中存在的NFC终端无法实时获得SE内的非接触应用的AID的技术问题,提供了一种NFC终端实时获得SE内的非接触应用的AID的技术方案,使得NFC终端实时获得SE内的非接触应用的AID,进而使得NFC终端的DH对NFCC路由表的配置更加合理有效。
本发明实施例中,监测近场通信NFC终端内的至少一个安全单元SE通过NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;当监测到TCP连接的状态为断开时,从所述至少一个SE中确定断开TCP连接的TCP端口对应的SE;获得断开TCP连接的TCP端口对应的SE内的非接触应用的应用标识符AID。或者接收服务器发送的应用变更通知信息;获得NFC终端内的与服务器通信的SE内的非接触应用的应用标识符AID。
因此,本发明实施例中,以NFC终端与服务器的TCP连接的状态变为断 开状态或者以NFC终端接收到服务器发送的应用变更通知消息为触发条件,触发NFC终端的DH根据触发条件的不同,采用不同的方式获得断开TCP连接的TCP端口对应的SE内的AID或者获得与服务器通信的SE内的AID。实现了DH实时获得SE内的AID,进而使得NFC终端的DH对NFCC路由表的配置更加合理有效。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图对本发明的实施方式进行详细说明。
本发明实施例提供一种信息处理方法,请参考图1,图1为适用于发明本实施例中信息处理方法的一种可能的通信系统架构图,包括:NFC(英文:Near Field Communication;简称:NFC)终端10和NFC读卡器11。
其中,NFC终端10包括:
设备主机101(英文:Device Host;简称:DH),一般认为NFC终端的中央处理器(英文:Central Progress Unit;简称:CPU)即为DH,根据NFC论坛相关标准定义,DH是一种负责管理NFC论坛认证设备及其所有外围电路的运行环境,用于管理包括近场通信控制器在内的所有外围电路与器件的初始化、配置和电源等的实体,DH内通常运行常见的操作系统,如BlackBerry操作系统(加拿大BlackBerry公司的黑莓手机使用的操作系统),windows phone操作系统(微软针对移动设备而开发的操作系统),Android操作系统(一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备),iOS操 作系统(由苹果公司开发的移动操作系统)等;
安全单元(英文:Secure Element;简称:SE)接口102,设置在NFC终端内,最常见的SE集成在用户身份识别(英文:Subscriber Identity Module;简称:SIM)卡上,SIM卡通过SE接口插入到NFC终端内,SE是SIM卡的一部分,SE通过SIM卡的一个引脚与NFCC相连,SE可通过NFCC与DH通信。需要说明的是,SE不局限于集成在SIM卡上。SE内运行一个轻量级且与DH不同的操作系统,例如:甲骨文(Oracle)公司的Java Card平台(包含JavaCard平台,Java Card运行时环境即JCRE和Java Card API),因此,SE与DH间的通信是跨操作系统的通信,使用应用协议数据单元(英文:Application Protocol Data Unit,简称:ADPU)承载信息。ADPU是指一种具有固定格式的数据单元,用于SE内应用或安全域与SE外实体的通信。本发明实施例相关的APDU命令由Global Platform Card Specification V2.2.1规范及相关修正案(即修正案C:Contactless Services,非接触服务)定义。
SE是一种具有防内容篡改功能的微控制器,为安装在SE上的非接触应用提供安全的存储和运行环境。SE作为移动支付的安全载体,除负责对交易关键数据进行安全存储和运算,确保进行的敏感交易具有安全认证和不可抵赖性外,还需支持多应用动态管理及运行安全。在NFC终端领域,常见的SE包括:UICC SE(英文:Universal Integrated Circuit Card with Secure Element;中文:集成了安全单元的通用集成电路)、μSD SE(英文:microSD Secure Element;中文:微SD卡型SE)和eSE(英文:embedded Secure Element;中文:嵌入在终端主板上的SE)。
近场通信控制器103(英文:Near Field Communication Controller;简称:NFCC),与DH通过NCI(英文:NFC Controller Interface;中文:近场通信控制器接口)通信,与SE一般通过单线协议(英文:Single Wire Protocol,简称SWP)接口连接和通信,根据NFC论坛相关标准定义,NFCC是负责通过NFC射频接口收发数据的逻辑实体;
NFC天线104,NFCC可以通过天线收发数据,当NFC终端进入NFC读 卡器11的射频场时,NFC天线中产生感应电流,激活SWP接口,使得NFC读卡器可以与SE内的非接触应用通信,其中,非接触应用(英文:Contactless Application;简称:CA)是指安装到SE或NFC终端上的要通过非接触接口(NFC接口)与外界通信的应用。通常SE内会安装多个CA,为了区分不同的CA,使用应用标识符(英文:Application Identification;简称:AID)标识不同的CA。在一个SE环境内AID是唯一的不重复的。本发明使用的AID是指GP(Global Platform)规范中定义和引用的AID,其长度为5-16个字节,AID遵循ISO(英文:International Standard Organization;中文:国际标准化组织)/IEC(英文:International Electrotechnical Commission中文:国际电工委员会)7816-52004和ETSI(英文:European Telecommunications Standards Institute;中文:欧洲电信标准化组织)TS 101220V3.0.0(2000-05)规范,包含5字节的RID(英文:Registered application provider Identifier;中文:应用提供商注册标识符)和最长11字节的PIX(英文:Proprietary application Identifier eXtension;中文:商业应用标识符扩展)两部分组成,其中RID必选字段,而PIX为可选字段。
下面从NFC终端侧来介绍本发明实施例提供的信息处理方法。
实施例一
本发明实施例中,NFC终端使用一组固定的TCP端口与服务器建立TCP连接,具体的,NFC终端内的每个SE使用一个预设的TCP端口与服务器建立TCP连接,例如:安全的超文本传输协议(英文:Hyper Text Transfer Protocol over Secure Socket Layer;简称:HTTPS)端口号443,或者WAP-push-http(基于HTTP的wap push)端口号4035,或者wap-push-https(基于HTTPS的wap push)端口号4036,或者其他厂商自定义端口号。
请参考图2,图2为本发明实施例一中一种信息处理方法的流程图。包括以下步骤:
步骤21:监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;
步骤22:当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;
步骤23:获得所述第一SE内的非接触应用的应用标识符AID。
具体来讲,NFC终端内安装有至少一个SE,每个SE都通过NFC终端内的一个TCP端口与一个服务器建立TCP连接,多个SE可以先后使用相同的TCP端口与服务器建立TCP连接,不同的SE与不同的服务器建立TCP连接,SE与服务器之间通过TCP连接通信。远端服务器通过TCP连接发送内容管理命令,如安装一个非接触应用的命令或更新一个应用的配置参数的命令到SE,之后SE执行接收到的命令,在特定配置下还会向远端服务器发送命令执行成功的确认信息,之后断开与服务器的连接,客观上,连接的建立与断开,尤其是断开,与SE内有新应用安装或应用状态发生变化是有关系的,所以NFC终端的DH可以监测TCP连接的状态,当TCP连接的状态为断开时,即表明断开TCP连接的TCP端口对应的SE内新安装了非接触应用,或者表明断开TCP连接的TCP端口对应的SE内的非接触应用的生命周期状态发生了变化。为方便描述,将断开TCP连接的TCP端口对应的SE称为第一SE。
当DH监测到TCP连接的状态为断开时,由于SE使用预设的TCP端口号与服务器建立TCP连接,所以可以根据预设的TCP端口号与SE间的对应关系,确定第一SE的标识符SE ID,SE ID是指NFCC分配给每个SE的ID,这里的SE ID等同于NFC Forum规范中的NFC执行环境NFCEE ID。
当NFC终端上不同的SE使用相同的TCP端口连接远端服务器时,还可以根据预设的TCP端口号、远端服务器的互联网协议(英文:Internet Protocol;简称:IP)地址与SE间的对应关系确定第一SE的标识符SE ID。其中,服务器的IP地址是在NFC终端第一次激活SE的时候执行的一个初始化过程中,获取并保存的。
同理,当终端内某个程序而非SE使用被监控的端口号时,监控程序可以检查使用此端口号建立连接的远端服务器IP地址是否与SE初始化时解析出的远端服务器IP地址一致,进而可以排除干扰,此时并没有SE与远端服务 器通信。
在确定了第一SE后,可以通过以下两种方式获得第一SE内的非接触应用的应用标识符AID:
第一种方式:请参考图3,图3为本发明实施例一中获得第一SE内的非接触应用的应用标识符AID的一个方法的流程图。包括以下步骤:
步骤31:向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
步骤32:解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
步骤33:当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
第二种方式:请参考图4,图4为本发明实施例一中获得第一SE内的非接触应用的应用标识符AID的另一个方法的流程图。包括以下步骤:
步骤41:向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
步骤42:解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
下面首先对上述第一种方式做详细说明。
在确定了第一SE后,首先要向第一SE发送SELECT CRS APP命令,其中,CRS(英文:Contactless Registry Service;中文:非接触注册表服务)APP是SE内的一个管理应用,Global Platform定义CRS应用的AID为'A00000015143525300',因此,向断开TCP连接的TCP端口对应的SE发送SELECT'A00000015143525300'命令,SELECT CRS APP命令的格式如表1所 示。
更具体的,CRS是指SE内软件提供的一种功能,用于管理非接触应用相关的安装、更新、删除、激活、去激活和优先级修改等动作以及应用相关的非接触通信协议,CRS还包括向授权实体提供的与上述功能相关的应用程序编程接口(英文:Application Programming Interface;中文:API)。SE外部实体通过CRS应用(CRS APP)来访问CRS功能。
Figure PCTCN2014087945-appb-000001
表1SELECT CRS APP命令
第一SE会发送SELECT CRS APP命令的应答消息给DH,DH会判断收到的SELECT CRS APP命令的应答消息是否正确,如果正确,则确认选中CRS应用。SELECT CRS APP命令的应答消息的格式如表2所示。
Figure PCTCN2014087945-appb-000002
表2SELECT CRS APP命令的应答消息
其中,状态字SW1、SW2必须是“9000”才认为是正确的应答,否则状态字若取其他值,即非“9000”的其他值,则表示命令响应异常,进行异常处理。
在选中CRS应用后,可以执行步骤31:向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息,即DH向第一SE发送第一命令,第一命令用于查询第一SE内的全部非接触应用发生更新的次数。
Code Value Meaning
CLA ‘80’  
INS ‘CA’ GET DATA
P1 ‘00’ P1 value
P2 ‘A5’ P2 value
Le ‘00’  
表3GET DATA命令
Figure PCTCN2014087945-appb-000003
表4GET DATA命令的应答消息
第一命令可以是GET DATA命令,第一命令的应答消息可以是GET DATA命令的应答消息。需要说明的是,第一命令不局限于GET DATA命令,第一命令的应答消息也不局限于GET DATA命令的应答消息。
以第一命令是GET DATA命令为例,则第一命令的应答消息是GET DATA命令的应答消息。具体来讲,第一SE内部的操作系统会把GET DATA命令分发给第一SE内的CRS应用,由CRS应用生成GET DATA命令的应答消息,并发给DH。其中,GET DATA命令的格式如表3所示,GET DATA命令 的应答消息的格式如表4所示。
本发明实施例中对现有技术中的GET DATA命令的应答消息进行了扩展,现有技术中的GET DATA命令的应答消息的格式如表5所示。
Figure PCTCN2014087945-appb-000004
表5现有技术中的GET DATA命令的应答消息
与表5相比可知,表4中,至少增加了一个AID个数TLV(Tag:‘xx’,Length:Var,Value Description:The number of APPs installed after SE responding to the last GET DATA command and APPs whose state have been changed),用于向发送GET DATA命令的DH告知第一SE在接收GET DATA命令之前新安装了多少个非接触应用和有多少个非接触应用的应用状态发生了状态变化。如果新增的和应用状态发生变化的非接触应用多于0个,那么AID个数TLV后面要跟随至少一个AID TLV。具体来讲,在AID个数TLV后面依次列举了新安装的或应用状态发生变化的第1个SE的AID、第2个SE的AID、……、第n个SE的AID。
其中,TLV(英文:Type-Length-Value;中文:类型/长度/数据三元组)是使用APDU进行信息传输时使用的一种结构,由固定长度的Tag/Type字段、固定长度的Length字段和可变长度的Value字段组成,TLV格式遵循ISO/IEC 8825-1:2002标准。
SE内还有非接触注册表事件侦听器(英文:Contactless Registry Event Listener;简称:CREL),CREL是指SE内部的一种软件,用于侦听关联的非接触应用的状态变化,所谓状态变化包括应用的更新、删除、激活和去激活等。每一个安装到SE的非接触应用,安装时都要设置一个CREL应用, CREL应用的作用就是用于监控该非接触应用的状态变化,以便服务器对非接触应用进行管理导致应用状态变化时,触发CREL应用调用,在CREL内记录非接触应用的AID及应用状态的变化,构造GET DATA命令的应答消息时读取CREL记录的数据,本发明实施例一中只读取AID,当然也可以读取AID和针对每个AID的操作类型,比如应用安装、删除或配置修改等。
在DH接收到第一命令的应答消息后,可以执行步骤32:解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数。
继续以第一命令是GET DATA命令为例,则第一命令的应答消息是GET DATA命令的应答消息。具体来讲,由于表4中有全局更新计数器(英文:Global Update Counter;简称:GUC)值,所以解析GET DATA命令的应答消息,即可获得第一SE的全局更新计数器GUC值,为方便描述,将第一SE的GUC值称为第一GUC值。其中,GUC用来标识SE内部所有非接触应用发生更新的次数,任何非接触应用的应用状态发生变化(应用安装、删除,配置修改等),或者非接触应用更新都会对该计数器执行增1操作。
然后将第一GUC值与NFC终端的非易失存储器中保存的第一SE的GUC值相比较,为方便描述,将NFC终端的非易失存储器中保存的第一SE的GUC值称为第二GUC值,其中,非易失存储器中保存的GUC值在SE首次激活时初始化,并且在每次调用GET DATA命令时根据GET DATA命令的应答消息更新。
接着,执行步骤33:当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。即如果获得的GUC值与保存的GUC值不同,则获得第一命令的应答消息中的AID。
继续以第一命令是GET DATA命令为例,则第一命令的应答消息是GET DATA命令的应答消息。具体来讲,由于表4所示的GET DATA命令的应答 消息中包含的是第一SE内应用状态发生变化的AID,即修改了配置或者新安装的AID,所以此处获得的GET DATA命令的应答消息中携带的AID并不等于第一SE内的全部AID。
请参考图5,图5为本发明实施例一中采用第一种方式的信息处理方法的详细流程图。包括步骤21-步骤22及步骤31-步骤38。如图5所示,在执行完步骤33,获得第一AID之后,可以执行步骤34:将所述第一AID与所述非易失存储器中保存的所有AID进行比较。
继续以第一命令是GET DATA命令为例,则第一命令的应答消息是GET DATA命令的应答消息。具体来讲,由于GET DATA命令的应答消息中有第一AID,所以将第一AID与非易失存储器中保存的所有AID比较,判断第一AID是新增的AID还是已经安装并且状态有更新的AID。对于新增的AID,在NFC终端的AID列表中增加一条记录;对于非新增的AID,即已经安装并且状态有更新的AID,查询生命周期状态。
在执行完步骤34,根据比较结果,可以执行步骤35或步骤36-步骤38。
步骤35:若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录;
步骤36:若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
步骤37:解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
步骤38:更新所述非易失存储器中保存的所述第一AID的生命周期状态。
继续以第一命令是GET DATA命令为例,则第一命令的应答消息是GET DATA命令的应答消息。具体来讲,GET DATA命令的应答消息中可以有M个AID,M为大于等于1的整数。依次取m从1至M,将GET DATA命令的 应答消息中的第m个AID当做第一AID,将第一AID与非易失存储器中保存的所有AID比较。
在第一AID与非易失存储器中保存的所有AID比较的过程中,如果第一AID与非易失存储器中保存的所有AID都不同,则说明第一AID未被保存在非易失存储器中,第一AID是新增的AID。
本发明实施例一中,对于新增的AID,需要在非易失存储器中保存一条新增的AID和第一SE的SE ID的数据记录。GET DATA命令的应答消息中有多少个新增的AID,相应的就要保存多少条数据记录。由于第一AID是新增的AID,则在非易失存储器中保存一条第一AID和第一SE的SE ID的数据记录。
在第一AID与非易失存储器中保存的所有AID比较的过程中,如果第一AID与非易失存储器中保存的一个AID相同,则说明第一AID已经被保存在非易失存储器中,且第一AID是应用状态发生更新的AID。
本发明实施例一中,对于应用状态发生更新的AID,需要向第一SE发送第二命令,第二命令用于查询第一AID的生命周期状态。
第二命令可以是具有第一格式的GET STATUS命令,第二命令的应答消息可以是具有第一格式的GET STATUS命令的应答消息。需要说明的是,第二命令不局限于具有第一格式的GET STATUS命令,第二命令的应答消息也不局限于具有第一格式的GET STATUS命令的应答消息。
以第二命令是具有第一格式的GET STATUS命令为例,则第二命令的应答消息是具有第一格式的GET STATUS命令的应答消息,具有第一格式的GET STATUS命令的格式如表6所示,具有第一格式的GET STATUS命令的应答消息的格式如表7所示。
Figure PCTCN2014087945-appb-000005
表6具有第一格式的GET STATUS命令
Figure PCTCN2014087945-appb-000006
表7具有第一格式的GET STATUS命令的应答消息
表6中,‘XXXX’代表第一AID。‘##’代表第一AID的长度。表7中,Application AID即为具有第一格式的GET STATUS命令中所包含的第一AID,Application Lifecycle State即为具有第一格式的GET STATUS命令中所包含的第一AID的生命周期状态。
由于第一AID是应用状态发生更新的AID,所以向第一SE发送具有第一格式的GET STATUS命令,在‘XXXX’处填充第一AID,接收具有第一格式的GET STATUS命令的应答消息,Application AID即为第一AID,Application Lifecycle State即为第一AID的生命周期状态。
其中,生命周期状态包括:installed(已安装),locked(已锁定),selectable(可选中)和app specific(应用自定义),本发明实施例一中认为installed和locked为异常状态,selectable和app specific为正常状态。
继续以第二命令是具有第一格式的GET STATUS命令为例,则第二命令的应答消息是具有第一格式的GET STATUS命令的应答消息,在解析具有第一格式的GET STATUS命令的应答消息,获得应用状态发生更新的AID中的每一个AID的生命周期状态之后,将应用状态发生更新的AID的生命周期状态与已经被保存在非易失存储器中的应用状态发生更新之前的AID的生命周期状态相比较,如果不同,则将AID的生命周期状态更新为具有第一格式的GET STATUS命令的应答消息中的生命周期状态。
由于第一AID是应用状态发生更新的AID,所以解析具有第一格式的GET STATUS命令的应答消息,可以获得第一AID的生命周期状态,然后将 第一AID的生命周期状态与已经被保存在非易失存储器中的应用状态发生更新之前的第一AID的生命周期状态相比较,如果不同,则将第一AID的生命周期状态更新为具有第一格式的GET STATUS命令的应答消息中的生命周期状态。
本发明实施例一中,不仅要获得应用状态发生更新的AID中的每一个AID的生命周期状态,还要获得新增的AID中的每一个AID的生命周期状态。也就是说,对于新增的AID中的每一个AID,都要向断开TCP连接的TCP端口对应的SE发送具有第二命令,接收并解析第二命令的应答消息,用于获得生命周期状态。本发明实施例一中,在获得新增的AID中的每一个AID的生命周期状态,并且更新应用状态发生更新的AID的生命周期状态之后,DH仅选择生命周期状态为正常状态的AID来生成路由信息,以便于在适当的时机DH向NFCC配置路由表。
其中,适当的时机可以是用户通过手机的图形用户界面选中和激活一个非接触应用时,例如,用户打开移动钱包应用,点击选中一张虚拟的银行卡,此时需要将此银行卡应用的AID配置到NFCC路由表中,需要重新配置路由表;或者一个SE被移除,若干AID失效,NFCC的路由表需要刷新时,例如:用户手工禁用一个机身上的SE,导致SE内AID暂时不可用,此时有必要刷新路由表,将路由表中,位于被禁用的SE上的AID对应的路由项删除。
下面对上述第二种方式做详细说明。
在确定了第一SE后,首先要首先要向第一SE发送SELECT CRS APP命令,SELECT CRS APP命令的格式如表1所示。第一SE会发送SELECT CRS APP命令的应答消息给DH,DH会判断收到的SELECT CRS APP命令的应答消息是否正确,如果正确,则确认选中CRS应用。SELECT CRS APP命令的应答消息的格式如表2所示。其中,状态字SW1、SW2必须是“9000”才认为是正确的应答,否则状态字若取其他值,即非“9000”的其他值,则表示命令响应异常,进行异常处理。
在选中CRS应用后,可以执行步骤41:向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息。即DH向第一SE发送具有第三命令,第三命令用于获得第一SE内的全部非接触应用的AID。
Figure PCTCN2014087945-appb-000007
表8具有第二格式的GET STATUS命令
Figure PCTCN2014087945-appb-000008
表9具有第二格式的GET STATUS命令的应答消息
第三命令可以是具有第二格式的GET STATUS命令,第三命令的应答消息可以是具有第二格式的GET STATUS命令的应答消息。需要说明的是,第三命令不局限于具有第二格式的GET STATUS命令,第三命令的应答消息也不局限于具有第二格式的GET STATUS命令的应答消息。
以第三命令是具有第二格式的GET STATUS命令为例,则第三命令的应答消息为具有第二格式的GET STATUS命令的应答消息。具体来讲,第一SE内部的操作系统会把具有第二格式的GET STATUS命令分发给第一SE内的CRS应用,由CRS应用生成具有第二格式的GET STATUS命令的应答消息,并发给DH。其中,具有第二格式的GET STATUS命令的格式如表8所示,具有第二格式的GET STATUS命令的应答消息的格式如表9所示。
表9中,Data Field携带第一SE内全部的AID及每个AID的更新计数器(英文:Update Counter;简称:UC)值,当状态字SW1、SW2为“9000”时 表示应答正确,当状态字SW1、SW2不为“9000”时表示有异常发生。
在DH接收到第三命令的应答消息后,可以执行步骤42:解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
继续以第三命令是具有第二格式的GET STATUS命令为例,则第三命令的应答消息为具有第二格式的GET STATUS命令的应答消息。具体来讲,由于表9所示的具有第二格式的GET STATUS命令的应答消息中包含的是第一SE内全部的AID,其中有应用状态发生变化的AID,也有应用状态未发生变化的AID,所以此处获得的具有第二格式的GET STATUS命令的应答消息中携带的AID是第一SE内的全部AID。
请参考图6,图6为本发明实施例一中采用第二种方式的信息处理方法的详细流程图。包括步骤21-步骤22及步骤41-步骤48。如图6所示,为了区分获得的AID中哪些AID是新增的AID,哪些AID是应用状态发生更新的AID,需要执行步骤43:将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较。
继续以第三命令是具有第二格式的GET STATUS命令为例,则第三命令的应答消息为具有第二格式的GET STATUS命令的应答消息。具体来讲,由于具有第二格式的GET STATUS命令的应答消息中有第三AID,所以将第三AID与非易失存储器中保存的所有AID比较,判断第三AID是新增的AID还是已经安装并且状态有更新的AID。对于新增的AID,在NFC终端的AID列表中增加一条记录;对于非新增的AID,即已经安装并且状态有更新的AID,结合UC值查询生命周期状态以及更新UC值。
在执行完步骤43,根据比较结果,可以执行步骤44或步骤45-步骤48。
步骤44:若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第三AID和所述SE ID的数据记录;
步骤45:若所述第三AID与所述非易失存储器中保存的一个AID相同, 则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
步骤46:若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
步骤47:解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
步骤48:更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
继续以第三命令是具有第二格式的GET STATUS命令为例,则第三命令的应答消息为具有第二格式的GET STATUS命令的应答消息。具体来讲,具有第二格式的GET STATUS命令的应答消息中有M个AID,M为大于等于1的整数。依次取m从1至M,将具有第二格式的GET STATUS命令的应答消息中的第m个AID当做第三AID,将第三AID与非易失存储器中保存的所有AID比较。
在第三AID与非易失存储器中保存的所有AID比较的过程中,如果第三AID与非易失存储器中保存的所有AID都不同,则说明第三AID未被保存在非易失存储器中,第三AID是新增的AID。
本发明实施例一中,对于新增的AID,需要在非易失存储器中保存一条新增的AID和第一SE的SE ID的数据记录。由于具有第二格式的GET STATUS命令的应答消息中有每一个AID的UC值,所以在数据记录中还可以保存新增的AID的UC值,以便于监控具有AID的非接触应用的应用状态的变化。具有第二格式的GET STATUS命令的应答消息中有多少个新增的AID,相应的就要保存多少条数据记录。由于第三AID是新增的AID,则在非易失存储器中保存一条第三AID和第一SE的SE ID的数据记录。当然,在数据记录中还可以保存第三AID的UC值,以便于监控具有第三AID的非 接触应用的应用状态的变化。
在第三AID与非易失存储器中保存的所有AID比较的过程中,如果第三AID与非易失存储器中保存的一个AID相同,则说明第三AID已经被保存在非易失存储器中,且第三AID是应用状态发生更新的AID。
本发明实施例一中,当第三AID是应用状态发生更新的AID,需要将第三AID的UC值与非易失存储器中保存的第三AID的UC值相比较,如果UC值不同,就向第一SE发送第四命令,第四命令用于第三AID的生命周期状态,接收并解析第四的应答消息,进而获得应用状态发生更新且UC值不同于非易失存储器中的UC值的第三AID的生命周期状态。
第四命令可以是具有第一格式的GET STATUS命令,第四命令的应答消息可以是具有第一格式的GET STATUS命令的应答消息。需要说明的是,第四命令不局限于具有第一格式的GET STATUS命令,第四命令的应答消息也不局限于具有第一格式的GET STATUS命令的应答消息。其中,具有第一格式的GET STATUS命令的格式如表6所示,具有第一格式的GET STATUS命令的应答消息的格式如表7所示。
以第四命令是具有第一格式的GET STATUS命令为例,则第四命令的应答消息是具有第一格式的GET STATUS命令的应答消息。具体来讲,由于第三AID是应用状态发生更新且UC值不同于非易失存储器中的UC值的AID,所以向第一SE发送具有第一格式的GET STATUS命令,在‘XXXX’处填充第三AID,接收具有第一格式的GET STATUS命令的应答消息,Application AID即为第三AID,Application Lifecycle State即为第三AID的生命周期状态。
以第四命令是具有第一格式的GET STATUS命令为例,则第四命令的应答消息是具有第一格式的GET STATUS命令的应答消息。具体来讲,在解析具有第一格式的GET STATUS命令的应答消息,获得应用状态发生更新的AID中的每一个AID的生命周期状态之后,将应用状态发生更新的AID的生命周期状态与已经被保存在非易失存储器中的应用状态发生更新之前的AID 的生命周期状态相比较,如果不同,则将AID的生命周期状态更新为具有第一格式的GET STATUS命令的应答消息中的生命周期状态,同时将AID的UC值更新为具有第一格式的GET STATUS命令的应答消息中的UC值;如果相同,则只将AID的UC值更新为具有第一格式的GET STATUS命令的应答消息中的UC值。
由于第三AID是应用状态发生更新且UC值不同于非易失存储器中的UC值的的AID,所以解析具有第一格式的GET STATUS命令的应答消息,可以获得第三AID的生命周期状态,然后将第三AID的生命周期状态与已经被保存在非易失存储器中的应用状态发生更新之前的第三AID的生命周期状态相比较,如果不同,则将第三AID的生命周期状态更新为具有第一格式的GET STATUS命令的应答消息中的生命周期状态,同时将第三AID的UC值更新为具有第一格式的GET STATUS命令的应答消息中的UC值;如果相同,则只将第三AID的UC值更新为具有第一格式的GET STATUS命令的应答消息中的UC值。
本发明实施例一中,不仅要获得应用状态发生更新的AID中的每一个AID的生命周期状态,还要获得新增的AID中的每一个AID的生命周期状态,以及UC值与非易失存储器中的UC值不同的AID的生命周期状态。也就是说,对于新增的AID中的每一个AID,以及UC值与非易失存储器中的UC值不同的每一个AID,都要向第一SE发送具有第一格式的GET STATUS命令,接收并解析具有第一格式的GET STATUS命令的应答消息,用于获得生命周期状态。具有第一格式的GET STATUS命令的格式如表6所示,具有第一格式的GET STATUS命令的应答消息的格式如表7所示。
本发明实施例一中,在获得新增的AID中的每一个AID的生命周期状态,以及UC值与非易失存储器中的UC值不相同的每一个AID的生命周期状态之后,DH仅选择生命周期状态为正常状态的AID来生成路由信息,以便于在适当的时机DH向NFCC配置路由表。
实施例二
本发明实施例中,当NFC终端上的一个SE完成一个非接触应用的安装或修改配置,如用户使用NFC终端在移动钱包界面上选择一个卡片应用,对该卡片进行安装、更新和删除等操作,SE会相应地执行非接触应用安装、生命周期状态修改、删除等命令后,SE一般需要向服务器上报命令执行成功的消息。服务器收到命令执行成功的消息后,获知某个非接触应用安装成功或者某个非接触应用的应用状态发生更新时,服务器向NFC终端的DH推送应用变更通知消息。
请参考图7,图7为本发明实施例二中一种信息处理方法的另一流程图。包括以下步骤:
步骤51:接收服务器发送的应用变更通知信息;
步骤52:获得第一安全单元SE内的非接触应用的应用标识符AID,所述第一SE为近场通信NFC终端内的与所述服务器通信的SE。
本发明实施例中,NFC终端的DH接收到的应用变更通知消息有多种形式。
第一种形式:当服务器使用HTTP消息向NFC终端的DH推送应用变更通知消息时,应用变更通知消息中至少包含消息类型、新安装的非接触应用的AID或者应用状态发生更新的非接触应用的AID、新安装的非接触应用或者应用状态发生更新的非接触应用所在的SE的SE ID三个标签,具体格式如下:
<ServiceDescriptor>
  <AID>xx..xx</AID>
  <SEID>xxx..xxx</SEID>
</ServiceDescriptor>
第二种形式:应用变更通知消息中仅包含发送源,即发送应用变更通知消息的服务器的IP地址,根据服务器的IP地址与SE间的对应关系,可以确定哪一个SE内的新安装了非接触应用或者非接触应用的应用状态发生了更新。
在执行完步骤51,接收到服务器发送的应用变更通知消息后,可以首先确定第一SE,即近场通信NFC终端内与服务器通信的SE。具体来讲,解析应用变更通知消息,或者利用应用变更通知消息以及服务器的IP地址与SE间的对应关系,确定与服务器通信的SE,即向服务器上报命令执行成功的消息的SE,认为与服务器通信的SE内新安装了非接触应用,或者与服务器通信的SE内的非接触应用的应用状态发生了变化。
在确定了第一SE后,执行步骤52。本发明实施例二中,根据应用变更通知消息的形式不同,步骤52至少有以下三种具体实现方式:
第一种具体实现方式:对所述应用变更通知信息进行解析,获得所述应用变更通知信息中的AID。
第二种具体实现方式:向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;当获得的所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
第三种实现方式:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
下面首先对上述第一种具体实现方式做详细说明。
当应用变更通知消息为上述第一种形式时,可以直接对应用变更通知消息进行解析,即可获得第一SE内的AID。由于应用变更通知信息中只会体现 应用状态发生变化的AID,所以此处获得的仅是第一SE中的部分AID,即新增的AID和生命周期状态发生更新的AID,并未获得第一SE中的全部AID。
当应用变更通知消息为上述第二种形式或上述第三种形式时,可以将与服务器通信的SE等效为实施例一中断开TCP连接的TCP端口对应的SE,通过发送第一命令,获得第一命令的应答消息中的AID,或者发送第三命令,获得第三命令的应答消息中的AID。
具体请参考实施例一中的相关说明,在此就不再赘述。
由于应用变更通知消息中包含的是第一SE内应用状态发生变化的AID,即修改了配置或者新安装的AID,并不等于第一SE内的全部AID。所以在获得所述应用变更通知信息中的的AID后,还可以执行以下步骤:
将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录;
若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
具体的实现方式请参考实施例一中的的相关说明,在此就不再赘述。
同理,由于第一命令的应答消息中包含的是第一SE内应用状态发生变化的AID,即修改了配置或者新安装的AID,第一命令的应答消息中携带的AID并不等于第一SE内的全部AID。所以在获得第一AID后,还可以执行以下步骤:
将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一 AID和所述SE ID的数据记录;
若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
具体请参考实施例一中的相关说明,在此就不再赘述。
由于第三命令的应答消息中包含的是第一SE中的全部AID,其中有应用状态发生变化的AID,也有应用状态未发生变化的AID,所以在获得第三AID之后,还可以执行以下步骤:
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述参与比较的一个AID和所述SE ID的数据记录;
若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值
具体的实现方式请参考实施例一中的的相关说明,在此就不再赘述。
实施例三
基于同一发明构思,本发明实施例提供一种NFC终端,请参考图8,为本发明实施例三中NFC终端的结构示意图。NFC终端80包括:处理器81、总线82、非易失存储器83、安全单元SE接口102、传输控制协议TCP端口 84。
其中,非易失存储器83,用于存储所述SE内的非接触应用的应用标识符AID;
安全单元SE接口102,用于连接SE与所述NFC终端;
传输控制协议TCP端口84;
处理器81,与所述非易失存储器83、所述SE接口102及所述TCP端口84通过总线连接,用于:
监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;
当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;
获得所述第一SE内的非接触应用的应用标识符AID。
可选的,所述处理器81还用于:
向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
可选的,所述处理器81还用于:
在获得所述第一AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
可选的,所述处理器81还用于:
在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
可选的,所述处理器81还用于:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
可选的,所述处理器81还用于:
在获得所述第三AID之后,将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第三AID和所述SE ID的数据记录。
可选的,所述处理器81还用于:
在将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一 SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
可选的,所述处理器81还用于:
接收服务器发送的应用变更通知信息;
获得第一安全单元SE内的非接触应用的应用标识符AID,所述第一SE为近场通信NFC终端内的与所述服务器通信的SE。
可选的,所述处理器81还用于:
对所述应用变更通知信息进行解析,获得所述应用变更通知信息中的AID。
可选的,所述处理器81还用于:
向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
可选的,所述处理器81还用于:
向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
可选的,所述处理器81还用于:
在获得所述应用变更通知信息中的AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
可选的,所述处理器81还用于:
在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
可选的,所述处理器81还用于:
在获得所述第一AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
可选的,所述处理器81还用于:
在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
更新所述非易失存储器中保存的所述第一AID的生命周期状态。
可选的,所述处理器81还用于:
在获得所述第三AID之后,将所述第三AID与所述NFC终端的非易失 存储器中保存的所有AID进行比较;
若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述参与比较的一个AID和所述SE ID的数据记录。
可选的,所述处理器81还用于:
在将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
其中,在图8中,总线架构(用总线82来代表),总线82可以包括任意数量的互联的总线和桥,总线82将包括由处理器81代表的一个或多个处理器和非易失存储器83的各种电路连接在一起。总线82还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。
处理器81负责管理总线82和通常的处理,而非易失存储器83可以被用于存储处理器81在执行操作时所使用的数据。
本实施例三的NFC终端80可以为图1中的NFC终端,其中NFC终端已在前文做出详细说明,在此就不再赘述。
本实施例三的NFC终端可以执行前述图2至图7实施例中的信息处理方法中的各种变化方式和具体实例,通过前述对信息处理方法的详细描述,本 领域技术人员可以清楚的知道本实施例三中NFC终端的实施方法,所以为了说明书的简洁,在此不再详述。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发
明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (34)

  1. 一种信息处理方法,其特征在于,包括:
    监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传输控制协议TCP端口与服务器建立的TCP连接的状态;
    当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;
    获得所述第一SE内的非接触应用的应用标识符AID。
  2. 如权利要求1所述的方法,其特征在于,所述获得所述第一SE内的非接触应用的应用标识符AID,具体包括:
    向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
    解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
    当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
  3. 如权利要求2所述的方法,其特征在于,在所述获得第一AID之后,所述方法还包括:
    将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
    若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
  4. 如权利要求3所述的方法,其特征在于,在所述将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
    若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
    解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
    更新所述非易失存储器中保存的所述第一AID的生命周期状态。
  5. 如权利要求1所述的方法,其特征在于,所述获得所述第一SE内的非接触应用的应用标识符AID,具体包括:
    向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
    解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
  6. 如权利要求5所述的方法,其特征在于,在所述获得第三AID之后,所述方法还包括:
    将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
    若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第三AID和所述SE ID的数据记录。
  7. 如权利要求6所述的方法,其特征在于,在所述将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
    若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
    若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发 送的所述第四命令的应答消息;
    解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
    更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
  8. 一种信息处理方法,其特征在于,包括:
    接收服务器发送的应用变更通知信息;
    获得第一安全单元SE内的非接触应用的应用标识符AID,所述第一SE为近场通信NFC终端内的与所述服务器通信的SE。
  9. 如权利要求8所述的方法,其特征在于,所述获得第一SE内的非接触应用的AID,具体包括:
    对所述应用变更通知信息进行解析,获得所述应用变更通知信息中的AID。
  10. 如权利要求8所述的方法,其特征在于,所述获得第一SE内的非接触应用的应用标识符AID,具体包括:
    向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
    解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
    当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
  11. 如权利要求8所述的方法,其特征在于,所述获得第一SE内的非接触应用的应用标识符AID,具体包括:
    向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
    解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三 命令的应答消息中的AID。
  12. 如权利要求9所述的方法,其特征在于,在所述获得所述应用变更通知信息中的AID之后,所述方法还包括:
    将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
    若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
  13. 如权利要求12所述的方法,其特征在于,在所述将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
    若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
    解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
    更新所述非易失存储器中保存的所述第一AID的生命周期状态。
  14. 如权利要求10所述的方法,其特征在于,在所述获得第一AID之后,所述方法还包括:
    将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
    若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
  15. 如权利要求14所述的方法,其特征在于,在所述将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
    若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
    解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
    更新所述非易失存储器中保存的所述第一AID的生命周期状态。
  16. 如权利要求11所述的方法,其特征在于,在所述获得第三AID之后,所述方法还包括:
    将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
    若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述参与比较的一个AID和所述SE ID的数据记录。
  17. 如权利要求16所述的方法,其特征在于,在所述将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,所述方法还包括:
    若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
    若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
    解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
    更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
  18. 一种近场通信NFC终端,其特征在于,包括:
    安全单元SE接口,用于连接SE与所述NFC终端;
    非易失存储器,用于存储所述SE内的非接触应用的应用标识符AID;
    传输控制协议TCP端口;
    处理器,与所述非易失存储器、所述SE接口及所述TCP端口通过总线连接,用于:
    监测近场通信NFC终端内的至少一个安全单元SE通过所述NFC终端的传 输控制协议TCP端口与服务器建立的TCP连接的状态;
    当监测到所述TCP连接的状态为断开时,从所述至少一个SE中确定第一SE,所述第一SE为断开TCP连接的TCP端口对应的SE;
    获得所述第一SE内的非接触应用的应用标识符AID。
  19. 如权利要求18所述的NFC终端,其特征在于,所述处理器还用于:
    向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
    解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
    当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
  20. 如权利要求19所述的NFC终端,其特征在于,所述处理器还用于:在获得所述第一AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
    若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
  21. 如权利要求20所述的NFC终端,其特征在于,所述处理器还用于:
    在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
    解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
    更新所述非易失存储器中保存的所述第一AID的生命周期状态。
  22. 如权利要求18所述的NFC终端,其特征在于,所述处理器还用于:
    向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
    解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
  23. 如权利要求22所述的NFC终端,其特征在于,所述处理器还用于:
    在获得所述第三AID之后,将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
    若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第三AID和所述SE ID的数据记录。
  24. 如权利要求23所述的NFC终端,其特征在于,所述处理器还用于:
    在将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,若所述第三AID与所述非易失存储器中保存的一个AID相同,则将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
    若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
    解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
    更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
  25. 如权利要求18所述的NFC终端,其特征在于,所述处理器还用于:
    接收服务器发送的应用变更通知信息;
    获得第一安全单元SE内的非接触应用的应用标识符AID,所述第一SE为近场通信NFC终端内的与所述服务器通信的SE。
  26. 如权利要求25所述的NFC终端,其特征在于,所述处理器还用于:
    对所述应用变更通知信息进行解析,获得所述应用变更通知信息中的AID。
  27. 如权利要求25所述的NFC终端,其特征在于,所述处理器还用于:
    向所述第一SE发送第一命令,所述第一命令用于查询所述第一SE内的全部非接触应用发生更新的次数,并接收所述第一SE发送的所述第一命令的应答消息;
    解析所述第一命令的应答消息,获得第一全局更新计数器GUC值,所述第一GUC值为所述第一SE内的全部非接触应用发生更新的次数;
    当所述第一GUC值与第二GUC值不同时,获得第一AID,所述第一AID为所述第一命令的应答消息中的AID,所述第二GUC值为所述NFC终端的非易失存储器中保存的所述第一SE内的全部非接触应用发生更新的次数。
  28. 如权利要求25所述的NFC终端,其特征在于,所述处理器还用于:
    向所述第一SE发送第三命令,所述第三命令用于获得所述第一SE内的全部非接触应用的AID,并接收所述第一SE发送的所述第三命令的应答消息;
    解析所述第三命令的应答消息,获得第三AID,所述第三AID为所述第三命令的应答消息中的AID。
  29. 如权利要求26所述的NFC终端,其特征在于,所述处理器还用于:在获得所述应用变更通知信息中的AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
    若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
  30. 如权利要求29所述的NFC终端,其特征在于,所述处理器还用于:
    在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE 发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
    解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
    更新所述非易失存储器中保存的所述第一AID的生命周期状态。
  31. 如权利要求27所述的NFC终端,其特征在于,所述处理器还用于:
    在获得所述第一AID之后,将所述第一AID与所述非易失存储器中保存的所有AID进行比较;
    若所述第一AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述第一AID和所述SE ID的数据记录。
  32. 如权利要求31所述的NFC终端,其特征在于,所述处理器还用于:
    在将所述第一AID与所述非易失存储器中保存的所有AID进行比较之后,若所述第一AID与所述非易失存储器中保存的一个AID相同,则向所述第一SE发送第二命令,所述第二命令用于查询所述第一AID的生命周期状态,并接收所述第一SE发送的所述第二命令的应答消息;
    解析所述第二命令的应答消息,获得所述第一AID的生命周期状态;
    更新所述非易失存储器中保存的所述第一AID的生命周期状态。
  33. 如权利要求28所述的NFC终端,其特征在于,所述处理器还用于:
    在获得所述第三AID之后,将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较;
    若所述第三AID与所述非易失存储器中保存的所有AID都不同,则获得所述第一SE的标识符SE ID,并在所述非易失存储器中保存至少包含所述参与比较的一个AID和所述SE ID的数据记录。
  34. 如权利要求33所述的NFC终端,其特征在于,所述处理器还用于:
    在将所述第三AID与所述NFC终端的非易失存储器中保存的所有AID进行比较之后,若所述第三AID与所述非易失存储器中保存的一个AID相同,则 将第一更新计数器UC值与第二UC值进行比较,所述第一UC值为具有所述第三AID的非接触应用发生更新的次数,所述第二UC值为所述非易失存储器中保存的具有所述第三AID的非接触应用发生更新的次数;
    若所述第一UC值与所述第二UC值不同,则向所述第一SE发送第四命令,所述第四命令用于查询所述第三AID的生命周期状态,并接收所述第一SE发送的所述第四命令的应答消息;
    解析所述第四命令的应答消息,获得所述第三AID的生命周期状态;
    更新所述非易失存储器中保存的所述第三AID的生命周期状态和UC值。
PCT/CN2014/087945 2014-09-30 2014-09-30 一种信息处理方法及nfc终端 Ceased WO2016049852A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2014/087945 WO2016049852A1 (zh) 2014-09-30 2014-09-30 一种信息处理方法及nfc终端
US15/515,576 US9992616B2 (en) 2014-09-30 2014-09-30 Information processing method and NFC terminal
EP14903253.4A EP3203645B1 (en) 2014-09-30 2014-09-30 Information processing method and nfc terminal
CN201480075753.7A CN106031050B (zh) 2014-09-30 2014-09-30 一种信息处理方法及nfc终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/087945 WO2016049852A1 (zh) 2014-09-30 2014-09-30 一种信息处理方法及nfc终端

Publications (1)

Publication Number Publication Date
WO2016049852A1 true WO2016049852A1 (zh) 2016-04-07

Family

ID=55629279

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087945 Ceased WO2016049852A1 (zh) 2014-09-30 2014-09-30 一种信息处理方法及nfc终端

Country Status (4)

Country Link
US (1) US9992616B2 (zh)
EP (1) EP3203645B1 (zh)
CN (1) CN106031050B (zh)
WO (1) WO2016049852A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017201682A1 (zh) * 2016-05-25 2017-11-30 华为技术有限公司 非接触应用的路由配置方法和装置
CN108347406A (zh) * 2017-01-24 2018-07-31 展讯通信(上海)有限公司 多方通话中切换组织者的方法、装置、终端及网络侧设备

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11290425B2 (en) * 2016-02-01 2022-03-29 Airwatch Llc Configuring network security based on device management characteristics
IT201600127809A1 (it) * 2016-12-19 2018-06-19 Dispositivo per le transazioni di pagamento con tecnologia contactless (nfc), avente algoritmo di generazione codice otp univoco integrante stringa di testo template generata dalla scansione biometrica dell’impronta digitale, con funzione di token otp, riconoscimento di identità e funzione di abbonamento per i mezzi pubblici e relativi processi di funzionamento, associazione e utilizzo
KR102280272B1 (ko) * 2017-09-15 2021-07-21 삼성전자주식회사 릴레이 통신을 수행하는 방법 및 그 전자 장치
CN109983458B (zh) * 2017-09-18 2024-02-09 华为技术有限公司 一种推荐方法及终端
FR3089382B1 (fr) * 2018-11-30 2020-11-27 St Microelectronics Rousset Traitement nfc rapide
CN112512094A (zh) * 2021-01-29 2021-03-16 北京紫光青藤微系统有限公司 一种路由表生成的方法、装置、电子设备及存储介质
CN113950035B (zh) * 2021-10-15 2023-10-27 中国联合网络通信集团有限公司 动态更新nfc能力的方法、终端及uicc

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7775442B2 (en) * 2006-07-12 2010-08-17 Nokia Corporation Method for accessing after-operation information of secure element applications
CN102325210A (zh) * 2011-05-19 2012-01-18 武汉天喻信息产业股份有限公司 兼容多个运营商的通用移动支付终端及其实现方法
CN103065107A (zh) * 2011-10-21 2013-04-24 中国移动通信集团公司 一种非接触刷卡应用的实现方法以及装置
CN103222291A (zh) * 2010-11-17 2013-07-24 捷讯研究有限公司 用于支持多个nfc执行环境nfcee的nfc控制器的应用路由配置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363421B2 (en) * 1998-05-31 2002-03-26 Lucent Technologies, Inc. Method for computer internet remote management of a telecommunication network element
US20120130838A1 (en) 2006-09-24 2012-05-24 Rfcyber Corp. Method and apparatus for personalizing secure elements in mobile devices
US8447699B2 (en) * 2009-10-13 2013-05-21 Qualcomm Incorporated Global secure service provider directory
US8942672B2 (en) * 2009-12-11 2015-01-27 Toro Development Limited Mobile integrated distribution and transaction system and method for NFC services, and a mobile electronic device thereof
US10304051B2 (en) * 2010-04-09 2019-05-28 Paypal, Inc. NFC mobile wallet processing systems and methods
JP5657364B2 (ja) * 2010-12-08 2015-01-21 フェリカネットワークス株式会社 情報処理装置および方法、プログラム、並びに情報処理システム
US8807440B1 (en) * 2010-12-17 2014-08-19 Google Inc. Routing secure element payment requests to an alternate application
US20120317628A1 (en) * 2011-06-09 2012-12-13 Yeager C Douglas Systems and methods for authorizing a transaction
AU2012301897B2 (en) * 2011-08-30 2017-04-13 Ov Loop Inc. Systems and methods for authorizing a transaction with an unexpected cryptogram
US8811895B2 (en) * 2011-10-28 2014-08-19 Sequent Software Inc. System and method for presentation of multiple NFC credentials during a single NFC transaction
CN103208065A (zh) * 2012-01-16 2013-07-17 深圳市家富通汇科技有限公司 在移动装置中个人化安全元件的方法和装置
US8923763B2 (en) * 2012-02-28 2014-12-30 Qualcomm Incorporated Methods and apparatuses for reducing the nonvolatile memory used to support application identifier routing in an NFC controller
US9357332B2 (en) 2012-06-08 2016-05-31 Broadcom Corporation Near field communication application identification routing in card emulation
US11120442B2 (en) * 2014-06-20 2021-09-14 Apple Inc. Management of reloadable credentials on an electronic device using an online resource
US9934014B2 (en) * 2014-08-22 2018-04-03 Apple Inc. Automatic purposed-application creation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7775442B2 (en) * 2006-07-12 2010-08-17 Nokia Corporation Method for accessing after-operation information of secure element applications
CN103222291A (zh) * 2010-11-17 2013-07-24 捷讯研究有限公司 用于支持多个nfc执行环境nfcee的nfc控制器的应用路由配置
CN102325210A (zh) * 2011-05-19 2012-01-18 武汉天喻信息产业股份有限公司 兼容多个运营商的通用移动支付终端及其实现方法
CN103065107A (zh) * 2011-10-21 2013-04-24 中国移动通信集团公司 一种非接触刷卡应用的实现方法以及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3203645A4 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017201682A1 (zh) * 2016-05-25 2017-11-30 华为技术有限公司 非接触应用的路由配置方法和装置
CN107836085A (zh) * 2016-05-25 2018-03-23 华为技术有限公司 非接触应用的路由配置方法和装置
CN107836085B (zh) * 2016-05-25 2019-08-27 华为技术有限公司 非接触应用的路由配置方法和装置
US10602337B2 (en) 2016-05-25 2020-03-24 Huawei Technologies Co., Ltd. Route configuration method and apparatus for contactless application
CN108347406A (zh) * 2017-01-24 2018-07-31 展讯通信(上海)有限公司 多方通话中切换组织者的方法、装置、终端及网络侧设备

Also Published As

Publication number Publication date
US20170303077A1 (en) 2017-10-19
EP3203645A1 (en) 2017-08-09
CN106031050A (zh) 2016-10-12
CN106031050B (zh) 2019-06-11
EP3203645B1 (en) 2018-11-28
EP3203645A4 (en) 2017-09-27
US9992616B2 (en) 2018-06-05

Similar Documents

Publication Publication Date Title
WO2016049852A1 (zh) 一种信息处理方法及nfc终端
US10902411B2 (en) Host-formatted select proximity payment system environment response
US10965455B2 (en) Device and method for secure connection
US20150149992A1 (en) Firmware management
US20130260734A1 (en) Systems, methods, and computer program products for detecting and managing changes associated with mobile wallets
KR20130116905A (ko) 모바일 지갑 및 그의 관련 정보 관리 시스템 및 방법
EP2377291B1 (en) Portable mobile communication device and method of controlling near field communication
JP2017513123A (ja) セキュアエレメント管理方法及び端末
EP3007066A1 (en) Method for using shared device in apparatus capable of operating two operating systems
US20160266943A1 (en) Enabling Multiple Secure Elements in a Card Computing Device
CN106663017B (zh) 实现主机卡模拟的方法、终端、数据路由方法及装置
EP3273706B1 (en) Configuration of near field communication (nfc) settings in a mobile device
CN106603125B (zh) 一种与蓝牙设备进行数据交互的方法及装置
US9870217B2 (en) Toolkit event configuration of applets on a card computing device with installation parameters
CN114444111A (zh) 智能仪表数据管理方法、存储介质、终端及智能仪表
US9642010B2 (en) Management server, data processing method, and program
CN107911785A (zh) 一种电子终端中nfc应用的操作方法和装置
CN106462845B (zh) 一种非接触前端的配置方法及终端
EP3376458B1 (en) Nfc device and initialization method
JP2017224239A (ja) 電子情報記憶媒体、情報処理方法、及び情報処理プログラム
EP3013087A1 (en) Route setting method and terminal device
CN108804125A (zh) 应用管理方法、装置及终端设备
CN103532913B (zh) 安全性信息交互装置和方法
CN118555563A (zh) 用于管理通知过程的方法、对应的系统以及集成电路卡
CN112395142A (zh) 数据管理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14903253

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15515576

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014903253

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014903253

Country of ref document: EP