CN105657647B - NFC-based data transmission method and system - Google Patents
NFC-based data transmission method and system Download PDFInfo
- Publication number
- CN105657647B CN105657647B CN201610158657.XA CN201610158657A CN105657647B CN 105657647 B CN105657647 B CN 105657647B CN 201610158657 A CN201610158657 A CN 201610158657A CN 105657647 B CN105657647 B CN 105657647B
- Authority
- CN
- China
- Prior art keywords
- terminal
- information
- smart
- card
- nfc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及近距离通信技术,尤指一种基于近距离通信(NFC,Near FieldCommunication)的数据传输方法及系统。The present invention relates to a near field communication technology, in particular to a data transmission method and system based on near field communication (NFC, Near Field Communication).
背景技术Background technique
近距离通信(NFC,Near Field Communication)技术具有通信距离短、连接建立时间短、工作能耗需求低、安全性高、网络拓扑结构简单、成本低廉、方便易用和直观性强等特点。并且,NFC与现有非接触智能卡技术相互兼容,非常适合应用于移动智能终端的非接触式服务,以实现财务信息或敏感的个人信息等重要数据的快速交换。NFC论坛(NFC Forum)定义了称为NFC数据交换格式(NDEF)的通用数据格式。NDEF是轻量级的紧凑的二进制格式,可带有URL,vCard和NFC定义的各种数据类型。Near Field Communication (NFC) technology has the characteristics of short communication distance, short connection establishment time, low energy consumption, high security, simple network topology, low cost, convenience and intuitiveness. Moreover, NFC is compatible with existing contactless smart card technology, and is very suitable for contactless services applied to mobile smart terminals to achieve rapid exchange of important data such as financial information or sensitive personal information. The NFC Forum has defined a generic data format called the NFC Data Exchange Format (NDEF). NDEF is a lightweight compact binary format that can carry various data types defined by URL, vCard and NFC.
NFC通信设备双方,由于设备支持的协议和功能不同,从而无法正常通信。NFC通信属于设备到设备(M2M)的通信方式,和传统的2G、3G等移动互联网通信方式不同,需要通信设备双方都处于同一个协议之上。The two sides of the NFC communication device cannot communicate normally due to the different protocols and functions supported by the devices. NFC communication is a device-to-device (M2M) communication method, which is different from traditional 2G, 3G and other mobile Internet communication methods, requiring both communication devices to be on the same protocol.
目前,由于NFC技术本身依赖存储介质,通信方式、标准不统一等原因,导致目前还无法解决基于NFC技术的数据传输统一性的问题,换句话说,都可能导致现有的通信设备由于支持不同的解决方案从而在NFC通信过程中无法正常实现。At present, due to the fact that NFC technology itself relies on storage media, and the communication methods and standards are not uniform, it is still impossible to solve the problem of the uniformity of data transmission based on NFC technology. Therefore, the solution cannot be realized normally during the NFC communication process.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,本发明提供了一种基于NFC的数据传输方法及系统,能够解决基于NFC技术的数据传输问题,同时保证通信的安全性,提高用户使用的满意度。In order to solve the above technical problems, the present invention provides a method and system for data transmission based on NFC, which can solve the problem of data transmission based on NFC technology, ensure the security of communication, and improve user satisfaction.
为了达到本发明目的,本发明提供了一种基于近距离通信NFC的数据传输方法,包括:智能终端与智能信息终端之间通过NFC认证并得到动态标签;In order to achieve the purpose of the present invention, the present invention provides a data transmission method based on short-range communication NFC, comprising: passing NFC authentication between an intelligent terminal and an intelligent information terminal and obtaining a dynamic tag;
智能信息终端向智能卡发送携带有动态标签的传输请求,智能卡存储动态标签;The intelligent information terminal sends a transmission request carrying the dynamic tag to the smart card, and the smart card stores the dynamic tag;
智能卡向智能终端发出携带有动态标签的传输请求;智能终端接收来自智能卡的传输请求并验证携带的动态标签合法,获取传输的内容信息。The smart card sends a transmission request carrying the dynamic tag to the smart terminal; the smart terminal receives the transmission request from the smart card and verifies that the carried dynamic tag is legal, and obtains the transmitted content information.
可选地,所述智能终端与智能信息终端之间通过NFC认证包括:Optionally, passing NFC authentication between the smart terminal and the smart information terminal includes:
所述智能终端生成随机挑战码,并向所述智能卡请求获取证书公钥;The smart terminal generates a random challenge code, and requests the smart card to obtain a certificate public key;
所述智能终端收到证书公钥后对挑战码进行加密,并将加密后的挑战码信息发送至所述智能信息终端,所述智能终端利用私钥对接收到的挑战码进行解密,并将解密后的挑战码发送至所述智能终端进行校验,如果校验通过,则认为通过NFC认证。The intelligent terminal encrypts the challenge code after receiving the certificate public key, and sends the encrypted challenge code information to the intelligent information terminal. The decrypted challenge code is sent to the smart terminal for verification, and if the verification is passed, it is considered to have passed the NFC authentication.
可选地,所述智能终端为NFC智能终端,所述智能卡为SWP-NFC智能卡;Optionally, the smart terminal is an NFC smart terminal, and the smart card is a SWP-NFC smart card;
所述传输请求为推送信息/查询信息结果。The transmission request is a result of pushing information/querying information.
可选地,所述智能信息终端向智能卡发送携带有动态标签的传输请求,智能卡存储动态标签包括:Optionally, the smart information terminal sends a transmission request carrying a dynamic tag to the smart card, and the smart card stores the dynamic tag including:
当处于读卡器状态的所述智能信息终端接收到的指令是推动指令时,卡模拟状态的所述智能信息终端向SWP-NFC卡推送携带有动态标签的信息;When the instruction received by the intelligent information terminal in the card reader state is a push instruction, the intelligent information terminal in the card simulation state pushes the information carrying the dynamic tag to the SWP-NFC card;
当处于读卡器状态的所述智能信息终端接收到的指令是信息查询指令及查询信息内容指令时,所述智能信息终端在后台查询信息,之后,卡模拟状态的所述智能信息终端向SWP-NFC卡推送携带有动态标签的查询信息结果;When the instructions received by the intelligent information terminal in the card reader state are information query instructions and information content query instructions, the intelligent information terminal queries information in the background, and then the intelligent information terminal in the card simulation state sends the SWP - The NFC card pushes the query information result carrying the dynamic tag;
所述智能卡向智能终端发出携带有动态标签的传输请求包括:The smart card sending a transmission request carrying a dynamic label to the smart terminal includes:
所述SWP-NFC卡将获得的携带有动态标签的推送信息/查询信息结果传输给所述NFC智能终端。The SWP-NFC card transmits the obtained push information/query information result carrying the dynamic tag to the NFC smart terminal.
可选地,所述智能终端为非NFC智能终端,所述智能卡为双界面卡;Optionally, the smart terminal is a non-NFC smart terminal, and the smart card is a dual-interface card;
所述传输请求为推送信息/查询信息结果。The transmission request is a result of pushing information/querying information.
可选地,所述智能信息终端向智能卡发送携带有动态标签的传输请求,智能卡存储动态标签包括:Optionally, the smart information terminal sends a transmission request carrying a dynamic tag to the smart card, and the smart card stores the dynamic tag including:
如果处于读卡器状态的所述智能信息终端接收到的指令是推送指令,进入读卡器状态的所述智能信息终端将携带有动态标签的推送信息写入所述非NFC智能终端的双界面卡的文件中;If the instruction received by the intelligent information terminal in the card reader state is a push instruction, the intelligent information terminal in the card reader state writes the push information carrying the dynamic tag into the dual interface of the non-NFC intelligent terminal in the file of the card;
如果处于读卡器状态的所述智能信息终端接收到的指令是信息查询指令及查询信息内容指令,所述智能信息终端在后台查询信息,之后,进入读卡器状态的所述智能信息终端将携带有动态标签的查询信息结果写入所述非NFC智能终端的双界面卡的文件中;If the instructions received by the intelligent information terminal in the card reader state are information query instructions and information content query instructions, the intelligent information terminal queries information in the background, and then the intelligent information terminal in the card reader state will The query information result carrying the dynamic tag is written into the file of the dual-interface card of the non-NFC smart terminal;
所述智能卡向智能终端发出携带有动态标签的传输请求包括:The smart card sending a transmission request carrying a dynamic label to the smart terminal includes:
所述非NFC智能终端从双界面卡验证动态标签合法并获取推送信息或查询信息结果。The non-NFC smart terminal verifies the legality of the dynamic tag from the dual-interface card and obtains the result of push information or query information.
本发明还提供了一种基于NFC的数据传输系统,至少包括智能信息终端、智能终端,以及智能卡;其中,The present invention also provides an NFC-based data transmission system, including at least a smart information terminal, a smart terminal, and a smart card; wherein,
智能信息终端,用于与智能终端之间经由智能卡通过NFC认证并得到动态标签;向智能卡发送携带有动态标签的传输请求,智能卡存储动态标签;The intelligent information terminal is used to pass the NFC authentication with the intelligent terminal and obtain the dynamic tag through the smart card; send a transmission request carrying the dynamic tag to the smart card, and the smart card stores the dynamic tag;
智能卡,用于向智能终端发出携带有动态标签的传输请求;The smart card is used to send a transmission request with a dynamic tag to the smart terminal;
智能终端,用于接收来自智能卡的传输请求并验证携带的动态标签合法,获取传输的内容信息。The smart terminal is used to receive the transmission request from the smart card, verify the validity of the carried dynamic tag, and obtain the transmitted content information.
可选地,所述智能终端是NFC智能终端时,所述智能卡为SWP-NFC卡;此时,Optionally, when the smart terminal is an NFC smart terminal, the smart card is a SWP-NFC card; at this time,
所述智能信息终端,具体用于接收到应用类别指令,向SWP-NFC卡发送携带有动态标签的推送信息/查询信息结果;The intelligent information terminal is specifically configured to receive the application category instruction, and send the push information/query information result carrying the dynamic tag to the SWP-NFC card;
所述SWP-NFC卡,具体用于将获得的携带有动态标签的推送信息/查询信息结果传输给NFC智能终端。The SWP-NFC card is specifically used to transmit the obtained push information/query information result carrying the dynamic tag to the NFC smart terminal.
可选地,所述智能信息终端具体用于:当处于读卡器状态的所述智能信息终端接收到的指令是推动指令时,所述智能信息终端处于卡模拟状态时,向所述SWP-NFC卡发送携带有动态标签的推送信息;Optionally, the intelligent information terminal is specifically configured to: when the instruction received by the intelligent information terminal in the card reader state is a push instruction, and when the intelligent information terminal is in a card simulation state, to the SWP- The NFC card sends push information with dynamic tags;
当处于读卡器状态的所述智能信息终端接收到的指令是信息查询指令及查询信息内容指令时,所述智能信息终端在后台查询信息,卡模拟状态的所述智能信息终端向SWP-NFC卡推送携带有动态标签的查询信息结果。When the instructions received by the intelligent information terminal in the card reader state are information query instructions and information content query instructions, the intelligent information terminal queries information in the background, and the intelligent information terminal in the card simulation state sends the SWP-NFC The card pushes the query information result carrying the dynamic tag.
可选地,所述智能终端是非NFC智能终端时,所述智能卡为双界面卡;此时,Optionally, when the smart terminal is a non-NFC smart terminal, the smart card is a dual-interface card; at this time,
所述智能信息终端,具体用于接收到应用类别指令,并进入读卡器状态,智能信息终端以基于NDEF动态标签的方式将携带有动态标签的推送信息/查询信息结果,写到非NFC智能终端的双界面卡文件中;The intelligent information terminal is specifically used to receive the application category instruction and enter the card reader state, and the intelligent information terminal writes the push information/query information result carrying the dynamic tag to the non-NFC smart tag in a manner based on the NDEF dynamic tag. In the dual interface card file of the terminal;
所述非NFC智能终端,具体用于验证动态标签合法并获取推送信息或查询信息结果。The non-NFC smart terminal is specifically used to verify the legality of the dynamic tag and obtain the result of push information or query information.
可选地,所述智能信息终端具体用于:当处于读卡器状态的所述智能信息终端接收到的指令是推动指令,进入读卡器状态的所述智能信息终端会将携带有动态标签的推送信息写入非NFC智能终端的双界面卡文件;Optionally, the intelligent information terminal is specifically used for: when the instruction received by the intelligent information terminal in the card reader state is a push instruction, the intelligent information terminal in the card reader state will carry a dynamic tag. The push information is written into the dual interface card file of the non-NFC smart terminal;
当处于读卡器状态的所述智能信息终端接收到的指令是信息查询指令及查询信息内容指令,所述智能信息终端在后台查询信息,读卡器状态的所述智能信息终端将携带有动态标签的查询信息结果写入所述非NFC智能终端的双界面卡文件。When the instructions received by the intelligent information terminal in the card reader state are information query instructions and information content query instructions, the intelligent information terminal queries information in the background, and the intelligent information terminal in the card reader state will carry dynamic information The query information result of the tag is written into the dual interface card file of the non-NFC smart terminal.
与现有技术相比,本发明包括智能终端与智能信息终端之间通过NFC认证并得到动态标签;智能信息终端向智能卡发送携带有动态标签的传输请求,智能卡存储动态标签;智能卡向智能终端发出携带有动态标签的传输请求;智能终端接收来自智能卡的传输请求并验证携带的动态标签合法,获取传输的内容信息。通过本发明提供的技术方案,在智能终端与智能信息终端之间通过NFC认证后,直接通过携带动态标签的方式进行交互,即在智能终端与智能信息终端之间每次传输数据前都会先认证,解决了基于NFC技术的数据传输问题,同时,由于动态标签的数据加密和签名是实时变化的,为人为破解增加了难度,因此保证了通信的安全性,从而提高了用户使用的满意度。Compared with the prior art, the present invention includes NFC authentication between the intelligent terminal and the intelligent information terminal to obtain a dynamic label; the intelligent information terminal sends a transmission request carrying the dynamic label to the intelligent card, and the intelligent card stores the dynamic label; the intelligent card sends a transmission request to the intelligent terminal. The transmission request carrying the dynamic label; the smart terminal receives the transmission request from the smart card and verifies the validity of the dynamic label carried, and obtains the content information of the transmission. Through the technical solution provided by the present invention, after passing the NFC authentication between the intelligent terminal and the intelligent information terminal, the interaction is carried out directly by carrying a dynamic tag, that is, the authentication is performed before each data transmission between the intelligent terminal and the intelligent information terminal. , solves the problem of data transmission based on NFC technology, and at the same time, because the data encryption and signature of dynamic tags change in real time, it increases the difficulty for artificial cracking, thus ensuring the security of communication, thus improving the user satisfaction.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the description, claims and drawings.
附图说明Description of drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solutions of the present invention, and constitute a part of the specification. They are used to explain the technical solutions of the present invention together with the embodiments of the present application, and do not limit the technical solutions of the present invention.
图1为本发明面向NFC业务的单一业务模型的示意图;Fig. 1 is the schematic diagram of the single service model oriented to NFC service of the present invention;
图2为本发明基于NFC的数据传输方法的流程图;Fig. 2 is the flow chart of the data transmission method based on NFC of the present invention;
图3为本发明NFC智能终端与智能信息终端交互的实施例的流程示意图;3 is a schematic flowchart of an embodiment of the interaction between an NFC smart terminal and an intelligent information terminal according to the present invention;
图4为本发明非NFC智能终端与智能信息终端交互的实施例的流程示意图;4 is a schematic flowchart of an embodiment of the interaction between a non-NFC smart terminal and a smart information terminal according to the present invention;
图5为本发明基于NFC的数据传输系统的组成结构示意图。FIG. 5 is a schematic diagram of the composition and structure of the NFC-based data transmission system of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, the embodiments in the present application and the features in the embodiments may be arbitrarily combined with each other if there is no conflict.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
NFC技术本身作为一种通信方式只是设备的通信接口,从目前国际提倡的NFC asa Service模式来看,就是将NFC技术真正作为一种服务进行推广。按照NFC as a Service模式,本申请的发明人提出了一种面向NFC业务的业务模型,如图1所示,智能终端与智能信息终端之间建立有NFC连接,智能终端与智能信息终端分别与NFC业务平台建立数据通道。其中,As a communication method, NFC technology itself is only the communication interface of the device. From the perspective of the NFC asa Service mode currently advocated internationally, NFC technology is truly promoted as a service. According to the NFC as a Service model, the inventor of the present application proposes a business model oriented to NFC services. As shown in Figure 1, an NFC connection is established between the smart terminal and the smart information terminal, and the smart terminal and the smart information terminal are respectively connected to The NFC business platform establishes a data channel. in,
NFC业务平台,主要用于NFC业务管理,如NFC业务开通、关闭,设备维护、软件更新等;NFC business platform, mainly used for NFC business management, such as NFC business opening, closing, equipment maintenance, software update, etc.;
智能信息终端,是业务平台的前置终端,用于信息发布和查询请求的受理等,如卖场、地铁等公共场所的终端;Intelligent information terminal is the front terminal of the business platform, used for information release and acceptance of query requests, such as terminals in public places such as stores and subways;
智能终端,其中设置有智能卡的手机、PAD等终端,作为人机接口为用户提供NFC业务推送、交互等,其中,智能卡(Smart Card)是内嵌有微芯片、配备有CPU和RAM的卡的统称。Smart terminals, which are equipped with terminals such as mobile phones and PADs with smart cards, serve as human-machine interfaces to provide users with NFC service push, interaction, etc. collectively.
结合图1,图2为本发明基于NFC的数据传输方法的流程图,如图2所示,包括:With reference to FIG. 1, FIG. 2 is a flowchart of the NFC-based data transmission method of the present invention, as shown in FIG. 2, including:
步骤200:智能终端与智能信息终端之间通过NFC认证并得到动态标签。Step 200: Pass NFC authentication between the smart terminal and the smart information terminal and obtain a dynamic tag.
本步骤具体包括:智能终端生成随机挑战码,并向智能卡请求获取证书公钥;智能终端收到证书公钥后对挑战码进行加密,并将加密后的挑战码信息发送至智能信息终端,智能信息终端利用私钥对接收到的挑战码进行解密,并将解密后的挑战码发送至智能终端进行校验,如果校验通过,则认为通过NFC认证并得到动态标签。This step specifically includes: the smart terminal generates a random challenge code, and requests the smart card to obtain the public key of the certificate; after receiving the public key of the certificate, the smart terminal encrypts the challenge code, and sends the encrypted challenge code information to the smart information terminal. The information terminal uses the private key to decrypt the received challenge code, and sends the decrypted challenge code to the smart terminal for verification. If the verification passes, it is considered to have passed the NFC authentication and a dynamic tag has been obtained.
其中,动态标签是一种基于NDEF格式的标签,并且,由于智能终端与智能信息终端之间每次进行数据传输之前,都会按照步骤200生成随机挑战码进行认证即每次都是变化的,因此,是一种动态标签。也即是说,智能终端与智能信息终端之间的交互是一种基于NDEF格式的动态标签的方式。The dynamic tag is a tag based on the NDEF format, and since each time before data transmission between the smart terminal and the smart information terminal, a random challenge code will be generated for authentication according to step 200, that is, it will change each time. , is a dynamic tag. That is to say, the interaction between the smart terminal and the smart information terminal is a dynamic tag based on the NDEF format.
步骤201:智能信息终端向智能卡发送携带有动态标签的传输请求即以基于NDEF动态标签的方式向智能卡发送传输请求,智能卡存储动态标签。Step 201: The intelligent information terminal sends a transmission request carrying a dynamic label to the smart card, that is, sends a transmission request to the smart card in a manner based on the NDEF dynamic label, and the smart card stores the dynamic label.
本步骤中,传输请求可以是推送信息的请求,或者下发查询结果的请求。In this step, the transmission request may be a request for pushing information, or a request for issuing a query result.
本步骤中,NDEF动态标签的格式是NDEF格式,NDEF是Tag标签的封装格式。本步骤中,通过Tag动态标签的方式向智能卡发送请求,智能卡作为存储设备保存生成的NDEF动态标签,以供后续终端读取和判断。NDEF动态标签至少包含统一资源定位符(URL,UniformResource Locator)、多用途互联网邮件扩展类型(MIME)媒质或者NFC自定义的数据类型的一种或几种的记录(Record)等。In this step, the format of the NDEF dynamic tag is the NDEF format, and the NDEF is the encapsulation format of the Tag tag. In this step, a request is sent to the smart card by means of a Tag dynamic label, and the smart card acts as a storage device to save the generated NDEF dynamic label for subsequent reading and judgment by the terminal. The NDEF dynamic tag contains at least a Uniform Resource Locator (URL, Uniform Resource Locator), a Multipurpose Internet Mail Extension (MIME) medium or one or more records (Records) of NFC-defined data types.
步骤202:智能卡向智能终端发出携带有动态标签的传输请求;智能终端接收来自智能卡的传输请求并验证携带的动态标签合法,获取传输的内容信息。Step 202: the smart card sends a transmission request carrying the dynamic tag to the smart terminal; the smart terminal receives the transmission request from the smart card, verifies that the carried dynamic tag is legal, and obtains the content information of the transmission.
本步骤中,智能终端比较步骤200中的NFC认证获得的动态标签与接收到的传输请求中携带的动态标签是否一致,如果二者一致,则验证携带的动态标签合法。In this step, the smart terminal compares whether the dynamic tag obtained by the NFC authentication in step 200 is consistent with the dynamic tag carried in the received transmission request, and if the two are consistent, it verifies that the carried dynamic tag is legal.
本发明的NFC通信是指信息交互,包括信息推送和信息查询。其中,信息推送是指智能信息终端向智能终端推送信息;信息查询是指智能终端发送信息查询请求给智能信息终端,智能信息终端查询信息,并将查询结果推送给智能终端。The NFC communication of the present invention refers to information interaction, including information push and information query. Wherein, information push means that the intelligent information terminal pushes information to the intelligent terminal; information query means that the intelligent terminal sends an information query request to the intelligent information terminal, and the intelligent information terminal queries the information and pushes the query result to the intelligent terminal.
通过本发明方法,在智能终端与智能信息终端之间通过NFC认证后,直接通过携带动态标签的方式进行交互,即在智能终端与智能信息终端之间每次传输数据前都会先认证,解决了基于NFC技术的数据传输问题,同时,由于动态标签的数据加密和签名是实时变化的,为人为破解增加了难度,因此保证了通信的安全性,从而提高了用户使用的满意度。Through the method of the present invention, after passing the NFC authentication between the intelligent terminal and the intelligent information terminal, the interaction is directly carried out by carrying a dynamic tag, that is, the authentication is performed before each data transmission between the intelligent terminal and the intelligent information terminal, which solves the problem. The data transmission problem based on NFC technology, at the same time, because the data encryption and signature of dynamic tags are changed in real time, which increases the difficulty for human cracking, thus ensuring the security of communication and improving the user satisfaction.
结合实际场景举例说明如下:An example in combination with the actual scene is described as follows:
场景一:卖场的信息推送业务。通过部署在商场信息导航终端(智能信息终端)发布信息或者接受用户查询请求等。每次用户希望通过手机(智能终端)针对发布的信息通过NFC方式获取相关信息并且展现为内容更为详实的内容之前,首先,移动手机与导航终端之间通过NFC认证并得到动态标签;然后在手机与导航终端之间的后续信息获取的过程中,均携带得到的动态标签,信息导航终端通过交互获取用户存储在SE介质中的用户信息进行验证后,才会接受用户查询请求等操作。Scenario 1: The information push service of the store. By deploying in the information navigation terminal (intelligent information terminal) of the shopping mall, it publishes information or accepts user query requests. Every time the user wants to obtain the relevant information through NFC for the released information through the mobile phone (smart terminal) and present it as more detailed content, first, the mobile phone and the navigation terminal pass the NFC authentication and obtain the dynamic tag; During the subsequent information acquisition process between the mobile phone and the navigation terminal, the obtained dynamic tag is carried. The information navigation terminal will only accept the user query request and other operations after the information navigation terminal obtains the user information stored in the SE medium by the user for verification.
场景二:公交站点查询业务。通过部署在公交车站的车站信息终端以及公交车的刷卡设备(智能信息终端)发布车站信息以及车辆到站信息等以及提供公交乘坐方案的查询等业务,每次进行信息交互之前,在手机与涮卡设备之间完成NFC认证并得到动态标签后,用户通过手机(智能终端)获取站点具体的信息,或者提交乘车路线方案请求,由信息导航终端基于NFC采用动态标签方式推送信息内容等实现信息的推送业务。Scenario 2: Inquiry service at bus stops. Through the station information terminal deployed at the bus station and the bus card swiping device (smart information terminal), the station information and the vehicle arrival information are released, and the bus ride plan query and other services are provided. Before each information exchange, the mobile phone and the After the NFC authentication is completed between the card-rinsing devices and the dynamic tags are obtained, the user obtains the specific information of the site through the mobile phone (smart terminal), or submits a request for the route plan, and the information navigation terminal uses the dynamic tag based on NFC to push the information content, etc. Information push business.
基于NFC技术的动态标签通信时,根据智能卡、终端等解决方案的不同,本发明智能终端可分为NFC智能终端和非NFC智能终端两种具体实现方式。图3为本发明NFC智能终端与智能信息终端交互的实施例的流程示意图,本实施例中,假设智能信息终端与NFC智能终端之间经由SWP-NFC卡通过了NFC认证;且智能信息终端始终处于卡模拟状态和读卡器状态的轮询过程;如图3所示,包括以下步骤:During dynamic tag communication based on NFC technology, according to different solutions such as smart cards and terminals, the smart terminal of the present invention can be divided into two specific implementation modes: NFC smart terminal and non-NFC smart terminal. FIG. 3 is a schematic flowchart of an embodiment of the interaction between an NFC smart terminal and a smart information terminal according to the present invention. In this embodiment, it is assumed that the smart information terminal and the NFC smart terminal have passed the NFC authentication via the SWP-NFC card; and the smart information terminal always The polling process in the card emulation state and the card reader state; as shown in Figure 3, includes the following steps:
步骤300:智能信息终端接收到应用类别指令,Step 300: the intelligent information terminal receives the application category instruction,
本实施例中,在智能信息终端处于读卡器模式时,接收到的应用类别指令可以是信息推送指令,或者信息查询指令及查询信息内容指令。In this embodiment, when the intelligent information terminal is in the card reader mode, the received application category instruction may be an information push instruction, or an information query instruction and an information content query instruction.
步骤301:智能信息终端向SWP-NFC卡发送携带有动态标签的推送信息/查询信息结果。Step 301: The intelligent information terminal sends the push information/query information result carrying the dynamic tag to the SWP-NFC card.
本步骤中,当处于读卡器状态的智能信息终端接收到的指令是推动指令时,卡模拟状态的智能信息终端会向SWP-NFC卡发送携带有动态标签的推送信息;In this step, when the instruction received by the intelligent information terminal in the card reader state is a push instruction, the intelligent information terminal in the card simulation state will send the push information carrying the dynamic tag to the SWP-NFC card;
当处于读卡器状态的智能信息终端接收到的指令是信息查询指令及查询信息内容指令时,智能信息终端在后台查询信息,之后,卡模拟状态的智能信息终端向SWP-NFC卡推送携带有动态标签的查询信息结果。When the command received by the smart information terminal in the card reader state is an information query command and a query information content command, the smart information terminal queries the information in the background, and then the smart information terminal in the card simulation state pushes the SWP-NFC card with the The query information result of the dynamic label.
步骤302:SWP-NFC卡将获得的携带有动态标签的推送信息/查询信息结果传输给NFC智能终端。Step 302: The SWP-NFC card transmits the obtained push information/query information result carrying the dynamic tag to the NFC smart terminal.
本步骤中,智能终端在验证携带的动态标签合法后会展示获得的推送信息/查询信息结果给用户。In this step, after verifying that the carried dynamic tag is legal, the intelligent terminal will display the obtained push information/query information result to the user.
针对非智能终端实现NFC通信的方式目前只能实现卡模拟方式,为近场通信带来了瓶颈。本发明为非智能终端实现NFC通信提供了如图4所示的技术方案。其中,非智能终端可以通过双界面卡技术提供NFC接口。The way to realize NFC communication for non-intelligent terminals can only realize the card emulation mode at present, which brings a bottleneck to the near field communication. The present invention provides a technical solution as shown in FIG. 4 for non-intelligent terminals to realize NFC communication. Among them, the non-intelligent terminal can provide the NFC interface through the dual interface card technology.
图4为本发明非NFC智能终端与智能信息终端交互的实施例的流程示意图,本实施例中,假设智能信息终端与非NFC智能终端之间经由双界面卡通过了NFC认证;如图4所示,包括以下步骤:FIG. 4 is a schematic flow chart of an embodiment of the interaction between a non-NFC smart terminal and a smart information terminal according to the present invention. In this embodiment, it is assumed that the smart information terminal and the non-NFC smart terminal have passed NFC authentication via a dual-interface card; as shown in FIG. 4 shown, including the following steps:
步骤400:智能信息终端接收到应用类别指令。Step 400: The intelligent information terminal receives the application category instruction.
本实施例中,在智能信息终端处于读卡器模式时,接收到的应用类别指令可以是信息推送指令,或者信息查询指令及查询信息内容指令。In this embodiment, when the intelligent information terminal is in the card reader mode, the received application category instruction may be an information push instruction, or an information query instruction and an information content query instruction.
步骤401:当智能信息终端进入读卡器状态,智能信息终端将携带有动态标签的推送信息/查询信息结果,写到非NFC智能终端的双界面卡文件中。Step 401: When the intelligent information terminal enters the card reader state, the intelligent information terminal writes the push information/query information result carrying the dynamic tag to the dual interface card file of the non-NFC intelligent terminal.
需要说明的是,目前,现有智能信息终端可以NDEF格式推送信息到非NFC智能终端的双界面卡上,但是,是不能实现主动查询的,而且无法实现智能信息终端的状态轮询。It should be noted that, at present, existing smart information terminals can push information to the dual-interface card of non-NFC smart terminals in NDEF format.
本步骤中,首先,需要等待智能信息终端进入读卡器状态;In this step, first, it is necessary to wait for the intelligent information terminal to enter the card reader state;
然后,当处于读卡器状态的智能信息终端接收到的指令是推送指令时,进入读卡器状态的智能信息终端会将携带有动态标签的推送信息写入非NFC智能终端的双界面卡的文件中;Then, when the instruction received by the intelligent information terminal in the card reader state is a push instruction, the intelligent information terminal entering the card reader state will write the push information carrying the dynamic tag into the dual interface card of the non-NFC intelligent terminal. in the file;
当处于读卡器状态的智能信息终端接收到的指令是信息查询指令及查询信息内容指令时,智能信息终端在后台查询信息,之后,进入读卡器状态的智能信息终端会将携带有动态标签的查询信息结果写入非NFC智能终端的双界面卡的文件中。When the instruction received by the intelligent information terminal in the card reader state is an information query instruction and an instruction for querying information content, the intelligent information terminal queries the information in the background, and then the intelligent information terminal in the card reader state will carry a dynamic tag. The result of the query information is written into the file of the dual-interface card of the non-NFC smart terminal.
步骤402:非NFC智能终端验证携带的动态标签合法后,从双界面卡获取推送信息或查询信息结果。Step 402: After verifying that the carried dynamic tag is legal, the non-NFC smart terminal obtains the push information or the query information result from the dual interface card.
本步骤中,智能终端会展示获得的推送信息/查询信息结果给用户。In this step, the intelligent terminal will display the obtained push information/query information result to the user.
需要说明的是,采用双界面卡来联系非NFC智能终端与智能信息终端是现有技术,但是,双界面卡只能工作于卡模拟方式,而本发明强调的是,利用双界面卡实现了非智能终端与智能信息终端间的数据传输方式。It should be noted that it is the prior art to use a dual-interface card to contact a non-NFC smart terminal and an intelligent information terminal. However, the dual-interface card can only work in the card simulation mode. Data transmission method between non-intelligent terminals and intelligent information terminals.
图5为本发明基于NFC的数据传输系统的组成结构示意图,如图5所示,至少包括智能信息终端、智能终端,以及智能卡;其中,FIG. 5 is a schematic diagram of the composition and structure of the NFC-based data transmission system of the present invention, as shown in FIG. 5 , at least including an intelligent information terminal, an intelligent terminal, and a smart card; wherein,
智能信息终端,用于与智能终端之间经由智能卡通过NFC认证并得到动态标签;向智能卡发送携带有动态标签的传输请求,智能卡存储动态标签;The intelligent information terminal is used to pass the NFC authentication with the intelligent terminal and obtain the dynamic tag through the smart card; send a transmission request carrying the dynamic tag to the smart card, and the smart card stores the dynamic tag;
智能卡,用于向智能终端发出携带有动态标签的传输请求;The smart card is used to send a transmission request with a dynamic tag to the smart terminal;
智能终端,用于接收来自智能卡的传输请求并验证携带的动态标签合法,获取传输的内容信息。The smart terminal is used to receive the transmission request from the smart card, verify the validity of the carried dynamic tag, and obtain the transmitted content information.
其中,智能终端可以是NFC智能终端,或者非NFC智能终端。The smart terminal may be an NFC smart terminal or a non-NFC smart terminal.
当智能终端是NFC智能终端时,所述智能卡为SWP-NFC卡;此时,When the smart terminal is an NFC smart terminal, the smart card is a SWP-NFC card; at this time,
智能信息终端,具体用于接收到应用类别指令,向SWP-NFC卡发送携带有动态标签的推送信息/查询信息结果;具体地,The intelligent information terminal is specifically used for receiving the application category instruction, and sending the push information/query information result carrying the dynamic tag to the SWP-NFC card; specifically,
当处于读卡器状态的智能信息终端接收到的指令是推动指令时,卡模拟状态的智能信息终端会向SWP-NFC卡推送信息;When the command received by the smart information terminal in the card reader state is a push command, the smart information terminal in the card simulation state will push the information to the SWP-NFC card;
当处于读卡器状态的智能信息终端接收到的指令是信息查询指令及查询信息内容指令时,智能信息终端在后台查询信息,之后,卡模拟状态的智能信息终端向SWP-NFC卡推送查询信息结果。When the command received by the smart information terminal in the card reader state is an information query command and a query information content command, the smart information terminal queries the information in the background, and then the smart information terminal in the card simulation state pushes the query information to the SWP-NFC card result.
SWP-NFC卡,具体用于将获得的携带有动态标签的推送信息/查询信息结果传输给NFC智能终端。The SWP-NFC card is specifically used to transmit the obtained push information/query information result carrying the dynamic tag to the NFC smart terminal.
当智能终端是非NFC智能终端时,所述智能卡为双界面卡;此时,When the smart terminal is a non-NFC smart terminal, the smart card is a dual-interface card; at this time,
智能信息终端,具体用于接收到应用类别指令,并进入读卡器状态,智能信息终端将携带有动态标签的推送信息/查询信息结果,写到非NFC智能终端的双界面卡文件中;具体地,The intelligent information terminal is specifically used to receive the application category instruction and enter the card reader state. The intelligent information terminal writes the push information/query information result carrying the dynamic tag to the dual-interface card file of the non-NFC intelligent terminal; specifically land,
当处于读卡器状态的智能信息终端接收到的指令是推动指令时,进入读卡器状态的智能信息终端会将携带有动态标签的推送信息写入非NFC智能终端的双界面卡文件;When the instruction received by the intelligent information terminal in the card reader state is a push instruction, the intelligent information terminal entering the card reader state will write the push information carrying the dynamic tag into the dual interface card file of the non-NFC intelligent terminal;
当处于读卡器状态的智能信息终端接收到的指令是信息查询指令及查询信息内容指令时,智能信息终端在后台查询信息,之后,进入读卡器状态的智能信息终端会将携带有动态标签的查询信息结果写入非NFC智能终端的双界面卡文件。When the instruction received by the intelligent information terminal in the card reader state is an information query instruction and an instruction for querying information content, the intelligent information terminal queries the information in the background, and then the intelligent information terminal in the card reader state will carry a dynamic tag. The result of the query information is written into the dual-interface card file of the non-NFC smart terminal.
非NFC智能终端,具体用于从双界面卡验证动态标签合法并获取推送信息或查询信息结果。Non-NFC smart terminal, specifically used to verify the legality of dynamic tags from dual-interface cards and obtain push information or query information results.
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described contents are only the embodiments adopted to facilitate the understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art to which the present invention belongs, without departing from the spirit and scope disclosed by the present invention, can make any modifications and changes in the form and details of the implementation, but the scope of the patent protection of the present invention still needs to be The scope defined by the appended claims shall prevail.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610158657.XA CN105657647B (en) | 2016-03-18 | 2016-03-18 | NFC-based data transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610158657.XA CN105657647B (en) | 2016-03-18 | 2016-03-18 | NFC-based data transmission method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105657647A CN105657647A (en) | 2016-06-08 |
CN105657647B true CN105657647B (en) | 2019-04-26 |
Family
ID=56495129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610158657.XA Active CN105657647B (en) | 2016-03-18 | 2016-03-18 | NFC-based data transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105657647B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660974A (en) * | 2019-01-25 | 2019-04-19 | 华能西藏雅鲁藏布江水电开发投资有限公司 | Intelligent escape evacuating system for power station |
CN112598821A (en) * | 2020-11-24 | 2021-04-02 | 云丁网络技术(北京)有限公司 | Intelligent lock and control method applied to intelligent lock |
CN114866993B (en) * | 2021-03-16 | 2024-08-23 | 浙江绍兴苏泊尔生活电器有限公司 | Method and device for accessing home appliance to network and home appliance |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391197A (en) * | 2013-07-19 | 2013-11-13 | 武汉大学 | Web identity authentication method based on mobile token and NFC technology |
WO2015001376A1 (en) * | 2013-07-01 | 2015-01-08 | Assa Abloy Ab | Signatures for near field communications |
-
2016
- 2016-03-18 CN CN201610158657.XA patent/CN105657647B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015001376A1 (en) * | 2013-07-01 | 2015-01-08 | Assa Abloy Ab | Signatures for near field communications |
CN103391197A (en) * | 2013-07-19 | 2013-11-13 | 武汉大学 | Web identity authentication method based on mobile token and NFC technology |
Non-Patent Citations (2)
Title |
---|
基于NFC技术的智能信息推送方案研究;李铭轩;《电信技术》;20140825;第69-73页 |
基于NFC的大容量信息推送技术研究;刘秋妍等;《信息通信技术》;20131015;第67-70页 |
Also Published As
Publication number | Publication date |
---|---|
CN105657647A (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103259667B (en) | The method and system of eID authentication on mobile terminal | |
CN103501191B (en) | A kind of mobile payment device based on NFC technology and method thereof | |
KR101968512B1 (en) | Device and method for transceiving multamedia data using near field communication | |
CN102404725B (en) | Method for safely building WiFi connection by SSID in application program | |
WO2014059813A1 (en) | Data transmission method and terminal device | |
CN102638446A (en) | Secure smart poster | |
CN104700262B (en) | A kind of payment system based on NFC mobile terminal and POS terminal | |
WO2013071711A1 (en) | Method for processing payment business and terminal | |
CN101561953A (en) | Safe ATM system and operation method thereof | |
CN105069864A (en) | Door lock control secure communication scheme based on NFC (near field communication) function of smart phone | |
CN104660567B (en) | D2D terminal access authentication method, D2D terminal and server | |
CN113383334B (en) | Device interconnect system with authentication | |
WO2016141865A1 (en) | Data transmission method for mobile near field payment and user equipment | |
CN101916459B (en) | Safe electronic ticket method | |
CN105184556A (en) | Bluetooth-based mobile payment system and payment method | |
CN106060762B (en) | Information pushing method, information pushing device and information pushing system | |
CN202696901U (en) | Mobile terminal identity authentication system based on digital certificate | |
Nagashree et al. | Near field communication | |
CN105657647B (en) | NFC-based data transmission method and system | |
CN109583154A (en) | A kind of system and method based on Web middleware access intelligent code key | |
CN103856940A (en) | Security authentication method and system | |
KR20130030474A (en) | System and method for communicating bewteen nfc terminals | |
US20080125107A1 (en) | Transparent enforcement of bluetooth encryption | |
WO2010051713A1 (en) | Method, system and mobile terminal for distributing the initial key of security sub-domain of a smart card | |
US20140258530A1 (en) | Method for acquiring access rights to a product or a service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |