CN106295432A - The data detection method of a kind of SD card and system and the draw-in groove of external SD card - Google Patents

The data detection method of a kind of SD card and system and the draw-in groove of external SD card Download PDF

Info

Publication number
CN106295432A
CN106295432A CN201610645097.0A CN201610645097A CN106295432A CN 106295432 A CN106295432 A CN 106295432A CN 201610645097 A CN201610645097 A CN 201610645097A CN 106295432 A CN106295432 A CN 106295432A
Authority
CN
China
Prior art keywords
card
external
data
write
read
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.)
Pending
Application number
CN201610645097.0A
Other languages
Chinese (zh)
Inventor
柴灿
孙伟
王大岁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI INFOTM MICROELECTRONICS CO Ltd
Original Assignee
SHANGHAI INFOTM MICROELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI INFOTM MICROELECTRONICS CO Ltd filed Critical SHANGHAI INFOTM MICROELECTRONICS CO Ltd
Priority to CN201610645097.0A priority Critical patent/CN106295432A/en
Publication of CN106295432A publication Critical patent/CN106295432A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
    • G06K7/0047Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers for reading/sensing record carriers having edge contacts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
    • G06K7/0056Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers housing of the card connector

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The present invention provides the data detection method of a kind of SD card and system and the draw-in groove of external SD card, including: it is in running order that step S10 utilizes I/O control to open external SD card;Step S20 obtains the working clock frequency that user presets to the input of described external SD card;The described default working clock frequency that step S40 inputs according to user, to the data message of the capacity that described external SD read-write is preset;Step S50 detects the data message concordance of described external SD card read-write;When consistent, perform step S60;Step S60 utilizes described I/O control to close the duty of external SD card.Original detection pattern is changed by the present invention, by SD card draw-in groove controls the innovation of interface, simulates and opens SD card and disconnect, it is achieved that the automatic test that SD card sampling time sequence postpones, save manpower and time cost, shorten the research and development of products cycle.

Description

The data detection method of a kind of SD card and system and the draw-in groove of external SD card
Technical field
The present invention relates to the technical field of integrated circuit detection, particularly relate to the data detection method of a kind of SD card and be System and the draw-in groove of external SD card.
Background technology
Along with enriching of various multimedia recreation contents, the storage volume of electronic product used is required more to come by consumer The highest, SD card has been widely used in various electronic equipment as storage device, itself otherwise as product built-in storage dress Put;Extend storage device as it, on the body of electronic product, be i.e. provided with SD interface, as needed electronic product to set with outside When standby interchange of data or the increase storage volume of electronic product own, it is possible to directly SD card is inserted the SD clamping on electronic product Mouthful.
Stable and reliable in work in order to ensure SD card, during production, SD card sampling time sequence typically will be surveyed by production firm Examination, is all to directly utilize SD card insertion to connect product and test to the test of SD card interface in the market.This mode is for research and development And finished product stage all Shortcomings:
First, the read-write frequency of different its systems of electronic product is different, occurs when accessing external SD card existence read-write data The phenomenon of mistake;Secondly, research and development and finished product acceptance phase, figure plugs in test card slot difference, causes the easily abrasion of SD card Or burn, increase testing cost;Again, owing to SD card volume is the least, tester operates very inconvenient, not manageability.
Summary of the invention
It is an object of the present invention to provide data detection method and the system of a kind of SD card, its objective is to be capable of in research and development or The data message read-write automatic test that SD card sampling time sequence is postponed by person's finished product stage, it is possible to save testing cost, be easy to pipe Reason, safe and reliable.
The technical scheme that the present invention provides is as follows:
A kind of data detection method of SD card, including:
It is in running order that step S10 utilizes I/O control to open external SD card;
Step S20 obtains the working clock frequency that user presets to the input of described external SD card;
The described default working clock frequency that step S40 inputs according to user, the appearance preset to described external SD read-write The data message of amount;
Step S50 detects the data message concordance of described external SD card read-write;When consistent, perform step S60.
Step S60 utilizes described I/O control to close the duty of external SD card.
It is further preferred that also include before described step S40:
The described default working clock frequency that step S30 inputs according to user, arranges described external SD card read-write data The sequential delay parameter of information.
It is further preferred that described step S50 includes:
Step S51 extracts sample number in the described data message in the byte section preset of write from described external SD card According to;
Step S52 extracts the described sample data in the described default byte section of reading from described external SD card;
Described step S51 is extracted and is write described sample data and the described step S52 extraction described sample of reading by step S53 Data are compared;
When at least write with read sample data comparison described in corresponding byte section inconsistent time, return performs step Rapid S30.
It is further preferred that include when to described external SD card read-write data message:
When reading data message to described external SD card, stop writing data message to described external SD;
When writing data message to described external SD card, stop reading data message to described external SD.
It is further preferred that also include:
Utilize external SD card duty described in the Automatic level control that the GPIO of described I/O control exports.
A kind of detecting system of the data detection method of SD card, including:
SD card opening module, is used for utilizing I/O control to open external SD card in running order;
Frequency acquisition module, when described external SD card is in running order, is used for obtaining user to described external SD card The working clock frequency that input is preset;
Data read-write module, the working clock frequency preset obtained according to described frequency acquisition module, for described The data message of the capacity that external SD read-write is preset;
Data detection module, for judging that the data message that described data read-write module is read and write is the most consistent;
Module closed by SD card, when described data detection module detection data message is consistent, utilizes described I/O control to close Close the duty of external SD card.
It is further preferred that include:
Information arranges module, electrically connects with described frequency acquisition module, described data read-write module respectively, is used for arranging institute State the sequential delay parameter of external SD card read-write data message.
It is further preferred that described data detection module includes:
First sample data extracts submodule, in the byte section preset extracting write from described external SD card Sample data in described data message;
Second sample data extracts submodule, for extracting the described default byte section of reading from described external SD card Interior described sample data;
Sample data comparer module, for extracting, by described first sample data, sample data and the institute that submodule extracts The described sample data stating the second sample data extraction submodule extraction is compared;
When the result of described sample data comparison is inconsistent, described information arranges module and is once again set up described sequential time delay Parameter.
A kind of draw-in groove of external SD card, including: external SD card is arranged in special external SD card draw-in groove, at described draw-in groove Connection contact, the frequency contact all the time that respectively works electrically connected with described external SD card, reading and writing data contact are inside set;
The DET contact of described external SD card controls to electrically connect with IO, for controlling the duty of described external SD.
The data detection method of a kind of SD card provided by the present invention and system and the draw-in groove of external SD card, it is possible to bring At least one beneficial effect below:
1, the present invention is by the setting to external SD working clock frequency, judges that data energy read and write by SD card with this understanding Power, judges concordance according to the data of write with the data of reading, with the running parameter that this judges SD card the most to be detected is No coupling is correct, it is achieved that the automatic test of SD card.
2, for the detection of data message of SD card read-write in the present invention, be according to set in the range of delay parameter right Answer the detection of byte, when the contrast of at least one byte is inconsistent, stops at detection work under this delay parameter, reset and prolong Parameter late, and the setting of delay parameter is to carry out according to order from small to large, has the delay of maximum when ensureing SD card work Property, ensure the safe and reliable of reading and writing data simultaneously.
3, original detection pattern is changed by the present invention, and by SD card draw-in groove controls the innovation of interface, simulation is to SD Card is opened and disconnects, it is achieved that the automatic test that SD card sampling time sequence postpones, and saves manpower and time cost, shortens The research and development of products cycle, and after the encapsulation using level of abstraction, there is the highest safety, will not be due in automatic test Unconscious mistake causes system crash to cause the destruction of software and hardware.
Accompanying drawing explanation
Below by the way of the most understandable, accompanying drawings preferred implementation, the Data Detection to a kind of SD card Above-mentioned characteristic, technical characteristic, advantage and the implementation thereof of the draw-in groove of method and system and external SD card are further described.
Fig. 1 is the flow chart of the embodiment of the data detection method of the present invention a kind of SD card;
Fig. 2 is the flow chart of another embodiment of the data detection method of the present invention a kind of SD card;
Fig. 3 is the flow chart of another embodiment of the data detection method of the present invention a kind of SD card;
Fig. 4 is the structure chart of the embodiment of the data detection system of the present invention a kind of SD card;
Fig. 5 is the structure chart of another embodiment of the data detection system of the present invention a kind of SD card;
Fig. 6 is the structure chart of another embodiment of the data detection system of the present invention a kind of SD card;
Fig. 7 is the circuit diagram of the embodiment of the draw-in groove of the present invention a kind of SD card;
Fig. 8 is the circuit diagram of another embodiment of the draw-in groove of the present invention a kind of SD card.
Detailed description of the invention
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will comparison accompanying drawing explanation The detailed description of the invention of the present invention.It should be evident that the accompanying drawing in describing below is only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing, and obtain other embodiment.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent It is as the practical structures of product.It addition, so that simplified form readily appreciates, some figure has identical structure or function Parts, only symbolically depict one of them, or have only marked one of them.In this article, " one " not only represents " only this ", it is also possible to represent the situation of " more than one ".
The present invention provides the embodiment of the data detection method of a kind of SD card, with reference to shown in Fig. 1;Including:
It is in running order that step S10 utilizes I/O control to open external SD card;
Step S20 obtains the working clock frequency that user presets to the input of described external SD card;
The described default working clock frequency that step S40 inputs according to user, the appearance preset to described external SD read-write The data message of amount;
Step S50 detects the data message concordance of described external SD card read-write;When consistent, perform step S60.
Step S60 utilizes described I/O control to close the duty of external SD card.
Concrete, in the present embodiment, utilize the low and high level of the I/O port of CPU to control the duty of external SD card, when When entering test pattern, the IO of CPU controls to send high level, arranges the source operating frequency of SD card, according to the work frequency set Rate sticks into the read-write operation of row data to SD, and the quantity setting read-write data is stored in the storage folder of SD card, works as root After completing read-write operation according to the information of preset capacity, further checking its under the conditions of this operating frequency, the data of reading and writing The data entered are the most consistent, verify the accuracy to the running parameter that SD card is arranged with this, when the number reading in and writing after checking According to when being uniform data information, utilize cpu controller IO to send low level, close the duty of SD card, namely be equivalent to not SD card is had to carry out verifying work.
Preferably, also include before described step S40:
The described default working clock frequency that step S30 inputs according to user, arranges described external SD card read-write data The sequential delay parameter of information.
Concrete, with reference to shown in Fig. 2;The present embodiment increases on the basis of a upper embodiment step S30;According to SD The operating frequency of the setting of card, further according to being arranged under this operating frequency the sampling time sequence produced during reading and writing data Retardation parameter.
Preferably, described step S50 includes:
Step S51 extracts sample data in the described data message in the byte section preset of write from described external SD card;
Step S52 extracts the described sample data in the described default byte section of reading from described external SD card;
Described step S51 is extracted and is write described sample data and the described step S52 extraction described sample of reading by step S53 Data are compared;
When at least write with read sample data comparison described in corresponding byte section inconsistent time, return performs step Rapid S30.
Concrete, with reference to shown in Fig. 3;The present embodiment is continued on the basis of above example;At the work clock set During frequency under conditions of the sequential time delay amount of further setting data read-write, detect the SD card correctness to reading and writing data;Specifically Detection method be that frequency is 20ns as 12M, the retardation concurrently set when setting when;To external SD card write 512 The data of individual byte, are saved in after write in the temporary file folder of SD card, read further and write in the temporary file of SD card presss from both sides 512 byte datas entered, when the data volume being stored in is excessive, takes the extracting mode of sample formula, take it in the inside of system In the data message of a certain byte end, compare, read 25-366 byte section data message, equally when reading sample data In the range of the sampling parameter postponed, read 25-366 byte section data message;Each corresponding byte is compared, as Really comparison the most so proves under the frequency that SD is stuck in setting, and it is correct for setting the read-write of data under delay parameter, the most right Detect successfully in SD card;As long as oneself one of them appearance of comparison is abnormal, then prove that set data under delay parameter reads at this Write inconsistent, reset delay parameter further, again verify.Delay parameter starts checking from minimum parameter, takes maximum Delay parameter.
Preferably, include when to described external SD card read-write data message:
When reading data message to described external SD card, stop writing data message to described external SD;
When writing data message to described external SD card, stop reading data message to described external SD.
Concrete, when checking reads and writes data message to external SD card, read or write and can only single carry out, this avoid Detection process causes the entanglement of information.
Preferably, also include:
Utilize external SD card duty described in the Automatic level control that the GPIO of described I/O control exports.
The present invention also puies forward the embodiment of the data detection method of a kind of SD card, with reference to shown in Fig. 3;Including:
Utilize external SD card duty described in the Automatic level control that the GPIO of described I/O control exports;
It is in running order that step S10 utilizes I/O control to open external SD card;Step S20 obtains user to described external The working clock frequency that the input of SD card is preset;The described default working clock frequency that step S30 inputs according to user, arranges institute State the sequential delay parameter of external SD card read-write data message;The described default work clock that step S40 inputs according to user Frequency, to the data message of the capacity that described external SD read-write is preset;Step S50 detects the data letter of described external SD card read-write Breath concordance;When consistent, perform step S60;Step S51 is extracted in the byte section preset of write from described external SD card Described data message in sample data;When reading data message to described external SD card, stop writing data to described external SD Information;Step S52 extracts the described sample data in the described default byte section of reading from described external SD card;When to institute State external SD card when writing data message, stop reading data message to described external SD;Described step S51 is extracted and is write by step S53 Enter described sample data to compare with the described step S52 extraction described sample data of reading;When an at least write and reading Go out correspondence byte section described in sample data comparison inconsistent time, return perform step S30.
The present invention also provides for the embodiment of the data detection system of a kind of SD card, with reference to shown in Fig. 4, including:
SD card opening module 10, is used for utilizing I/O control to open external SD card in running order;
Frequency acquisition module 20, when described external SD card is in running order, is used for obtaining user to described external SD The working clock frequency that card input is preset;
Data read-write module 40, the working clock frequency preset obtained according to described frequency acquisition module, for institute State the data message of the capacity that external SD read-write is preset;
Data detection module 50, for judging that the data message that described data read-write module is read and write is the most consistent;
SD card close module 60, when described data detection module 50 detect data message consistent time, utilize described IO to control Device cuts out the duty of external SD card.
Concrete, in the present embodiment, utilize the low and high level of the I/O port of SD card opening module 10CPU to control external SD card Duty, when entering test mode, the IO of CPU controls to send high level, and frequency acquisition module 20 arranges the source of SD card Head operating frequency, sticks into the read-write operation of row data, and sets according to the operating frequency set to the SD of data read-write module 40 The quantity of read-write data is stored in the storage folder of SD card, after completing read-write operation according to the information of preset capacity, enters One step utilize data detection module 50 verify its under the conditions of this operating frequency, the data of reading and the data of write whether Cause, verify the accuracy to the running parameter that SD card is arranged with this, when the data read in and write after checking are uniform data letters During breath, utilize cpu controller IO to send low level, close the duty of SD card, namely be equivalently employed without SD card and verify Work.
Preferably, including:
Information arranges module 30, electrically connects with described frequency acquisition module 20, described data read-write module 40 respectively, is used for The sequential delay parameter of described external SD card read-write data message is set.
Concrete, with reference to shown in Fig. 5;The information that increases on the basis of a upper embodiment in the present embodiment arranges module 30; According to the operating frequency of the setting to SD card, further according to being arranged on generation during reading and writing data under this operating frequency Sampling time sequence retardation parameter.
Preferably, described data detection module 50 includes:
First sample data extracts submodule 51, in the byte section preset extracting write from described external SD card Described data message in sample data;
Second sample data extracts submodule 52, for extracting the described default byte of reading from described external SD card Described sample data in Duan;
Sample data comparer module 53, for by described first sample data extract submodule extract sample data with Described second sample data is extracted the described sample data of submodule extraction and is compared;
When the result of described sample data comparison is inconsistent, described information arranges module the most described sequential time delay ginseng Number.
Concrete, with reference to shown in Fig. 6;The present embodiment is continued on the basis of above example;At the work clock set During frequency under conditions of the sequential time delay amount of further setting data read-write, data detection module 50 is utilized to detect SD card to data The correctness of read-write;Concrete detection method is, when setting when, frequency is 20ns as 12M, the retardation concurrently set;To The data of external SD card 512 bytes of write, the temporary file folder being saved in SD card after write is interior, further temporary from SD card Read 512 byte datas of write in depositing file, when the data volume being stored in is excessive, take sample formula in the inside of system Extracting mode, take the data message of the most a certain section of byte, compare, utilize first sample data extract submodule 51 from Write 25-366 byte section data message is extracted, equally when reading sample data at the sampling parameter postponed in temporary file folder In the range of, utilize the second sample data to extract submodule 52 in temporary file presss from both sides, extract the 25-366 byte section data read Information;Sample data comparer module 53 is utilized to compare, each corresponding byte if comparison the most so proves SD Being stuck under the frequency of setting, it is correct for setting the read-write of data under delay parameter, this time detects successfully for SD card;Comparison As long as one of them appearance of byte is abnormal, then proves to set reading and writing data under delay parameter at this inconsistent, the most again set Determine delay parameter, again verify.Delay parameter starts checking from minimum parameter, takes the delay parameter of maximum.
The present invention also provides for the draw-in groove of a kind of external SD card, including: external SD card is arranged on special external SD card draw-in groove In, connection contact, the frequency contact all the time that respectively works electrically connected with described external SD card are set in described draw-in groove (CLK), reading and writing data contact (DATAn);
The DET contact of described external SD card controls to electrically connect with IO, for controlling the duty of described external SD.
Concrete, in the present embodiment, the CPU IO fly line idle by the selection one of the I/O port of CPU is built-in to removing The DET pin of SD card draw-in groove of card detection sheet metal, controls external SD card duty, is a kind of to change original test hardware Become;With reference to shown in Fig. 7 and Fig. 8, hardware plate 1, cpu2, cpu kernel 3, SD controller 4, I/O control 5, IO PAD 6;Cpu2 bag Include cpu kernel 3, SD controller 4, I/O control 5;IO PAD 6 is on hardware plate 1.
The present invention also provides for the data detection system of a kind of SD card, with reference to shown in Fig. 7 and Fig. 8, including phase adjusted passage, Drive layer interface, hardware interface model;Hardware interface model, it is provided that a hardware modifications mode, it is therefore an objective to by original TF clamping Mouth detection pin is connected with IO PAD 6 on hardware plate, makes IO Automatic level control into, it is possible to change IO level by software and reaches Process to simulation plug SD card;Drive layer interface upwards to provide for client layer and can directly control phase adjusted passage and fortune The interface (providing the encapsulation of hardware interface model to client layer) of the module clock frequency of row state kernel, the most directly adjusts with phase place It is mutual that joint passage carries out information;Its Main Function of phase adjusted passage is to accept to drive layer interface information, and controls CPU output The sampling timing phase to SD card module;
Phase adjusted passage includes: SD controller, is suitable to the change accepting to carry out self-driven layer interface, and based on this to external Storage device provides the sampling time sequence of specific delays amount;I/O control, is suitable to the storage device read-write requests initiated by processor Bi-directional conversion is carried out with Digital Logic;SD controller and I/O control are packaged, for the user on upper strata in driving layer interface There is provided and control interface;The IO control level sent by I/O control, is controlled the plug of SD card during each automatic test, passes through Simulation plug resets SD controller internal state after each test loop, when making each test loop start in SD controller Portion's state is all consistent, SD controller provide specific sampling time sequence to external SD card, and by storage control to external SD card Read-write data, and judge the correctness of read-write under particular sample sequential time delay.
Driving layer interface includes: the clock bus of external SD card model, is suitable to provide external connection module under interior nuclear state Sample timing frequency, external SD is stuck in initial phase and the most once accepts the setting of this sample timing frequency;Operating frequency attribute, Be suitable to outside initial phase, dynamically change sample timing frequency and passage is provided;Abstract with SD controller, be suitable to client layer Represent SD controller part details, such as the control depositor of sequential amount of delay, FREQUENCY CONTROL interface, data control interface etc.;With And the effect to the change of SD controller reporting client layer;I/O control is abstract, is suitable to be controlled digital signal, is formed externally Connect the plug signal of SD card detection pin.
Hardware interface model includes: the external SD card interface of improvement, for eliminating internal card detection sheet metal, and is examined Test tube foot (shown in Fig. 7 and Fig. 8, middle DET pin) is connected with IO PAD, pin (CLK) and the data with CPU communication all the time Reading and write pin (DATAn) of information are constant, it is ensured that the correct connection of signal of interest.
A kind of data detection system of the SD card of the present invention, before an automatic test cycle period starts, first Carry out hardware modifications to prepare, select an idle CPU IO fly line to the SD card draw-in groove of removal internal card detection sheet metal DET pin (this external SD card interface i.e. improved), the kernel in the cycle period that the software subsequently is tested oneself starts rank Section, after external SD card inserts the external SD card draw-in groove improved, the clock bus work of the external SD card model in driving layer interface Working frequency can be read by SD controller;After kernel starts, by driving, layer interface I/O control is abstract to be made client layer software The level of IO PAD is high, now, CPU would consider that the external SD card draw-in groove of improvement already inserted into card, SD controller will be by CPU resets (RESET), tests oneself the state in cycle, in then client layer software is by driving layer interface removing a upper software Operating frequency attribute dynamically change frequency needed for external SD card work, and prolonged by SD controller its sampling time sequence of abstract change The numerical value of amount late;Testing oneself the last of cycle at a software, system will carry out read-write operation to external SD card, if read-write contrast is lost Lose, then enter next test loop after changing the numerical value of sampling time sequence retardation;If reading and writing successfully, then record this sampling time sequence Retardation numerical value, and change the next test loop of entrance after the numerical value of sampling time sequence retardation, circulation is continued until numerical value Increase to the maximum of sampling time sequence retardation numerical value, now loop ends, thus reach the purpose automatically tested.
It should be noted that, above-described embodiment all can independent assortment as required.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, in the premise without departing from the principle of the invention Under, it is also possible to making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (9)

1. the data detection method of a SD card, it is characterised in that including:
It is in running order that step S10 utilizes I/O control to open external SD card;
Step S20 obtains the working clock frequency that user presets to the input of described external SD card;
The described default working clock frequency that step S40 inputs according to user, reads and writes default capacity to described external SD Data message;
Step S50 detects the data message concordance of described external SD card read-write;When consistent, perform step S60;
Step S60 utilizes described I/O control to close the duty of external SD card.
The data detection method of SD card the most according to claim 1, it is characterised in that also include before described step S40:
The described default working clock frequency that step S30 inputs according to user, arranges described external SD card read-write data message Sequential delay parameter.
The data detection method of SD card the most according to claim 2, it is characterised in that described step S50 includes:
Step S51 extracts sample data in the described data message in the byte section preset of write from described external SD card;
Step S52 extracts the described sample data in the described default byte section of reading from described external SD card;
Described step S51 is extracted and is write described sample data and the described step S52 extraction described sample data of reading by step S53 Compare;
When at least write with read sample data comparison described in corresponding byte section inconsistent time, return execution step S30。
The data detection method of SD card the most according to claim 3, it is characterised in that when reading and writing number to described external SD card Include when it is believed that breath:
When reading data message to described external SD card, stop writing data message to described external SD;
When writing data message to described external SD card, stop reading data message to described external SD.
5. according to the data detection method of the arbitrary described SD card of claim 1-4, it is characterised in that also include:
Utilize external SD card duty described in the Automatic level control that the GPIO of described I/O control exports.
6. the detecting system of the data detection method that can perform the arbitrary described SD card of claim 1-5, it is characterised in that Including:
SD card opening module, is used for utilizing I/O control to open external SD card in running order;
Frequency acquisition module, when described external SD card is in running order, is used for obtaining user and inputs to described external SD card The working clock frequency preset;
Data read-write module, the working clock frequency preset obtained according to described frequency acquisition module, for described external The data message of the capacity that SD read-write is preset;
Data detection module, for judging that the data message that described data read-write module is read and write is the most consistent;
Module closed by SD card, when described data detection module detection data message is consistent, outside utilizing described I/O control to close Connect the duty of SD card.
The data detection system of SD card the most according to claim 6, it is characterised in that also include:
Information arranges module, electrically connects with described frequency acquisition module, described data read-write module respectively, be used for arranging described outside Connect the sequential delay parameter of SD card read-write data message.
The data detection system of SD card the most according to claim 6, it is characterised in that described data detection module includes:
First sample data extracts submodule, described in the byte section preset extracting write from described external SD card Sample data in data message;
Second sample data extracts submodule, in the described default byte section extracting reading from described external SD card Described sample data;
Sample data comparer module, for extracting the sample data and described that submodule extracts by described first sample data Two sample datas are extracted the described sample data of submodule extraction and are compared;
When the result of described sample data comparison is inconsistent, described information arranges module and is once again set up described sequential time delay ginseng Number.
9. with the use of the draw-in groove of a kind of external SD card of data detection system for the SD card described in claim 6-8, its It is characterised by, including: external SD card is arranged in special external SD card draw-in groove, arranges connection contact in described draw-in groove, with The frequency contact all the time that respectively works of described external SD card electrical connection, reading and writing data contact;
The DET contact of described external SD card controls to electrically connect with IO, for controlling the duty of described external SD.
CN201610645097.0A 2016-08-09 2016-08-09 The data detection method of a kind of SD card and system and the draw-in groove of external SD card Pending CN106295432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610645097.0A CN106295432A (en) 2016-08-09 2016-08-09 The data detection method of a kind of SD card and system and the draw-in groove of external SD card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610645097.0A CN106295432A (en) 2016-08-09 2016-08-09 The data detection method of a kind of SD card and system and the draw-in groove of external SD card

Publications (1)

Publication Number Publication Date
CN106295432A true CN106295432A (en) 2017-01-04

Family

ID=57666573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610645097.0A Pending CN106295432A (en) 2016-08-09 2016-08-09 The data detection method of a kind of SD card and system and the draw-in groove of external SD card

Country Status (1)

Country Link
CN (1) CN106295432A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991043A (en) * 2017-03-21 2017-07-28 惠州Tcl移动通信有限公司 Outside SD card program writing test processing method and system based on mobile terminal
CN107643878A (en) * 2017-09-20 2018-01-30 上海小蚁科技有限公司 The performance optimization method and device of SD card, storage medium, terminal
WO2019056345A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Method for detecting incomplete weld of sd card slot
CN111949554A (en) * 2020-09-04 2020-11-17 苏州浪潮智能科技有限公司 External plug-in card testing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377748A (en) * 2007-08-29 2009-03-04 英业达股份有限公司 Method for checking reading and writing functions of memory device
CN101923494A (en) * 2009-06-17 2010-12-22 安凯(广州)微电子技术有限公司 Memory controller verification system, method and scoreboard
CN102708075A (en) * 2012-05-15 2012-10-03 山东大学 Secure digital (SD) memory card hardware control device and control method
CN104317528A (en) * 2014-10-13 2015-01-28 惠州Tcl移动通信有限公司 Detecting system and detecting method of micro safe digital (SD) card
CN105004957A (en) * 2015-07-31 2015-10-28 福州瑞芯微电子股份有限公司 SD card test method and test device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377748A (en) * 2007-08-29 2009-03-04 英业达股份有限公司 Method for checking reading and writing functions of memory device
CN101923494A (en) * 2009-06-17 2010-12-22 安凯(广州)微电子技术有限公司 Memory controller verification system, method and scoreboard
CN102708075A (en) * 2012-05-15 2012-10-03 山东大学 Secure digital (SD) memory card hardware control device and control method
CN104317528A (en) * 2014-10-13 2015-01-28 惠州Tcl移动通信有限公司 Detecting system and detecting method of micro safe digital (SD) card
CN105004957A (en) * 2015-07-31 2015-10-28 福州瑞芯微电子股份有限公司 SD card test method and test device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991043A (en) * 2017-03-21 2017-07-28 惠州Tcl移动通信有限公司 Outside SD card program writing test processing method and system based on mobile terminal
CN106991043B (en) * 2017-03-21 2021-04-20 惠州Tcl移动通信有限公司 External SD card writing program test processing method and system based on mobile terminal
CN107643878A (en) * 2017-09-20 2018-01-30 上海小蚁科技有限公司 The performance optimization method and device of SD card, storage medium, terminal
US10705738B2 (en) 2017-09-20 2020-07-07 Shanghai Xiaoyi Technology Co., Ltd. Method, apparatus, storage medium, and terminal for optimizing memory card performance
WO2019056345A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Method for detecting incomplete weld of sd card slot
CN111949554A (en) * 2020-09-04 2020-11-17 苏州浪潮智能科技有限公司 External plug-in card testing method and system
CN111949554B (en) * 2020-09-04 2022-08-12 苏州浪潮智能科技有限公司 External plug-in card testing method and system

Similar Documents

Publication Publication Date Title
CN106295432A (en) The data detection method of a kind of SD card and system and the draw-in groove of external SD card
CN102542110B (en) Emulation verification method applied to mobile storage SOC (system on chip) chip
KR101545209B1 (en) A method for testing in a reconfigurable tester
CN107203448A (en) A kind of method and system of test PCIe switch chip violence warm connection functions
CN109633419A (en) A kind of chip detecting method based on ATE
CN102401879B (en) The method of testing of the USB function of chip, Test Host and test macro
CN104569794B (en) A kind of FPGA In-circiut testers and method of testing based on boundary-scan architecture
US20110202894A1 (en) Method and Apparatus for Versatile Controllability and Observability in Prototype System
CN107643506A (en) A kind of verification system of universal full automatic electric energy meter calibrating installation
CN102103534B (en) Function test system for SOC
CN105653409B (en) A kind of hardware emulator verify data extraction system based on data type conversion
CN107239374A (en) Realize that ddr interface automates the device and method of readwrite tests based on FPGA
CN109490751A (en) A kind of EMMC test method and test circuit
TW200823908A (en) Intergrated circuit device and embeded memory testing method
CN104200846B (en) Embedded-type PROM test system and achieving method
CN109298266A (en) Test macro, test method, test device and storage medium
CN107331421A (en) A kind of SD card test system and method based on FPGA
CN111914501A (en) Implementation method of FeRAM interface verification platform based on UVM verification methodology
CN108074624A (en) Store card test method apparatus and method, computer equipment and storage medium
CN102565683B (en) Generation and verification method of test vector
CN109725250A (en) A kind of test macro and test method of on-chip system chip analog circuit
CN200990079Y (en) BIOS chip expander
CN103257606A (en) USB interface high-speed and real-time sampling logic analyzer
Lu et al. The reading/writing SD card system based on FPGA
CN107491605A (en) A kind of function verification method and platform for chip design

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104