WO2020134035A1 - 一种功能卡的识别方法以及移动设备 - Google Patents
一种功能卡的识别方法以及移动设备 Download PDFInfo
- Publication number
- WO2020134035A1 WO2020134035A1 PCT/CN2019/096431 CN2019096431W WO2020134035A1 WO 2020134035 A1 WO2020134035 A1 WO 2020134035A1 CN 2019096431 W CN2019096431 W CN 2019096431W WO 2020134035 A1 WO2020134035 A1 WO 2020134035A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- card
- function
- voltage
- sim
- reset
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000004044 response Effects 0.000 claims description 36
- 238000004891 communication Methods 0.000 claims description 9
- 101000711846 Homo sapiens Transcription factor SOX-9 Proteins 0.000 claims description 6
- 102100034204 Transcription factor SOX-9 Human genes 0.000 claims description 6
- 230000006870 function Effects 0.000 description 82
- 238000010586 diagram Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/067—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
- G06K19/07—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
- G06K19/0722—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips comprising an arrangement for testing the record carrier
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/067—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
- G06K19/07—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
Definitions
- the present application relates to the technical field of card recognition, in particular to a method for identifying a functional card and a mobile device.
- the NM card is a large-capacity functional card with integrated storage function, which has the same size as the nano SIM card and can share a card slot with the nano SIM card.
- a detection pin is generally added to the card slot for identification, so that the structure of the card slot needs to be changed and the cost is increased; in addition, the failure rate of the device will also be increased .
- the present application mainly provides a method for identifying a functional card and a mobile device, which can solve the problem that it is difficult to identify an NM card and a SIM card in the prior art.
- One method adopted in this application is to provide a method for identifying a functional card, which includes a memory card, a first type identification card and a second type identification card; the method includes: using the first voltage to identify the function Power on the card; identify whether the function card is a memory card or the first type identification card; if not, adjust the power supply voltage of the function card to the second voltage; identify whether the functional card is the second type identification card; wherein, The second voltage is greater than the first voltage.
- the memory card is an NM card, which uses the EMMC protocol for communication;
- the first identification card is a 1.8V SIM card;
- the step of identifying whether the functional card is a storage card or a first type identification card includes: sending EMMC to the functional card The initialization command of the protocol; detect whether there is a response from the command pin of the function card; if there is a response, identify the function card as an NM card.
- the initialization command of the EMMC protocol is the CMD1 command.
- step of sending the initialization command of the EMMC protocol to the function card further includes: sending a reset command of the EMMC protocol to the command pin of the function card, so that the memory card to be recognized enters an idle state.
- the reset command of the EMMC protocol is the CMD0 command.
- the memory card is an NM card, which uses the MMC protocol for communication;
- the first identity recognition card is a 1.8V SIM card;
- the step of identifying whether the functional card is a memory card or a first type identification card includes: performing SIM on the functional card Card reset operation; detect whether the function card has a reset response; if there is a reset response, the function card is recognized as a 1.8V SIM card.
- the memory card is an NM card, which uses the MMC protocol for communication;
- the second identification card is a 3.3V SIM card;
- the step of identifying whether the functional card is the second type of identification card includes: resetting the SIM card of the functional card ; Check if the function card has a reset response; if there is a reset response, then recognize the function card as a 3.3V SIM card.
- the first voltage is 1.8V
- the second voltage is 3.3V.
- the memory card is an NM card, which uses the MMC protocol for communication;
- the second identification card is a 3.3V SIM card; after the step of identifying whether the functional card is a second type identification card, it also includes: according to the identification result of the functional card Power on the function card twice, and use the corresponding protocol to operate the memory card.
- the mobile device includes a controller and a card slot.
- the card slot is used to accommodate a function card and form an electrical connection between the function card and the controller.
- the controller is used to adopt the method as described above Identify the function card.
- the identification method of the functional card includes: using the first voltage to power on the functional card to be identified; identifying whether the functional card is a memory card or a first type identification card; if not, adjusting the power supply voltage of the functional card To the second voltage; identifying whether the function card is the second type of identification card; wherein, the second voltage is greater than the first voltage.
- FIG. 1 is a schematic flowchart of a first embodiment of a method for identifying a functional card provided by this application;
- FIG. 2 is a schematic flowchart of a second embodiment of a method for identifying a functional card provided by this application;
- FIG. 3 is a schematic flowchart of a third embodiment of a method for identifying a functional card provided by this application;
- FIG. 4 is a schematic structural diagram of an embodiment of a mobile device provided by this application.
- FIG. 5 is a schematic structural diagram of a card tray in an embodiment of a mobile device provided by this application.
- the function card of the present invention refers to a card-type product used in electronic devices such as mobile phones, digital cameras, portable computers, tablets, PDAs (Personal Digital Assistants), and capable of realizing functions such as storage and communication. It can include NM card, MMC card, EMMC card, EMCP card, SD card, SIM card, etc.
- Memory card is an independent storage medium used in mobile phones, digital cameras, portable computers, MP3s and 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.
- memory card also known as “digital memory card”, “digital "Memory card”, “Memory card”, etc.
- the embodiments of the present application mainly introduce the identification method of the NM card.
- the identification card is mainly used to identify the user's identity, such as a SIM card.
- SIM card Subscriber Identification Module
- the SIM card also known as user identification card and smart card
- SIM card must be installed on the GSM digital mobile phone before it can be used.
- SIM card generally includes standard SIM card, Micro SIM card and Nano SIM card
- Micro SIM card also known as 3FF SIM card, that is, the third type of SIM, the size is 12x15mm ⁇ 0.8mm, which is more than the second type of SIM used in our mobile phones
- the card size 15x25mm ⁇ 0.8mm is 52% smaller.
- Nano SIM card is a 4FF standard SIM card. This NanoSIM card is one-third smaller than the Micro SIM card, 60% smaller than the standard SIM card, and the thickness is also reduced by 15%. Its size is 12.3mm ⁇ 8.8mm ⁇ 0.7mm.
- the SIM card generally has 8 pins, as shown in the following figure:
- NM card (Nano Memory Card), which is a large-capacity memory card with integrated storage function, has the same size as the nano SIM card, and can share a card slot with the nano SIM card.
- the NM memory card can provide 64GB, 128GB, A variety of large-capacity options of 256GB or larger, with a data reading speed of up to 90MB/s, can meet the needs of devices such as smart phones and digital cameras.
- the NM card adopts the EMMC protocol.
- EMMC embedded Multi
- EMMC embedded Multi
- MMC Association a standard specification of embedded memory that was established by the MMC Association and mainly aimed at mobile phones or tablet computers.
- the NM card includes a 3.3V power contact (VCC), a ground contact (GND), a clock contact (CLK), a command contact (CMD), and four data contacts (D0-D3).
- VCC 3.3V power contact
- GND ground contact
- CLK clock contact
- CMD command contact
- D0-D3 data contacts
- Sub contact number definition Sub contact number definition 1 D1 5 D2 2 CMD 6 VCC 3 GND 7 D0 4 D3 8 CLK
- FIG. 1 is a schematic flowchart of a first embodiment of a method for identifying a function card provided by the present application. The method includes:
- Step 11 Use the first voltage to power on the function card to be identified.
- memory cards or identification cards may have different operating voltages. If the voltage is low during identification, some function cards may not be driven to be identified, and if the voltage is high, some function cards may be burned out.
- the working voltage of the NM card is 3.3V, but it can be recognized at both 1.8V and 3.3V; the SIM card includes two types, the working voltage of the first type of SIM card It is 1.8V, and the operating voltage of the second type SIM card is 3.3V. Therefore, in step 11, the function card to be identified is specifically powered on with a 1.8V voltage.
- Step 12 Identify whether the function card is a memory card or a first type identification card.
- NM card and SIM card are used as examples.
- the identification method of the NM card or the identification method of the SIM card may be respectively adopted, for example, first, whether the function card to be identified is an NM card, and if not, then whether it is a SIM card is detected. Or, first detect whether the function card to be identified is a SIM card, and if not, then detect whether it is an NM card.
- the NM card uses the EMMC protocol, you can identify whether the function card is an EMMC card by: sending an initialization command of the EMMC protocol to the function card; detecting whether there is a response to the command pin of the function card; if the response is stored, it will be The function card is recognized as an NM card.
- the initialization command of the EMMC protocol is the CMD1 command.
- a reset command of the EMMC protocol may also be sent to the function card to make the function card to be identified enter an idle state.
- the reset command of the EMMC protocol is CMD0.
- the identification of the SIM card can be identified in the following ways: performing a SIM card reset operation on the functional card; detecting whether the functional card has a reset response; if there is a reset response, identifying the functional card as the first type of SIM card.
- the SIM card reset operation includes cold reset and hot reset.
- Warm reset is used in the event of a cold reset failure. During the process, VCC is kept in H state and there is a stable CLK clock signal; during warm reset, it is necessary to keep the RST pin in L state for at least 400 clock cycles. ; Within 200 clock cycles before or after the RST pin is set to the L state, the I/O pin should be set to the receiving mode; within 400-4000 clock cycles after the RST is set to the H state, the I/O pin is detected There is a reset response.
- step 12 When the judgment result in step 12 is yes, the function card is recognized as the NM card or the first type SIM card. When the judgment result of step 12 is NO, step 13 is executed.
- Step 13 Adjust the power supply voltage of the function card to the second voltage.
- the second voltage is 3.3V.
- Step 14 Identify whether the function card is the second type identification card.
- the SIM card is used as an example here.
- the SIM card is reset on the function card; whether the function card has a reset response is detected; if there is a reset response, the function card is recognized as the second type SIM card.
- step 14 it may further include: powering off the function card, and performing secondary power-on for the type of the function card to operate the function card.
- the secondary power-on here can be determined according to the judgment result in the above steps, which may specifically be 1.8V or 3.3V.
- the function card to be identified is identified as a 1.8V SIM card, then the secondary power-on can use 1.8V voltage.
- the function card to be identified is identified as a 3.3V SIM card or NM card, then the second power can use 3.3V voltage.
- the function card is powered off and restarted to eliminate the unknown impact of the first power-on on the card, and then provide the corresponding power supply demand according to the identified card type, Perform normal initialization operations on the corresponding card.
- the working voltage of the NM card is 3.3V, when the NM card is recognized with a 1.8V voltage, it needs to be powered off and restarted, and 3.3V is used to restart the power to restart it.
- the identification method of the functional card includes: using the first voltage to power on the functional card to be identified; identifying whether the functional card is a memory card or a first-type identification identification card; if not, the power supply voltage of the functional card Adjust to the second voltage; identify whether the function card is the second type of identification card; wherein, the second voltage is greater than the first voltage.
- FIG. 2 is a schematic flowchart of a second embodiment of a method for identifying a function card provided by the present application. The method includes:
- Step 201 Use the first voltage to power on the function card to be identified.
- Step 202 Send an initialization command of the EMMC protocol to the function card.
- the initialization command of the EMMC protocol is CMD1.
- Step 203 Detect whether there is a response to the command pin of the function card.
- step 204 is performed, and if there is no response, step 205 is performed.
- Step 204 Identify the function card as an NM card.
- Step 205 Perform a SIM card reset operation on the function card.
- Step 206 Detect whether the function card has a reset response.
- step 207 is executed, and if there is no reset response, step 208 is executed.
- Step 207 Identify the function card as a 1.8V SIM card.
- Step 208 Adjust the power supply voltage of the function card to the second voltage.
- Step 209 Perform a SIM card reset operation on the function card.
- Step 210 Detect whether the function card has a reset response.
- step 211 is executed.
- Step 211 Identify the function card as a 3.3V SIM card.
- FIG. 3 is a schematic flowchart of a third embodiment of a method for identifying a function card provided by the present application. The method includes:
- Step 301 Use the first voltage to power on the function card to be identified.
- Step 302 Perform a SIM card reset operation on the function card.
- Step 303 Detect whether the function card has a reset response.
- step 304 is executed, and if there is no reset response, step 305 is executed.
- Step 304 Identify the function card as a 1.8V SIM card.
- Step 305 Send an initialization command of the EMMC protocol to the function card.
- the initialization command of the EMMC protocol is CMD1.
- Step 306 Detect whether there is a response to the command pin of the function card.
- step 307 is executed, and if there is no response, step 308 is executed.
- Step 307 Identify the function card as an NM card.
- Step 308 Adjust the power supply voltage of the function card to the second voltage.
- Step 309 Perform a SIM card reset operation on the function card.
- Step 310 Detect whether the function card has a reset response.
- step 311 is executed.
- Step 311 Identify the function card as a 3.3V SIM card.
- the first voltage is 1.8V and the second voltage is 3.3V.
- FIG. 4 is a schematic structural diagram of an embodiment of a mobile device provided by the present application.
- the mobile device 40 includes a controller 41 and a card holder 42 that can be embedded in the main body of the mobile device 40.
- the card holder 42 is provided with a card slot 42a.
- the card slot 42a is used to accommodate the function card and form an electrical connection with the controller 41.
- the controller 41 is used to identify different types of function cards in the manner described above.
- FIG. 5 is a schematic structural diagram of a card holder in an embodiment of a mobile device provided by the present application
- the card holder 42 includes a first card slot 42a and a second card slot 42b, and the first card slot 42a and The second card slot 42b has the same shape, wherein the first card slot 42a and the second card slot 42b are used to accommodate various types of function cards provided in the above embodiments.
- the mobile device may be a mobile phone, a tablet computer, a smart watch and other wearable devices.
- the mobile device may further include a memory for storing program data.
- the program data is executed by the controller 41, the identification method as described above is implemented.
- the embodiments of the present application When the embodiments of the present application are implemented in the form of software functional units and are sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- General Engineering & Computer Science (AREA)
- Telephone Function (AREA)
Abstract
一种功能卡的识别方法以及移动设备,其中,该功能卡的识别方法包括:采用第一电压对待识别的功能卡进行上电(11);识别功能卡是否为存储卡或者第一类身份识别卡(12);若不是,则将功能卡的供电电压调整至第二电压(13);识别功能卡是否为第二类身份识别卡(14);其中,第二电压大于第一电压。通过上述方式,能够避免电压过高造成的功能卡损坏的情况,并且提高了识别效率。
Description
本申请涉及卡片识别技术领域,特别是涉及一种功能卡的识别方法以及移动设备。
由于具有存储量大、携带方便、读写速度快等特点,存储卡、身份识别卡等功能卡得到越来越多终端设备的支持。目前,在插入功能卡后,终端设备通过识别程序对功能卡进行数据加载,实现对功能卡的识别。
以NM卡(Nano Memory Card)为例,NM卡为集成了存储功能的大容量的功能卡,其具有与nano SIM卡相同的尺寸,能够与nano SIM卡共同一个卡槽。现有的技术中在对NM卡和SIM卡进行识别时,一般是在卡槽增加一个检测引脚以进行识别,这样需要改变卡槽的结构,增加成本;此外,还会增加设备的故障率。
【发明内容】
本申请主要提供一种功能卡的识别方法以及移动设备,能够解决现有技术中对NM卡和SIM卡识别较为困难的问题。
本申请采用的一种方式是提供一种功能卡的识别方法,该功能卡包括存储卡、第一类身份识别卡及第二类身份识别卡;该方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。
其中,存储卡为NM卡,其采用EMMC协议进行通信;第一身份识别卡为1.8V SIM卡;识别功能卡是否为存储卡或者第一类身份识别卡的步骤,包括:向功能卡发送EMMC协议的初始化命令;检测功能卡的命令引脚是否存在响应;若存在响应,将功能卡识别为NM卡。
其中,EMMC协议的初始化命令为CMD1命令。
其中,向功能卡发送EMMC协议的初始化命令的步骤之前,进一 步包括:向功能卡的命令引脚发送EMMC协议的复位命令,以使得待识别存储卡进入空闲状态。
其中,EMMC协议的复位命令为CMD0命令。
其中,存储卡为NM卡,其采用MMC协议进行通信;第一身份识别卡为1.8V SIM卡;识别功能卡是否为存储卡或者第一类身份识别卡的步骤,包括:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为1.8V SIM卡。
其中,存储卡为NM卡,其采用MMC协议进行通信;第二身份识别卡为3.3V SIM卡;识别功能卡是否为第二类身份识别卡的步骤,包括:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为3.3V SIM卡。
其中,第一电压为1.8V,第二电压为3.3V。
其中,存储卡为NM卡,其采用MMC协议进行通信;第二身份识别卡为3.3V SIM卡;识别功能卡是否为第二类身份识别卡的步骤之后,还包括:根据功能卡的识别结果对功能卡进行二次上电,并利用对应的协议对存储卡进行操作。
本申请采用的一种方式是提供一种移动设备,移动设备包括控制器以及卡槽,卡槽用于容置功能卡并使功能卡与控制器形成电连接,控制器用于采用如上述的方法对功能卡进行识别。
本申请提供的功能卡的识别方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。通过上述方式,存储卡和身份识别卡的识别过程中无需增加额外的检测引脚,降低了成本,并且利用了不同类型功能卡的工作电压进行两种电压的识别过程,避免了电压过高造成的功能卡损坏的情况,提高了识别效率。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描 述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。其中:
图1是本申请提供的功能卡的识别方法第一实施例的流程示意图;
图2是本申请提供的功能卡的识别方法第二实施例的流程示意图;
图3是本申请提供的功能卡的识别方法第三实施例的流程示意图;
图4是本申请提供的移动设备一实施例的结构示意图;
图5是本申请提供的移动设备一实施例中卡托的结构示意图。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明的功能卡指的是用于手机、数码相机、便携式电脑、平板、PDA(Personal Digital Assistant,掌上电脑)等电子设备,能够实现存储、通信等功能的卡片式产品。其可以包括NM卡、MMC卡、EMMC卡、EMCP卡、SD卡、SIM卡等。
存储卡,是用于手机、数码相机、便携式电脑、MP3和其他数码产品上的独立存储介质,一般是卡片的形态,故统称为“存储卡”,又称为“数码存储卡”、“数字存储卡”、“储存卡”等。存储卡的种类较多,本申请的实施例主要介绍NM卡的识别方式。身份识别卡主要用于对用户的身份进行识别,例如SIM卡。
SIM卡(Subscriber Identification Module),也称为用户身份识别卡、智能卡,GSM数字移动电话机必须装上此卡方能使用。SIM卡一般包括标准SIM卡、Micro SIM卡和Nano SIM卡,Micro SIM卡,也叫做3FF SIM卡,即第三类规格SIM,尺寸为12x15mm×0.8mm,比我们手机中使用的第二类SIM卡规格15x25mm×0.8mm小了52%。Nano SIM 卡是4FF标准的SIM卡。这种NanoSIM卡比Micro SIM卡小三分之一,比起标准SIM卡则小了60%,而且厚度也减少了15%。其尺寸为12.3mm×8.8mm×0.7mm。
SIM卡一般有8个引脚,如下图所示:
引脚号 | 名称 | 功能 |
1 | VCC | 电源 |
2 | RST | 复位 |
3 | CLK | 时钟 |
4 | 不提供 | |
5 | GND | 接地 |
6 | VPP | 编程电压 |
7 | I/O | 数据 |
8 | 不提供 |
NM卡(Nano Memory Card),其为集成了存储功能的大容量的存储卡,其具有与nano SIM卡相同的尺寸,能够与nano SIM卡共同一个卡槽,NM存储卡可提供64GB、128GB、256GB或更大容量的多种大容量选择,数据读取速度可达90MB/s,可满足智能手机和数码相机等设备的使用需求。
NM卡采用EMMC协议,EMMC(Embedded Multi Media Card)是MMC协会订立、主要针对手机或平板电脑等产品的内嵌式存储器标准规格。
NM卡包括3.3V电源触片(VCC)、接地触片(GND)、时钟触片(CLK)、命令触片(CMD)和4个数据触片(D0-D3),在本实施例中,8个接口触片的设置如下:
子触片号 | 定义 | 子触片号 | 定义 |
1 | D1 | 5 | D2 |
2 | CMD | 6 | VCC |
3 | GND | 7 | D0 |
4 | D3 | 8 | CLK |
参阅图1,图1是本申请提供的功能卡的识别方法第一实施例的流程示意图,该方法包括:
步骤11:采用第一电压对待识别的功能卡进行上电。
可以理解的,不同类型的存储卡或者身份识别卡,其工作电压可能不同,在识别时若电压偏低可能无法驱动一些功能卡进行识别,而若电压偏高则可能烧坏一些功能卡。
可选的,在一种实施例中,NM卡的工作电压为3.3V,但其在1.8V和3.3V均可以对其进行识别;SIM卡包括两个类型,第一类SIM卡的工作电压为1.8V,第二类SIM卡的工作电压为3.3V。所以,在步骤11中,具体为采用1.8V电压对待识别的功能卡进行上电。
步骤12:识别功能卡是否为存储卡或者第一类身份识别卡。
这里以NM卡和SIM卡进行举例说明。
这里可以分别采用NM卡的识别方式或者SIM卡的识别方式,例如先检测待识别的功能卡是否为NM卡,若不是,再检测其是否为SIM卡。或者,先检测待识别的功能卡是否为SIM卡,若不是,再检测其是否为NM卡。
由于NM卡采用了EMMC协议,所以这里可以通过以下方式识别该功能卡是否为EMMC卡:向功能卡发送EMMC协议的初始化命令;检测功能卡的命令引脚是否存在响应;若存储响应,则将功能卡识别为NM卡。具体地,EMMC协议的初始化命令为CMD1命令。
可选的,在对EMMC协议进行识别时,在发送CMD1命令之前,还可以向功能卡的发送EMMC协议的复位命令,以使得待识别功能卡进入空闲状态。具体地,EMMC协议的复位命令为CMD0。
SIM卡的识别可以通过以下方式来进行识别:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为第一类SIM卡。具体地,SIM卡复位操作包括冷复位和热复位。
冷复位:初始时,所有引脚均处于低电位(L态),电压范围为0-0.4V,VCC引脚先上电,后提供VPP编程电压(在智能SIM卡中,VPP无用);在VCC引脚的电压稳定一段时间后,将I/O引脚置为接收方式(H态), 并提供稳定的CLK时钟信号,RST引脚需要再提供CLK信号后400个时钟周期内保持L态,之后可置为H态,提供RST引脚复位信号后的400-4000个时钟周期内,检测I/O引脚有复位应答。
热复位:热复位是在冷复位失败的情况下使用,过程中保持VCC为H态,且有稳定的CLK时钟信号;热复位时需保持RST引脚为L态的时间至少为400个时钟周期;在RST引脚置L态之前或之后200个时钟周期内,I/O引脚应置为接收方式;在RST置为H态之后的400-4000个时钟周期内,检测I/O引脚有复位应答。
在步骤12的判断结果为是时,则将功能卡识别为NM卡或第一类SIM卡。在步骤12的判断结果为否时,执行步骤13。
步骤13:将功能卡的供电电压调整至第二电压。
其中,该第二电压为3.3V。
步骤14:识别功能卡是否为第二类身份识别卡。
这里以SIM卡进行举例说明。
具体为:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为第二类SIM卡。
另外,在步骤14之后,还可以包括:对功能卡进行断电,并针对功能卡的类型进行二次上电,以对功能卡进行操作。这里的二次上电可以根据上述步骤中的判断结果来决定,其具体可以是1.8V或3.3V。例如,在上述识别过程中,将待识别的功能卡识别为1.8V SIM卡,那么二次上电可以采用1.8V电压,若上述识别过程,将待识别的功能卡识别为3.3V SIM卡或NM卡,那么二次上电可以采用3.3V电压。采用上述方式,在识别完功能卡类型后,对功能卡进行断电重启,用于消除第一次上电给卡片带来的未知影响,之后根据识别到的卡类型,提供对应的供电需求,对相应的卡进行正常的初始化操作。此外,由于NM卡的工作电压为3.3V,当采用1.8V电压识别出NM卡时,需对其进行断电重启,采用3.3V进行二次上电重启才能使其进行工作。
本实施例提供的功能卡的识别方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若 不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。通过上述方式,存储卡和身份识别卡的识别过程中无需增加额外的检测引脚,降低了成本,并且利用了不同类型功能卡的工作电压进行两种电压的识别过程,避免了电压过高造成的功能卡损坏的情况,提高了识别效率。
参阅图2,图2是本申请提供的功能卡的识别方法第二实施例的流程示意图,该方法包括:
步骤201:采用第一电压对待识别的功能卡进行上电。
步骤202:向功能卡发送EMMC协议的初始化命令。
其中,EMMC协议的初始化命令为CMD1。
步骤203:检测功能卡的命令引脚是否存在响应。
若存在响应,则执行步骤204,若不存在响应,则执行步骤205。
步骤204:将功能卡识别为NM卡。
步骤205:对功能卡进行SIM卡复位操作。
步骤206:检测功能卡是否有复位应答。
若存在复位应答,则执行步骤207,若不存在复位应答,则执行步骤208。
步骤207:将功能卡识别为1.8V SIM卡。
步骤208:将功能卡的供电电压调整至第二电压。
步骤209:对功能卡进行SIM卡复位操作。
步骤210:检测功能卡是否有复位应答。
若存在复位应答,则执行步骤211。
步骤211:将功能卡识别为3.3V SIM卡。
参阅图3,图3是本申请提供的功能卡的识别方法第三实施例的流程示意图,该方法包括:
步骤301:采用第一电压对待识别的功能卡进行上电。
步骤302:对功能卡进行SIM卡复位操作。
步骤303:检测功能卡是否有复位应答。
若存在复位应答,则执行步骤304,若不存在复位应答,则执行步 骤305。
步骤304:将功能卡识别为1.8V SIM卡。
步骤305:向功能卡发送EMMC协议的初始化命令。
其中,EMMC协议的初始化命令为CMD1。
步骤306:检测功能卡的命令引脚是否存在响应。
若存在响应,则执行步骤307,若不存在响应,则执行步骤308。
步骤307:将功能卡识别为NM卡。
步骤308:将功能卡的供电电压调整至第二电压。
步骤309:对功能卡进行SIM卡复位操作。
步骤310:检测功能卡是否有复位应答。
若存在复位应答,则执行步骤311。
步骤311:将功能卡识别为3.3V SIM卡。
可选的,在上述实施例中,第一电压为1.8V,第二电压为3.3V。
参阅图4,图4是本申请提供的移动设备一实施例的结构示意图,该移动设备40包括控制器41以及可嵌入移动设备40主体的卡托42,卡托42上设置有卡槽42a,卡槽42a用于容置功能卡并使功能卡与控制器41形成电连接,控制器41用于采用如上述的方式对不同类型的功能卡进行识别。
其中,如图5所示,图5是本申请提供的移动设备一实施例中卡托的结构示意图,该卡托42包括第一卡槽42a和第二卡槽42b,第一卡槽42a和第二卡槽42b的形状相同,其中,第一卡槽42a和第二卡槽42b用于容置上述实施例中提供的多种类型的功能卡。
其中,该移动设备可以是手机、平板电脑、智能手表等穿戴设备。
另外,该移动设备中还可以包括一存储器,用于存储程序数据,该程序数据在被控制器41执行时,实现如上述的识别方法。
本申请的实施例以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件 产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
Claims (10)
- 一种功能卡的识别方法,其特征在于,所述功能卡包括存储卡、第一类身份识别卡及第二类身份识别卡,所述方法包括:采用第一电压对待识别的功能卡进行上电;识别所述功能卡是否为存储卡或者第一类身份识别卡;若不是,则将所述功能卡的供电电压调整至第二电压;识别所述功能卡是否为第二类身份识别卡;其中,所述第二电压大于所述第一电压。
- 根据权利要求1所述的方法,其特征在于,所述存储卡为NM卡,其采用EMMC协议进行通信;所述第一身份识别卡为1.8V SIM卡;所述识别所述功能卡是否为存储卡或者第一类身份识别卡的步骤,包括:向所述功能卡发送EMMC协议的初始化命令;检测所述功能卡的命令引脚是否存在响应;若存在响应,将所述功能卡识别为NM卡。
- 根据权利要求2所述的方法,其特征在于,所述EMMC协议的初始化命令为CMD1命令。
- 根据权利要求2所述的方法,其特征在于,所述向所述功能卡发送EMMC协议的初始化命令的步骤之前,进一步包括:向所述功能卡的命令引脚发送EMMC协议的复位命令,以使得所述待识别存储卡进入空闲状态。
- 根据权利要求4所述的方法,其特征在于,所述EMMC协议的复位命令为CMD0命令。
- 根据权利要求1所述的方法,其特征在于,所述存储卡为NM卡,其采用EMMC协议进行通信;所述第一身份识别卡为1.8V SIM卡;所述识别所述功能卡是否为存储卡或者第一类身份识别卡的步骤,包括:对所述功能卡进行SIM卡复位操作;检测所述功能卡是否有复位应答;若有复位应答,则将所述功能卡识别为1.8V SIM卡。
- 根据权利要求1所述的方法,其特征在于,所述存储卡为NM卡,其采用EMMC协议进行通信;所述第二身份识别卡为3.3V SIM卡;所述识别所述功能卡是否为第二类身份识别卡的步骤,包括:对所述功能卡进行SIM卡复位操作;检测所述功能卡是否有复位应答;若有复位应答,则将所述功能卡识别为3.3V SIM卡。
- 根据权利要求1所述的方法,其特征在于,所述第一电压为1.8V,所述第二电压为3.3V。
- 根据权利要求1所述的方法,其特征在于,所述存储卡为NM卡,其采用EMMC协议进行通信;所述第二身份识别卡为3.3V SIM卡;所述识别所述功能卡是否为第二类身份识别卡的步骤之后,还包括:根据所述功能卡的识别结果对所述功能卡进行二次上电,并利用对应的协议对所述存储卡进行操作。
- 一种移动设备,其特征在于,所述移动设备包括控制器以及可嵌入所述移动设备主体的卡托,所述卡托上设置有卡槽,所述卡槽用于容置功能卡并使所述功能卡与所述控制器形成电连接,所述控制器用于采用如权利要求1-9任一项所述的方法对所述功能卡进行识别。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811584256.6 | 2018-12-24 | ||
CN201811584256.6A CN111428840B (zh) | 2018-12-24 | 2018-12-24 | 一种功能卡的识别方法以及移动设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020134035A1 true WO2020134035A1 (zh) | 2020-07-02 |
Family
ID=71128213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/096431 WO2020134035A1 (zh) | 2018-12-24 | 2019-07-17 | 一种功能卡的识别方法以及移动设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111428840B (zh) |
WO (1) | WO2020134035A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023277865A1 (en) * | 2021-06-28 | 2023-01-05 | Hewlett-Packard Development Company, L.P. | Identification of option cards using multiple voltage inputs |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681955A (zh) * | 2010-12-21 | 2012-09-19 | 三星电子株式会社 | 多接口存储卡及操作方法 |
CN104242995A (zh) * | 2013-06-07 | 2014-12-24 | 中兴通讯股份有限公司 | 信息存储卡的通信处理方法及装置、移动终端 |
CN104714912A (zh) * | 2015-03-04 | 2015-06-17 | 惠州Tcl移动通信有限公司 | 一种多卡检测装置、多卡检测系统及其方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804780A (zh) * | 2006-01-25 | 2006-07-19 | 骆建军 | 兼容sd和mmc标准的自适应存储卡 |
CN101287030A (zh) * | 2008-06-10 | 2008-10-15 | 深圳华为通信技术有限公司 | 一种识别用户身份识别卡的方法和终端 |
US20100125689A1 (en) * | 2008-11-20 | 2010-05-20 | Mediatek Inc. | Electronic apparatus capable of receiving different types of memory cards |
CN102253809A (zh) * | 2010-05-17 | 2011-11-23 | 中兴通讯股份有限公司 | 一种复合存储卡及其控制方法 |
CN101986327A (zh) * | 2010-09-06 | 2011-03-16 | 建荣集成电路科技(珠海)有限公司 | 一种sd/mmc卡免检测脚在线/离线检测方法 |
CN105392129B (zh) * | 2015-11-03 | 2019-02-26 | Tcl移动通信科技(宁波)有限公司 | 一种sim卡快速检测方法及移动终端 |
-
2018
- 2018-12-24 CN CN201811584256.6A patent/CN111428840B/zh active Active
-
2019
- 2019-07-17 WO PCT/CN2019/096431 patent/WO2020134035A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681955A (zh) * | 2010-12-21 | 2012-09-19 | 三星电子株式会社 | 多接口存储卡及操作方法 |
CN104242995A (zh) * | 2013-06-07 | 2014-12-24 | 中兴通讯股份有限公司 | 信息存储卡的通信处理方法及装置、移动终端 |
CN104714912A (zh) * | 2015-03-04 | 2015-06-17 | 惠州Tcl移动通信有限公司 | 一种多卡检测装置、多卡检测系统及其方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023277865A1 (en) * | 2021-06-28 | 2023-01-05 | Hewlett-Packard Development Company, L.P. | Identification of option cards using multiple voltage inputs |
US20240264966A1 (en) * | 2021-06-28 | 2024-08-08 | Hewlett-Packard Development Company, L.P. | Identification of Option Cards Using Multiple Voltage Inputs |
Also Published As
Publication number | Publication date |
---|---|
CN111428840B (zh) | 2023-03-28 |
CN111428840A (zh) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10394296B2 (en) | Data storage device for a device accessory | |
US20060085583A1 (en) | Multi-functional integrated circuit card module with a mixed interface | |
US20090289117A1 (en) | Method For Reducing RF Interference Inside Dual-Interface Card Reader And Dual-Interface Card Reader Thereof | |
TW200910371A (en) | NAND interface | |
KR20160098444A (ko) | 다수의 메모리 기술들에 대한 플랫폼 지원을 제공하는 장치, 시스템 및 방법 | |
US10831657B2 (en) | Debug data recovery after PLI event | |
US20160260494A1 (en) | Access apparatus of memory card and control method thereof | |
US20180074953A1 (en) | Memory controller and accessing system utilizing the same | |
CN102970432A (zh) | 一种移动终端及其控制sim卡热插拔的方法 | |
JP7455845B2 (ja) | メモリ・カード、コネクタ、および機能カードの識別方法 | |
WO2020134035A1 (zh) | 一种功能卡的识别方法以及移动设备 | |
CN111428842B (zh) | 一种存储卡的识别方法以及移动设备 | |
WO2023024863A1 (zh) | 系统芯片和电子设备 | |
US20130036263A1 (en) | Solid state storage device using volatile memory | |
CN111858422A (zh) | 集成接口及具有所述集成接口的电子装置 | |
CN111428526B (zh) | 一种功能卡的识别方法以及移动设备 | |
CN103546638A (zh) | 一种快闪存储卡的掉卡恢复方法及其移动终端 | |
CN102880958B (zh) | 数据处理及存储装置 | |
CN102541671A (zh) | 一种提高电子设备对sd卡识别率的方法及设备 | |
WO2020134039A1 (zh) | 一种存储卡的识别方法以及移动设备 | |
CN101533372A (zh) | 数据存取系统 | |
CN201289645Y (zh) | 可调用安全认证加解密数字签名功能的信息安全设备 | |
CN101533373B (zh) | 数据存取系统 | |
CN100423022C (zh) | 带有防伪鉴别功能的便携式个人终端 | |
CN209821837U (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: 19904571 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19904571 Country of ref document: EP Kind code of ref document: A1 |