Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for information interaction between host and smart card

An information interaction and smart card technology, applied in the field of data communication, can solve problems such as slow business processing speed, achieve the effects of improving business processing speed, avoiding uncontrollable accidents, and reducing blocking time

Active Publication Date: 2022-04-08
ZHENGZHOU XINDA JIEAN INFORMATION TECH
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Aiming at the problem that CCID protocol smart cards cannot be accessed and business processing speed is slow under the Linux platform, the present invention provides a method and device for information interaction between a host and smart cards, which can enable access to CCID protocol smart cards under the Linux platform to realize data communication and be able to Improve business processing speed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for information interaction between host and smart card
  • Method and device for information interaction between host and smart card
  • Method and device for information interaction between host and smart card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Such as figure 1 As shown, the embodiment of the present invention proposes a method for information interaction between a host and a smart card. The operating system of the host is a Linux system, and a communication connection is established between the host and the smart card. The method for information interaction between the host and the smart card includes:

[0032] S101: The host calls the service request interface to generate service request information, and then calls the APDU command interface to encapsulate the service request information to generate an APDU service command;

[0033] S102: The host invokes the CCID command interface to encapsulate the APDU service command to generate a CCID service command;

[0034] S103: The host calls the ioctl function according to the set calling method to send the CCID service instruction to the smart card, and receives the CCID response instruction about the CCID service instruction returned by the smart card, and parse...

Embodiment 2

[0038]On the basis of the above embodiments, in order to better realize the information interaction between the host and the smart card, as figure 2 As shown, the embodiment of the present invention further limits the synchronous calling mode and the asynchronous calling mode, specifically including:

[0039] When using the synchronous calling method, the host first sends the CCID service command to the smart card by calling the ioctl function, then calls the ioctl function and keeps waiting until the CCID response command returned by the smart card is received, and then parses the CCID response command to After obtaining the business response information, continue to process subsequent related business information;

[0040] When the asynchronous calling method is adopted, the host first sends the CCID service command to the smart card by calling the ioctl function, and then immediately returns to continue processing subsequent related business information, and then calls the...

Embodiment 3

[0050] Such as image 3 As shown, the embodiment of the present invention also provides a device for information interaction between a host and a smart card, including: a host and a smart card, the operating system of the host is a Linux system, and the host includes a service request interface module, an APDU command interface module and a CCID command interface A module and a call module; wherein, the call module includes: a synchronous call sub-module and an asynchronous call sub-module. The smart card includes a CCID read-write module and a business processing module; wherein:

[0051] The host is used to call the service request interface module to generate service request information, and then call the APDU command interface module to encapsulate the service request information to generate an APDU service command; it is also used to call the CCID command interface module to perform the APDU service command Encapsulate and generate CCID service instructions; and be used ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for information interaction between a host and a smart card. The operating system of the host is a Linux system, and the method includes: Step 1: the host invokes the service request interface to generate service request information, and then calls the APDU command interface to encapsulate the service request information to generate an APDU service instruction; Step 2: the host invokes the CCID The instruction interface encapsulates the APDU service instruction to generate a CCID service instruction; Step 3: The host calls the ioctl function according to the set calling method to send the CCID service instruction to the smart card, and receives the CCID returned by the smart card about the CCID service instruction Response instruction, analyzing the CCID response instruction to obtain service response information; wherein, the calling method includes: a synchronous calling method and an asynchronous calling method. The invention can make access to the smart card of CCID protocol under the Linux platform, realize data communication and improve the business processing speed.

Description

technical field [0001] The invention relates to the technical field of data communication, in particular to a method and device for information interaction between a host and a smart card. Background technique [0002] CCID (Chip Card Interface Device) provides a smart card reading and writing device to communicate with a host or other embedded hosts. APDU (Application Protocol Data Unit) is the communication format for on-card and off-card applications. At present, the smart card of the CCID protocol can be directly accessed under the Windows platform through the API interface, but the smart card of the CCID protocol cannot be directly accessed under the Linux platform, data communication with the smart card cannot be performed, and there is a problem of slow business processing. Contents of the invention [0003] Aiming at the problem that CCID protocol smart cards cannot be accessed and business processing speed is slow under the Linux platform, the present invention p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/40G06F9/448
CPCG06F13/4068G06F9/4482
Inventor 彭金辉徐晓兵习道彬雷宗华刘武忠
Owner ZHENGZHOU XINDA JIEAN INFORMATION TECH