WO2014106464A1 - Sd卡和访问sd卡的设备及方法 - Google Patents

Sd卡和访问sd卡的设备及方法 Download PDF

Info

Publication number
WO2014106464A1
WO2014106464A1 PCT/CN2014/070020 CN2014070020W WO2014106464A1 WO 2014106464 A1 WO2014106464 A1 WO 2014106464A1 CN 2014070020 W CN2014070020 W CN 2014070020W WO 2014106464 A1 WO2014106464 A1 WO 2014106464A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
transmission channel
data
data transmission
command
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/070020
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Publication of WO2014106464A1 publication Critical patent/WO2014106464A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories

Definitions

  • SD card and device and method for accessing SD card
  • the present invention relates to an SD card and an apparatus and method for accessing the SD card, and more particularly to an intelligent SD card and an apparatus and method for accessing the smart SD card. Background technique
  • the existing method for accessing the smart SD card usually accesses the security module embedded in the smart SD card in the following two ways: (1) accessing the security module by means of a driver; (2) reading and writing ordinary files through the SD card
  • the interface access security module uses special files preset in the SD card file system to distinguish between normal file read and write commands and commands for security modules.
  • the existing method of accessing the smart SD card has the following problems: (1) For the first mode, since the devices accessing the smart SD card are not all loaded with the relevant drivers, the use range of the mode is limited. (2) For the second mode, since the preset special file needs to be protected from modification in the FAT table of the smart SD card, when the user operates the smart SD card, the modification of the special file is involved. When the format (such as formatting, deleting or renaming the preset file), the FAT table in the smart SD card and the FAT corresponding to the smart SD card maintained in the operating system of the device accessing the smart SD card are caused. The table is inconsistent, resulting in subsequent user file loss and other phenomena.
  • the present invention proposes a FAT table and a wisdom maintained in an operating system of a device that does not need to preload the driver and can avoid accessing the smart SD card.
  • An SD card that can match the true FAT table of the SD card and a device and method for accessing the SD card.
  • a device for accessing an SD card the device accessing the SD card establishing a data transmission channel by transmitting a data transmission channel establishment instruction to an interface file of the SD card having a specific file name, and determining the SD card through the data transmission channel a type, if it is determined that the type of the SD card is a smart SD card, performing security information interaction with the security module in the SD card through the data transmission channel, and after the security information interaction is completed
  • the data transmission channel is closed by transmitting a data transmission channel close instruction to the interface file having the specific file name.
  • the device accessing the SD card determines whether the SD card has the interface file having a specific file name by means of retrieval before accessing the SD card, and if it is determined If the SD card does not have the interface file with a specific file name, an interface file having the specific file name is created in the SD card.
  • the device accessing the SD card sends the data transmission channel establishment instruction to the interface file having the specific file name by using a Write command of the SD card standard data read/write protocol, where
  • the data transmission channel setup instruction includes a command data signature.
  • the device accessing the SD card reads the SD card from the interface file having a specific file name for the data transmission by using a Read command of the SD card standard data read/write protocol. a channel response instruction message, and if the response message includes a response data signature, determining that the type of the SD card is a smart SD card, and then performing the data transmission channel with the SD card.
  • the security information of the security module interacts, and if the response message does not include the response data signature, it is determined that the type of the SD card is a conventional SD card.
  • the device accessing the SD card performs security information interaction with the security module in the SD card after the data transmission channel has been established in the following manner: by the SD card standard a Write command of the data read/write protocol sends a data packet to the SD card, wherein a write address of the Write command is a logical address corresponding to the interface file having a specific file name and the Write command includes a command data feature code And reading, by the Read command of the SD card standard data read/write protocol, the response message of the SD card for the security information interaction from the interface file with a specific file name, where the response message includes response data Signature.
  • the device accessing the SD card can be established After the data transmission channel is described, the data is written to the conventional storage module of the SD card by the Write command of the SD card standard data read/write protocol.
  • the device accessing the SD card sends a data transmission channel closing instruction to the SD card by using a Write command of the SD card standard data read/write protocol after the security information interaction is completed. And closing the data transmission channel, wherein the write address of the Write command is a logical address corresponding to the interface file having a specific file name, and the data transmission channel close instruction includes a command data feature code.
  • An SD card capable of establishing a data transmission channel by receiving a data transmission channel establishment instruction from a device accessing an SD card on an interface file having a specific file name, and if the SD card includes a security module, The security information interaction between the device accessing the SD card and the security module in the SD card can be performed through the data transmission channel, and after the security information interaction is completed, based on the specific The interface file of the file name receives the data transfer channel close command from the device accessing the SD card and closes the data transfer channel.
  • the SD card is capable of creating the specific file name based on an instruction of the device accessing the SD card in the absence of the interface file having the specific file name. Interface file.
  • the SD card receives the data transmission channel establishment instruction on the interface file having a specific file name by using a Write command of an SD card standard data read/write protocol, wherein
  • the data transmission channel setup instruction includes a command data signature.
  • the SD card establishes the data transmission channel by: identifying the data transmission channel establishment instruction based on a command data feature code in the data transmission channel establishment instruction; The logical address of the interface file having the specific file name is recorded in the register of the SD card and used as the data transmission channel entry address, and the read/write command analysis function is started to determine the subsequent reception before the data transmission channel is closed.
  • the target address for all SD card standard data read/write commands is the data transmission channel entry address; constructing a response message for establishing an instruction for the data transmission channel, and writing the response message to the An interface file having a specific file name, wherein if the SD card includes a security module, the response message includes a ringing The data signature is required, and if the SD card does not include a security module, the response message is a copy of the data transmission channel setup instruction.
  • the SD card processes the received SD card standard data read/write command from the device accessing the SD card after the data transmission channel has been established in the following manner: receiving station Determining, by the device accessing the SD card, a data packet sent by a Write command of an SD card standard data read/write protocol; analyzing the data packet to determine whether a write address in the Write command is an entry address of the data transmission channel; Writing a write address in the Write command is not the data transfer channel entry address, and writing data to a corresponding address in the conventional memory module of the SD card; if the write address in the Write command is the data transfer Channel entry address, further determining whether the data packet includes a command data signature, and if the data packet does not include the command data signature, discarding the packet and ending the process, if the packet includes command data a feature code, further analyzing the specific content of the data packet, and completing and the security based on the specific content Interacting information of the block, and constructing response data based on the information interaction result and writing the
  • the SD card closes the data transmission channel in the following manner after receiving a data transmission channel close instruction from the device accessing the SD card: by writing an address, command data
  • the feature code and the specific content identify the data transmission channel close instruction; clear the logical address of the interface file with the specific file name recorded by the register of the SD card, and close the read/write command analysis function; Transmitting the response data of the data transmission channel closing instruction and writing the response data to the interface file having the specific file name, so that the device accessing the SD card is read by the Read command of the SD card standard data read/write protocol .
  • a method of accessing an SD card comprising the following steps:
  • the device accessing the SD card sends a data transmission channel establishment instruction to the interface file of the SD card having a specific file name;
  • the SD card establishes a data transmission channel based on the data transmission channel establishment instruction;
  • the device accessing the SD card determines the type of the SD card by analyzing a response of the data transmission channel establishment instruction, If it is determined that the type of the SD card is a smart SD card, then pass The data transmission channel performs security information interaction with a security module in the SD card;
  • the SD card closes the data transmission channel based on the data transmission channel closing instruction.
  • the SD card and the device and method for accessing the SD card disclosed in the present invention have the following advantages: (1) no need to preload the driver, so Extends the scope of use; (2) can avoid the FAT table maintained in the operating system of the device accessing the smart SD card is inconsistent with the real FAT table of the smart SD card (that is, there is no need to specially protect the interface file with a specific file name) ), which improves reliability.
  • FIG. 1 is a schematic structural diagram of an SD card and an apparatus for accessing an SD card according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method of accessing an SD card according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of an SD card and an apparatus for accessing an SD card according to an embodiment of the present invention.
  • the device for accessing an SD card disclosed in the present invention transmits data transmission by an interface file having an specific file name (exemplarily, the specific file name is preset by way of configuration) of the SD card.
  • the channel establishment instruction establishes a data transmission channel and determines the type of the SD card through the data transmission channel, and if it is determined that the type of the SD card is a smart SD card (ie, a smart security module is embedded in the SD card),
  • the data transmission channel performs security information (ie, information that is relatively high in security requirements, such as transaction information in the financial field) of the security module in the SD card, and performs interactive execution of the security information.
  • the data transmission channel is then closed by sending a data transmission channel close command to the interface file having the specific file name.
  • the device for accessing an SD card disclosed by the present invention determines whether the SD card has the interface file having a specific file name by means of retrieval before accessing the SD card, and if it is determined that the SD card does not exist The interface file having a specific file name creates an interface file having the specific file name in the SD card.
  • the device for accessing an SD card disclosed by the present invention sends the data transmission channel establishment instruction to an interface file having a specific file name by using a Write command of an SD card standard data read/write protocol, wherein the data transmission channel
  • the setup command includes a command data signature.
  • the device for accessing the SD card disclosed by the present invention reads the response of the SD card to the data transmission channel establishment instruction from the interface file having the specific file name through the Read command of the SD card standard data read/write protocol. a message, and if the response message includes a response data signature, determining that the type of the SD card is a smart SD card, and then performing security with the security module in the SD card through the data transmission channel Information interaction, and if the response message does not include the response data signature, determining that the type of the SD card is a conventional SD card (ie, the SD card does not support security information interaction for the security module) o
  • the device for accessing the SD card disclosed in the present invention performs security information interaction with the security module in the SD card after the data transmission channel has been established in the following manner: through the SD card standard data read/write protocol a Write command sends a data packet to the SD card, where a write address of the Write command is a logical address corresponding to the interface file having a specific file name and the Write command includes a command data feature code, and an SD card is passed
  • the Read command of the standard data read/write protocol reads the response message of the SD card for the security information interaction from the interface file with a specific file name, wherein the response message includes a response data feature code.
  • the device for accessing the SD card disclosed by the present invention is capable of writing data to the conventional storage module of the SD card through the Write command of the SD card standard data read/write protocol after the data transmission channel has been established (ie, the Write)
  • the command is for the regular storage module of the SD card, not for the security module in the SD card)
  • the device for accessing the SD card disclosed by the present invention closes the data by sending a data transmission channel closing instruction to the SD card through a Write command of the SD card standard data read/write protocol after the security information interaction is completed.
  • a transmission channel wherein a write address of the Write command is a logical address corresponding to the interface file having a specific file name, and the data transfer channel close instruction includes a command data feature code.
  • the SD card disclosed by the present invention can receive a device from an access SD card by an interface file having a specific file name (exemplarily, the specific file name is preset by way of configuration).
  • Data transmission channel establishes an instruction to establish a data transmission channel, and if The SD card includes a security module, and then the security information between the device accessing the SD card and the security module in the SD card can be performed through the data transmission channel (ie, information requiring relatively high security, such as Transaction information in the financial domain) interaction, and a data transmission channel shutdown command from the device accessing the SD card received via the interface file having the specific file name after the security information interaction is completed The data transmission channel is closed.
  • the SD card disclosed by the present invention is capable of creating the interface file having a specific file name based on an instruction of the device accessing the SD card in the absence of the interface file having the specific file name.
  • the SD card disclosed by the present invention receives the data transmission channel establishment instruction on the interface file having a specific file name by using a Write command of the SD card standard data read/write protocol, wherein the data transmission channel is established.
  • the instructions include command data signatures.
  • the SD card disclosed in the present invention establishes the data transmission channel by identifying the data transmission channel establishment instruction based on the command data feature code in the data transmission channel establishment instruction; in the register of the SD card Recording the logical address of the interface file with the specific file name and using it as the data transmission channel entry address, and simultaneously starting the read/write command analysis function to determine all subsequent SD cards received before the data transmission channel is closed.
  • the target address ie, the write address in the Write command and the read address in the Read command
  • the target address for the standard data read/write command is the data transfer channel entry address; constructing a response report for establishing the instruction for the data transfer channel And writing the response message to the interface file having a specific file name, wherein if the SD card includes a security module, the response message includes a response data feature code (ie, the command data feature code is to be commanded) Updating to a response data signature, the response data signature and the command data signature are not And if the SD card does not include a security module, the response message is a copy of the data transmission channel establishment instruction (ie, it only includes the command data feature code)
  • the SD card disclosed by the present invention processes the received SD card standard data read/write command from the device accessing the SD card after the data transmission channel has been established in the following manner: receiving the access SD card The data packet sent by the device through the Write command of the SD card standard data read/write protocol; analyzing the data packet to determine whether the write address in the Write command is the data transmission channel entry address; if the Write command is in the If the write address is not the data transfer channel entry address, data is written to the corresponding address in the conventional memory module of the SD card (ie, the conventional SD card is conventional) a write operation); if the write address in the Write command is the data transfer channel entry address, further determining whether the data packet includes a command data feature code, and if the data packet does not include a command data feature code And discarding the data packet and ending the processing, and if the data packet includes the command data feature code, further analyzing the specific content of the data packet, and completing information interaction with the security module based on the specific content, And constructing the response data based on
  • the SD card disclosed by the present invention closes the data transmission channel in the following manner after receiving the data transmission channel closing instruction from the device accessing the SD card: by writing the address, the command data signature, and the specific content. Identifying the data transmission channel close instruction; clearing a logical address of the interface file having a specific file name recorded by a register of the SD card (ie, clearing a data transmission channel entry address), and turning off the read/write command analysis function (ie, the following function is turned off: determining whether the target address (ie, the write address in the Write command and the read address in the Read command) for the received SD card standard data read/write command is the data transfer channel entry address) Constructing response data for the data transfer channel shutdown command and writing the response data to the interface file having a specific file name for the device accessing the SD card to pass the SD card standard data read/write protocol Read command is read.
  • the method for accessing an SD card disclosed by the present invention includes the following steps: (A1) a device accessing an SD card has a specific file name to an SD card (exemplarily, the specific file name is configured by way of a pre-set interface file sends a data transmission channel establishment instruction; (A2) the SD card establishes a data transmission channel based on the data transmission channel establishment instruction; (A3) the device accessing the SD card analyzes the data Responding to the transmission channel establishment instruction to determine the type of the SD card.
  • the step (1) further includes: the device accessing the SD card determines whether the SD card exists by means of retrieval before accessing the SD card.
  • the interface file having a specific file name and if it is determined that the SD card does not have the interface file having a specific file name, an interface file having the specific file name is created in the SD card.
  • the device accessing the SD card transmits the data transmission channel to the interface file having a specific file name by using a Write command of an SD card standard data read/write protocol. And establishing an instruction, wherein the data transmission channel establishment instruction includes a command data feature code.
  • the device accessing the SD card reads the SD card from the interface file having a specific file name by using a Read command of the SD card standard data read/write protocol.
  • the device accessing the SD card performs security information interaction with the security module in the SD card in the following manner after the data transmission channel has been established. Transmitting a data packet to the SD card by using a Write command of an SD card standard data read/write protocol, wherein a write address of the Write command is a logical address corresponding to the interface file having a specific file name, and the Write command Include a command data signature, and read a response message of the SD card for the security information interaction from the interface file having a specific file name by using a Read command of an SD card standard data read/write protocol, wherein the response The message includes a response data signature.
  • the device for accessing the SD card can send a write command of the SD card standard data read/write protocol to the SD card after the data transmission channel has been established.
  • the conventional storage module writes data (that is, the Write command is for a conventional storage module of the SD card, not for the security module in the SD card) o
  • the device for accessing an SD card After the security information interaction is completed, the data transmission channel is closed by the Write command of the SD card standard data read/write protocol, and the data transmission channel is closed, wherein the write address of the Write command is The logical address corresponding to the interface file having the specific file name, and the data transmission channel closing instruction includes the command data feature code.
  • the SD card establishes the data transmission channel by: identifying the data transmission channel based on a command data feature code in the data transmission channel establishment instruction.
  • the data transmission channel establishes a response message of the instruction, and writes the response message to the interface file having a specific file name, wherein if the SD card includes a security module, the response message includes Response data signature (ie, the command data signature is updated to the response data signature, the response data
  • the quotation code is different from the command data feature code, and if the SD card does not include a security module,
  • the SD card processes the received SD card standard data read from the device accessing the SD card in the following manner after the data transmission channel has been established.
  • a write command receiving a data packet sent by the device accessing the SD card through a Write command of the SD card standard data read/write protocol; analyzing the data packet to determine whether the write address in the Write command is the data transmission channel An entry address; if the write address in the Write command is not the data transfer channel entry address, writing data to a corresponding address in a regular storage module of the SD card (ie, a normal write operation of a normal SD card) If the write address in the Write command is the data transmission channel entry address, further determining whether the data packet includes a command data feature code, and discarding the data packet if the data packet does not include the command data feature code The data packet ends the processing, and if the data packet includes the command data signature, the specific content of the data packet is further analyzed, and based on the Determining the information interaction with
  • the SD card closes the data transmission channel after receiving a data transmission channel close instruction from the device accessing the SD card in the following manner: by writing The input address, the command data signature, and the specific content identify the data transmission channel close instruction; clear the logical address of the interface file having the specific file name recorded by the register of the SD card (ie, clear the data transmission channel entry address) And closing the read/write command analysis function (ie, the following function is turned off: determining the target address for the received SD card standard data read/write command (ie, the write address in the Write command and the read address in the Read command) Whether it is the data transmission channel entry address); constructing response data for the data transmission channel shutdown instruction and writing the response data to the interface file having a specific file name for accessing the SD card
  • the device reads through the Read command of the SD card standard data read/write protocol.
  • the SD card and the device and method for accessing the SD card disclosed in the present invention have the following advantages: (1) the use range is not required to be preloaded, and the scope of use is expanded; (2) the device that can access the smart SD card can be avoided.
  • the FAT table maintained in the operating system is inconsistent with the real FAT table of the smart SD card (that is, there is no need to specially protect the interface file with a specific file name), thereby improving reliability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

本发明提出了SD卡和访问SD卡的设备及方法。其中,所述SD卡能够通过在具有特定文件名的接口文件上接收来自访问SD卡的设备的数据传输通道建立指令而建立数据传输通道, 并且如果所述SD卡包括安全模块,则随后能够通过所述数据传输通道进行所述访问SD卡的设备与所述SD卡中的安全模块之间的安全性信息交互。本发明所公开的SD卡和访问SD卡的设备及方法无需预先加载驱动程序且能够避免访问智能SD卡的设备的操作系统中所维护的FAT表与智能SD卡的真实的FAT表不一致。

Description

SD卡和访问 SD卡的设备及方法 技术领域
本发明涉及 SD卡和访问 SD卡的设备及方法,更具体地,涉及智能 SD 卡和访问智能 SD卡的设备及方法。 背景技术
目前,随着计算机和网络应用的日益广泛以及不同领域的业务种类的日益 丰富,在 SD卡中嵌入智能安全模块以实现应用和数据的安全存储和计算变得 越来越重要。
现有的访问智能 SD卡的方法通常以如下两种方式访问该智能 SD卡中内 嵌的安全模块:( 1 )通过驱动程序的方式访问安全模块;(2 )通过 SD卡的普 通文件读写接口访问安全模块,即利用 SD卡文件系统中预置的特殊文件来区 分普通文件读写命令和针对安全模块的命令。
然而,现有的访问智能 SD卡的方法存在如下问题:( 1 )针对第一种方式, 由于访问智能 SD卡的设备并不是都加载了相关的驱动程序,故使得该方式的 使用范围受到限制;( 2 )针对第二种方式, 由于需要在智能 SD卡的 FAT表 中对所述预置的特殊文件进行不能修改的保护措施,故当用户对智能 SD卡的 操作涉及到修改该特殊文件时(比如格式化,删除或重命名该预置文件时), 会造成该智能 SD卡中的 FAT表与访问该智能 SD卡的设备的操作系统中所 维护的对应于该智能 SD卡的 FAT表不一致,从而导致后续的用户文件丢失 等现象的出现。
因此,存在如下需求:提供无需预先加载驱动程序且能够避免访问智能 SD卡的设备的操作系统中所维护的 FAT表与智能 SD卡的真实的 FAT表不 一致的 SD卡和访问 SD卡的设备及方法。 发明内容
为了解决上述现有技术方案所存在的问题,本发明提出了无需预先加载驱 动程序且能够避免访问智能 SD卡的设备的操作系统中所维护的 FAT表与智 能 SD卡的真实的 FAT表不一致的 SD卡和访问 SD卡的设备及方法。
本发明的目的是通过以下技术方案实现的:
一种访问 SD卡的设备,所述访问 SD卡的设备通过向 SD卡的具有特定 文件名的接口文件发送数据传输通道建立指令而建立数据传输通道并通过所 述数据传输通道确定所述 SD 卡的类型,如果确定所述 SD 卡的类型是智能 SD卡,则通过所述数据传输通道进行与所述 SD卡中的安全模块的安全性信 息交互,以及在所述安全性信息交互执行完成后通过向所述具有特定文件名的 接口文件发送数据传输通道关闭指令而关闭所述数据传输通道。
在上面所公开的方案中 ,优选地,所述访问 SD卡的设备在访问所述 SD 卡之前通过检索的方式确定所述 SD 卡是否存在所述具有特定文件名的接口 文件,并且如果确定所述 SD卡不存在所述具有特定文件名的接口文件,则在 所述 SD卡中创建具有该特定文件名的接口文件。
在上面所公开的方案中 ,优选地,所述访问 SD卡的设备通过 SD卡标准 数据读写协议的 Write命令向所述具有特定文件名的接口文件发送所述数据传 输通道建立指令,其中 ,所述数据传输通道建立指令包括命令数据特征码。
在上面所公开的方案中 ,优选地,所述访问 SD卡的设备通过 SD卡标准 数据读写协议的 Read命令从所述具有特定文件名的接口文件读取所述 SD卡 针对所述数据传输通道建立指令的响应报文,并且如果所述响应报文包括响应 数据特征码,则确定所述 SD卡的类型是智能 SD卡,并随后通过所述数据传 输通道进行与所述 SD卡中的安全模块的安全性信息交互,而如果所述响应报 文不包括响应数据特征码,则确定所述 SD卡的类型是常规的 SD卡。
在上面所公开的方案中 ,优选地,所述访问 SD卡的设备在已建立所述数 据传输通道后以如下方式进行与所述 SD卡中的安全模块的安全性信息交互: 通过 SD卡标准数据读写协议的 Write命令向所述 SD卡发送数据包,其中所 述 Write命令的写入地址是所述具有特定文件名的接口文件所对应的逻辑地址 并且所述 Write命令包括命令数据特征码,以及通过 SD卡标准数据读写协议 的 Read命令从所述具有特定文件名的接口文件读取所述 SD卡针对所述安全 性信息交互的响应报文,其中所述响应报文包括响应数据特征码。
在上面所公开的方案中 ,优选地,所述访问 SD卡的设备能够在已建立所 述数据传输通道后通过 SD卡标准数据读写协议的 Write命令向所述 SD卡的 常规存储模块写入数据。
在上面所公开的方案中 ,优选地,所述访问 SD卡的设备在所述安全性信 息交互执行完成后通过 SD卡标准数据读写协议的 Write命令向所述 SD卡发 送数据传输通道关闭指令而关闭所述数据传输通道,其中所述 Write命令的写 入地址是所述具有特定文件名的接口文件所对应的逻辑地址,并且所述数据传 输通道关闭指令包括命令数据特征码。
本发明的目的也可以通过以下技术方案实现:
一种 SD卡,所述 SD卡能够通过在具有特定文件名的接口文件上接收来 自访问 SD卡的设备的数据传输通道建立指令而建立数据传输通道, 并且如果 所述 SD 卡包括安全模块,则随后能够通过所述数据传输通道进行所述访问 SD卡的设备与所述 SD卡中的安全模块之间的安全性信息交互,以及在所述 安全性信息交互执行完成后基于通过所述具有特定文件名的接口文件而接收 到的来自所述访问 SD 卡的设备的数据传输通道关闭指令而关闭所述数据传 输通道。
在上面所公开的方案中 ,优选地,所述 SD卡能够在不存在所述具有特定 文件名的接口文件的情况下基于所述访问 SD 卡的设备的指令而创建所述具 有特定文件名的接口文件。
在上面所公开的方案中 ,优选地,所述 SD卡通过 SD卡标准数据读写协 议的 Write命令而在所述具有特定文件名的接口文件上接收所述数据传输通道 建立指令,其中 ,所述数据传输通道建立指令包括命令数据特征码。
在上面所公开的方案中 ,优选地,所述 SD卡以如下方式建立所述数据传 输通道:基于所述数据传输通道建立指令中的命令数据特征码识别该数据传输 通道建立指令;在所述 SD卡的寄存器中记录下所述具有特定文件名的接口文 件的逻辑地址并将其作为数据传输通道入口地址,同时启动读写命令分析功能 以判断后续的、在所述数据传输通道关闭之前接收到的所有 SD卡标准数据读 写命令所针对的目标地址是否是所述数据传输通道入口地址;构建针对所述数 据传输通道建立指令的响应报文,并将所述响应报文写入所述具有特定文件名 的接口文件中 ,其中 ,如果所述 SD卡包括安全模块,则所述响应报文包括响 应数据特征码,而如果所述 SD卡不包括安全模块,则所述响应报文是所述数 据传输通道建立指令的拷贝。
在上面所公开的方案中 ,优选地,所述 SD卡在已建立所述数据传输通道 后以如下方式处理接收到的来自所述访问 SD卡的设备的 SD卡标准数据读写 命令:接收所述访问 SD卡的设备通过 SD卡标准数据读写协议的 Write命令 发送的数据包;分析所述数据包以判断所述 Write命令中的写入地址是否是所 述数据传输通道入口地址;如果所述 Write命令中的写入地址不是所述数据传 输通道入口地址,则向所述 SD卡的常规存储模块中的相应地址写入数据;如 果所述 Write命令中的写入地址是所述数据传输通道入口地址,则进一步判断 所述数据包是否包括命令数据特征码,并且如果所述数据包不包括命令数据特 征码,则丢弃该数据包并结束处理过程,而如果所述数据包包括命令数据特征 码,则进一步分析所述数据包的具体内容,并基于所述具体内容完成与所述安 全模块的信息交互,以及基于信息交互结果构建响应数据并将所述响应数据写 入所述具有特定文件名的接口文件中 ,以供所述访问 SD卡的设备通过 SD卡 标准数据读写协议的 Read命令读取。
在上面所公开的方案中 ,优选地,所述 SD卡在接收到来自所述访问 SD 卡的设备的数据传输通道关闭指令后以如下方式关闭所述数据传输通道:通过 写入地址、命令数据特征码和具体内容识别所述数据传输通道关闭指令;清除 所述 SD卡的寄存器所记录的所述具有特定文件名的接口文件的逻辑地址,并 关闭所述读写命令分析功能;构建针对所述数据传输通道关闭指令的响应数据 并将所述响应数据写入所述具有特定文件名的接口文件中 ,以供所述访问 SD 卡的设备通过 SD卡标准数据读写协议的 Read命令读取。
本发明的目的也可以通过以下技术方案实现:
一种访问 SD卡的方法,所述访问 SD卡的方法包括下列步骤:
( A1 )访问 SD卡的设备向 SD卡的具有特定文件名的接口文件发送数据 传输通道建立指令;
( A2 )所述 SD卡基于所述数据传输通道建立指令建立数据传输通道; ( A3 )所述访问 SD卡的设备通过分析所述数据传输通道建立指令的响应 来确定所述 SD卡的类型,如果确定所述 SD卡的类型是智能 SD卡,则通过 所述数据传输通道进行与所述 SD卡中的安全模块的安全性信息交互;
( A4 )所述访问 SD卡的设备在所述安全性信息交互执行完成后向所述具 有特定文件名的接口文件发送数据传输通道关闭指令;
( A5 斤述 SD卡基于所述数据传输通道关闭指令关闭所述数据传输通道。 本发明所公开的 SD卡和访问 SD卡的设备及方法具有以下优点:( 1 )无 需预先加载驱动程序,故扩展了使用范围 ;(2 )能够避免访问智能 SD卡的设 备的操作系统中所维护的 FAT表与智能 SD卡的真实的 FAT表不一致(即无 需对具有特定文件名的接口文件进行特殊的保护),从而提高了可靠性。
附图说明
结合附图 ,本发明的技术特征以及优点将会被本领域技术人员更好地理 解,其中 :
图 1是根据本发明的实施例的 SD卡和访问 SD卡的设备的示意性结构图 ; 图 2是根据本发明的实施例的访问 SD卡的方法的流程图。 具体实施方式
图 1是根据本发明的实施例的 SD卡和访问 SD卡的设备的示意性结构图。 如图 1所示,本发明所公开的访问 SD卡的设备通过向 SD卡的具有特定文件 名(示例性地,该特定文件名通过配置的方式而被预先设定)的接口文件发送 数据传输通道建立指令而建立数据传输通道并通过所述数据传输通道确定所 述 SD卡的类型,如果确定所述 SD卡的类型是智能 SD卡(即在 SD卡中嵌 入了智能安全模块),则通过所述数据传输通道进行与所述 SD卡中的安全模 块的安全性信息(即对安全性要求比较高的信息,例如金融领域中的交易信息 ) 交互,以及在所述安全性信息交互执行完成后通过向所述具有特定文件名的接 口文件发送数据传输通道关闭指令而关闭所述数据传输通道。
优选地,本发明所公开的访问 SD卡的设备在访问所述 SD卡之前通过检 索的方式确定所述 SD卡是否存在所述具有特定文件名的接口文件,并且如果 确定所述 SD卡不存在所述具有特定文件名的接口文件,则在所述 SD卡中创 建具有该特定文件名的接口文件。 优选地,本发明所公开的访问 SD卡的设备通过 SD卡标准数据读写协议 的 Write命令向所述具有特定文件名的接口文件发送所述数据传输通道建立指 令,其中 ,所述数据传输通道建立指令包括命令数据特征码。
优选地,本发明所公开的访问 SD卡的设备通过 SD卡标准数据读写协议 的 Read命令从所述具有特定文件名的接口文件读取所述 SD卡针对所述数据 传输通道建立指令的响应报文,并且如果所述响应报文包括响应数据特征码, 则确定所述 SD卡的类型是智能 SD卡,并随后通过所述数据传输通道进行与 所述 SD卡中的安全模块的安全性信息交互,而如果所述响应报文不包括响应 数据特征码,则确定所述 SD卡的类型是常规的 SD卡(即所述 SD卡不支持 针对安全模块的安全性信息交互 )o
优选地,本发明所公开的访问 SD卡的设备在已建立所述数据传输通道后 以如下方式进行与所述 SD卡中的安全模块的安全性信息交互:通过 SD卡标 准数据读写协议的 Write命令向所述 SD卡发送数据包,其中所述 Write命令 的写入地址是所述具有特定文件名的接口文件所对应的逻辑地址并且所述 Write命令包括命令数据特征码,以及通过 SD卡标准数据读写协议的 Read 命令从所述具有特定文件名的接口文件读取所述 SD 卡针对所述安全性信息 交互的响应报文,其中所述响应报文包括响应数据特征码。
优选地,本发明所公开的访问 SD卡的设备能够在已建立所述数据传输通 道后通过 SD卡标准数据读写协议的 Write命令向所述 SD卡的常规存储模块 写入数据(即该 Write命令是针对 SD卡的常规存储模块,而不是针对 SD卡 中的安全模块)b
优选地,本发明所公开的访问 SD卡的设备在所述安全性信息交互执行完 成后通过 SD卡标准数据读写协议的 Write命令向所述 SD卡发送数据传输通 道关闭指令而关闭所述数据传输通道,其中所述 Write命令的写入地址是所述 具有特定文件名的接口文件所对应的逻辑地址,并且所述数据传输通道关闭指 令包括命令数据特征码。
如图 1所示,本发明所公开的 SD卡能够通过在具有特定文件名(示例性 地,该特定文件名通过配置的方式而被预先设定)的接口文件上接收来自访问 SD 卡的设备的数据传输通道建立指令而建立数据传输通道, 并且如果所述 SD卡包括安全模块,则随后能够通过所述数据传输通道进行所述访问 SD卡 的设备与所述 SD卡中的安全模块之间的安全性信息(即对安全性要求比较高 的信息,例如金融领域中的交易信息)交互,以及在所述安全性信息交互执行 完成后基于通过所述具有特定文件名的接口文件而接收到的来自所述访问 SD 卡的设备的数据传输通道关闭指令而关闭所述数据传输通道。
优选地,本发明所公开的 SD卡能够在不存在所述具有特定文件名的接口 文件的情况下基于所述访问 SD 卡的设备的指令而创建所述具有特定文件名 的接口文件。
优选地,本发明所公开的 SD卡通过 SD卡标准数据读写协议的 Write命 令而在所述具有特定文件名的接口文件上接收所述数据传输通道建立指令,其 中 ,所述数据传输通道建立指令包括命令数据特征码。
优选地,本发明所公开的 SD卡以如下方式建立所述数据传输通道:基于 所述数据传输通道建立指令中的命令数据特征码识别该数据传输通道建立指 令;在所述 SD卡的寄存器中记录下所述具有特定文件名的接口文件的逻辑地 址并将其作为数据传输通道入口地址,同时启动读写命令分析功能以判断后续 的、在所述数据传输通道关闭之前接收到的所有 SD卡标准数据读写命令所针 对的目标地址(即 Write命令中的写入地址和 Read命令中的读取地址 )是否 是所述数据传输通道入口地址;构建针对所述数据传输通道建立指令的响应报 文,并将所述响应报文写入所述具有特定文件名的接口文件中 ,其中 ,如果所 述 SD卡包括安全模块,则所述响应报文包括响应数据特征码(即将命令数据 特征码更新为响应数据特征码,该响应数据特征码与所述命令数据特征码不 同 而如果所述 SD卡不包括安全模块,则所述响应报文是所述数据传输通 道建立指令的拷贝(即其仅包括命令数据特征码
优选地,本发明所公开的 SD卡在已建立所述数据传输通道后以如下方式 处理接收到的来自所述访问 SD卡的设备的 SD卡标准数据读写命令:接收所 述访问 SD卡的设备通过 SD卡标准数据读写协议的 Write命令发送的数据包; 分析所述数据包以判断所述 Write命令中的写入地址是否是所述数据传输通道 入口地址;如果所述 Write命令中的写入地址不是所述数据传输通道入口地址, 则向所述 SD卡的常规存储模块中的相应地址写入数据(即普通 SD卡的常规 写入操作);如果所述 Write命令中的写入地址是所述数据传输通道入口地址, 则进一步判断所述数据包是否包括命令数据特征码,并且如果所述数据包不包 括命令数据特征码,则丢弃该数据包并结束处理过程,而如果所述数据包包括 命令数据特征码,则进一步分析所述数据包的具体内容,并基于所述具体内容 完成与所述安全模块的信息交互,以及基于信息交互结果构建响应数据并将所 述响应数据写入所述具有特定文件名的接口文件中 ,以供所述访问 SD卡的设 备通过 SD卡标准数据读写协议的 Read命令读取。
优选地,本发明所公开的 SD卡在接收到来自所述访问 SD卡的设备的数 据传输通道关闭指令后以如下方式关闭所述数据传输通道:通过写入地址、命 令数据特征码和具体内容识别所述数据传输通道关闭指令;清除所述 SD卡的 寄存器所记录的所述具有特定文件名的接口文件的逻辑地址(即清除数据传输 通道入口地址),并关闭所述读写命令分析功能(即关闭如下功能:判断接收 到的 SD卡标准数据读写命令所针对的目标地址(即 Write命令中的写入地址 和 Read命令中的读取地址)是否是所述数据传输通道入口地址);构建针对 所述数据传输通道关闭指令的响应数据并将所述响应数据写入所述具有特定 文件名的接口文件中 ,以供所述访问 SD卡的设备通过 SD卡标准数据读写协 议的 Read命令读取。
图 2是根据本发明的实施例的访问 SD卡的方法的流程图。如图 2所示,本 发明所公开的访问 SD卡的方法包括下列步骤:( A1 )访问 SD卡的设备向 SD 卡的具有特定文件名(示例性地,该特定文件名通过配置的方式而被预先设定) 的接口文件发送数据传输通道建立指令;( A2 )所述 SD卡基于所述数据传输 通道建立指令建立数据传输通道;( A3 )所述访问 SD卡的设备通过分析所述 数据传输通道建立指令的响应来确定所述 SD卡的类型,如果确定所述 SD卡 的类型是智能 SD卡(即在 SD卡中嵌入了智能安全模块),则通过所述数据 传输通道进行与所述 SD卡中的安全模块的安全性信息(即对安全性要求比较 高的信息,例如金融领域中的交易信息)交互;( A4 )所述访问 SD卡的设备 在所述安全性信息交互执行完成后向所述具有特定文件名的接口文件发送数 据传输通道关闭指令; ( A5 )所述 SD卡基于所述数据传输通道关闭指令关闭 所述数据传输通道。 优选地,在本发明所公开的访问 SD卡的方法中 ,所述步骤( Α1 )进一步 包括:所述访问 SD卡的设备在访问所述 SD卡之前通过检索的方式确定所述 SD卡是否存在所述具有特定文件名的接口文件,并且如果确定所述 SD卡不 存在所述具有特定文件名的接口文件,则在所述 SD卡中创建具有该特定文件 名的接口文件。
优选地,在本发明所公开的访问 SD卡的方法中 ,所述访问 SD卡的设备 通过 SD卡标准数据读写协议的 Write命令向所述具有特定文件名的接口文件 发送所述数据传输通道建立指令,其中 ,所述数据传输通道建立指令包括命令 数据特征码。
优选地,在本发明所公开的访问 SD卡的方法中 ,所述访问 SD卡的设备 通过 SD卡标准数据读写协议的 Read命令从所述具有特定文件名的接口文件 读取所述 SD卡针对所述数据传输通道建立指令的响应报文,并且如果所述响 应报文包括响应数据特征码,则确定所述 SD卡的类型是智能 SD卡,并随后 通过所述数据传输通道进行与所述 SD卡中的安全模块的安全性信息交互,而 如果所述响应报文不包括响应数据特征码,则确定所述 SD卡的类型是常规的 SD卡(即所述 SD卡不支持针对安全模块的安全性信息交互 )o
优选地,在本发明所公开的访问 SD卡的方法中 ,所述访问 SD卡的设备 在已建立所述数据传输通道后以如下方式进行与所述 SD 卡中的安全模块的 安全性信息交互:通过 SD卡标准数据读写协议的 Write命令向所述 SD卡发 送数据包,其中所述 Write命令的写入地址是所述具有特定文件名的接口文件 所对应的逻辑地址并且所述 Write命令包括命令数据特征码,以及通过 SD卡 标准数据读写协议的 Read 命令从所述具有特定文件名的接口文件读取所述 SD卡针对所述安全性信息交互的响应报文,其中所述响应报文包括响应数据 特征码。
优选地,在本发明所公开的访问 SD卡的方法中 ,所述访问 SD卡的设备 能够在已建立所述数据传输通道后通过 SD卡标准数据读写协议的 Write命令 向所述 SD卡的常规存储模块写入数据(即该 Write命令是针对 SD卡的常规 存储模块,而不是针对 SD卡中的安全模块 )o
优选地,在本发明所公开的访问 SD卡的方法中 ,所述访问 SD卡的设备 在所述安全性信息交互执行完成后通过 SD卡标准数据读写协议的 Write命令 向所述 SD卡发送数据传输通道关闭指令而关闭所述数据传输通道,其中所述 Write命令的写入地址是所述具有特定文件名的接口文件所对应的逻辑地址, 并且所述数据传输通道关闭指令包括命令数据特征码。
优选地,在本发明所公开的访问 SD卡的方法中 ,所述 SD卡以如下方式 建立所述数据传输通道:基于所述数据传输通道建立指令中的命令数据特征码 识别该数据传输通道建立指令;在所述 SD卡的寄存器中记录下所述具有特定 文件名的接口文件的逻辑地址并将其作为数据传输通道入口地址,同时启动读 写命令分析功能以判断后续的、 在所述数据传输通道关闭之前接收到的所有 SD 卡标准数据读写命令所针对的目标地址(即 Write 命令中的写入地址和 Read命令中的读取地址)是否是所述数据传输通道入口地址;构建针对所述 数据传输通道建立指令的响应报文,并将所述响应报文写入所述具有特定文件 名的接口文件中 ,其中 ,如果所述 SD卡包括安全模块,则所述响应报文包括 响应数据特征码(即将命令数据特征码更新为响应数据特征码,该响应数据特 征码与所述命令数据特征码不同),而如果所述 SD卡不包括安全模块,则所 述响应报文是所述数据传输通道建立指令的拷贝(即其仅包括命令数据特征 码)b
优选地,在本发明所公开的访问 SD卡的方法中 ,所述 SD卡在已建立所 述数据传输通道后以如下方式处理接收到的来自所述访问 SD卡的设备的 SD 卡标准数据读写命令:接收所述访问 SD卡的设备通过 SD卡标准数据读写协 议的 Write命令发送的数据包;分析所述数据包以判断所述 Write命令中的写 入地址是否是所述数据传输通道入口地址;如果所述 Write命令中的写入地址 不是所述数据传输通道入口地址,则向所述 SD卡的常规存储模块中的相应地 址写入数据(即普通 SD卡的常规写入操作);如果所述 Write命令中的写入 地址是所述数据传输通道入口地址,则进一步判断所述数据包是否包括命令数 据特征码,并且如果所述数据包不包括命令数据特征码,则丢弃该数据包并结 束处理过程,而如果所述数据包包括命令数据特征码,则进一步分析所述数据 包的具体内容,并基于所述具体内容完成与所述安全模块的信息交互,以及基 于信息交互结果构建响应数据并将所述响应数据写入所述具有特定文件名的 接口文件中 ,以供所述访问 SD卡的设备通过 SD卡标准数据读写协议的 Read 命令读取。
优选地,在本发明所公开的访问 SD卡的方法中 ,所述 SD卡在接收到来 自所述访问 SD 卡的设备的数据传输通道关闭指令后以如下方式关闭所述数 据传输通道:通过写入地址、命令数据特征码和具体内容识别所述数据传输通 道关闭指令;清除所述 SD卡的寄存器所记录的所述具有特定文件名的接口文 件的逻辑地址(即清除数据传输通道入口地址),并关闭所述读写命令分析功 能(即关闭如下功能:判断接收到的 SD卡标准数据读写命令所针对的目标地 址(即 Write命令中的写入地址和 Read命令中的读取地址)是否是所述数据 传输通道入口地址);构建针对所述数据传输通道关闭指令的响应数据并将所 述响应数据写入所述具有特定文件名的接口文件中 ,以供所述访问 SD卡的设 备通过 SD卡标准数据读写协议的 Read命令读取。
由上可见,本发明所公开的 SD卡和访问 SD卡的设备及方法具有下列优 点:( 1 )无需预先加载驱动程序,故扩展了使用范围 ;( 2 )能够避免访问智能 SD卡的设备的操作系统中所维护的 FAT表与智能 SD卡的真实的 FAT表不 一致(即无需对具有特定文件名的接口文件进行特殊的保护),从而提高了可 靠性。
尽管本发明是通过上述的优选实施方式进行描述的,但是其实现形式并不 局限于上述的实施方式。 应该认识到:在不脱离本发明主旨和范围的情况下, 本领域技术人员可以对本发明做出不同的变化和修改。

Claims

权利要求
1. 一种访问 SD卡的设备,所述访问 SD卡的设备通过向 SD卡的具有特 定文件名的接口文件发送数据传输通道建立指令而建立数据传输通道并通过 所述数据传输通道确定所述 SD卡的类型,如果确定所述 SD卡的类型是智能 SD卡,则通过所述数据传输通道进行与所述 SD卡中的安全模块的安全性信 息交互,以及在所述安全性信息交互执行完成后通过向所述具有特定文件名的 接口文件发送数据传输通道关闭指令而关闭所述数据传输通道。
2 .根据权利要求 1所述的访问 SD卡的设备,其特征在于,所述访问 SD 卡的设备在访问所述 SD卡之前通过检索的方式确定所述 SD卡是否存在所述 具有特定文件名的接口文件,并且如果确定所述 SD卡不存在所述具有特定文 件名的接口文件,则在所述 SD卡中创建具有该特定文件名的接口文件。
3 .根据权利要求 2所述的访问 SD卡的设备,其特征在于,所述访问 SD 卡的设备通过 SD卡标准数据读写协议的 Write命令向所述具有特定文件名的 接口文件发送所述数据传输通道建立指令,其中 ,所述数据传输通道建立指令 包括命令数据特征码。
4 .根据权利要求 3所述的访问 SD卡的设备,其特征在于,所述访问 SD 卡的设备通过 SD卡标准数据读写协议的 Read命令从所述具有特定文件名的 接口文件读取所述 SD卡针对所述数据传输通道建立指令的响应报文,并且如 果所述响应报文包括响应数据特征码则确定所述 SD卡的类型是智能 SD卡, 并随后通过所述数据传输通道进行与所述 SD 卡中的安全模块的安全性信息 交互,而如果所述响应报文不包括响应数据特征码,则确定所述 SD卡的类型 是常规的 SD卡。
5 .根据权利要求 4所述的访问 SD卡的设备,其特征在于,所述访问 SD 卡的设备在已建立所述数据传输通道后以如下方式进行与所述 SD 卡中的安 全模块的安全性信息交互:通过 SD卡标准数据读写协议的 Write命令向所述 SD卡发送数据包,其中所述 Write命令的写入地址是所述具有特定文件名的 接口文件所对应的逻辑地址并且所述 Write命令包括命令数据特征码,以及通 过 SD卡标准数据读写协议的 Read命令从所述具有特定文件名的接口文件读 取所述 SD卡针对所述安全性信息交互的响应报文,其中所述响应报文包括响 应数据特征码。
6 .根据权利要求 5所述的访问 SD卡的设备,其特征在于,所述访问 SD 卡的设备能够在已建立所述数据传输通道后通过 SD 卡标准数据读写协议的 Write命令向所述 SD卡的常规存储模块写入数据。
7 .根据权利要求 6所述的访问 SD卡的设备,其特征在于,所述访问 SD 卡的设备在所述安全性信息交互执行完成后通过 SD 卡标准数据读写协议的 Write命令向所述 SD卡发送数据传输通道关闭指令而关闭所述数据传输通道, 其中所述 Write命令的写入地址是所述具有特定文件名的接口文件所对应的逻 辑地址,并且所述数据传输通道关闭指令包括命令数据特征码。
8 .—种 SD卡,所述 SD卡能够通过在具有特定文件名的接口文件上接 收来自访问 SD卡的设备的数据传输通道建立指令而建立数据传输通道, 并且 如果所述 SD卡包括安全模块,则随后能够通过所述数据传输通道进行所述访 问 SD卡的设备与所述 SD卡中的安全模块之间的安全性信息交互,以及在所 述安全性信息交互执行完成后基于通过所述具有特定文件名的接口文件而接 收到的来自所述访问 SD 卡的设备的数据传输通道关闭指令而关闭所述数据 传输通道。
9 .根据权利要求 8所述的 SD卡,其特征在于,所述 SD卡能够在不存在 所述具有特定文件名的接口文件的情况下基于所述访问 SD 卡的设备的指令 而创建所述具有特定文件名的接口文件。
10 .根据权利要求 9所述的 SD卡,其特征在于,所述 SD卡通过 SD卡 标准数据读写协议的 Write命令而在所述具有特定文件名的接口文件上接收所 述数据传输通道建立指令,其中 ,所述数据传输通道建立指令包括命令数据特 征码。
11 .根据权利要求 10所述的 SD卡,其特征在于,所述 SD卡以如下方式 建立所述数据传输通道:基于所述数据传输通道建立指令中的命令数据特征码 识别该数据传输通道建立指令;在所述 SD卡的寄存器中记录下所述具有特定 文件名的接口文件的逻辑地址并将其作为数据传输通道入口地址,同时启动读 写命令分析功能以判断后续的、 在所述数据传输通道关闭之前接收到的所有 SD 卡标准数据读写命令所针对的目标地址是否是所述数据传输通道入口地 址;构建针对所述数据传输通道建立指令的响应报文,并将所述响应报文写入 所述具有特定文件名的接口文件中 ,其中 ,如果所述 SD卡包括安全模块,则 所述响应报文包括响应数据特征码,而如果所述 SD卡不包括安全模块,则所 述响应报文是所述数据传输通道建立指令的拷贝。
12 .根据权利要求 1 1所述的 SD卡,其特征在于,所述 SD卡在已建立所 述数据传输通道后以如下方式处理接收到的来自所述访问 SD卡的设备的 SD 卡标准数据读写命令:接收所述访问 SD卡的设备通过 SD卡标准数据读写协 议的 Write命令发送的数据包;分析所述数据包以判断所述 Write命令中的写 入地址是否是所述数据传输通道入口地址;如果所述 Write命令中的写入地址 不是所述数据传输通道入口地址,则向所述 SD卡的常规存储模块中的相应地 址写入数据;如果所述 Write命令中的写入地址是所述数据传输通道入口地址, 则进一步判断所述数据包是否包括命令数据特征码,并且如果所述数据包不包 括命令数据特征码,则丢弃该数据包并结束处理过程,而如果所述数据包包括 命令数据特征码,则进一步分析所述数据包的具体内容,并基于所述具体内容 完成与所述安全模块的信息交互,以及基于信息交互结果构建响应数据并将所 述响应数据写入所述具有特定文件名的接口文件中 ,以供所述访问 SD卡的设 备通过 SD卡标准数据读写协议的 Read命令读取。
13 .根据权利要求 12所述的 SD卡,其特征在于,所述 SD卡在接收到来 自所述访问 SD 卡的设备的数据传输通道关闭指令后以如下方式关闭所述数 据传输通道:通过写入地址、命令数据特征码和具体内容识别所述数据传输通 道关闭指令;清除所述 SD卡的寄存器所记录的所述具有特定文件名的接口文 件的逻辑地址,并关闭所述读写命令分析功能;构建针对所述数据传输通道关 闭指令的响应数据并将所述响应数据写入所述具有特定文件名的接口文件中 , 以供所述访问 SD卡的设备通过 SD卡标准数据读写协议的 Read命令读取。
14 .一种访问 SD卡的方法,所述访问 SD卡的方法包括下列步骤: ( A1 )访问 SD卡的设备向 SD卡的具有特定文件名的接口文件发送数据 传输通道建立指令;
( A2 )所述 SD卡基于所述数据传输通道建立指令建立数据传输通道;
( A3 )所述访问 SD卡的设备通过分析所述数据传输通道建立指令的响应 来确定所述 SD卡的类型,如果确定所述 SD卡的类型是智能 SD卡,则通过 所述数据传输通道进行与所述 SD卡中的安全模块的安全性信息交互;
( A4 )所述访问 SD卡的设备在所述安全性信息交互执行完成后向所述具 有特定文件名的接口文件发送数据传输通道关闭指令;
( A5 斤述 SD卡基于所述数据传输通道关闭指令关闭所述数据传输通道。
PCT/CN2014/070020 2013-01-05 2014-01-02 Sd卡和访问sd卡的设备及方法 Ceased WO2014106464A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310001714.X 2013-01-05
CN201310001714.XA CN103914263B (zh) 2013-01-05 2013-01-05 Sd卡和访问sd卡的设备及方法

Publications (1)

Publication Number Publication Date
WO2014106464A1 true WO2014106464A1 (zh) 2014-07-10

Family

ID=51039975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/070020 Ceased WO2014106464A1 (zh) 2013-01-05 2014-01-02 Sd卡和访问sd卡的设备及方法

Country Status (2)

Country Link
CN (1) CN103914263B (zh)
WO (1) WO2014106464A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499483A (zh) * 2022-08-30 2022-12-20 深圳市德明利技术股份有限公司 一种建立私有命令通道的方法、装置、存储介质和存储卡

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111525A (zh) * 2017-12-29 2018-06-01 成都三零嘉微电子有限公司 一种使用扩展的sd卡通信协议实现数据加解密业务的方法
CN112287356B (zh) * 2020-11-11 2023-12-22 西安四叶草信息技术有限公司 一种计算机系统安全性评估方法与系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383017A (zh) * 2007-09-06 2009-03-11 中国银联股份有限公司 一种智能sd卡及访问智能sd卡的方法
US20090313396A1 (en) * 2008-06-13 2009-12-17 Phison Electronics Corp. System, controller and method thereof for transmitting and distributing data stream
CN101840379A (zh) * 2010-04-26 2010-09-22 苏州国芯科技有限公司 一种sd卡控制器的数据传输方法
CN102520878A (zh) * 2011-10-25 2012-06-27 深圳市江波龙电子有限公司 访问智能sd卡的方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383017A (zh) * 2007-09-06 2009-03-11 中国银联股份有限公司 一种智能sd卡及访问智能sd卡的方法
US20090313396A1 (en) * 2008-06-13 2009-12-17 Phison Electronics Corp. System, controller and method thereof for transmitting and distributing data stream
CN101840379A (zh) * 2010-04-26 2010-09-22 苏州国芯科技有限公司 一种sd卡控制器的数据传输方法
CN102520878A (zh) * 2011-10-25 2012-06-27 深圳市江波龙电子有限公司 访问智能sd卡的方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499483A (zh) * 2022-08-30 2022-12-20 深圳市德明利技术股份有限公司 一种建立私有命令通道的方法、装置、存储介质和存储卡

Also Published As

Publication number Publication date
HK1199666A1 (zh) 2015-07-10
CN103914263B (zh) 2018-01-23
CN103914263A (zh) 2014-07-09

Similar Documents

Publication Publication Date Title
US9081948B2 (en) Configurable smartcard
US8612632B2 (en) Systems and methods for tag information validation in wide port SAS connections
CN102394872A (zh) 数据通信协议
WO2014114120A1 (zh) 文件隔离方法、装置和系统
CN110515678A (zh) 一种信息处理方法、设备和计算机存储介质
WO2013174265A1 (zh) 数据传输方法和装置
WO2019057005A1 (zh) 数据校验的方法、装置以及网卡
CN108229190A (zh) 透明加解密的控制方法、装置、程序、存储介质和电子设备
WO2020020202A1 (zh) 应用程序的账号管理方法、装置、设备和介质
WO2016202108A1 (zh) Nfc支付方法、nfc支付系统和移动终端
WO2014106464A1 (zh) Sd卡和访问sd卡的设备及方法
TWI840288B (zh) 設備接入方法及其裝置、資料交換方法及其裝置、聯網設備、服務端及存儲介質
CN101551838B (zh) 一种存储卡身份认证方法及其系统
US8176218B2 (en) Apparatus and methods for real-time routing of received commands in a split-path architecture storage controller
US8756425B2 (en) Data security authentication system and related multi-function memory card and computer program product
CN112422281B (zh) 一种更改安全模块中密钥的方法及系统
CN104615934B (zh) Sql注入攻击安全防护方法和系统
US8028122B2 (en) Methods and systems for classifying storage systems using fixed static-IP addresses
CN110347517A (zh) 双系统的通信方法及计算机可读存储介质
TW201533606A (zh) Sd卡和存取sd卡的設備及方法
CN107292196A (zh) Io数据的读写方法和装置
CN120848811B (zh) 一种通信传输方法、产品、电子设备及介质
KR100622621B1 (ko) 운영-대기(Active-Standby) 모드로이중화된 IP 통신 시스템에서 주 시스템과 부 시스템간구성 데이터를 동기화하기 위한 방법 및 그 시스템
CN105955916B (zh) 一种写立即数的方法、设备及系统
CN201319186Y (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: 14735367

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 11/09/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 14735367

Country of ref document: EP

Kind code of ref document: A1