CN111983354A - Multi-TF card plug-in and plug-out detection method and system - Google Patents
Multi-TF card plug-in and plug-out detection method and system Download PDFInfo
- Publication number
- CN111983354A CN111983354A CN202010843883.8A CN202010843883A CN111983354A CN 111983354 A CN111983354 A CN 111983354A CN 202010843883 A CN202010843883 A CN 202010843883A CN 111983354 A CN111983354 A CN 111983354A
- Authority
- CN
- China
- Prior art keywords
- card
- card slot
- pin
- microprocessor
- slot
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 52
- 238000012360 testing method Methods 0.000 claims abstract description 10
- 230000005540 biological transmission Effects 0.000 claims description 18
- 238000000605 extraction Methods 0.000 claims description 9
- 238000003780 insertion Methods 0.000 claims description 9
- 230000037431 insertion Effects 0.000 claims description 9
- 230000002452 interceptive effect Effects 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 18
- 230000000694 effects Effects 0.000 abstract description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a method and a system for detecting the plugging and unplugging of multiple TF (TransFlash) cards, which comprise the following steps: s1, inserting the TF card to be tested into the tested TF card slot, and simultaneously connecting the TF card slot with a power supply to supply power to the TF card inserted into the TF card slot; s2, initializing the TF card in the TF card slot by a microprocessor in the test host, and identifying the TF card to be tested; s3, when detecting that the detection pin in the TF card slot is interrupted, acquiring the pin number of the detection pin which is interrupted, and searching corresponding configuration information from a preset configuration file according to the pin number; the invention can detect whether the TF card is inserted into the TF card slot or not by the microprocessor connected with the TF card slot, can detect the plugging and unplugging of the TF card in real time, is simple and convenient, can detect various error types in real time and report the error types in time, can detect the read-write speed in real time without increasing extra load, and can ensure the later use effect of a user.
Description
Technical Field
The invention relates to the technical field of TF card detection, in particular to a method and a system for detecting the plugging and unplugging of multiple TF cards.
Background
The Micro SD card is a very fine Flash memory card, the format of which is created by SanDisk, and the memory card is originally called T-Flash and is later called Trans Flash; the reason for the rename of Micro SD is because of its adoption by the SD Association (SDA). Other memory cards adopted by the SDA include Mini SD and SD cards. It is mainly applied to mobile phones, but has been used in GPS devices, portable music players and some flash memory disks due to its minute volume and increasing storage capacity.
However, the plug-in and plug-out detection functionality of the conventional TF card is single, and only a single pair of TF cards can be plugged in and plugged out, but the performance of the TF card can not be detected in the plugging process, so that a user cannot know the running condition of the TF card.
Disclosure of Invention
The present invention is directed to a method and a system for detecting the plugging/unplugging of multiple TF cards, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a multi-TF card plug-in and pull-out detection method and a system thereof comprise the following steps:
s1, inserting the TF card to be tested into the tested TF card slot, and simultaneously connecting the TF card slot with a power supply to supply power to the TF card inserted into the TF card slot;
s2, initializing the TF card in the TF card slot by a microprocessor in the test host, and identifying the TF card to be tested;
s3, when detecting that the detection pin in the TF card slot is interrupted, acquiring the pin number of the detection pin which is interrupted, and searching corresponding configuration information from a preset configuration file according to the pin number;
s4, judging whether the level of the detection pin is the same as the level in the configuration information, if so, judging that a TF card is inserted into the TF card slot, otherwise, judging that the TF card is pulled out of the TF card slot;
s5, initializing the TF card in the TF card slot by a microprocessor in the test host if the TF card is inserted into the TF card slot;
s6, detecting the data of multiple links of the TF card by using a reading device, sending damaged points which are wrong and cannot be recovered to an interactive interface for displaying, and determining the position number of the TF card;
s7, carrying out data transmission quantity statistics on the TF card inserted into the TF card slot and the corresponding driving device thereof, detecting the reading and writing speed, sending corresponding reminding information to a user when the data transmission quantity and the data transmission speed reach preset thresholds, and simultaneously determining the position number of the TF card;
s8, the volatility of the file data appointed in the TF is verified in a fixed time period, a corresponding prompt is given according to the verification result, and meanwhile the position number of the TF card is determined.
Preferably, step S1 is preceded by: when the test host is started, the level of the detection pin in each TF card slot is obtained, if the level is consistent with the level of the corresponding detection pin in the configuration file, the TF card is judged to be in the corresponding TF card slot, and if not, the TF card is judged not to be in the corresponding TF card slot.
Preferably, in step S3, the configuration file includes configuration information of a plurality of TF card slots, each configuration information includes: the TF card slot number, the pin number of the detection pin and the level for indicating that the TF card is inserted into the corresponding TF card slot.
Preferably, in step S6, the TF card is inserted into the TF card slot, the steps including but not limited to driver loading, file system detection and mounting are sequentially detected, the damaged point generated in each step is obtained for recording and attempted repair, and if the damaged point cannot be repaired, the position and type of the damaged point are displayed through the interactive interface.
Preferably, in step S7, statistics of data transmission amount and time consumption are performed on the driving device and the TF card every fixed time period, a transmission speed is obtained according to a ratio of the statistical data amount to the time consumption, and if the read-write data is lower than 2.5M/S, a corresponding prompt is performed to the user, where the fixed time period is 20 minutes.
Preferably, the method comprises the following steps:
the microprocessor is used for receiving various data information, processing and analyzing the received data information, initializing the TF card in the TF card slot and identifying the TF card to be detected;
the device comprises a searching module, a configuration module and a processing module, wherein the searching module is used for acquiring the pin number of a detection pin generating interruption when the detection pin in the TF card slot is detected to generate interruption, and searching corresponding configuration information from a preset configuration file according to the pin number;
the judging module is used for judging whether the level of the detection pin is the same as the level in the configuration information, if so, judging that a TF card is inserted into the TF card slot, otherwise, judging that the TF card is pulled out of the TF card slot;
the searching module and the judging module are electrically coupled with the microprocessor respectively.
Preferably, the method further comprises the following steps:
the driving device is used for counting the data transmission quantity of the TF card inserted into the TF card slot;
the reading device is used for detecting data of a plurality of links of the TF card, sending damaged points which are wrong and cannot be recovered to the interactive interface for displaying, and meanwhile determining the position number of the TF card;
the driving device and the reading device are electrically coupled with the microprocessor respectively.
Preferably, the method further comprises the following steps:
the anti-electromagnetic interference protection circuit is used for protecting the TF card in the TF card slot from electromagnetic interference during detection;
the anti-electromagnetic interference protection circuit is electrically connected between the TF card slot and the microprocessor interface.
Preferably, the method further comprises the following steps:
the cache module is used for adding the interrupt time generated to the searched configuration information to generate a record and storing the record into a plug processing cache;
the cache module is electrically coupled with the microprocessor.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention can detect whether the TF card is inserted into the TF card slot or not by the microprocessor connected with the TF card slot, can detect the plugging and unplugging of the TF card in real time, is simple and convenient, can detect various error types in real time and report the error types in time, can detect the read-write speed in real time without increasing extra load, and can ensure the later use effect of a user.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 is a system framework of the present invention.
In the figure: 10-a microprocessor; 20-a search module; 30-a judging module; 40-a drive device; 50-a reading device; 60-electromagnetic interference prevention protection circuit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
referring to fig. 1-2, the present invention provides a technical solution: a multi-TF card plug-in and plug-out detection method comprises the following steps:
s1, inserting the TF card to be tested into the tested TF card slot, and simultaneously connecting the TF card slot with a power supply to supply power to the TF card inserted into the TF card slot;
s2, initializing the TF card in the TF card slot by a microprocessor in the test host, and identifying the TF card to be tested;
s3, when detecting that the detection pin in the TF card slot is interrupted, acquiring the pin number of the detection pin which is interrupted, and searching corresponding configuration information from a preset configuration file according to the pin number;
s4, judging whether the level of the detection pin is the same as the level in the configuration information, if so, judging that a TF card is inserted into the TF card slot, otherwise, judging that the TF card is pulled out of the TF card slot;
s5, initializing the TF card in the TF card slot by a microprocessor in the test host if the TF card is inserted into the TF card slot;
s6, detecting the data of multiple links of the TF card by using a reading device, sending damaged points which are wrong and cannot be recovered to an interactive interface for displaying, and determining the position number of the TF card;
s7, carrying out data transmission quantity statistics on the TF card inserted into the TF card slot and the corresponding driving device thereof, detecting the reading and writing speed, sending corresponding reminding information to a user when the data transmission quantity and the data transmission speed reach preset thresholds, and simultaneously determining the position number of the TF card;
s8, the volatility of the file data appointed in the TF is verified in a fixed time period, a corresponding prompt is given according to the verification result, and meanwhile the position number of the TF card is determined.
Wherein, before the step S1, the method further includes: when the test host is started, the level of the detection pin in each TF card slot is obtained, if the level is consistent with the level of the corresponding detection pin in the configuration file, the TF card is judged to be in the corresponding TF card slot, and if not, the TF card is judged not to be in the corresponding TF card slot.
In step S3, the configuration file includes configuration information of multiple TF card slots, and each piece of configuration information includes: the TF card slot number, the pin number of the detection pin and the level for indicating that the TF card is inserted into the corresponding TF card slot.
In step S6, the TF card is inserted into the TF card slot, the steps including but not limited to driver loading, file system detection and mounting are sequentially detected, the damaged point generated in each step is obtained for recording and attempted repair, and if the damaged point cannot be repaired, the position and type of the damaged point are displayed through the interactive interface.
In step S7, statistics and time consumption statistics are performed on the data transmission amount performed by the driving device and the TF card every fixed time period, a transmission speed is obtained according to a ratio of the statistical data amount to the time consumption, and if the read-write data is less than 2.5M/S, a corresponding prompt is performed to the user, where the fixed time period is 20 minutes.
By combining the embodiments, whether the TF card is inserted into the TF card slot or not is detected by the microprocessor connected with the TF card slot, so that the plugging and unplugging of the TF card can be detected in real time, and the method is simple and convenient.
Example 2:
referring to fig. 2, the present invention provides a technical solution: a multi-TF card insertion and extraction detection system includes: microprocessor 10, lookup module 20, and decision module 30.
Further, the microprocessor 10 is configured to receive various data information, process and analyze the received data information, initialize the TF card in the TF card slot, and identify the TF card to be tested.
Further, the search module 20 is configured to, when it is detected that the detection pin in the TF card slot is interrupted, obtain a pin number of the detection pin that is interrupted, and search the corresponding configuration information from a preset configuration file according to the pin number.
Further, the determining module 30 is configured to determine whether the level of the detection pin is the same as the level in the configuration information, and if so, determine that a TF card is inserted into the TF card slot, otherwise, determine that the TF card is pulled out of the TF card slot.
The searching module 20 and the determining module 30 are electrically coupled to the microprocessor 10, respectively.
Wherein, still include: a drive device 40 and a reading device 50.
Further, the driving device 40 is used for counting data transmission amount of the TF card inserted into the TF card slot.
Further, the reading device 50 is configured to detect link data of the TF card, send a damaged point that is erroneous and cannot be recovered to the interactive interface for displaying, and determine a position number of the TF card.
The driving device 40 and the reading device 50 are electrically coupled to the microprocessor 10, respectively.
Wherein, still include: an EMI protection circuit 60.
Further, the emi protection circuit 60 is used to protect the TF card in the TF card slot from emi during the detection.
The emi protection circuit 60 is electrically connected between the TF card slot and the interface of the microprocessor 10.
Wherein, still include: and a cache module.
Further, the cache module is configured to add the found configuration information to the interrupt time to generate a record, and store the record in a plug-in processing cache.
The cache module is electrically coupled to the microprocessor 10.
By integrating the embodiment, the method and the device can detect various error types in real time and report the error types in time, carry out real-time reading and writing speed detection without increasing extra load, and can ensure the later use effect of a user.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A multi-TF card plug-in detection method is characterized by comprising the following steps:
s1, inserting the TF card to be tested into the tested TF card slot, and simultaneously connecting the TF card slot with a power supply to supply power to the TF card inserted into the TF card slot;
s2, initializing the TF card in the TF card slot by a microprocessor in the test host, and identifying the TF card to be tested;
s3, when detecting that the detection pin in the TF card slot is interrupted, acquiring the pin number of the detection pin which is interrupted, and searching corresponding configuration information from a preset configuration file according to the pin number;
s4, judging whether the level of the detection pin is the same as the level in the configuration information, if so, judging that a TF card is inserted into the TF card slot, otherwise, judging that the TF card is pulled out of the TF card slot;
s5, initializing the TF card in the TF card slot by a microprocessor in the test host if the TF card is inserted into the TF card slot;
s6, detecting the data of multiple links of the TF card by using a reading device, sending damaged points which are wrong and cannot be recovered to an interactive interface for displaying, and determining the position number of the TF card;
s7, carrying out data transmission quantity statistics on the TF card inserted into the TF card slot and the corresponding driving device thereof, detecting the reading and writing speed, sending corresponding reminding information to a user when the data transmission quantity and the data transmission speed reach preset thresholds, and simultaneously determining the position number of the TF card;
s8, the volatility of the file data appointed in the TF is verified in a fixed time period, a corresponding prompt is given according to the verification result, and meanwhile the position number of the TF card is determined.
2. The multi-TF card insertion and extraction detection method according to claim 1, wherein: the step S1 is preceded by: when the test host is started, the level of the detection pin in each TF card slot is obtained, if the level is consistent with the level of the corresponding detection pin in the configuration file, the TF card is judged to be in the corresponding TF card slot, and if not, the TF card is judged not to be in the corresponding TF card slot.
3. The multi-TF card insertion and extraction detection method according to claim 1, wherein: in step S3, the configuration file includes configuration information of a plurality of TF card slots, each configuration information includes: the TF card slot number, the pin number of the detection pin and the level for indicating that the TF card is inserted into the corresponding TF card slot.
4. The multi-TF card insertion and extraction detection method according to claim 1, wherein: in step S6, the TF card is inserted into the TF card slot, the steps including but not limited to driver loading, file system detection and mounting are sequentially detected, the damaged point generated in each step is obtained for recording and attempted repair, and if the damaged point cannot be repaired, the position and type of the damaged point are displayed through the interactive interface.
5. The multi-TF card insertion and extraction detection method according to claim 1, wherein: in step S7, statistics of data transmission amount and time consumption performed by the driving device and the TF card are performed every fixed time period, a transmission speed is obtained according to a ratio of the statistical data amount to the time consumption, and if the read-write data is less than 2.5M/S, a corresponding prompt is performed to the user, where the fixed time period is 20 minutes.
6. A multi-TF card insertion and extraction detection system, comprising:
the microprocessor (10) is used for receiving various data information, processing and analyzing the received data information, initializing the TF card in the TF card slot and identifying the TF card to be tested;
the device comprises a searching module (20), wherein the searching module (20) is used for acquiring the pin number of a detection pin generating interruption when the detection pin in the TF card slot is detected to generate interruption, and searching corresponding configuration information from a preset configuration file according to the pin number;
the judging module (30) is used for judging whether the level of the detection pin is the same as the level in the configuration information or not, if so, judging that a TF card is inserted into the TF card slot, otherwise, judging that the TF card is pulled out of the TF card slot;
the searching module (20) and the judging module (30) are electrically coupled with the microprocessor (10) respectively.
7. The multi-TF card insertion and extraction detection system according to claim 6, further comprising:
the driving device (40), the said driving device (40) is used for carrying on the statistics of the data transmission quantity to TF card inserted into card slot of TF card;
the reading device (50) is used for detecting a plurality of link data of the TF card, sending damaged points which are wrong and cannot be recovered to the interactive interface for displaying, and meanwhile determining the position number of the TF card;
wherein, the driving device (40) and the reading device (50) are respectively electrically coupled with the microprocessor (10).
8. The multi-TF card insertion and extraction detection system according to claim 6, further comprising:
the anti-electromagnetic interference protection circuit (60), the anti-electromagnetic interference protection circuit (60) is used for protecting the TF card in the TF card slot from electromagnetic interference during detection;
the anti-electromagnetic interference protection circuit (60) is electrically connected between the TF card slot and the microprocessor (10) interface.
9. The multi-TF card insertion and extraction detection system according to claim 6, wherein: further comprising:
the cache module is used for adding the interrupt time generated to the searched configuration information to generate a record and storing the record into a plug processing cache;
wherein, the cache module is electrically coupled with the microprocessor (10).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010843883.8A CN111983354A (en) | 2020-08-20 | 2020-08-20 | Multi-TF card plug-in and plug-out detection method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010843883.8A CN111983354A (en) | 2020-08-20 | 2020-08-20 | Multi-TF card plug-in and plug-out detection method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111983354A true CN111983354A (en) | 2020-11-24 |
Family
ID=73442414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010843883.8A Pending CN111983354A (en) | 2020-08-20 | 2020-08-20 | Multi-TF card plug-in and plug-out detection method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111983354A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114999561A (en) * | 2022-05-31 | 2022-09-02 | 广东全芯半导体有限公司 | Intelligent detection system for TF (TransFlash) card |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005020131A (en) * | 2003-06-24 | 2005-01-20 | Nec Corp | Tf determining system, method, and program |
CN202676846U (en) * | 2012-06-29 | 2013-01-16 | 广东南都嘉华传媒有限公司 | TF card insertion automatic detection circuit |
CN105573884A (en) * | 2015-12-28 | 2016-05-11 | 惠州Tcl移动通信有限公司 | Multi-TF-card plugging and unplugging detection method and system |
CN108449229A (en) * | 2018-03-06 | 2018-08-24 | 数据通信科学技术研究所 | A kind of concurrent test system and method |
CN108491740A (en) * | 2018-02-01 | 2018-09-04 | 珠海全志科技股份有限公司 | A kind of TF card performance method of real-time |
-
2020
- 2020-08-20 CN CN202010843883.8A patent/CN111983354A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005020131A (en) * | 2003-06-24 | 2005-01-20 | Nec Corp | Tf determining system, method, and program |
CN202676846U (en) * | 2012-06-29 | 2013-01-16 | 广东南都嘉华传媒有限公司 | TF card insertion automatic detection circuit |
CN105573884A (en) * | 2015-12-28 | 2016-05-11 | 惠州Tcl移动通信有限公司 | Multi-TF-card plugging and unplugging detection method and system |
CN108491740A (en) * | 2018-02-01 | 2018-09-04 | 珠海全志科技股份有限公司 | A kind of TF card performance method of real-time |
CN108449229A (en) * | 2018-03-06 | 2018-08-24 | 数据通信科学技术研究所 | A kind of concurrent test system and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114999561A (en) * | 2022-05-31 | 2022-09-02 | 广东全芯半导体有限公司 | Intelligent detection system for TF (TransFlash) card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8740072B1 (en) | Contact array in a card reader | |
CN101827162B (en) | Mobile phone USB interface detection system and method | |
CN111209151A (en) | Linux-based NVME SSD hot plug test method, system, terminal and storage medium | |
US20190138421A1 (en) | Real-time hierarchical protocol decoding | |
CN106952838B (en) | Special RFID parallel wafer test system and verification method | |
CN1932775A (en) | Card reader testing system and method | |
US20130111268A1 (en) | Testing device capable of simulating plugging and unplugging operations and method thereof | |
CN113409881A (en) | Flash memory erasure interruption recovery test method and device, electronic equipment and storage medium | |
CN111983354A (en) | Multi-TF card plug-in and plug-out detection method and system | |
CN112185453A (en) | Read interference test method and device, computer readable storage medium and electronic equipment | |
CN105004957A (en) | SD card test method and test device | |
CN109444570B (en) | Electronic product fault diagnosis module and method based on memory | |
CN111638439B (en) | Communication module testing method, device, computer equipment and storage medium | |
CN105740118A (en) | Chip exception detection method and apparatus as well as circuit panel exception detection method and apparatus | |
US5979759A (en) | IC card reader/writer and its control method | |
CN101364198A (en) | Testing tool for card reading interface and testing method thereof | |
CN109815074A (en) | A kind of method and system checking hard disk sequence in disk plug test process | |
CN114780317A (en) | Hard disk plug-in and pull-out test method, system and related components | |
CN100472667C (en) | Method for detecting electronic magnetic disc | |
CN113720591A (en) | Plug-pull detection method, device and system for SD card | |
CN212341381U (en) | Detection card for detecting read-write card of IC card meter | |
CN109545266A (en) | A kind of solid state hard disk finds weak piece of method and its system | |
CN112800005B (en) | Deep inspection method, system, terminal and storage medium for file system | |
CN113010388B (en) | USB flash disk detection method and system | |
CN111045873B (en) | Method for detecting plug-pull stability of PCIE (peripheral component interface express) external equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201124 |