WO2020125001A1 - 一种存储设备的操作方法及存储设备 - Google Patents

一种存储设备的操作方法及存储设备 Download PDF

Info

Publication number
WO2020125001A1
WO2020125001A1 PCT/CN2019/096428 CN2019096428W WO2020125001A1 WO 2020125001 A1 WO2020125001 A1 WO 2020125001A1 CN 2019096428 W CN2019096428 W CN 2019096428W WO 2020125001 A1 WO2020125001 A1 WO 2020125001A1
Authority
WO
WIPO (PCT)
Prior art keywords
command
storage device
initialization
protocol
communication protocol
Prior art date
Application number
PCT/CN2019/096428
Other languages
English (en)
French (fr)
Inventor
叶智豪
郭丹
邓恩华
李志雄
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/415,588 priority Critical patent/US20220156009A1/en
Priority to EP19898482.5A priority patent/EP3876087A4/en
Publication of WO2020125001A1 publication Critical patent/WO2020125001A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0661Format or protocol conversion arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Definitions

  • the disclosed embodiments of the present invention relate to the field of storage technology, and more specifically, to an operation method of a storage device and a storage device.
  • solid-state storage devices have become an important choice for different electronic devices with high speed and small size, such as computers and smart phones.
  • solid-state storage devices generally only work on one host device, for example, an SD card works on an SD host device. In this way, compatibility is poor.
  • the same memory can only work on one host device, which is inconvenient for data movement between multiple devices.
  • host devices with different protocols need to prepare different materials, which is not convenient for manufacturing, and for different protocol solutions, the driver needs to be switched, and the workload is large.
  • the present invention provides an operation method of a storage device and a storage device to solve the above technical problems.
  • a method of operating a storage device has the processing capability of the first communication protocol and the processing capability of the second communication protocol.
  • the method includes: receiving an adaptive command; identifying the adaptive command, and according to the adaptive command, determining whether to execute the first communication protocol or the second communication protocol Proceed.
  • one of the first communication protocol and the second communication protocol is the SD protocol, and the other is the eMMC protocol.
  • receiving the adaptive command includes: receiving an initialization command.
  • the adaptive command includes: if the initialization command is recognized as the CMD1 command, the eMMC protocol is executed, and the initialization operation is performed in response to the CMD1 command.
  • the adaptive command includes: if the initialization command is recognized as a CMD8 command, execute the SD protocol and respond to the CMD1 command to perform the initialization operation.
  • receiving the adaptive command before receiving the initialization command, receiving the adaptive command also includes:
  • the reset command is CMD0 command.
  • the adaptive command before receiving the adaptive command, it also includes: performing a power-on operation to make it in a working state; after performing the initialization operation, it also includes: sending the initialization result to perform the eMMC protocol or the SD protocol for operation.
  • the voltage used in a power-on operation is 3.3V.
  • a storage device has the processing capability of the first communication protocol and the processing capability of the second communication protocol, and the storage device is used to perform the operation method in the first aspect.
  • the storage device has the processing capability of the first communication protocol and the second communication protocol.
  • the storage device determines whether to execute the first communication protocol or the second communication protocol based on the adaptive command Operate to achieve adaptive operation between different communication protocols, so that the storage device can be recognized by hosts of different communication protocols, thus suitable for hosts of different communication protocols
  • FIG. 1 is a flowchart of the operation method of the storage device according to the first embodiment of the present invention.
  • FIG. 2 is a flowchart of a method of operating a storage device according to a second embodiment of the invention.
  • FIG. 3 is a flowchart of a method of operating a storage device according to a third embodiment of the invention.
  • FIG. 4 is a flowchart of a method of operating a storage device according to a fourth embodiment of the invention.
  • FIG. 5 is a flowchart of a method of operating a storage device according to a fifth embodiment of the invention.
  • FIG. 6 is a flowchart of a method of operating a storage device according to a sixth embodiment of the invention.
  • FIG. 7 is a flowchart of a method of operating a storage device according to a seventh embodiment of the invention.
  • the storage device may be a memory card
  • the memory card is an independent storage medium used in mobile phones, digital cameras, tablet computers, portable computers, MP3s, or other digital products, generally in the form of a card, so it is collectively called " "Memory card”, also known as “digital memory card”, “digital memory card”, “memory card”, etc.
  • the storage device has the processing capability of the first communication protocol and the processing capability of the second communication protocol.
  • the first communication protocol may include but is not limited to one of the SD protocol, eMMC protocol, UFS protocol, and the like.
  • the second communication protocol may include, but is not limited to, one of SD protocol, eMMC protocol, UFS protocol, and the like. It should be understood that the first communication protocol and the second communication protocol are different communication protocols.
  • the method 100 includes:
  • Step 110 Receive an adaptive command.
  • the storage device may receive an adaptive command from an external host, so that the storage device responds according to the adaptive command sent by the host and performs corresponding operations.
  • Step 120 Identify the adaptive command and determine whether to execute the first communication protocol or the second communication protocol according to the adaptive command.
  • the storage device After receiving the adaptive command, the storage device recognizes the adaptive command and determines whether to execute the first communication protocol or the second communication protocol according to the adaptive command.
  • the storage device has the processing capability of the first communication protocol and the second communication protocol.
  • the storage device determines whether to execute the first communication protocol or the second communication protocol according to the adaptive command. The operation enables adaptive operation between different communication protocols, so that the storage device can be recognized by hosts of different communication protocols, and thus is suitable for hosts of different communication protocols.
  • one of the first communication protocol and the second communication protocol is the SD protocol, and the other is the eMMC protocol. It is known to those skilled in the art that the relevant pins implementing the SD protocol are shown in the following table:
  • the eMMC (Embedded Multi Media Card) agreement was established by the MMC Association and is mainly for embedded memory standard specifications for products such as mobile phones or tablet computers.
  • the implementation of eMMC protocol can include NAND flash, controller, and standard package interface.
  • the hardware interface implementing the eMMC protocol is the same as the hardware interface implementing the SD protocol.
  • those skilled in the art may know that the separate SD protocol and the separate eMMC protocol are similar in function.
  • the storage device has the processing capabilities of the SD protocol and the eMMC protocol, the storage device can be compatible with the processing capabilities of the two communication protocols.
  • step S110 may specifically include: receiving an initialization command.
  • the method 200 includes:
  • Step 210 Receive an initialization command.
  • the storage device may receive an initialization command from an external host, so that the storage device performs an initialization operation in response to the initialization command sent by the host.
  • Step 220 Identify the received initialization command.
  • the storage device After receiving the initialization command sent by the host, the storage device recognizes the initialization command, so that the storage device determines whether the first communication protocol or the second communication protocol is executed according to the recognition result.
  • Step 230 If the initialization command is recognized as a CMD1 command, the storage device executes the eMMC protocol and responds to the CMD1 command to perform the initialization operation.
  • the storage device After receiving the initialization command, the storage device recognizes the initialization command. If the recognized initialization command is the CMD1 command, the storage device is deemed to execute the eMMC protocol. In response to the CMD1 command, the storage device is initialized, that is, the storage device performs an initialization operation until the entire initialization process is completed.
  • Step 240 Send the initialization result to the host.
  • the storage device determines the communication protocol executed by the storage device according to the recognized initialization command, and initializes according to the communication protocol. During the initialization process, the storage device continuously returns the initialization result to the host until the initialization is completed, and sends the initialization completion to the host Information to enable the host to determine whether the storage device has been initialized according to the initialization result, so that the next operation can be performed.
  • the method 300 includes:
  • Step 310 Receive an initialization command.
  • the storage device may receive an initialization command from an external host, so that the storage device performs an initialization operation in response to the initialization command sent by the host.
  • Step 320 Identify the received initialization command.
  • the storage device After receiving the initialization command sent by the host, the storage device recognizes the initialization command, so that the storage device determines whether the first communication protocol or the second communication protocol is executed according to the recognition result.
  • Step 330 If the initialization command is recognized as a CMD8 command, execute the SD protocol, and respond to the CMD8 command to perform the initialization operation.
  • the storage device After receiving the initialization command, the storage device recognizes the initialization command. If the recognized initialization command is a CMD8 command, the storage device is deemed to execute the SD protocol. In response to the CMD8 command, the storage device is initialized, that is, the storage device performs the initialization operation until the entire initialization process is completed.
  • Step 340 Send the initialization result to the host.
  • the storage device determines the communication protocol executed by the storage device according to the recognized initialization command, and initializes according to the communication protocol. During the initialization process, the storage device continuously returns the initialization result to the host until the initialization is completed, and sends the initialization completion to the host Information to enable the host to determine whether the storage device has been initialized according to the initialization result, so that the next operation can be performed.
  • the method 400 includes:
  • Step 410 Receive a reset command shared by the eMMC protocol and the SD protocol, so that the storage device enters an idle state.
  • the reset command is a CMD0 command.
  • Step 420 Receive an initialization command.
  • the storage device may receive an initialization command from an external host, so that the storage device performs an initialization operation in response to the initialization command sent by the host.
  • Step 430 Identify the received initialization command.
  • the storage device After receiving the initialization command sent by the host, the storage device recognizes the initialization command, so that the storage device determines whether the first communication protocol or the second communication protocol is executed according to the recognition result.
  • Step 440 If the initialization command is recognized as the CMD1 command, execute the eMMC protocol, and respond to the CMD1 command to perform the initialization operation.
  • the storage device After receiving the initialization command, the storage device recognizes the initialization command. If the recognized initialization command is the CMD1 command, the storage device is deemed to execute the eMMC protocol. In response to the CMD1 command, the storage device is initialized, that is, the storage device performs an initialization operation until the entire initialization process is completed.
  • Step 450 Send the initialization result to the host.
  • the storage device determines the communication protocol executed by the storage device according to the recognized initialization command, and initializes according to the communication protocol. During the initialization process, the storage device continuously returns the initialization result to the host until the initialization is completed, and sends the initialization completion to the host Information to enable the host to determine whether the storage device has been initialized according to the initialization result, so that the next operation can be performed.
  • the method 500 includes:
  • Step 510 Receive a reset command shared by the eMMC protocol and the SD protocol to make the storage device enter an idle state.
  • the reset command is a CMD0 command.
  • Step 520 Receive an initialization command.
  • the storage device may receive an initialization command from an external host, so that the storage device performs an initialization operation in response to the initialization command sent by the host.
  • Step 530 Identify the received initialization command.
  • the storage device After receiving the initialization command sent by the host, the storage device recognizes the initialization command, so that the storage device determines whether the first communication protocol or the second communication protocol is executed according to the recognition result.
  • Step 540 If the initialization command is recognized as a CMD8 command, execute the SD protocol, and respond to the CMD8 command to perform the initialization operation.
  • the storage device After receiving the initialization command, the storage device recognizes the initialization command. If the recognized initialization command is a CMD8 command, the storage device is deemed to execute the SD protocol. In response to the CMD8 command, the storage device is initialized, that is, the storage device performs the initialization operation until the entire initialization process is completed.
  • Step 550 Send the initialization result to the host.
  • the storage device determines the communication protocol executed by the storage device according to the recognized initialization command, and initializes according to the communication protocol. During the initialization process, the storage device continuously returns the initialization result to the host until the initialization is completed, and sends the initialization completion to the host Information to enable the host to determine whether the storage device has been initialized according to the initialization result, so that the next operation can be performed.
  • the method 600 includes:
  • Step 610 Perform a power-on operation to make it in a working state.
  • the voltage used for one power-up operation is 3.3V.
  • Step 620 Receive a reset command shared by the eMMC protocol and the SD protocol to make the storage device enter an idle state.
  • the reset command is a CMD0 command.
  • Step 630 Receive an initialization command.
  • the storage device may receive an initialization command from an external host, so that the storage device performs an initialization operation in response to the initialization command sent by the host.
  • Step 640 Identify the received initialization command.
  • the storage device After receiving the initialization command sent by the host, the storage device recognizes the initialization command, so that the storage device determines whether the first communication protocol or the second communication protocol is executed according to the recognition result.
  • Step 650 If the initialization command is recognized as the CMD1 command, execute the eMMC protocol, and respond to the CMD1 command to perform the initialization operation.
  • the storage device After receiving the initialization command, the storage device recognizes the initialization command. If the recognized initialization command is the CMD1 command, the storage device is deemed to execute the eMMC protocol. In response to the CMD1 command, the storage device is initialized, that is, the storage device performs an initialization operation until the entire initialization process is completed.
  • Step 660 Perform an initialization operation.
  • Step 670 Send the initialization result to the host.
  • the storage device determines the communication protocol executed by the storage device according to the recognized initialization command, and initializes according to the communication protocol. During the initialization process, the storage device continuously returns the initialization result to the host until the initialization is completed, and sends the initialization completion to the host Information to enable the host to determine whether the storage device has been initialized according to the initialization result, so that the next operation can be performed.
  • Step 680 Perform the eMMC protocol to operate.
  • the power-on operation is performed once to make it in the working state, and then, the reset command shared by the eMMC protocol and the SD protocol is received to make the storage device enter the idle state, and then, the initialization command is received and executed on the storage device
  • the eMMC protocol responds to the initialization command, it performs an initialization operation and sends the initialization result to an external host, so that the storage device executes the eMMC protocol for the next operation.
  • the method 700 includes:
  • Step 710 Perform a power-on operation to make it in a working state
  • the voltage used for one power-up operation is 3.3V.
  • Step 720 Receive a reset command shared by the eMMC protocol and the SD protocol to make the storage device enter an idle state.
  • the reset command is a CMD0 command.
  • Step 730 Receive an initialization command.
  • the storage device may receive an initialization command from an external host, so that the storage device performs an initialization operation in response to the initialization command sent by the host.
  • Step 740 Identify the received initialization command.
  • Step 750 If the initialization command is recognized as a CMD8 command, execute the SD protocol, and respond to the SD protocol to perform the initialization operation.
  • Step 760 Perform an initialization operation.
  • Step 770 Send the initialization result to the host.
  • the storage device determines the communication protocol executed by the storage device according to the recognized initialization command, and initializes according to the communication protocol. During the initialization process, the storage device continuously returns the initialization result to the host until the initialization is completed, and sends the initialization completion to the host Information to enable the host to determine whether the storage device has been initialized according to the initialization result, so that the next operation can be performed.
  • Step 780 Perform the SD protocol to operate.
  • the power-on operation is performed once to make it in the working state. Then, the reset command shared by the eMMC protocol and the SD protocol is received to make the storage device enter the idle state. Then, the initialization command is received and the SD is executed on the storage device. After the protocol responds to the initialization command, the initialization operation is performed, so that the storage device executes the SD protocol to perform the next operation.
  • the invention also provides a storage device.
  • the storage device has the processing capability of the first communication protocol and the processing capability of the second communication protocol.
  • the storage device is used in the operation method in the above-mentioned embodiment. For specific description, please refer to the above-mentioned embodiment, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Communication Control (AREA)

Abstract

一种存储设备及其操作方法。该存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,方法包括:接收自适应命令(110);识别自适应命令,并根据自适应命令,确定执行第一通信协议还是第二通信协议进行操作(120)。上述方法实现了存储设备能在不同通信协议之间自适应地操作。

Description

一种存储设备的操作方法及存储设备 【技术领域】
本发明的所公开实施例涉及存储技术领域,且更具体而言,涉及一种存储设备的操作方法及存储设备。
【背景技术】
在存储技术领域中,固态存储设备以高速率、体积小等特点成为不同电子设备的重要选择,例如,计算机、智能手机等。目前固态存储设备中,一般仅在一种主机(host)设备上工作,例如,SD卡在SD主机设备上工作。这样,兼容性较差,对于用户而言,同一存储器仅能在一种主机设备上工作,不便于多个设备之间的数据搬移。而对于生产商而言,不同协议的主机设备需要准备不同的物料,不便于生产制造,并且针对不同协议的方案,需要切换驱动,工作量大。
【发明内容】
有鉴于此,本发明提出了一种存储设备的操作方法及存储设备,以解决上述技术问题。
根据本发明的第一方面,提供了一种存储设备的操作方法。该存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,方法包括:接收自适应命令;识别自适应命令,并根据自适应命令,确定执行第一通信协议还是第二通信协议进行操作。
其中,第一通信协议和第二通信协议中的一个为SD协议,另一个为eMMC协议。
其中,接收自适应命令包括:接收初始化命令。
其中,在识别自适应命令之后,包括:若识别到初始化命令为CMD1命令,执行eMMC协议,响应于CMD1命令,以执行初始化操作。
其中,在识别自适应命令之后,包括:若识别到初始化命令为CMD8命令,执行SD协议,响应CMD1命令,以执行初始化操作。
其中,在接收初始化命令之前,接收自适应命令还包括:
接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态。
其中,复位命令为CMD0命令。
其中,在接收自适应命令之前,还包括:执行一次上电操作,以使得处于工作状态;在执行初始化操作之后,还包括:发送初始化结果,以执行eMMC协议或SD协议进行操作。
其中,一次上电操作所采用的电压为3.3V。
根据本发明的第二方面,提供了一种存储设备。存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,存储设备用于执行第一方面中的操作方法。
本发明的有益效果有:存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,通过接收自适应命令,根据自适应命令,存储设备确定执行第一通信协议还是第二通信协议进行操作,实现在不同通信协议之间自适应地操作,使得存储设备可以被不同通信协议的主机识别,从而适用于不同通信协议的主机
【附图说明】
图1是本发明第一实施例的存储设备的操作方法的流程图。
图2是本发明第二实施例的存储设备的操作方法的流程图。
图3是本发明第三实施例的存储设备的操作方法的流程图。
图4是本发明第四实施例的存储设备的操作方法的流程图。
图5是本发明第五实施例的存储设备的操作方法的流程图。
图6是本发明第六实施例的存储设备的操作方法的流程图。
图7是本发明第七实施例的存储设备的操作方法的流程图。
【具体实施方式】
本说明书及权利要求书通篇中所用的某些用语指代特定部件。如所属领域的技术人员可以理解的是,电子设备制造商可利用不同名称来指代同一个部件。本文并非以名称来区分部件,而是以功能来区分部件。在以下说明书及权利要求书中,用语“包括”是开放式的限定词语,因此其应被解释为意指“包括但不限于…”。另外,用语“耦合”旨在意指间接电连接或直接电连接。因此,当一个装 置耦合到另一装置时,则这种连接可以是直接电连接或通过其他装置及连接部而实现的间接电连接。
如图1所示,是本发明第一实施例的存储设备的操作方法的流程图。本实施例中,存储设备可以为存储卡,而存储卡是用于手机、数码相机、平板电脑、便携式电脑、MP3或其他数码产品上的独立存储介质,一般是卡片的形态,故统称为“存储卡”,又称为“数码存储卡”、“数字存储卡”、“储存卡”等。存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,第一通信协议可以包括但不限于SD协议、eMMC协议、UFS协议等中的一个。同样地,第二通信协议可以包括但不限于SD协议、eMMC协议、UFS协议等中的一个。应该理解,第一通信协议与第二通信协议为不同的通信协议。在本实施例中,该方法100包括:
步骤110:接收自适应命令。
存储设备可以从外部的主机接收自适应命令,以使存储设备根据主机发送的自适应命令进行响应,执行相应的操作。
步骤120:识别自适应命令,并根据自适应命令,确定执行第一通信协议还是第二通信协议进行操作。
在接收到自适应命令后,存储设备识别自适应命令,根据自适应命令,确定执行第一通信协议还是第二通信协议进行操作。
在本实施例中,存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,通过接收自适应命令,根据自适应命令,存储设备确定执行第一通信协议还是第二通信协议进行操作,实现在不同通信协议之间自适应地操作,使得存储设备可以被不同通信协议的主机识别,从而适用于不同通信协议的主机。
在一实施例中,第一通信协议和第二通信协议中的一个为SD协议,另一个为eMMC协议。本领域技术人员已知,实现SD协议的相关引脚如下表所示:
引脚号 名称 功能(SD模式) 功能(SPI模式)
1 DAT3/CS 数据3 片选
2 CMD/DI 命令 主出从入
3 VSS1 GND GND
4 VDD 电源 电源
5 CLK 时钟 时钟
6 VSS2 GND GND
7 DAT0/DO 数据0 主入从出
8 DAT1/IRQ 数据1 保留
9 DAT2/NC 数据2 保留
eMMC(Embedded Multi Media Card)协议为MMC协会所订立的、主要是针对手机或平板电脑等产品的内嵌式存储器标准规格。实现eMMC协议可以包括NAND flash、控制器、标准封装接口。实现eMMC协议的硬件接口与实现SD协议的硬件接口部分相同。并且,本领域技术人员可知,单独的SD协议与单独的eMMC协议在功能上相似。在存储设备具有SD协议和eMMC协议的处理能力时,存储设备可以兼容两种通信协议的处理能力。
在一实施例中,步骤S110可以具体包括:接收初始化命令。
如图2所示,是本发明第二实施例的存储设备的操作方法的流程图。该方法200包括:
步骤210:接收初始化命令。
存储设备可以从外部的主机接收初始化命令,以使存储设备响应于主机发送的初始化命令,执行初始化操作。
步骤220:对接收到的初始化命令进行识别。
具体地,当存储设备接收到主机发送的初始化命令后,对该初始化命令进行识别,以使存储设备根据识别结果判断执行的是第一通信协议还是第二通信协议。
步骤230:若识别到初始化命令为CMD1命令,则该存储设备执行eMMC协议,响应于该CMD1命令,以执行初始化操作。
存储设备接收到初始化命令后,对初始化命令进行识别,若识别到的初始化命令为CMD1命令,则认定该存储设备执行eMMC协议。响应于CMD1命令,进而对存储设备进行初始化,即存储设备执行初始化操作,直至完成整个初始化过程。
步骤240:发送初始化结果给主机。
存储设备根据识别到的初始化命令,确定存储设备所执行的通信协议,并根据该通信协议进行初始化,在初始化过程中,存储设备不断向主机返回初始 化结果,直至初始化完成后,向主机发送初始化完成的信息,以使主机根据初始化结果判断该存储设备是否完成初始化,以便进行下一步的操作。
如图3所示,是本发明第三实施例的存储设备的操作方法的流程图。该方法300包括:
步骤310:接收初始化命令。
存储设备可以从外部的主机接收初始化命令,以使存储设备响应于主机发送的初始化命令,执行初始化操作。
步骤320:对接收到的初始化命令进行识别。
具体地,当存储设备接收到主机发送的初始化命令后,对该初始化命令进行识别,以使存储设备根据识别结果判断执行的是第一通信协议还是第二通信协议。
步骤330:若识别到初始化命令为CMD8命令,执行SD协议,响应于CMD8命令,以执行初始化操作。
存储设备接收到初始化命令后,对初始化命令进行识别,若识别的初始化命令为CMD8命令,则认定该存储设备执行SD协议。响应于CMD8命令,进而对存储设备进行初始化,即存储设备执行初始化操作,直至完成整个初始化过程。
步骤340:发送初始化结果给主机。
存储设备根据识别到的初始化命令,确定存储设备所执行的通信协议,并根据该通信协议进行初始化,在初始化过程中,存储设备不断向主机返回初始化结果,直至初始化完成后,向主机发送初始化完成的信息,以使主机根据初始化结果判断该存储设备是否完成初始化,以便进行下一步的操作。
如图4所示,是本发明第四实施例的存储设备的操作方法的流程图,基于上述第二实施例。该方法400包括:
步骤410:接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态。
在一示例中,复位命令为CMD0命令。
步骤420:接收初始化命令。
存储设备可以从外部的主机接收初始化命令,以使存储设备响应于主机发送的初始化命令,执行初始化操作。
步骤430:对接收到的初始化命令进行识别。
具体地,当存储设备接收到主机发送的初始化命令后,对该初始化命令进行识别,以使存储设备根据识别结果判断执行的是第一通信协议还是第二通信协议。
步骤440:若识别到初始化命令为CMD1命令,执行eMMC协议,响应于CMD1命令,以执行初始化操作。
存储设备接收到初始化命令后,对初始化命令进行识别,若识别的初始化命令为CMD1命令,则认定该存储设备执行eMMC协议。响应于CMD1命令,进而对存储设备进行初始化,即存储设备执行初始化操作,直至完成整个初始化过程。
步骤450:发送初始化结果给主机。
存储设备根据识别到的初始化命令,确定存储设备所执行的通信协议,并根据该通信协议进行初始化,在初始化过程中,存储设备不断向主机返回初始化结果,直至初始化完成后,向主机发送初始化完成的信息,以使主机根据初始化结果判断该存储设备是否完成初始化,以便进行下一步的操作。
如图5所示,是本发明第五实施例的存储设备的操作方法的流程图,基于上述第三实施例。该方法500包括:
步骤510:接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态。
在一示例中,复位命令为CMD0命令。
步骤520:接收初始化命令。
存储设备可以从外部的主机接收初始化命令,以使存储设备响应于主机发送的初始化命令,执行初始化操作。
步骤530:对接收到的初始化命令进行识别。
具体地,当存储设备接收到主机发送的初始化命令后,对该初始化命令进行识别,以使存储设备根据识别结果判断执行的是第一通信协议还是第二通信协议。
步骤540:若识别到初始化命令为CMD8命令,执行SD协议,响应于CMD8命令,以执行初始化操作。
存储设备接收到初始化命令后,对初始化命令进行识别,若识别的初始化命令为CMD8命令,则认定该存储设备执行SD协议。响应于CMD8命令,进而对存储设备进行初始化,即存储设备执行初始化操作,直至完成整个初始化 过程。
步骤550:发送初始化结果给主机。
存储设备根据识别到的初始化命令,确定存储设备所执行的通信协议,并根据该通信协议进行初始化,在初始化过程中,存储设备不断向主机返回初始化结果,直至初始化完成后,向主机发送初始化完成的信息,以使主机根据初始化结果判断该存储设备是否完成初始化,以便进行下一步的操作。
如图6所示,是本发明第六实施例的存储设备的操作方法的流程图,该方法600包括:
步骤610:执行一次上电操作,以使得处于工作状态。
在一示例中,一次上电操作所采用的电压为3.3V。
步骤620:接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态。
在一示例中,复位命令为CMD0命令。
步骤630:接收初始化命令。
存储设备可以从外部的主机接收初始化命令,以使存储设备响应于主机发送的初始化命令,执行初始化操作。
步骤640:对接收到的初始化命令进行识别。
具体地,当存储设备接收到主机发送的初始化命令后,对该初始化命令进行识别,以使存储设备根据识别结果判断执行的是第一通信协议还是第二通信协议。
步骤650:若识别到初始化命令为CMD1命令,执行eMMC协议,响应于CMD1命令,以执行初始化操作。
存储设备接收到初始化命令后,对初始化命令进行识别,若识别的初始化命令为CMD1命令,则认定该存储设备执行eMMC协议。响应于CMD1命令,进而对存储设备进行初始化,即存储设备执行初始化操作,直至完成整个初始化过程。
步骤660:执行初始化操作。
步骤670:发送初始化结果给主机。
存储设备根据识别到的初始化命令,确定存储设备所执行的通信协议,并根据该通信协议进行初始化,在初始化过程中,存储设备不断向主机返回初始化结果,直至初始化完成后,向主机发送初始化完成的信息,以使主机根据初 始化结果判断该存储设备是否完成初始化,以便进行下一步的操作。
步骤680:执行eMMC协议进行操作。
在本实施例中,先执行一次上电操作,以使得处于工作状态,随后,接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态,随后,接收初始化命令,在存储设备执行eMMC协议响应初始化命令后,执行初始化操作,并将初始化结果发送给外部的主机,以使得存储设备执行eMMC协议进行下一步操作。
如图7所示,是本发明第七实施例的存储设备的操作方法的流程图,该方法700包括:
步骤710:执行一次上电操作,以使得处于工作状态;
在一示例中,一次上电操作所采用的电压为3.3V。
步骤720:接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态。
在一示例中,复位命令为CMD0命令。
步骤730:接收初始化命令。
存储设备可以从外部的主机接收初始化命令,以使存储设备响应于主机发送的初始化命令,执行初始化操作。
步骤740:对接收到的初始化命令进行识别。
步骤750:若识别到初始化命令为CMD8命令,执行SD协议,响应于SD协议,以执行初始化操作。
步骤760:执行初始化操作。
步骤770:发送初始化结果给主机。
存储设备根据识别到的初始化命令,确定存储设备所执行的通信协议,并根据该通信协议进行初始化,在初始化过程中,存储设备不断向主机返回初始化结果,直至初始化完成后,向主机发送初始化完成的信息,以使主机根据初始化结果判断该存储设备是否完成初始化,以便进行下一步的操作。
步骤780:执行SD协议进行操作。
本实施例中,先执行一次上电操作,以使得处于工作状态,随后,接收eMMC协议和SD协议共用的复位命令,以使得存储设备进入空闲状态,随后,接收初始化命令,在存储设备执行SD协议响应初始化命令后,执行初始化操作,以使得存储设备执行SD协议进行下一步操作。
本发明还提供了一种存储设备。该存储设备具备第一通信协议的处理能力和第二通信协议的处理能力。该存储设备用于上述实施例中的操作方法,具体说明详见上述实施例,在此不再赘述。
所属领域的技术人员易知,可在保持本发明的教示内容的同时对装置及方法作出诸多修改及变动。因此,以上公开内容应被视为仅受随附权利要求书的范围的限制。

Claims (10)

  1. 一种存储设备的操作方法,其特征在于,所述存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,所述方法包括:
    接收自适应命令;
    识别所述自适应命令,并根据所述自适应命令,确定执行所述第一通信协议还是所述第二通信协议进行操作。
  2. 如权利要求1所述的方法,其特征在于,所述第一通信协议和所述第二通信协议中的一个为SD协议,另一个为eMMC协议。
  3. 如权利要求2所述的方法,其特征在于,所述接收自适应命令包括:
    接收初始化命令。
  4. 如权利要求3所述的方法,其特征在于,在所述识别所述自适应命令之后,包括:
    若识别到所述初始化命令为CMD1命令时,执行eMMC协议,响应于CMD1命令,以执行初始化操作。
  5. 如权利要求3所述的方法,其特征在于,在所述识别所述自适应命令之后,包括:
    若识别到所述初始化命令为CMD8命令,执行SD协议,响应于CMD8命令,以执行初始化操作。
  6. 如权利要求4或5所述的方法,其特征在于,在接收初始化命令之前,所述接收自适应命令还包括:
    接收eMMC协议和SD协议共用的复位命令,以使得所述存储设备进入空闲状态。
  7. 如权利要求6所述的方法,其特征在于,所述复位命令为CMD0命令。
  8. 如权利要求4或5所述的方法,其特征在于,在接收所述自适应命令之前,还包括:
    执行一次上电操作,以使得处于工作状态;
    在执行初始化操作之后,还包括:
    发送初始化结果,以执行eMMC协议或SD协议进行操作。
  9. 根据权利要求8所述的方法,其特征在于,
    所述一次上电操作所采用的电压为3.3V。
  10. 一种存储设备,其特征在于,所述存储设备具备第一通信协议的处理能力和第二通信协议的处理能力,所述存储设备用于执行如权利要求1-9中任一项所述的方法。
PCT/CN2019/096428 2018-12-18 2019-07-17 一种存储设备的操作方法及存储设备 WO2020125001A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/415,588 US20220156009A1 (en) 2018-12-18 2019-07-17 Storage device operation method, and storage device
EP19898482.5A EP3876087A4 (en) 2018-12-18 2019-07-17 Method for operating storage device and storage device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811549013.9A CN111414125A (zh) 2018-12-18 2018-12-18 一种存储设备的操作方法及存储设备
CN201811549013.9 2018-12-18

Publications (1)

Publication Number Publication Date
WO2020125001A1 true WO2020125001A1 (zh) 2020-06-25

Family

ID=71100235

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096428 WO2020125001A1 (zh) 2018-12-18 2019-07-17 一种存储设备的操作方法及存储设备

Country Status (4)

Country Link
US (1) US20220156009A1 (zh)
EP (1) EP3876087A4 (zh)
CN (1) CN111414125A (zh)
WO (1) WO2020125001A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117785072A (zh) * 2024-02-27 2024-03-29 南京扬贺扬微电子科技有限公司 一种基于eMMC协议的存储控制系统及方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991484B (zh) * 2023-05-26 2024-02-06 广东匠芯创科技有限公司 存储设备的初始化方法、访问方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070200003A1 (en) * 2006-02-24 2007-08-30 Lg Electronics Inc. Method and apparatus for contactless interface on icc supporting high speed interface
CN101385038A (zh) * 2006-02-17 2009-03-11 客得富移动通信股份有限公司 Ic卡,具有ic卡的终端及其初始化的方法
CN101473336A (zh) * 2006-04-05 2009-07-01 Nxp股份有限公司 移动终端中动态分配用户芯片卡触点的方法与相应的用户芯片卡和移动终端
CN101742740A (zh) * 2008-11-26 2010-06-16 爱思开电讯投资(中国)有限公司 基于icc的通信协议选择方法及设备
CN102112975A (zh) * 2008-06-26 2011-06-29 桑迪士克以色列有限公司 具有用于预加载数据的多个协议的数据存储器件

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9806069D0 (en) * 1998-03-20 1998-05-20 Mondex Int Ltd Integrated circuit card
US7836236B2 (en) * 2004-02-12 2010-11-16 Super Talent Electronics, Inc. Extended secure-digital (SD) devices and hosts
US20070168614A1 (en) * 2000-01-06 2007-07-19 Super Talent Electronics Inc. Secure-Digital (SD) Flash Card with Auto-Adaptive Protocol and Capacity
US7296097B2 (en) * 2003-03-20 2007-11-13 Renesas Technology Corp. Memory card and initialization setting method thereof to avoid initializing operation failure in a memory card
US7673080B1 (en) * 2004-02-12 2010-03-02 Super Talent Electronics, Inc. Differential data transfer for flash memory card
TWI242720B (en) * 2004-08-27 2005-11-01 Incomm Technologies Co Ltd A method, a control unit and a memory device for soft configuring communication protocols
CN1804780A (zh) * 2006-01-25 2006-07-19 骆建军 兼容sd和mmc标准的自适应存储卡
JP2007280347A (ja) * 2006-03-14 2007-10-25 Ricoh Co Ltd メモリカード及びメモリカード制御切替方法
CN100423023C (zh) * 2006-03-23 2008-10-01 骆建军 一种多界面的自适应rsMMC存储卡
CN100423024C (zh) * 2006-03-23 2008-10-01 骆建军 一种多界面的自适应miniSD存储卡
CN100386776C (zh) * 2006-03-23 2008-05-07 骆建军 一种多界面的自适应microSD存储卡
KR101585183B1 (ko) * 2009-08-14 2016-01-13 샌디스크 아이엘 엘티디 백워드 및 포워드 호환성을 구비한 이중 인터페이스 카드
CN201583987U (zh) * 2010-01-21 2010-09-15 上海信电通通信建设服务有限公司 兼容MS标准的自适应microSD存储卡
CN102253809A (zh) * 2010-05-17 2011-11-23 中兴通讯股份有限公司 一种复合存储卡及其控制方法
CN101986327A (zh) * 2010-09-06 2011-03-16 建荣集成电路科技(珠海)有限公司 一种sd/mmc卡免检测脚在线/离线检测方法
US9886080B2 (en) * 2014-12-30 2018-02-06 Sandisk Technologies Llc Low voltage detection and initialization for non-volatile memory systems
KR102298661B1 (ko) * 2015-04-30 2021-09-07 삼성전자주식회사 저장 장치 및 그것의 초기화 방법
CN105355223A (zh) * 2015-10-27 2016-02-24 肖瑞 新型无线音频播放系统及其初始化方法
US10921984B2 (en) * 2017-06-14 2021-02-16 Western Digital Technologies, Inc. Protection of user data in data storage devices using preemptive health reporting
CN111428842B (zh) * 2018-12-24 2022-10-18 华为技术有限公司 一种存储卡的识别方法以及移动设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385038A (zh) * 2006-02-17 2009-03-11 客得富移动通信股份有限公司 Ic卡,具有ic卡的终端及其初始化的方法
US20070200003A1 (en) * 2006-02-24 2007-08-30 Lg Electronics Inc. Method and apparatus for contactless interface on icc supporting high speed interface
CN101473336A (zh) * 2006-04-05 2009-07-01 Nxp股份有限公司 移动终端中动态分配用户芯片卡触点的方法与相应的用户芯片卡和移动终端
CN102112975A (zh) * 2008-06-26 2011-06-29 桑迪士克以色列有限公司 具有用于预加载数据的多个协议的数据存储器件
CN101742740A (zh) * 2008-11-26 2010-06-16 爱思开电讯投资(中国)有限公司 基于icc的通信协议选择方法及设备

Non-Patent Citations (1)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117785072A (zh) * 2024-02-27 2024-03-29 南京扬贺扬微电子科技有限公司 一种基于eMMC协议的存储控制系统及方法
CN117785072B (zh) * 2024-02-27 2024-05-28 南京扬贺扬微电子科技有限公司 一种基于eMMC协议的存储控制系统及方法

Also Published As

Publication number Publication date
CN111414125A (zh) 2020-07-14
EP3876087A4 (en) 2021-12-29
US20220156009A1 (en) 2022-05-19
EP3876087A1 (en) 2021-09-08

Similar Documents

Publication Publication Date Title
TWI659359B (zh) 控制儲存裝置之方法
US10304546B2 (en) External storage device and method of setting reference frequency for the same
TWI817125B (zh) 一種終端
WO2020125001A1 (zh) 一种存储设备的操作方法及存储设备
US10318179B1 (en) Host device to embedded multi-media card device communication
TW200413937A (en) Combination non-volatile memory and input-output card with direct memory access
JP7325578B2 (ja) メモリカードおよび端末
US10095614B2 (en) Memory controller and accessing system utilizing the same
WO2017148292A1 (zh) 一种级联板、ssd远程共享访问的系统和方法
KR20160084457A (ko) 착탈식 메모리 카드 구별 시스템 및 방법
TW201633313A (zh) 記憶卡的存取裝置及其控制方法
WO2020134040A1 (zh) 一种存储卡的识别方法以及移动设备
WO2020052346A1 (zh) 一种多媒体存储卡以及移动电子设备
CN111858422B (zh) 集成接口及具有所述集成接口的电子装置
WO2020134039A1 (zh) 一种存储卡的识别方法以及移动设备
WO2022126398A1 (zh) 消息通知方法及装置
TWI773395B (zh) 記憶體控制器與連結識別方法
WO2020134035A1 (zh) 一种功能卡的识别方法以及移动设备
WO2020125002A1 (zh) 一种存储设备的控制方法及存储设备、电子设备
CN210836074U (zh) 一种基于门电路实现emmc单通道扩容的电路
CN111428526B (zh) 一种功能卡的识别方法以及移动设备
CN204423398U (zh) 近距离无线通讯模块、控制装置及电子设备
US20100199000A1 (en) Data storage device and method for operating the same
KR200420936Y1 (ko) 복합 인터페이스를 제공하는 휴대형 데이터 저장 장치
WO2020134038A1 (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: 19898482

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019898482

Country of ref document: EP

Effective date: 20210601

NENP Non-entry into the national phase

Ref country code: DE