CN104639301B - Safety information interaction method for intelligent SD card - Google Patents
Safety information interaction method for intelligent SD card Download PDFInfo
- Publication number
- CN104639301B CN104639301B CN201310571086.9A CN201310571086A CN104639301B CN 104639301 B CN104639301 B CN 104639301B CN 201310571086 A CN201310571086 A CN 201310571086A CN 104639301 B CN104639301 B CN 104639301B
- Authority
- CN
- China
- Prior art keywords
- frame
- card
- intelligent
- client
- interaction method
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
- H04L1/1664—Details of the supervisory signal the supervisory signal being transmitted together with payload signals; piggybacking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1809—Selective-repeat protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention proposes the safety information interaction method for intelligent SD card.The method includes:Utility command is transmitted to the safe unit being embedded in SD card based on transport layer protocol by the client in safety information interactive terminal via SD card controller, wherein the utility command is carried at least one information frame for following the transport layer protocol;The safe unit each information frame of acknowledgement in a manner of sending the acknowledgement frame for following the transport layer protocol;If the acknowledgement frame indicates that the safe unit is unsuccessfully received one or more of described at least one information frame, the client retransmits corresponding information frame.The method disclosed in the present is accordingly possible to ensure security client and embedded safe unit in information interactive terminal(SE)Intelligent SD card between data transmission reliability.
Description
Technical field
The present invention relates to information interacting methods, more particularly, to the safety information interaction method for intelligent SD card.
Background technology
Currently, increasingly extensive and different field the type of business applied with computer and networks becomes increasingly abundant,
Safety information interactive terminal(Especially mobile terminal, such as mobile phone)With embedded safe unit(SE)Intelligent SD card pacified
Full property information interactive process(Payment transaction mistake i.e. to the higher information interactive process of security requirement, such as in financial field
Journey)Become more and more important.
In existing technical solution, safety information interactive terminal is usually carried out with following pattern(It is especially mobile whole
End)With embedded safe unit(SE)Intelligent SD card between safety information interactive process:(1)Safety information interactive terminal
In client be based on specific application protocol(Such as the CUPMobile Mobile Payment Protocols in financial field)By utility command
It is transmitted to SD card controller;(2)The utility command is forwarded to based on ISO7816 agreements and is embedded in institute by the SD card controller
State the safe unit in SD card(SE);(3)The safe unit(SE)Response command sent back based on ISO7816 agreements described
SD card controller;(4)The response command is forwarded to the visitor in the safety information interactive terminal by the SD card controller
Family end.Therefore in the process, the transmission of utility command is carried on specific application protocol and ISO7816 agreements.
However, there are the following problems for existing technical solution:It can not ensure safety information interactive terminal and embedded peace
Full unit(SE)Intelligent SD card between data transmission reliability.For example, being needed a utility command in safe unit
In the case of being sent to safety information interactive terminal, if between SD card controller and safe unit data send it is normal and
Mistake occurs when SD card controller forwards the data to safety information interactive terminal and fails to send successfully, then safety is believed
Breath interactive terminal will be considered to this data interaction failure, and safe unit will be considered that this data interaction is normal, so as to cause double
The inconsistency of side.
Accordingly, there exist following demands:Offer is accordingly possible to ensure security information interactive terminal and embedded safe unit(SE)'s
The safety information interaction method for intelligent SD card of the reliability of data transmission between intelligent SD card.
Invention content
In order to solve the problems existing in the prior art scheme, the present invention, which proposes, is accordingly possible to ensure security information friendship
Mutual terminal and embedded safe unit(SE)Intelligent SD card between data transmission reliability the safety for intelligent SD card
Property information interacting method.
The purpose of the present invention is what is be achieved through the following technical solutions:
A kind of safety information interaction method for intelligent SD card, the safety information for intelligent SD card interact
Method includes the following steps:
(A1)Client in safety information interactive terminal is controlled utility command via SD card based on transport layer protocol
Device is transmitted to the safe unit being embedded in SD card, wherein the utility command, which is carried on, follows the transport layer protocol
In at least one information frame;
(A2)The safe unit each information frame of acknowledgement in a manner of sending the acknowledgement frame for following the transport layer protocol;
(A3)If the acknowledgement frame indicates that the safe unit is unsuccessfully received at least one information frame
One or more, then the client retransmit corresponding information frame;
(A4)After being successfully received the utility command, the safe unit parses and handles the utility command, and
Response message associated with the utility command is sent back into institute via the SD card controller based on the transport layer protocol
State client.
In scheme disclosed above, illustratively, in data-link between the client and the SD card controller
Specific application protocol is based on the floor of road into row data communication.
In scheme disclosed above, illustratively, in data between the SD card controller and the safe unit
ISO7816 agreements are based on link layer into row data communication.
In scheme disclosed above, it is preferable that described information frame include header fields and the header fields it
Data field afterwards, wherein the data field carries effective data load.
In scheme disclosed above, it is preferable that the acknowledgement frame only includes header fields, and the acknowledgement frame base
Indicate whether the safe unit is successfully received corresponding information frame in different coded formats.
In scheme disclosed above, it is preferable that described information frame is sent according to number by client sequence, and
And only after receiving acknowledgement frame corresponding with the current information frame just sent and acknowledgement frame instruction receive it is successful
In the case of the client continue to send next information frame.
In scheme disclosed above, it is preferable that after receiving instruction and receiving failed acknowledgement frame, the visitor
Family end retransmits information frame corresponding with the acknowledgement frame.
In scheme disclosed above, it is preferable that after the client sends information frame, if when scheduled
Between do not receive any acknowledgement frame corresponding with the information frame within threshold value, then the client retransmits the information frame.
In scheme disclosed above, it is preferable that the client is only receiving instruction reception successfully confirmation
Just confirm that the corresponding information frame of the acknowledgement frame is sent successfully after frame.
In scheme disclosed above, illustratively, it is logical to carry out data in the client and the SD card controller
When letter, described information frame and the acknowledgement frame are encapsulated in the valid data domain of the data packet based on specific application protocol.
In scheme disclosed above, illustratively, data are carried out in the SD card controller and the safe unit
When communication, described information frame and the acknowledgement frame are encapsulated in the valid data domain of the data packet based on ISO7816 agreements.
In scheme disclosed above, illustratively, the safety information interactive terminal is mobile terminal.
Safety information interaction method disclosed in this invention for intelligent SD card has the following advantages:(1)It can carry
For in safety information interactive terminal client and be embedded in reliable point-to-point between the safe unit in intelligent SD card
Data transmission mechanism, to considerably improve data transmission efficiency;(2)It can support the flexible of data link layer application protocol
Selection and extension.
Description of the drawings
In conjunction with attached drawing, technical characteristic of the invention and advantage will be more fully understood by those skilled in the art, wherein:
Fig. 1 is the flow chart of the safety information interaction method according to an embodiment of the invention for intelligent SD card.
Specific implementation mode
Fig. 1 is the flow chart of the safety information interaction method according to an embodiment of the invention for intelligent SD card.Such as
Shown in Fig. 1, the safety information interaction method disclosed in this invention for intelligent SD card includes the following steps:(A1)Safety
Utility command is transmitted to by the client in information interactive terminal based on transport layer protocol via SD card controller is embedded in SD card
In safe unit, wherein the utility command is carried at least one information frame for following the transport layer protocol;
(A2)The safe unit each information frame of acknowledgement in a manner of sending the acknowledgement frame for following the transport layer protocol;(A3)If
The acknowledgement frame indicates that the safe unit is unsuccessfully received one or more of described at least one information frame, then described
Client retransmits corresponding information frame;(A4)After being successfully received the utility command, the safe unit parsing is simultaneously
Handle the utility command, and based on the transport layer protocol will response message associated with the utility command via described
SD card controller sends back the client.
Illustratively, disclosed in this invention in the safety information interaction method of intelligent SD card, the client
In data link layer between end and the SD card controller(Physical data layer under the i.e. described transport layer protocol)Upper base
In specific application protocol(Such as CUPMobile Mobile Payment Protocols in financial field or SDIO agreements etc.)It carries out
Data communicate.
Illustratively, disclosed in this invention in the safety information interaction method of intelligent SD card, the SD card
In data link layer between controller and the safe unit(Physical data layer under the i.e. described transport layer protocol)On
Based on ISO7816 agreements(Or SPI protocol, usb protocol etc.)Into row data communication.
Preferably, disclosed in this invention in the safety information interaction method of intelligent SD card, described information frame
Including the data field after header fields and the header fields, wherein the data field carries effective data load
(Such as APDU is instructed or data information).
Preferably, disclosed in this invention in the safety information interaction method of intelligent SD card, the acknowledgement frame
Only include header fields, and the acknowledgement frame indicates whether the safe unit is successfully received based on different coded formats
Corresponding information frame.
Illustratively, disclosed in this invention in the safety information interaction method of intelligent SD card, described information
The coded format of the header fields of frame and the acknowledgement frame is as shown in the table:
Wherein, the header fields of described information frame and the acknowledgement frame occupy a byte, and N(i)Described in expression
The number of information frame and the acknowledgement frame(Its value range is:000,001,010,011,100,101,110,111, it is right respectively
The 1-8 of respective frame is answered to number), and wherein, the number of each acknowledgement frame with and the number of its associated information frame it is identical.
Preferably, disclosed in this invention in the safety information interaction method of intelligent SD card, described information frame
It is sent by client sequence according to number, and is only receiving acknowledgement frame corresponding with the current information frame just sent
The client continues to send next information frame later and in the case of acknowledgement frame instruction reception successfully.
Preferably, disclosed in this invention in the safety information interaction method of intelligent SD card, referring to when receiving
Show after receiving failed acknowledgement frame, the client retransmits information frame corresponding with the acknowledgement frame(I.e. have with
The information frame that the number of the acknowledgement frame is identically numbered).
Preferably, disclosed in this invention in the safety information interaction method of intelligent SD card, as the client
After end sends information frame, if not receiving any confirmation corresponding with the information frame within scheduled time threshold
Frame, then the client retransmit the information frame.
Preferably, disclosed in this invention in the safety information interaction method of intelligent SD card, the client
Only just confirm that the corresponding information frame of the acknowledgement frame is sent successfully after receiving instruction and receiving successful acknowledgement frame.
Illustratively, disclosed in this invention in the safety information interaction method of intelligent SD card, in the visitor
When family end and the SD card controller are into row data communication, described information frame and the acknowledgement frame are encapsulated in and are based on specifically answering
Use agreement(Such as CUPMobile Mobile Payment Protocols in financial field or SDIO agreements etc.)Data packet it is effective
In data field.
Illustratively, disclosed in this invention in the safety information interaction method of intelligent SD card, in the SD
When card controller and the safe unit are into row data communication, described information frame and the acknowledgement frame are encapsulated in and are based on
ISO7816 agreements(Or SPI protocol, usb protocol etc.)Data packet valid data domain in.
Illustratively, disclosed in this invention in the safety information interaction method of intelligent SD card, the safety
Property information interactive terminal is mobile terminal(Such as mobile phone).
Therefore the safety information interaction method disclosed in this invention for intelligent SD card has following advantages:
(1)It is reliable between the client being capable of providing in safety information interactive terminal and the safe unit being embedded in intelligent SD card
Point-to-Point Data Transmission mechanism, to considerably improve data transmission efficiency;(2)It can support data link layer application association
The flexible selection and extension of view.
Although the present invention is described by above-mentioned preferred embodiment, way of realization is not limited to
Above-mentioned embodiment.It should be realized that:In the case where not departing from spirit and scope of the present invention, those skilled in the art can be with
Different change and modification are made to the present invention.
Claims (10)
1. a kind of safety information interaction method for intelligent SD card, the safety information interaction side for intelligent SD card
Method includes the following steps:
(A1) client in safety information interactive terminal is based on transport layer protocol by utility command via SD card controller biography
It is sent to the safe unit being embedded in SD card, wherein the utility command, which is carried on, follows the transport layer protocol at least
In one information frame, described information frame is sent by the client;
(A2) safe unit each described information frame of acknowledgement in a manner of sending the acknowledgement frame for following the transport layer protocol;
(A3) if the acknowledgement frame indicates one that the safe unit is unsuccessfully received at least one information frame
Or it is multiple, then the client retransmits corresponding described information frame;
(A4) after being successfully received the utility command, the safe unit parses and handles the utility command, and is based on
Response message associated with the utility command is sent back the visitor by the transport layer protocol via the SD card controller
Family end;
Wherein, CUPMobile agreements or SDIO are based between the client and the SD card controller on data link level
Agreement is based on ISO7816 into row data communication, between the SD card controller and the safe unit and assists on data link level
It discusses into row data communication.
2. the safety information interaction method according to claim 1 for intelligent SD card, which is characterized in that described information
Frame includes the data field after header fields and the header fields, wherein the data field carrying valid data carry
Lotus.
3. the safety information interaction method according to claim 2 for intelligent SD card, which is characterized in that the confirmation
Frame only includes header fields, and the acknowledgement frame indicates whether the safe unit is properly received based on different coded formats
To corresponding described information frame.
4. the safety information interaction method according to claim 3 for intelligent SD card, which is characterized in that described information
Frame is sent according to number by client sequence, and only corresponding in the described information frame for receiving with currently just having sent
The client continues to send next described information frame after acknowledgement frame and in the case of acknowledgement frame instruction reception successfully.
5. the safety information interaction method according to claim 4 for intelligent SD card, which is characterized in that when receiving
It indicates after receiving failed acknowledgement frame, the client retransmits described information frame corresponding with the acknowledgement frame.
6. the safety information interaction method according to claim 5 for intelligent SD card, which is characterized in that as the visitor
After family end sends described information frame, if do not received within scheduled time threshold any corresponding with the information frame
Acknowledgement frame, then the client retransmit the information frame.
7. the safety information interaction method according to claim 6 for intelligent SD card, which is characterized in that the client
End only just confirms that the corresponding described information frame of the acknowledgement frame is sent after receiving instruction and receiving successful acknowledgement frame
Success.
8. the safety information interaction method according to claim 7 for intelligent SD card, which is characterized in that in the visitor
When family end and the SD card controller are into row data communication, described information frame and the acknowledgement frame are encapsulated in and are based on
In the valid data domain of the data packet of CUPMobile agreements or SDIO agreements.
9. the safety information interaction method according to claim 8 for intelligent SD card, which is characterized in that in the SD
When card controller and the safe unit are into row data communication, described information frame and the acknowledgement frame are encapsulated in and are based on
In the valid data domain of the data packet of ISO7816 agreements.
10. the safety information interaction method according to claim 9 for intelligent SD card, which is characterized in that the peace
Full property information interactive terminal is mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310571086.9A CN104639301B (en) | 2013-11-15 | 2013-11-15 | Safety information interaction method for intelligent SD card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310571086.9A CN104639301B (en) | 2013-11-15 | 2013-11-15 | Safety information interaction method for intelligent SD card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104639301A CN104639301A (en) | 2015-05-20 |
CN104639301B true CN104639301B (en) | 2018-09-21 |
Family
ID=53217661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310571086.9A Active CN104639301B (en) | 2013-11-15 | 2013-11-15 | Safety information interaction method for intelligent SD card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104639301B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622073A (en) * | 2004-12-31 | 2005-06-01 | 北京中星微电子有限公司 | Apparatus and method for controlling SD card interface |
CN101383017A (en) * | 2007-09-06 | 2009-03-11 | ***股份有限公司 | Intelligent SD card and intelligent SD card access method |
CN102831450A (en) * | 2012-08-14 | 2012-12-19 | 东信和平科技股份有限公司 | Method and system for reading and writing SD card (Secure Digital Memory Card) based on ISO/IEC7816-3 interface |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2011338191A1 (en) * | 2010-12-09 | 2013-07-11 | Keith Benson | Hand-held self-provisioned pin red communicator |
-
2013
- 2013-11-15 CN CN201310571086.9A patent/CN104639301B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622073A (en) * | 2004-12-31 | 2005-06-01 | 北京中星微电子有限公司 | Apparatus and method for controlling SD card interface |
CN101383017A (en) * | 2007-09-06 | 2009-03-11 | ***股份有限公司 | Intelligent SD card and intelligent SD card access method |
CN102831450A (en) * | 2012-08-14 | 2012-12-19 | 东信和平科技股份有限公司 | Method and system for reading and writing SD card (Secure Digital Memory Card) based on ISO/IEC7816-3 interface |
Also Published As
Publication number | Publication date |
---|---|
CN104639301A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102629896B (en) | Wireless communication terminal | |
CN109981480A (en) | A kind of data transmission method and the first equipment | |
CN101753277B (en) | Method for transmitting message status report of radio link control layer | |
CN110235398A (en) | Method for partial retransmission | |
CN101616442B (en) | Method for transmitting uplink data and terminal device | |
CN108886432A (en) | Communication means and device | |
CN104836646A (en) | Method for enhancing transmission reliability of RLC AM mode | |
CN105530686B (en) | A kind of cut-in method for realizing intelligent vehicle mounted terminal based on udp protocol | |
CN101699797A (en) | Method for performing data transmission by using UDP protocol | |
CN110493775B (en) | Communication method and system adapted by ATT and exception handling | |
CN109391381A (en) | The confirmation message of data generates and feedback, data transmission method and device | |
MX2012007391A (en) | Methods and arrangements in a telecommunication system. | |
EP3766279B1 (en) | Method and system for optimizing the feedback mechanism in data link layer | |
CN108023688A (en) | A kind of data transmission method and device | |
TW200813857A (en) | RF tag reader and method | |
CN101753281B (en) | Method and system for reducing redundant message retransmission of radio link control layer | |
CN109673050A (en) | Data-reusing transmission method, network side equipment and communication system | |
CN105007308A (en) | File transmission method for use in database isolation device environment | |
CN101369879A (en) | Method and apparatus for requesting data retransmission | |
CN105530076A (en) | Data packet dropout retransmission optimizing method | |
CN101316373A (en) | Method and device for implementing automatic data package retransmission in wireless communication network | |
CN106375064A (en) | Password keyboard USB communication anomaly recovery method and system | |
CN104639301B (en) | Safety information interaction method for intelligent SD card | |
CN106921474A (en) | The sending method of uplink retransmission data, apparatus and system | |
CN101030841B (en) | Method and apparatus for notifying protocol unit length variation |
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 |