CN104331378B - A kind of data cleansing control method and its equipment - Google Patents

A kind of data cleansing control method and its equipment Download PDF

Info

Publication number
CN104331378B
CN104331378B CN201410667964.1A CN201410667964A CN104331378B CN 104331378 B CN104331378 B CN 104331378B CN 201410667964 A CN201410667964 A CN 201410667964A CN 104331378 B CN104331378 B CN 104331378B
Authority
CN
China
Prior art keywords
data
storage device
micro
control unit
cleaning
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.)
Active
Application number
CN201410667964.1A
Other languages
Chinese (zh)
Other versions
CN104331378A (en
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.)
SUNWOOD HOLDING GROUP CO Ltd
Original Assignee
SUNWOOD HOLDING GROUP 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 SUNWOOD HOLDING GROUP CO Ltd filed Critical SUNWOOD HOLDING GROUP CO Ltd
Priority to CN201410667964.1A priority Critical patent/CN104331378B/en
Publication of CN104331378A publication Critical patent/CN104331378A/en
Application granted granted Critical
Publication of CN104331378B publication Critical patent/CN104331378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a kind of data cleansing control method and its equipment, belong to technical field of electronic products.It solves the problems, such as that existing technology delet method is single.Notebook data cleaning control method, equipment for realizing the control method includes micro-control unit and all kinds of interfaces being connected with micro-control unit, button, micro-control unit is it is determined that after the stable access of storage device on interface, storage device is cleaned according to the cleaning method of micro-control unit acquiescence when not receiving the signal of button conveying according to the corresponding safe class cleaning method of the signal extraction of key-press input or in setting time value, cleaning method is all to reset in the FAT table region in FAT32 file system and root cluster part, data area is according to the different data cleansing of the different progress of safe class of selection.Notebook data cleaning control method and its equipment, it can be selected to delete grade according to user's request when cleaning storage device, use more hommization.

Description

A kind of data cleansing control method and its equipment
Technical field
The invention belongs to technical field of electronic products, is related to a kind of cleaning control method and its equipment, particularly a kind of to use In the data cleansing control method and its equipment of the mobile memories such as cleaning USB flash disk, SD card, TF card.
Background technology
Nowadays USB flash disk, SD card, mobile hard disk are popularized very much, and the people get used to copying various information using them.But File therein simply destroys fileinfo according to the delet method of system convention, and file ontology data still has equipment In, file can be recovered by special instrument and means.It is exactly moreover that formatting can not be completely by data therein Dispose, still have method by data recovery.This just brings a hidden danger:When having copied important information using mobile memory Afterwards, after the deletion or formatting by routine, originally think that data have been deleted, and in fact, data can still be recovered, so It is possible to cause leakage of data.It is very serious that some information, which once reveal consequence, such as:Private Banking's account, it is personal hidden Private, trade secret etc..It is therefore necessary to invent a kind of cleaning equipment of General Mobile memory.Cleaning equipment can be with complete deletion Data in memory, prevent file access pattern, are escort for the data safety of user.
For above-mentioned problem, existing Chinese patent literature discloses a kind of data cleansing machine【Application number: CN201220413099.4】, include main frame, the keyboard being connected respectively with main frame, display;Wherein, also include respectively with The USB interface and hard-disk cartridge of storage device connection;The main frame is provided with (SuSE) Linux OS and data scrubbing program.This It is hard can to access multiple hard disks, USB device and movement simultaneously when removing a large amount of computer datas for utility model data cleansing machine Disk, multiple equipment is cleared up simultaneously using multithreading, greatly speeds up data scrubbing speed.
But the data cleansing machine still suffers from following defect:
1st, whether the utility model completes what data cleansing was shown simply by display, and display is not directly perceived enough, When multiple equipment is cleared up, it is necessary to checked one by one, use is not convenient enough;
2nd, USB device is prompted to mobile hard disk after access without related, it is unclear that whether this equipment enters normal work Make state, design is not reasonable;
3rd, the utility model cleaning portable memory apparatus on limitation be present, can only cleaning tape USB interface storage Equipment.
The content of the invention
The purpose of the present invention is above mentioned problem be present for existing technology, it is proposed that a kind of data cleansing control method and Its equipment, the data cleansing control method can select to delete grade when cleaning storage device according to user's request, Use more hommization;The data cleansing equipment intuitively display data can clean situation, easy to use, safe and reliable.
The purpose of the present invention can be realized by following technical proposal:A kind of data cleansing control method, for realizing this The equipment of control method includes micro-control unit and what is be connected with micro-control unit is used to be attached with all kinds of storage devices Interface, for convey it is different cleaning level signals buttons, it is characterised in that the micro-control unit is it is determined that on interface After the stable access of storage device, according to the corresponding safe class cleaning method of the signal extraction of key-press input or in setting time Storage device is cleaned according to the cleaning method of micro-control unit acquiescence when not receiving the signal of button conveying in value, institute It is all to reset in the FAT table region in FAT32 file system and root cluster part to state cleaning method, and data area is according to choosing The safe class difference selected carries out different data cleansings;The data cleansing of the data area is included first of every cluster The zeros data of sector, or randomly choose after by the zeros data of the first sector of every cluster other sectors to carry out data clear Zero, or by the data of data area all reset after to storage device carry out repeat it is erasable several times.
In the data cleansing control method, first sector in data area per cluster is deleted, as minimum peace Congruent level, first sector in data area per cluster is deleted, and most of data software has been searched less than recoverable text Part, therefore using the first sector of each cluster is cleaned as minimum safe grade, now cleaning speed is most fast, but security compared with It is low;Other sectors are randomly choosed after first sector data of every cluster is reset and carry out zeros data level security etc. as in Level;To the FAT table region in FAT32 file system, root cluster part and data after the data of data area are all reset The data in region repeat it is erasable be used as highest safe class, security highest several times, but cleaning speed is most slow, wherein wiping It can be 3 times, 7 times or other numerical value to write number, and erasable number is more, and safe class is higher;Cleaning a storage device When, if other storage devices access, micro-control unit can respond the storage device, and arrange it after the initialization is completed Cleaning task, in this process original cleaning task still running, this control method can be same to multiple storage devices Shi Jinhang is cleared up, and greatly speeds up data scrubbing speed.
In above-mentioned data cleansing control method, safe class corresponding to the button includes minimum safe grade, most Cleaning method corresponding to lower security grade is all to reset in the FAT table region in FAT32 file system and root cluster part, Data area is then only zeroed out to first sector data of every cluster, and other sectors are without modification.Minimum safe grade Cleaning speed is most fast, and after the deletion of minimum safe grade, data basically can not be recovered storage device.
In above-mentioned data cleansing control method, safe class corresponding to the button also includes intermediate safe class, Cleaning method corresponding to intermediate safe class is that the FAT table region in FAT32 file system and root cluster part is all clear Zero, data area is zeroed out to first sector data of every cluster, other sectors carry out every one reset a sector or Person resets a sector every two or resets one every one resets a sector every three.
In above-mentioned data cleansing control method, the intermediate safe class also includes in FAT32 file system FAT table region and root cluster part are all reset, and data area is entered to the first sector data garbage character string of every cluster Row filling, other sectors selectivity are filled with garbage character string.It is used for fill garbage character can be 0x00, 0x55,0xaa, 0xff can also be other random numbers, and data filling, so more complete deletion are carried out by garbage character string This file, even if being also mess code by data recovery, security further improves.
In above-mentioned data cleansing control method, safe class corresponding to the button also includes advanced security grade, Cleaning method corresponding to advanced security grade is by the FAT table region in FAT32 file system, root cluster part and data field Every cluster whole sector data in domain carries out whole clearings, repeats after clearing erasable seven times.Safe class is higher, cleaning speed Degree is slower, wherein erasable number can also be set as other erasable numbers, erasable number is higher, and security is higher.
In above-mentioned data cleansing control method, the micro-control unit is by being spaced setting time value to storage device Detected twice, to confirm the whether stable access of storage device, after stable access is confirmed, it is which that micro-control unit, which judges, Or which interface has storage device access, and reset instruction is sent on corresponding interface, set the storage on the corresponding interface It is standby first to reset once, carry out data cleansing task again after resetting successfully.The purpose of reset is to ensure that storage device works Normally, this aspect further increases stability of the data cleansing equipment when being cleaned to storage device, also ensure that The security of data cleansing, it can be set as the numerical value between 150~250 milliseconds every setting time value among it.
In above-mentioned data cleansing control method, the control method also includes the micro-control unit and set to storage It is standby cleaned before first to storage device progress initialization operation, for access USB storage device according to USB transport protocol Enumerate the initialization operation of mode;For SD card or TF card, SD card is initialized according to SD host-host protocols or TF host-host protocols Or TF card.
In above-mentioned data cleansing control method, the micro-control unit is sentenced first after generation correspondingly cleaning method Whether the associated documents after disconnected storage device initialization are FAT32 file system, if it is, according to the cleaning method of acquiescence or According to the suitable cleaning method of the signal generation of key-press input, the storage device of access is cleaned;If it is not, it will first deposit The relevant file format chemical conversion FAT32 file system after equipment initialization is stored up, then carries out data cleansing.
In above-mentioned data cleansing control method, the cleaning method of the acquiescence is the cleaning side of highest safe class Method.
In above-mentioned data cleansing control method, the control method is additionally included in micro-control unit in initialization procedure The LED of control the corresponding interface flashes always, controls LED Chang Liang after successful initialization;If initialization failure, is found to be not The equipment of support, by controlling buzzer to send alarm, while the LED of the corresponding interface is controlled to extinguish.In data cleansing Journey, prompted by LED and buzzer, can clearly get information about the cleaning situation of storage device, use is more square Just.
In above-mentioned data cleansing control method, the control method has been additionally included in after the completion of storage device cleaning, Micro-control unit controls buzzer beeps, while controls correspondingly LED is often bright to be completed to indicate that storage device is cleaned. Prompted by buzzer, it is not necessary to which user pays close attention to always, easy to use.
A kind of data cleansing equipment, it is characterised in that the data cleansing equipment includes SD interface, TF interfaces, USB set line Device, the button for selecting to delete grade, the micro-control for carrying out data dump processing to the storage device connected on each interface Unit processed and the buzzer for being prompted after the completion of being cleaned in equipment, the micro-control unit and SD interface and TF interfaces it Between be connected to the LED for being used to refer to interfaces situation, the usb hub, button and buzzer respectively with micro-control Unit processed connects, and is connected with least two USB interfaces on the usb hub, connects between each USB interface and usb hub It is connected to the LED for being used to refer to interfaces situation.
Compared with prior art, notebook data cleaning control method and its it is the advantages of equipment:
1st, notebook data cleaning equipment indicates the working condition of interface by setting LED in each interface, and display is more It is simple and clear, also prompted after data cleansing is completed by buzzer, it is not necessary to which user artificially goes to observe, using more It is convenient;The data cleansing equipment possesses different deletion grades, can meet the different demands of user and safe and reliable.
2nd, notebook data cleaning control method can carry out data cleansing to multiple different types of storage devices, using more Extensively, and notebook data cleaning equipment does not need host computer, keyboard etc., has the advantages of small volume, cost is low, low in energy consumption.
3rd, notebook data cleaning control method detect interface have storage device access, be delayed certain time after carry out again Detection, it is ensured that the stability of equipment connection;Reset instruction is sent to the interface of storage device access, is resetted once, protected Card storage device is working properly, and then improves the stability of data cleansing in subsequent step.
4th, notebook data cleaning control method can carry out safe class selection, design more people according to the self-demand of user Property, data are deleted safer.
Brief description of the drawings
Fig. 1 is the control flow chart of the present invention.
Fig. 2 is the structural representation of the present invention.
In figure, 1, micro-control unit;2nd, SD interface;3rd, TF interfaces;4th, usb hub;5th, USB interface;6th, buzzer;7、 Button;8th, display screen;9th, LED.
Embodiment
It is the specific embodiment of the present invention and with reference to accompanying drawing below, technical scheme is further described, But the present invention is not limited to these embodiments.
As shown in figure 1, notebook data cleaning control method, for realizing that the equipment of the control method includes micro-control unit 1 And it is used for from what micro-control unit 1 connected with interface that all kinds of storage devices are attached, for conveying different cleaning grades The button 7 of signal, micro-control unit 1 carry it is determined that after the stable access of storage device on interface according to the signal that button 7 inputs According to microcontroller when taking corresponding safe class cleaning method or not receiving the signal of the conveying of button 7 in setting time value The cleaning method that unit 1 is given tacit consent to cleans to storage device, and cleaning method is by the FAT table region in FAT32 file system All reset with root cluster part, data area is according to the different data cleansing of the different progress of safe class of selection;Data The data cleansing in region is included the zeros data of first sector of every cluster, or by the number of the first sector of every cluster Zeros data is carried out according to other sectors are randomly choosed after clearing, or the data of data area are all being reset or counted with other According to being carried out after being filled to storage device, repetition is erasable several times.
Specifically,
Safe class corresponding to button 7 includes minimum safe grade, and cleaning method corresponding to minimum safe grade is will FAT table region and root cluster part in FAT32 file system are all reset, and data area is then only to first of every cluster Sector data is zeroed out, and other sectors are without modification.Minimum safe grade cleaning speed is most fast, and storage device is by most After lower security grade is deleted, data basically can not be recovered.
Safe class corresponding to button 7 also includes intermediate safe class, and cleaning method corresponding to intermediate safe class is will FAT table region and root cluster part in FAT32 file system are all reset, first sector of the data area to every cluster Data are zeroed out, and other sectors carry out resetting a sector every one either every two one sectors of clearing or clear every one 01 reset a sector every three.
Intermediate safe class also includes all resetting the FAT table region in FAT32 file system and root cluster part, Data area is filled to the first sector data of every cluster with garbage character string, and other sectors selectivity uses garbage character String is filled.Its garbage character for being used to fill can be that 0x00,0x55,0xaa, 0xff can also be other random numbers, lead to Cross garbage character string and carry out data filling, so this file of more complete deletion, even if being also mess code by data recovery, security Further improve.
Safe class corresponding to button 7 also includes advanced security grade, and cleaning method corresponding to advanced security grade is will Every cluster whole sector data in FAT table region, root cluster part and data area in FAT32 file system carries out all clear Zero, repeat after clearing erasable seven times.Safe class is higher, and cleaning speed is slower, wherein erasable number can also be set For other erasable numbers, erasable number is higher, and security is higher.
Preferably, micro-control unit 1 is detected twice by being spaced setting time value to storage device, to confirm to deposit The whether stable access of equipment is stored up, after stable access is confirmed, it is which or which interface has storage to set that micro-control unit 1, which judges, Standby access, and reset instruction is sent on corresponding interface, the storage device on the corresponding interface is first resetted once, be reset to Data cleansing task is carried out after work(again.The purpose of reset is that this aspect further carries in order to ensure that storage device is working properly High stability of the data cleansing equipment when being cleaned to storage device, also ensure that the security of data cleansing, wherein Interval setting time value can be set as the numerical value between 150~250 milliseconds, be set as 200 milliseconds in the present embodiment.
Preferably, control method also includes the micro-control unit 1 before being cleaned to storage device first to depositing Store up equipment and carry out initialization operation, according to USB transport protocol enumerate the initialization of mode for the USB storage device of access Operation;For SD card or TF card, SD card or TF card are initialized according to SD host-host protocols or TF host-host protocols.
Preferably, after micro-control unit 1 first determines whether storage device initialization after generation correspondingly cleaning method Whether associated documents are FAT32 file system, if it is, according to the cleaning method of acquiescence or the signal inputted according to button 7 Suitable cleaning method is generated, the storage device of access is cleaned;If it is not, the phase after first storage device is initialized File format chemical conversion FAT32 file system is closed, then carries out data cleansing.
The cleaning method of acquiescence is the cleaning method of highest safe class.
Control method is additionally included in micro-control unit 1 in initialization procedure and controls the LED 9 of the corresponding interface to flash always, The Chang Liang of LED 9 is controlled after successful initialization;If initialization failure, is found to be the equipment do not supported, by controlling buzzer 6 Alarm is sent, while controls the LED 9 of the corresponding interface to extinguish.In data cleansing process, entered by LED 9 and buzzer 6 Row prompting, can understand the cleaning situation for getting information about storage device, and use more facilitates.
Control method has been additionally included in after the completion of storage device cleaning, and micro-control unit 1 controls buzzer 6 to send buzzing Sound, while control correspondingly LED 9 is often bright to be completed to indicate that storage device is cleaned.Prompted by buzzer 6, it is not necessary to use Person pays close attention to always, easy to use.
In the data cleansing control method, first sector in data area per cluster is deleted, as minimum peace Congruent level, first sector in data area per cluster is deleted, and most of data software has been searched less than recoverable text Part, therefore using the first sector of each cluster is cleaned as minimum safe grade, now cleaning speed is most fast, but security compared with It is low;Other sectors are randomly choosed after first sector data of every cluster is reset and carry out zeros data level security etc. as in Level, the wherein clearing of other sector datas can reset one every one either to reset one every two or every a clearing One every three clear one;Wherein level security grade can also be that the data of data area are filled by garbage character, Its mode filled have it is many in modes, selectively fill other sectors after being such as filled to the first sector of every cluster Or whole sectors of data area are filled by garbage character;It is right after the data of data area are all reset The data in FAT table region, root cluster part and data area in FAT32 file system carry out repeating erasable conduct several times Highest safe class, security highest, but cleaning speed is most slow, wherein erasable number can be 3 times, 7 times or other numerical value, Erasable number is more, and safe class is higher;When cleaning a storage device, if other storage devices access, microcontroller Unit 1 can respond the storage device, and arrange its cleaning task after the initialization is completed, in this process original cleaning Task is still being run, and this control method can be cleared up multiple storage devices simultaneously, greatly speed up data scrubbing speed.
The specific work process of the data cleansing control method is:
By USB flash disk, hard disk access USB interface 5, SD card access SD interface 2, RAM card is accessed into TF interfaces 3;Micro-control unit 1 when having detected any of the above-described storage device access, and delay goes to detect storage device again after waiting 200ms, true In the presence of determining storage device still, it is which or which interface has storage device access that micro-control unit 1, which judges, and to corresponding Interface send reset instruction, the storage device of access is resetted once, after it is determined that storage device is working properly, according to being USB device or SD card or TF card carry out different initialization, control LED 9 to enter line flicker in initialization procedure, prompting is deposited Storage equipment is initialized, and after the completion of initialization, micro-control unit 1 controls the Chang Liang of LED 9, while detects pressing for user Key 7 inputs, if the information that button 7 inputs is to carry out minimum safe grade cleaning, micro-control unit 1 therefrom extracts minimum peace The cleaning method of congruent level, if the information that button 7 inputs is to carry out highest safe class cleaning, extract highest safe class Cleaning method, micro-control unit 1 generates corresponding cleaning method according to the selection of button 7, if the microcontroller list within 1.5s Member 1 is not received by the corresponding information of the input of button 7, then the safe class given tacit consent to according to micro-control unit 1 carries out data cleansing, After generating corresponding cleaning method according to the step, micro-control unit 1 judges that storage device is FAT32 file system, such as Fruit is not that storage device is formatted into FAT32 file system, if it is, being generated according to the safe class of selection suitable clear Washing method, start cleaning task, such as the cleaning of highest safe class, by the FAT table region in FAT32 file system, root Cluster part is all reset, and the data of data area all reset or are filled with garbage character, and it is erasable to carry out repetition again afterwards Several times;If in addition, in the safe class according to acquiescence receive the information of the input of button 7, micro-control again during data cleansing Unit 1 processed terminates ongoing safe class data and deleted, and the information inputted according to button 7 generates corresponding cleaning method, This mode more can easily convert cleaning method, avoid when there is emergency when being badly in need of Rapid Cleaning, need again Wait as long for data cleansing, operate more hommization, more conform to the life requirement of people;Cleaning a storage device When, if other equipment is inserted, then system can respond this equipment, and arrange its cleaning task after the initialization is completed, and Original cleaning task is still being run in this process.After the completion of having storage device cleaning, buzzer 6 can be loud, together When corresponding LED 9 often it is bright come indicate storage device cleaning complete, when cleaning complete storage device extract after buzzer 6 will Stop loud.
As shown in Fig. 2 notebook data cleaning equipment include SD interface 2, TF interfaces 3, usb hub 4, for select delete etc. The button 7 of level, for carrying out the micro-control unit 1 of data cleansing processing to the storage device that is connected on each interface and for depositing The buzzer 6 prompted after the completion of storage equipment cleaning, is connected between micro-control unit 1 and SD interface 2 and TF interfaces 3 The LED 9 of interfaces situation is used to refer to, usb hub 4, button 7 and buzzer 6 are connected with micro-control unit 1 respectively, At least two USB interfaces 5 are connected with usb hub 4, is connected with and is used to refer between each USB interface 5 and usb hub 4 The LED 9 of interfaces situation.
Specifically:
Preferably, display screen 8 is also associated with micro-control unit 1.Notebook data cleaning equipment is additionally provided with display screen 8, It is available for users to the specific cleaning process for understanding equipment so that the function of equipment is more comprehensive.
Preferably, display screen 8 is touch display screen.The use of touch display screen, can be in this equipment to multiple portable When formula memory is handled, enter row major cleaning selection, that is, suspend the cleaning task of other memories, make equipment to needing most The memory of cleaning carries out single cleaning, easy to operate to improve the speed of cleaning.
Preferably, button 7 is capacitance type touch key 7.Data cleansing grade is selected by button, operation is more It is convenient to add, and can be more perfect according to the wish selection operation type of oneself, very hommization, function.
Preferably, capacitance type touch key is at least provided with three.Three capacitance type touch keys are set, make its difference Corresponding three safe classes, it is respectively quick, middling speed, at a slow speed, is at a slow speed safe class highest, security also highest.
Preferably, data cleansing equipment also includes battery and power switch, it is connected with and is used for and outside on battery The interface that power supply is attached.Notebook data cleaning equipment itself is equipped with battery, is convenient for carrying, and can enter to exercise whenever and wherever possible With bringing facility to user.
Micro-control unit 1 includes CPU, dma controller and memory, by total between CPU, dma controller and memory Line is attached.Open dma controller, CPU burden is mitigated, at the same guarantee when cleaning multiple storage devices at the same time still There can be cleaning speed higher.
The data cleansing equipment also includes housing, and micro-control unit 1, battery are arranged in housing, and USB interface 5, SD connect The interfaces such as mouth 2, TF interfaces 3 are arranged in housing sidewall, and display screen 8 is arranged on the upper lid of housing, and button 7 is arranged on housing The edge of lid.Notebook data cleaning equipment does not need host computer, keyboard, display etc., has small volume, cost low, low in energy consumption The advantages that.
Specifically, USB interface is the interface of standard high speed USB 2.0, USB interface provides host function, and uses USB set line Device provides multiple USB interfaces, and interface can provide USB low speed, at a high speed full speed, three kinds of transmission rates, will using which kind of transmission rate Highest speed is automatically selected according to storage device.SD card and TF card interface provide 4 line high speed data transfer patterns, rather than SPI Transmission mode, it can so improve transmission rate.
The data cleansing equipment has multiple different interfaces, multiple storage devices can simultaneously be cleaned, met All kinds of storage devices are carried out with the requirement of data cleansing, without being transferred, use is more convenient and extensive.Needing to storage When equipment carries out data cleansing, as long as storage device is accessed into corresponding interface, such as SD card, then SD interface 2 is connect;USB flash disk, then connect USB interface 5;After storage device access, micro-control unit 1 can respond, by controlling the correspondingly often bright progress of LED 9 Prompting, equipment is prompted to enter normal work;After storage device enters normal work, select what is itself needed to delete by button 7 Except grade, safe class can also be referred to as, safe class is higher, and the time for handling needs is longer;Micro-control unit 1 receives The information of the input of button 7 and the safe class progress data cleansing processing selected according to button 7, in data cleansing processing procedure Correspondingly LED 9 carries out flash for prompting for control, and correspondingly the Chang Liang of LED 9, buzzer 6 send prompting sound after the completion of cleaning, Instruction cleaning completion can extract storage device.Each storage device can be more visually known by notebook data cleaning equipment Cleaning situation, it is more convenient and practical without artificially checking.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology belonging to the present invention is led The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode Generation, but without departing from the spiritual of the present invention or surmount scope defined in appended claims.
Although more used herein micro-control unit 1, SD interface 2, TF interfaces 3, usb hub 4, USB interface 5, The terms such as buzzer 6, button 7, display screen 8, LED 9, but it is not precluded from the possibility using other terms.Use these arts Language is used for the purpose of more easily describing and explaining the essence of the present invention;Being construed as any additional limitation is all Disagreed with spirit of the present invention.

Claims (10)

1. a kind of data cleansing control method, the equipment for realizing the control method include micro-control unit (1) and with it is micro- Control unit (1) connection is used for from interface that all kinds of storage devices are attached, for conveying different cleaning level signals Button (7), it is characterised in that the micro-control unit (1) is it is determined that after the stable access of storage device on interface, according to button (7) input the corresponding safe class cleaning method of signal extraction or do not received in setting time value button (7) conveying Signal when according to micro-control unit (1) acquiescence cleaning method storage device is cleaned, the cleaning method be will FAT table region in FAT32 file system and root cluster part are all reset, data area according to the safe class of selection not The different data cleansing with progress;The data cleansing of the data area includes the data of first sector of every cluster are clear Zero, other sectors are either randomly choosed after by the zeros data of the first sector of every cluster and carries out zeros datas or is inciting somebody to action The data of data area storage device repeat after all resetting it is erasable several times, by data area per cluster first Individual sector is deleted, as minimum safe grade;Other sectors are randomly choosed after first sector data of every cluster is reset to enter Row zeros data is as intermediate safe class;To the FAT table in FAT32 file system after the data of data area are all reset The data in region, root cluster part and data area carry out repeating erasable to be used as highest safe class several times.
2. data cleansing control method according to claim 1, it is characterised in that safety etc. corresponding to the button (7) Level includes minimum safe grade, cleaning method corresponding to minimum safe grade be by the FAT table region in FAT32 file system with Root cluster part is all reset, and data area is then only zeroed out to first sector data of every cluster, and other sectors are not Modify.
3. data cleansing control method according to claim 2, it is characterised in that safety etc. corresponding to the button (7) Level also includes intermediate safe class, and cleaning method corresponding to intermediate safe class is by the FAT table region in FAT32 file system All reset with root cluster part, data area is zeroed out to first sector data of every cluster, and other sectors are carried out A sector is reset every one either to reset a sector every two or reset one every one every three clearings, one sector.
4. data cleansing control method according to claim 2, it is characterised in that the intermediate safe class also includes will FAT table region and root cluster part in FAT32 file system are all reset, first sector number of the data area to every cluster It is filled according to garbage character string, other sectors selectivity is filled with garbage character string.
5. the data cleansing control method according to claim 3 or 4, it is characterised in that safety corresponding to the button (7) Grade also includes advanced security grade, and cleaning method corresponding to advanced security grade is by the FAT table area in FAT32 file system Every cluster whole sector data in domain, root cluster part and data area carries out whole clearings, repeats after clearing erasable Seven times.
6. data cleansing control method according to claim 1, it is characterised in that the micro-control unit (1) by Storage device is detected twice every setting time value, to confirm the whether stable access of storage device, is confirming stable access Afterwards, micro-control unit (1) judges it is which or which interface has storage device access, and sends and reset on corresponding interface Instruction, makes the storage device on the corresponding interface first reset once, carries out data cleansing task again after resetting successfully.
7. the data cleansing control method according to claim 1 or 6, it is characterised in that the control method also includes institute State micro-control unit (1) and initialization operation first is carried out to storage device before being cleaned to storage device, for access USB storage device according to USB transport protocol enumerate the initialization operation of mode;For SD card or TF card, transmitted according to SD Agreement or TF host-host protocols initialization SD card or TF card.
8. data cleansing control method according to claim 7, it is characterised in that the micro-control unit (1) is generating Correspondingly first determine whether the associated documents after storage device initialization are FAT32 file system after cleaning method, if it is, Set according to the cleaning method of acquiescence or the suitable cleaning method of signal generation inputted according to button (7), the storage to access It is standby to be cleaned;If it is not, the relevant file format chemical conversion FAT32 file system after first storage device is initialized, then enter Row data cleansing.
9. data cleansing control method according to claim 1, it is characterised in that the cleaning method of the acquiescence is highest The cleaning method of safe class.
A kind of 10. data cleansing equipment, it is characterised in that the data cleansing equipment include SD interface (2), TF interfaces (3), Usb hub (4), for selecting to delete the button (7) of grade, clear for carrying out data to the storage device that is connected on each interface Except the micro-control unit (1) of processing and the buzzer for being prompted after the completion of being cleaned in equipment (6), the micro-control unit (1) LED (9) for being used to refer to interfaces situation, the USB are connected between SD interface (2) and TF interfaces (3) Hub (4), button (7) and buzzer (6) are connected with micro-control unit (1) respectively, are connected with the usb hub (4) At least two USB interfaces (5), it is connected between each USB interface (5) and usb hub (4) and is used to refer to interfaces situation LED (9), the micro-control unit (1) inputs it is determined that after the stable access of storage device on interface according to button (7) The corresponding safe class cleaning method of signal extraction or do not received in setting time value button (7) conveying signal when The cleaning method given tacit consent to according to micro-control unit (1) cleans to storage device, and the cleaning method is by FAT32 files system FAT table region and root cluster part in system are all reset, and data area is different according to the different progress of safe class of selection Data cleansing;The data cleansing of the data area is included the zeros data of first sector of every cluster, or is inciting somebody to action Other sectors are randomly choosed after the zeros data of the first sector per cluster and carry out zeros datas, or by the number of data area It is erasable several times according to repetition is carried out after all resetting to storage device, first sector in data area per cluster is deleted, As minimum safe grade;Other sectors are randomly choosed after first sector data of every cluster is reset and carry out zeros data work For intermediate safe class;To the FAT table region in FAT32 file system, root after the data of data area are all reset The data of cluster part and data area carry out repeating erasable to be used as highest safe class several times.
CN201410667964.1A 2014-11-20 2014-11-20 A kind of data cleansing control method and its equipment Active CN104331378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410667964.1A CN104331378B (en) 2014-11-20 2014-11-20 A kind of data cleansing control method and its equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410667964.1A CN104331378B (en) 2014-11-20 2014-11-20 A kind of data cleansing control method and its equipment

Publications (2)

Publication Number Publication Date
CN104331378A CN104331378A (en) 2015-02-04
CN104331378B true CN104331378B (en) 2018-01-30

Family

ID=52406110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410667964.1A Active CN104331378B (en) 2014-11-20 2014-11-20 A kind of data cleansing control method and its equipment

Country Status (1)

Country Link
CN (1) CN104331378B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155570A (en) * 2015-04-07 2016-11-23 北京中科同向信息技术有限公司 A kind of information technology for eliminating of storage medium
CN106598487A (en) * 2016-11-21 2017-04-26 深圳市中博睿存科技有限公司 Data destruction method and device
CN106844104B (en) * 2017-01-25 2019-11-05 北京安云世纪科技有限公司 A kind of terminal data processing method, device and mobile terminal
CN111538536B (en) * 2020-04-03 2021-09-21 深圳市沃特沃德信息有限公司 Method for formatting intelligent terminal, intelligent terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4908849B2 (en) * 2006-01-11 2012-04-04 富士通セミコンダクター株式会社 File deletion method, file opening method, file deletion program, and file opening program
US20080010326A1 (en) * 2006-06-15 2008-01-10 Carpenter Troy A Method and system for securely deleting files from a computer storage device
CN203117965U (en) * 2012-08-20 2013-08-07 深圳融合高科信息技术有限公司 Data cleaner

Also Published As

Publication number Publication date
CN104331378A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN104331378B (en) A kind of data cleansing control method and its equipment
CN101539803B (en) Standby management method and relevant standby management module thereof
CN105022955B (en) A kind of locking means and mobile terminal of application program
CN103699454A (en) Emergency processing method of broken touch screen of computer system and application of emergency processing method
CN103995668B (en) Information processing method and electronic equipment
CN103473015A (en) Anti-addiction method and terminal
CN110519461A (en) Document sending method, device, computer equipment and storage medium
CN107122119A (en) Information processing method, device, electronic equipment and computer-readable recording medium
CN102609184A (en) Method and apparatus for providing mouse right click function in touch screen terminal
CN104102444A (en) Gesture-based alarm clock control method and intelligent terminal
CN106814908A (en) Instruction acquisition method and device for touch screen
CN108459794A (en) A kind of interactive operation processing method and processing device of button-free screen
CN104407793A (en) Method and equipment for processing touch signal
CN107408034A (en) Perform context migration method and apparatus
CN106527668A (en) Control method and device for fingerprint identification function and terminal
CN103365530A (en) Method and device for providing quick start entry
CN101867634A (en) Information prompting method and device in mobile terminal
CN107562356A (en) Fingerprint identification location method, device, storage medium and electronic equipment
CN107346193A (en) Prevent the method and device of false touch screen
CN107608521A (en) Processing method, storage medium and the mobile terminal of touch-screen failure
KR101647137B1 (en) Method, system and recording medium for optimizing of mobile device using user gesture
CN105745988B (en) The SMS processing method and mobile terminal of mobile terminal
CN203838674U (en) Touch device hardware of notebook computer
CN105389116A (en) Terminal application processing method and system for terminal device, and terminal device
JP2013008217A5 (en)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant