CN111428840A - Function card identification method and mobile device - Google Patents
Function card identification method and mobile device Download PDFInfo
- Publication number
- CN111428840A CN111428840A CN201811584256.6A CN201811584256A CN111428840A CN 111428840 A CN111428840 A CN 111428840A CN 201811584256 A CN201811584256 A CN 201811584256A CN 111428840 A CN111428840 A CN 111428840A
- Authority
- CN
- China
- Prior art keywords
- card
- function
- function card
- voltage
- sim
- 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.)
- Granted
Links
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
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
本申请公开了一种功能卡的识别方法以及移动设备,其中,该功能卡的识别方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。通过上述方式,能够避免电压过高造成的功能卡损坏的情况,并且提高了识别效率。
The present application discloses a method for identifying a function card and a mobile device, wherein the method for identifying a function card includes: using a first voltage to power on the function card to be identified; identifying whether the function card is a memory card or a first type of identity identifying the card; if not, adjusting the power supply voltage of the function card to a second voltage; identifying whether the function card is a second type of identification card; wherein the second voltage is greater than the first voltage. In the above manner, the damage of the function card caused by the excessive voltage can be avoided, and the identification efficiency is improved.
Description
技术领域technical field
本申请涉及卡片识别技术领域,特别是涉及一种功能卡的识别方法以及移动设备。The present application relates to the technical field of card identification, and in particular, to a method for identifying a function card and a mobile device.
背景技术Background technique
由于具有存储量大、携带方便、读写速度快等特点,存储卡、身份识别卡等功能卡得到越来越多终端设备的支持。目前,在插入功能卡后,终端设备通过识别程序对功能卡进行数据加载,实现对功能卡的识别。Due to the characteristics of large storage capacity, convenient portability, and fast reading and writing speed, function cards such as memory cards and ID cards are supported by more and more terminal devices. At present, after inserting the function card, the terminal device loads the data of the function card through the identification program, so as to realize the identification of the function card.
以NM卡(Nano Memory Card)为例,NM卡为集成了存储功能的大容量的功能卡,其具有与nano SIM卡相同的尺寸,能够与nano SIM 卡共同一个卡槽。现有的技术中在对NM卡和SIM卡进行识别时,一般是在卡槽增加一个检测引脚以进行识别,这样需要改变卡槽的结构,增加成本;此外,还会增加设备的故障率。Taking an NM card (Nano Memory Card) as an example, the NM card is a large-capacity function 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. In the prior art, when the NM card and the SIM card are identified, a detection pin is generally added to the card slot for identification, which requires changing the structure of the card slot and increases the cost; in addition, the failure rate of the equipment will be increased. .
发明内容SUMMARY OF THE INVENTION
本申请主要提供一种功能卡的识别方法以及移动设备,能够解决现有技术中对NM卡和SIM卡识别较为困难的问题。The present application mainly provides a method for identifying a function card and a mobile device, which can solve the problem of difficulty in identifying an NM card and a SIM card in the prior art.
本申请采用的一种方式是提供一种功能卡的识别方法,该功能卡包括存储卡、第一类身份识别卡及第二类身份识别卡;该方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。One method adopted in the present application is to provide a method for identifying a function card, the function card includes a memory card, a first-type identification card and a second-type identification card; the method includes: using a first voltage to identify the function The card is powered on; identify whether the function card is a memory card or a first-type identification card; if not, adjust the power supply voltage of the function card to the second voltage; identify whether the function card is a second-type identification card; wherein, The second voltage is greater than the first voltage.
其中,存储卡为NM卡,其采用EMMC协议进行通信;第一身份识别卡为1.8V SIM卡;识别功能卡是否为存储卡或者第一类身份识别卡的步骤,包括:向功能卡发送EMMC协议的初始化命令;检测功能卡的命令引脚是否存在响应;若存在响应,将功能卡识别为NM卡。Wherein, the memory card is an NM card, which uses the EMMC protocol for communication; the first identity card is a 1.8V SIM card; the step of identifying whether the function card is a memory card or a first-class identity card includes: sending the EMMC to the function card The initialization command of the protocol; check whether the command pin of the function card has a response; if there is a response, identify the function card as an NM card.
其中,EMMC协议的初始化命令为CMD1命令。Among them, the initialization command of the EMMC protocol is the CMD1 command.
其中,向功能卡发送EMMC协议的初始化命令的步骤之前,进一步包括:向功能卡的命令引脚发送EMMC协议的复位命令,以使得待识别存储卡进入空闲状态。Wherein, before the step of sending the initialization command of the EMMC protocol to the function card, it further includes: sending the reset command of the EMMC protocol to the command pin of the function card, so that the memory card to be identified enters an idle state.
其中,EMMC协议的复位命令为CMD0命令。Among them, the reset command of the EMMC protocol is the CMD0 command.
其中,存储卡为NM卡,其采用MMC协议进行通信;第一身份识别卡为1.8V SIM卡;识别功能卡是否为存储卡或者第一类身份识别卡的步骤,包括:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为1.8V SIM卡。Wherein, the memory card is an NM card, which uses the MMC protocol for communication; the first identity card is a 1.8V SIM card; the step of identifying whether the function card is a memory card or a first-class identity card includes: performing SIM on the function card Card reset operation; check whether the function card has a reset response; if there is a reset response, identify the function card as a 1.8V SIM card.
其中,存储卡为NM卡,其采用MMC协议进行通信;第二身份识别卡为3.3V SIM卡;识别功能卡是否为第二类身份识别卡的步骤,包括:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为3.3V SIM卡。Wherein, the memory card is an NM card, which uses the MMC protocol for communication; the second identity card is a 3.3V SIM card; and the step of identifying whether the function card is the second type of identity card includes: performing a SIM card reset operation on the function card ; Detect whether the function card has a reset response; if there is a reset response, identify the function card as a 3.3V SIM card.
其中,第一电压为1.8V,第二电压为3.3V。Wherein, the first voltage is 1.8V, and the second voltage is 3.3V.
其中,存储卡为NM卡,其采用MMC协议进行通信;第二身份识别卡为3.3V SIM卡;识别功能卡是否为第二类身份识别卡的步骤之后,还包括:根据功能卡的识别结果对功能卡进行二次上电,并利用对应的协议对存储卡进行操作。Wherein, the memory card is an NM card, which uses MMC protocol for communication; the second identity card is a 3.3V SIM card; after the step of identifying whether the function card is the second type of identity card, the method further includes: according to the identification result of the function card Power on the function card twice, and use the corresponding protocol to operate the memory card.
本申请采用的一种方式是提供一种移动设备,移动设备包括控制器以及卡槽,卡槽用于容置功能卡并使功能卡与控制器形成电连接,控制器用于采用如上述的方法对功能卡进行识别。One approach adopted in the present application is to provide a mobile device, the mobile device includes a controller and a card slot, the card slot is used for accommodating a function card and making an electrical connection between the function card and the controller, and the controller is used for adopting the above method Identify the function card.
本申请提供的功能卡的识别方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。通过上述方式,存储卡和身份识别卡的识别过程中无需增加额外的检测引脚,降低了成本,并且利用了不同类型功能卡的工作电压进行两种电压的识别过程,避免了电压过高造成的功能卡损坏的情况,提高了识别效率。The method for identifying a function card provided by the present application includes: using a first voltage to power on the function card to be identified; identifying whether the function card is a memory card or a first-type identification card; if not, adjusting the power supply voltage of the function card to a second voltage; identifying whether the function card is a second type of identification card; wherein, the second voltage is greater than the first voltage. Through the above method, there is no need to add additional detection pins in the identification process of the memory card and the ID card, which reduces the cost, and uses the working voltage of different types of function cards to carry out the identification process of the two voltages, avoiding the excessive voltage caused by the identification process. In case of damage to the function card, the identification efficiency is improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。其中:In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. in:
图1是本申请提供的功能卡的识别方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a method for identifying a function card provided by the present application;
图2是本申请提供的功能卡的识别方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a method for identifying a function card provided by the present application;
图3是本申请提供的功能卡的识别方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a method for identifying a function card provided by the present application;
图4是本申请提供的移动设备一实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a mobile device provided by the present application;
图5是本申请提供的移动设备一实施例中卡托的结构示意图。FIG. 5 is a schematic structural diagram of a card tray in an embodiment of a mobile device provided by the present application.
具体实施方式Detailed ways
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本发明的功能卡指的是用于手机、数码相机、便携式电脑、平板、 PDA(PersonalDigital Assistant,掌上电脑)等电子设备,能够实现存储、通信等功能的卡片式产品。其可以包括NM卡、MMC卡、EMMC卡、 EMCP卡、SD卡、SIM卡等。The function card of the present invention refers to a card-type product that is used in electronic devices such as mobile phones, digital cameras, portable computers, tablets, and PDAs (Personal Digital Assistant, handheld computers), and can realize functions such as storage and communication. It may include NM card, MMC card, EMMC card, EMCP card, SD card, SIM card and so on.
存储卡,是用于手机、数码相机、便携式电脑、MP3和其他数码产品上的独立存储介质,一般是卡片的形态,故统称为“存储卡”,又称为“数码存储卡”、“数字存储卡”、“储存卡”等。存储卡的种类较多,本申请的实施例主要介绍NM卡的识别方式。身份识别卡主要用于对用户的身份进行识别,例如SIM卡。Memory card is an independent storage medium used in mobile phones, digital cameras, portable computers, MP3 and other digital products. memory card", "memory card", etc. There are many types of memory cards, and the embodiments of this 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卡(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 card (Subscriber Identification Module), also known as user identification card, smart card, GSM digital mobile phone must be installed with this card before it can be used. SIM cards generally include standard SIM cards, Micro SIM cards and Nano SIM cards. Micro SIM cards, also known as 3FF SIM cards, are the third type of SIM, with a size of 12x15mm × 0.8mm, which is smaller than the second type of SIM used in our mobile phones. The card size of 15x25mm x 0.8mm is 52% smaller. Nano SIM card is a 4FF standard SIM card. The NanoSIM is one-third smaller than a Micro SIM, 60 percent smaller than a standard SIM, and 15 percent thinner. Its dimensions are 12.3mm×8.8mm×0.7mm.
SIM卡一般有8个引脚,如下表所示:SIM cards generally have 8 pins, as shown in the following table:
NM卡(Nano Memory Card),其为集成了存储功能的大容量的存储卡,其具有与nano SIM卡相同的尺寸,能够与nano SIM卡共同一个卡槽,NM存储卡可提供64GB、128GB、256GB或更大容量的多种大容量选择,数据读取速度可达90MB/s,可满足智能手机和数码相机等设备的使用需求。NM card (Nano Memory Card), which is a large-capacity memory card with integrated storage function. It 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 more, with data read speeds up to 90MB/s, can meet the needs of devices such as smartphones and digital cameras.
NM卡采用EMMC协议,EMMC(Embedded Multi Media Card)是 MMC协会订立、主要针对手机或平板电脑等产品的内嵌式存储器标准规格。The NM card adopts the EMMC protocol. EMMC (Embedded Multi Media Card) is a standard specification of embedded memory established by the MMC Association and mainly aimed at products such as mobile phones or tablet computers.
NM卡包括3.3V电源触片(VCC)、接地触片(GND)、时钟触片 (CLK)、命令触片(CMD)和4个数据触片(D0-D3),在本实施例中, 8个接口触片的设置如下:The NM card includes 3.3V power contacts (VCC), ground contacts (GND), clock contacts (CLK), command contacts (CMD) and 4 data contacts (D0-D3). In this embodiment, The settings of the 8 interface contacts are as follows:
参阅图1,图1是本申请提供的功能卡的识别方法第一实施例的流程示意图,该方法包括:Referring to FIG. 1, 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:
步骤11:采用第一电压对待识别的功能卡进行上电。Step 11: Use the first voltage to power on the function card to be identified.
可以理解的,不同类型的存储卡或者身份识别卡,其工作电压可能不同,在识别时若电压偏低可能无法驱动一些功能卡进行识别,而若电压偏高则可能烧坏一些功能卡。It is understandable that different types of memory cards or identification cards may have different working voltages. During identification, if the voltage is too low, some function cards may not be driven for identification, and if the voltage is too high, some function cards may be burned out.
可选的,在一种实施例中,NM卡的工作电压为3.3V,但其在1.8V 和3.3V均可以对其进行识别;SIM卡包括两个类型,第一类SIM卡的工作电压为1.8V,第二类SIM卡的工作电压为3.3V。所以,在步骤11 中,具体为采用1.8V电压对待识别的功能卡进行上电。Optionally, in an embodiment, the working voltage of the NM card is 3.3V, but it can be identified at both 1.8V and 3.3V; the SIM card includes two types, and the working voltage of the first type of SIM card is It is 1.8V, and the working voltage of the second type of SIM card is 3.3V. Therefore, in
步骤12:识别功能卡是否为存储卡或者第一类身份识别卡。Step 12: Identify whether the function card is a memory card or a first-class identification card.
这里以NM卡和SIM卡进行举例说明。Here, an NM card and a SIM card are used as examples for illustration.
这里可以分别采用NM卡的识别方式或者SIM卡的识别方式,例如先检测待识别的功能卡是否为NM卡,若不是,再检测其是否为SIM卡。或者,先检测待识别的功能卡是否为SIM卡,若不是,再检测其是否为 NM卡。Here, the identification method of the NM card or the identification method of the SIM card can be respectively adopted. For example, it is first detected whether the function card to be identified is an NM card, and if not, it is then detected whether it is a SIM card. Or, first detect whether the function card to be identified is a SIM card, if not, then detect whether it is an NM card.
由于NM卡采用了EMMC协议,所以这里可以通过以下方式识别该功能卡是否为EMMC卡:向功能卡发送EMMC协议的初始化命令;检测功能卡的命令引脚是否存在响应;若存储响应,则将功能卡识别为 NM卡。具体地,EMMC协议的初始化命令为CMD1命令。Since the NM card adopts the EMMC protocol, whether the function card is an EMMC card can be identified by the following methods: send the initialization command of the EMMC protocol to the function card; check whether the command pin of the function card has a response; if the response is stored, the The function card is recognized as an NM card. Specifically, the initialization command of the EMMC protocol is the CMD1 command.
可选的,在对EMMC协议进行识别时,在发送CMD1命令之前,还可以向功能卡的发送EMMC协议的复位命令,以使得待识别功能卡进入空闲状态。具体地,EMMC协议的复位命令为CMD0。Optionally, when identifying the EMMC protocol, before sending the CMD1 command, a reset command of the EMMC protocol may also be sent to the function card, so that the function card to be identified enters an idle state. Specifically, the reset command of the EMMC protocol is CMD0.
SIM卡的识别可以通过以下方式来进行识别:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为第一类SIM卡。具体地,SIM卡复位操作包括冷复位和热复位。The identification of the SIM card can be performed in the following ways: performing the SIM card reset operation on the function card; detecting whether the function card has a reset response; if there is a reset response, the function card is identified as the first type of SIM card. Specifically, the SIM card reset operation includes cold reset and warm reset.
冷复位:初始时,所有引脚均处于低电位(L态),电压范围为0-0.4V,VCC引脚先上电,后提供VPP编程电压(在智能SIM卡中,VPP无用);在VCC引脚的电压稳定一段时间后,将I/O引脚置为接收方式(H态),并提供稳定的CLK时钟信号,RST引脚需要再提供CLK信号后400个时钟周期内保持L态,之后可置为H态,提供RST引脚复位信号后的 400-4000个时钟周期内,检测I/O引脚有复位应答。Cold reset: Initially, all pins are in low potential (L state), the voltage range is 0-0.4V, the VCC pin is powered on first, and then the VPP programming voltage is provided (in the smart SIM card, VPP is useless); After the voltage of the VCC pin is stable for a period of time, set the I/O pin to the receiving mode (H state) and provide a stable CLK clock signal. The RST pin needs to maintain the L state for 400 clock cycles after the CLK signal is supplied again. , then can be set to H state, within 400-4000 clock cycles after the RST pin reset signal is provided, the detection I/O pin has a reset response.
热复位:热复位是在冷复位失败的情况下使用,过程中保持VCC 为H态,且有稳定的CLK时钟信号;热复位时需保持RST引脚为L态的时间至少为400个时钟周期;在RST引脚置L态之前或之后200个时钟周期内,I/O引脚应置为接收方式;在RST置为H态之后的400-4000个时钟周期内,检测I/O引脚有复位应答。Warm reset: warm reset is used in the case of cold reset failure. During the process, VCC is kept in H state and there is a stable CLK clock signal; during warm reset, the RST pin needs to be kept 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 receive mode; 400-4000 clock cycles after the RST pin is set to the H state, detect the I/O pin There is an answer to reset.
在步骤12的判断结果为是时,则将功能卡识别为NM卡或第一类 SIM卡。在步骤12的判断结果为否时,执行步骤13。When the judgment result in
步骤13:将功能卡的供电电压调整至第二电压。Step 13: Adjust the power supply voltage of the function card to the second voltage.
其中,该第二电压为3.3V。Wherein, the second voltage is 3.3V.
步骤14:识别功能卡是否为第二类身份识别卡。Step 14: Identify whether the function card is the second type of identification card.
这里以SIM卡进行举例说明。Here is an example of a SIM card.
具体为:对功能卡进行SIM卡复位操作;检测功能卡是否有复位应答;若有复位应答,则将功能卡识别为第二类SIM卡。Specifically, the SIM card reset operation is performed on the function card; whether the function card has a reset response is detected; if there is a reset response, the function card is identified as the second type of SIM card.
另外,在步骤14之后,还可以包括:对功能卡进行断电,并针对功能卡的类型进行二次上电,以对功能卡进行操作。这里的二次上电可以根据上述步骤中的判断结果来决定,其具体可以是1.8V或3.3V。例如,在上述识别过程中,将待识别的功能卡识别为1.8V SIM卡,那么二次上电可以采用1.8V电压,若上述识别过程,将待识别的功能卡识别为3.3V SIM卡或NM卡,那么二次上电可以采用3.3V电压。采用上述方式,在识别完功能卡类型后,对功能卡进行断电重启,用于消除第一次上电给卡片带来的未知影响,之后根据识别到的卡类型,提供对应的供电需求,对相应的卡进行正常的初始化操作。此外,由于NM卡的工作电压为3.3V,当采用1.8V电压识别出NM卡时,需对其进行断电重启,采用3.3V进行二次上电重启才能使其进行工作。In addition, after
本实施例提供的功能卡的识别方法包括:采用第一电压对待识别的功能卡进行上电;识别功能卡是否为存储卡或者第一类身份识别卡;若不是,则将功能卡的供电电压调整至第二电压;识别功能卡是否为第二类身份识别卡;其中,第二电压大于第一电压。通过上述方式,存储卡和身份识别卡的识别过程中无需增加额外的检测引脚,降低了成本,并且利用了不同类型功能卡的工作电压进行两种电压的识别过程,避免了电压过高造成的功能卡损坏的情况,提高了识别效率。The method for identifying a function card provided by this embodiment includes: using a first voltage to power on the function card to be identified; identifying whether the function card is a memory card or a first-type identification card; Adjusting 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. Through the above method, there is no need to add additional detection pins in the identification process of the memory card and the ID card, which reduces the cost, and uses the working voltage of different types of function cards to carry out the identification process of the two voltages, avoiding the excessive voltage caused by the identification process. In case of damage to the function card, the identification efficiency is improved.
参阅图2,图2是本申请提供的功能卡的识别方法第二实施例的流程示意图,该方法包括:Referring to FIG. 2, 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:
步骤201:采用第一电压对待识别的功能卡进行上电。Step 201: Power on the function card to be identified by using the first voltage.
步骤202:向功能卡发送EMMC协议的初始化命令。Step 202: Send an initialization command of the EMMC protocol to the function card.
其中,EMMC协议的初始化命令为CMD1。Among them, the initialization command of the EMMC protocol is CMD1.
步骤203:检测功能卡的命令引脚是否存在响应。Step 203: Detect whether the command pin of the function card has a response.
若存在响应,则执行步骤204,若不存在响应,则执行步骤205。If there is a response, go to step 204; if there is no response, go to step 205.
步骤204:将功能卡识别为NM卡。Step 204: Identify the function card as an NM card.
步骤205:对功能卡进行SIM卡复位操作。Step 205: Perform SIM card reset operation on the function card.
步骤206:检测功能卡是否有复位应答。Step 206: Detect whether the function card has a reset response.
若存在复位应答,则执行步骤207,若不存在复位应答,则执行步骤208。If there is an answer to reset, go to step 207 , if there is no answer to reset, go to step 208 .
步骤207:将功能卡识别为1.8V SIM卡。Step 207: Identify the function card as a 1.8V SIM card.
步骤208:将功能卡的供电电压调整至第二电压。Step 208: Adjust the power supply voltage of the function card to the second voltage.
步骤209:对功能卡进行SIM卡复位操作。Step 209: Perform SIM card reset operation on the function card.
步骤210:检测功能卡是否有复位应答。Step 210: Detect whether the function card has a reset response.
若存在复位应答,则执行步骤211。If there is an answer to reset,
步骤211:将功能卡识别为3.3V SIM卡。Step 211: Identify the function card as a 3.3V SIM card.
参阅图3,图3是本申请提供的功能卡的识别方法第三实施例的流程示意图,该方法包括:Referring to FIG. 3, 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:
步骤301:采用第一电压对待识别的功能卡进行上电。Step 301: Power on the function card to be identified by using the first voltage.
步骤302:对功能卡进行SIM卡复位操作。Step 302: Perform SIM card reset operation on the function card.
步骤303:检测功能卡是否有复位应答。Step 303: Detect whether the function card has a reset response.
若存在复位应答,则执行步骤304,若不存在复位应答,则执行步骤305。If there is an answer to reset, go to step 304 , if there is no answer to reset, go to step 305 .
步骤304:将功能卡识别为1.8V SIM卡。Step 304: Identify the function card as a 1.8V SIM card.
步骤305:向功能卡发送EMMC协议的初始化命令。Step 305: Send an initialization command of the EMMC protocol to the function card.
其中,EMMC协议的初始化命令为CMD1。Among them, the initialization command of the EMMC protocol is CMD1.
步骤306:检测功能卡的命令引脚是否存在响应。Step 306: Detect whether the command pin of the function card has a response.
若存在响应,则执行步骤307,若不存在响应,则执行步骤308。If there is a response, go to step 307, if there is no response, go to step 308.
步骤307:将功能卡识别为NM卡。Step 307: Identify the function card as an NM card.
步骤308:将功能卡的供电电压调整至第二电压。Step 308: Adjust the power supply voltage of the function card to the second voltage.
步骤309:对功能卡进行SIM卡复位操作。Step 309: Perform SIM card reset operation on the function card.
步骤310:检测功能卡是否有复位应答。Step 310: Detect whether the function card has a reset response.
若存在复位应答,则执行步骤311。If there is an answer to reset,
步骤311:将功能卡识别为3.3V SIM卡。Step 311: Identify the function card as a 3.3V SIM card.
可选的,在上述实施例中,第一电压为1.8V,第二电压为3.3V。Optionally, in the foregoing embodiment, the first voltage is 1.8V, and the second voltage is 3.3V.
参阅图4,图4是本申请提供的移动设备一实施例的结构示意图,该移动设备40包括控制器41以及可嵌入移动设备40主体的卡托42,卡托42上设置有卡槽42a,卡槽42a用于容置功能卡并使功能卡与控制器41形成电连接,控制器41用于采用如上述的方式对不同类型的功能卡进行识别。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of an embodiment of a mobile device provided by the present application. The
其中,如图5所示,图5是本申请提供的移动设备一实施例中卡托的结构示意图,该卡托42包括第一卡槽42a和第二卡槽42b,第一卡槽 42a和第二卡槽42b的形状相同,其中,第一卡槽42a和第二卡槽42b 用于容置上述实施例中提供的多种类型的功能卡。Among them, as shown in FIG. 5, FIG. 5 is a schematic structural diagram of a card tray in an embodiment of the mobile device provided by the present application. The
其中,该移动设备可以是手机、平板电脑、智能手表等穿戴设备。The mobile device may be a wearable device such as a mobile phone, a tablet computer, and a smart watch.
另外,该移动设备中还可以包括一存储器,用于存储程序数据,该程序数据在被控制器41执行时,实现如上述的识别方法。In addition, the mobile device may further include a memory for storing program data, and when the program data is executed by the
本申请的实施例以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor) 执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。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 solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable 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 codes .
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above description is only an embodiment of the present application, and is not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related technologies Fields are similarly included within the scope of patent protection of this application.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811584256.6A CN111428840B (en) | 2018-12-24 | 2018-12-24 | Function card identification method and mobile device |
PCT/CN2019/096431 WO2020134035A1 (en) | 2018-12-24 | 2019-07-17 | Method for identifying function card and mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811584256.6A CN111428840B (en) | 2018-12-24 | 2018-12-24 | Function card identification method and mobile device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111428840A true CN111428840A (en) | 2020-07-17 |
CN111428840B CN111428840B (en) | 2023-03-28 |
Family
ID=71128213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811584256.6A Active CN111428840B (en) | 2018-12-24 | 2018-12-24 | Function card identification method and mobile device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111428840B (en) |
WO (1) | WO2020134035A1 (en) |
Families Citing this family (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 (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804780A (en) * | 2006-01-25 | 2006-07-19 | 骆建军 | Adaptive memory card compatible to SD and MMC standard |
CN101287030A (en) * | 2008-06-10 | 2008-10-15 | 深圳华为通信技术有限公司 | Method and terminal for identifying user identification card |
CN101739222A (en) * | 2008-11-20 | 2010-06-16 | 联发科技股份有限公司 | Electronic device, interface circuit and access method |
CN101986327A (en) * | 2010-09-06 | 2011-03-16 | 建荣集成电路科技(珠海)有限公司 | Detection pin-free method for detecting on-line and off-line conditions of secure digital/multimedia card (SD/MMC) |
CN102253809A (en) * | 2010-05-17 | 2011-11-23 | 中兴通讯股份有限公司 | Composite memory card and control method thereof |
CN104242995A (en) * | 2013-06-07 | 2014-12-24 | 中兴通讯股份有限公司 | Communication processing method of information memory card, device and mobile terminal thereof |
CN105392129A (en) * | 2015-11-03 | 2016-03-09 | Tcl移动通信科技(宁波)有限公司 | SIM card quick detection method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104714912B (en) * | 2015-03-04 | 2017-11-10 | 惠州Tcl移动通信有限公司 | A kind of more card detection apparatus, more card detecting systems and its method |
-
2018
- 2018-12-24 CN CN201811584256.6A patent/CN111428840B/en active Active
-
2019
- 2019-07-17 WO PCT/CN2019/096431 patent/WO2020134035A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804780A (en) * | 2006-01-25 | 2006-07-19 | 骆建军 | Adaptive memory card compatible to SD and MMC standard |
CN101287030A (en) * | 2008-06-10 | 2008-10-15 | 深圳华为通信技术有限公司 | Method and terminal for identifying user identification card |
CN101739222A (en) * | 2008-11-20 | 2010-06-16 | 联发科技股份有限公司 | Electronic device, interface circuit and access method |
CN102253809A (en) * | 2010-05-17 | 2011-11-23 | 中兴通讯股份有限公司 | Composite memory card and control method thereof |
CN101986327A (en) * | 2010-09-06 | 2011-03-16 | 建荣集成电路科技(珠海)有限公司 | Detection pin-free method for detecting on-line and off-line conditions of secure digital/multimedia card (SD/MMC) |
CN104242995A (en) * | 2013-06-07 | 2014-12-24 | 中兴通讯股份有限公司 | Communication processing method of information memory card, device and mobile terminal thereof |
CN105392129A (en) * | 2015-11-03 | 2016-03-09 | Tcl移动通信科技(宁波)有限公司 | SIM card quick detection method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2020134035A1 (en) | 2020-07-02 |
CN111428840B (en) | 2023-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10394296B2 (en) | Data storage device for a device accessory | |
EP1801740B1 (en) | Interface for a removable electrical card | |
US20060085583A1 (en) | Multi-functional integrated circuit card module with a mixed interface | |
US20120079197A1 (en) | Card-reading device and method for using the card-reading device to access memory card | |
US8070067B2 (en) | Receptacles for removable electrical interface devices | |
US20070058477A1 (en) | Accessing apparatus capable of reducing power consumption and accessing method thereof | |
TWI553639B (en) | Reading apparatus of memory card and control method thereof | |
TW200910371A (en) | NAND interface | |
CN111428842B (en) | Memory card identification method and mobile device | |
CN111858422B (en) | Integrated interface and electronic device with same | |
CN111428840B (en) | Function card identification method and mobile device | |
US20130036263A1 (en) | Solid state storage device using volatile memory | |
CN111428526B (en) | A method for identifying a function card and a mobile device | |
US20220156009A1 (en) | Storage device operation method, and storage device | |
CN102880958B (en) | Data process and storage device | |
CN111783484A (en) | A memory card identification method, electronic device and computer storage medium | |
CN111428841A (en) | A method for identifying a memory card and a mobile device | |
CN201289645Y (en) | Information safety equipment capable of invoking safety authentication encryption and decryption digital signature function | |
US20100199000A1 (en) | Data storage device and method for operating the same | |
CN100423022C (en) | Portable personal terminal with anti-counterfeit identification function | |
CN102592164A (en) | Extensible memory card, connector and mobile terminal | |
TWI402685B (en) | Serial advanced technology attachment interface storage device | |
US20130290602A1 (en) | Data storage device | |
CN204423907U (en) | Memory device | |
CN200941203Y (en) | riser card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |