CN108415812B - Hard disk operation machine and its digital display method with digital display function - Google Patents
Hard disk operation machine and its digital display method with digital display function Download PDFInfo
- Publication number
- CN108415812B CN108415812B CN201810142263.4A CN201810142263A CN108415812B CN 108415812 B CN108415812 B CN 108415812B CN 201810142263 A CN201810142263 A CN 201810142263A CN 108415812 B CN108415812 B CN 108415812B
- Authority
- CN
- China
- Prior art keywords
- hard disk
- digital display
- information
- processing progress
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The present invention discloses a kind of hard disk operation machine with digital display function, comprising: main control module, digital display controlling module and display module, main control module are connect with digital display controlling module, and digital display controlling module is connect with display module;Main control module reads the essential information of hard disk according to the operational order received, and generates processing progress according to the essential information of hard disk and show that signal is exported to digital display controlling module;Digital display controlling module shows that signal driving display module is shown according to processing progress.The hard disk operation machine can be generated processing progress and be shown that signal is shown with real-time essential information based on the hard disk, and obtained processing progress shows that information meets the real-time status of hard disk, realizes simply, as a result accurately.In addition, the method that the processing progress that the invention also discloses a kind of by hard disk carries out digital display, it can accurately show that processing progress such as copies or erase progress, user's definitely specific processing progress.
Description
Technical field
The present invention relates to hard disk processing technical field, especially a kind of processing progress by hard disk carry out digital display method and
Hard disk operation machine with digital display function.
Background technique
Traditional disk copy equipment is all the copy progress that hard disk is shown with LED light, inaccurate, can not allow user
Clearly copy progress.It is advanced in science and technology with speed with rapid changepl. never-ending changes and improvements, in the society of global economic integration, in electronic technology
In field, people are intended to use hardware as few as possible, realize hardware capability by software when designing electronic circuit.
And all there is more hardware inside the disk copy machine of the prior art, it is not succinct efficient enough.The formatting procedure of hard disk is general
It will be completed by apparatus such as computer, in some specific cases, it has not been convenient to use computer, just cannot achieve formatting.
Summary of the invention
The object of the present invention is to provide methods and tool that a kind of processing progress by hard disk carries out digitlization display
There is the hard disk operation machine of digital display function, is converted by the digitlization of the operation processing progress to hard disk, LED light is shown at hard disk
The mode of reason progress is improved to the mode of digitlization display, reached can accurate displaying digitized processing progress, facilitate use
The effect that family is checked solves the problems, such as that disk copy machine in the prior art can not accurately show copy progress.
According to an aspect of the invention, there is provided a kind of hard disk operation machine with digital display function, the hard disk operation machine
It include: main control module, digital display controlling module and display module, main control module is connect with digital display controlling module, digital display controlling module
It is connect with display module;Main control module reads the essential information of hard disk according to the operational order received, and according to the base of hard disk
This information generates processing progress and shows that signal is exported to digital display controlling module;Digital display controlling module shows signal according to processing progress
Driving display module is shown.Since software realization has the characteristics that easily to modify than hardware realization, it is possible to pass through mould
Block is handled in time.Main control module receives the information in the MCU for reading hard disk after operational order, after the essential information for obtaining hard disk
Can carry out respective handling based on hard disk essential information, wherein main control module be the present invention design with digital display function
The nucleus module of hard disk operation machine plays the role of control, calls other modules and can read the essential information of hard disk
Processing progress is generated by processing afterwards and shows that signal is transmitted to digital display controlling module, this signal is transmitted to by digital display controlling module
Digital display module, control digital display module show corresponding progress.It may be implemented to be generated as handling by the operation processing progress to hard disk
Progress shows that signal is sent to display module and shows, so as to realize that the essential information according to hard disk obtains processing progress progress
The function of real-time display, realize it is simple, as a result accurately, and since software realization than hardware realization has more the spy easily modified
Point, so, software circuit can be flexibly changed according to demand, and scalability is good, and realization is simple and efficient.
In some embodiments, the hard disk operation machine with digital display function can also include to connect with main control module
First memory module can prestore hard disk performance information and service speed control information in the first memory module;Main control module
It may include pretreatment unit and display signal generation unit, pretreatment unit can be used for being obtained according to the essential information of hard disk
Hard disk performance information and service speed the control information prestored, is matched, and generate preprocessed signal according to matching result;It is aobvious
Show that signal generation unit can be used for generating processing progress according to preprocessed signal and show signal output.The preprocessed signal of generation
It may include hard-disk capacity and service speed, the essential information of the hard disk of reading may include hard disk serial number and revolving speed, prestore
Hard disk performance information may include hard disk serial number, hard disk model and hard-disk capacity, service speed control information may include
The rotation speed of hard disk and hard disk operation speed, pretreatment unit can according in the essential information of hard disk hard disk serial number with prestore
The matching result of hard disk performance information obtains hard-disk capacity, and according to the revolving speed in the essential information of hard disk and the operation prestored speed
The matching result of degree control information obtains hard disk operation speed.Main control module can be deposited in advance by calling in the first memory module
The hard disk performance information and service speed of storage compare information, the hard disk serial number that will acquire and the hard disk performance information ratio prestored
Particular capacity that is right, making it match each other to obtain hard disk.The information prestored in first memory module may be implemented and main control module
The basic information content of the hard disk got corresponds, without all carrying out the essential information of hard disk in each operation
Storage.Information is compareed according to service speed, the rotation speed of hard disk that will acquire is compared with the service speed prestored, can be obtained the hard disk
Service speed.Obtained specific hard-disk capacity and service speed are carried out to processing again and are sent to life after display signal generation unit
Signal output display is shown at processing progress.Since hard disk can be lost in use, with increasing for access times,
The disk running speed of hard disk can be gradually reduced, and therefore, the hard disk operation speed of different usage degrees is different, thus be based on hard disk
Real-time essential information obtains hard disk real-time operation speed, and obtains processing progress according to hard disk actual capacity and real-time operation speed
The implementation for showing information, more can really reflect the processing progress of hard disk, as a result accurately and reliably, and realize simple.
In some embodiments, the processing progress of the above-mentioned hard disk operation machine with digital display function shows that signal is percentage
Than the digital information of form, show that signal generation unit may include digital signal transition components and processing progress statistics component,
The digital signal transition components are used to calculate single part of processing for generating percents according to hard-disk capacity and hard disk operation speed
Duration, the processing progress statistics component are used to generate the processing progress of percents according to the single part of handling duration.As a result,
Obtained above-mentioned preprocessed signal is handled in signal generation unit showing, first pass through the digital signal transition components into
The handling duration that row operation obtains one percent portion that hard disk whole operation process expends duration makees benchmark, passes through processing later
Statistics component generates the digital information of percents, realizes simply, and can be as accurate as a position, and such as 1%, 2%,
3%......100%, make user's definitely specific processing progress.
In some embodiments, the above-mentioned hard disk operation machine with digital display function, processing progress statistics component can match
It is set to and obtains currently processed duration, the place for generating percents can be calculated according to currently processed duration and single part of handling duration
Reason progress.As a result, based on single part of handling duration for calculating generation percents, so that it may be obtained by processing progress statistics component
Currently processed duration is taken, currently processed duration and single part of handling duration, which are made operation, can obtain specific processing progress, and
And the processing progress accuracy rate obtained in this way is high, it is not easy to malfunction, may be implemented to observe user clearly currently
Hard disk processing progress.
In some embodiments, the above-mentioned hard disk operation machine with digital display function, processing progress statistics component may be used also
To be configured to that timer is arranged according to single part of handling duration, and is counted according to the interrupt signal of timer and generate percents
Processing progress.As a result, based on the single part of handling duration setting timer generated is calculated, timer has timing controlled, to outside
The function of time counting, and additional hardware circuit is not needed, the function of accurate timing may be implemented.And it is united by processing progress
The interruption system of component is counted from operation is started to the specific processing progress of acquisition that terminates to carry out adding up according to timer, treatment process
Sequencing, accuracy rate is high, error hardly occurs.
In some embodiments, the display module of the above-mentioned hard disk operation machine with digital display function can be number display
Screen.Show that processing progress, the present invention show more accurate straight by digital display screen accordingly, for the prior art with LED light
It sees.
In some embodiments, the above-mentioned hard disk operation machine with digital display function can also include being used for handover operation mould
The function button of formula, operation mode may include copy function and operation of erasing.User only needs according to function button as a result,
Selection can free switching copy or operation of erasing, diversified function may be implemented.And compared with the existing technology in
Hard disk is erased the implementation for needing to complete on computer or equipment with operating system mostly, and the present invention need to only pass through hard disk
Operation machine can complete hard disk and erase, simpler convenience, and practicability is high.
In some embodiments, the hard disk operation machine with digital display function can also include switching switch, for connecting
The secondary control module of outer computer, the second memory module for prestoring hard disk driver, the second memory module and secondary control module
Connection, pair control module are connect with main control module;Wherein, switch the contact of switch the first memory module and the second memory module it
Between switch, for the power supply circuit of the first memory module to be connected or connects the power supply circuit of the second memory module.As a result, may be used
By outer computer control there is the hard disk operation machine of digital display function to be copied or be erased with realization and shows copy progress
Function.Both of which control hard disk operation machine may be implemented in the design of switching switch, prevents any operation mode normal
When work, there can also be alternative mode.Hard disk driver is prestored in the second memory module, completion can be more concisely and efficiently and drive
Dynamic function.Accordingly, because software realization has the characteristics that easily to modify than hardware realization, so the circuit based on micro process is than existing
There is hardware circuit in technology with more flexibility, so setting switching switch to and microprocessor (the first memory module, the
Two memory modules) connection may be implemented to make design with more flexibility.
According to another aspect of the present invention, the side that a kind of processing progress by hard disk carries out digitlization display is additionally provided
Method, this method comprises:
Control signal is generated according to the hard disk operation instruction received;
Corresponding operation is carried out to hard disk according to the control signal of generation, and obtains the essential information of hard disk;
The progress of corresponding operating is converted into digitized hard disk processing progress output display according to the essential information of hard disk.
As a result, in the present embodiment, the main control module of the hard disk operation machine with digital display function, which is powered, obtains user's choosing
The operational order selected, such as copies or erases, and main control module will issue control signal, and control erase to hard disk and operates or copy
The secondary control module of shellfish operation, also control obtains hard disk essential information, so as to realize that the essential information according to hard disk is handled
Progress carries out the function of real-time display, realizes simply, as a result accurately.
In some embodiments, the progress of corresponding operating is converted by digitized hard disk according to the essential information of hard disk
Processing progress output display can be accomplished by the following way:
Pretreatment is carried out to the hard disk essential information of acquisition and generates preprocessed signal;
Single part of handling duration for generating percents is calculated according to preprocessed signal;
Display is exported according to the processing progress that single part of handling duration generates percents.
Since the essential information to hard disk pre-processes, so that it may convert the essential information of hard disk at the pre- place of adaptation
Signal is managed, main control module can be made to obtain single part of handling duration by calculating preprocessed signal, and when according to single part of processing
Long processing obtains processing progress.Thus, it is possible to which user is made to be clearly understood that current processing progress, and can be as accurate as
A position, such as 1%, 2%, 3%......100% make user's definitely specific processing progress.
It in some embodiments, can be with according to the processing progress output display that single part of handling duration generates percents
It is accomplished by the following way:
Currently processed duration is obtained, the place for generating percents is calculated according to currently processed duration and single part of handling duration
The output display of reason progress.After obtaining above-mentioned single part of handling duration, the specific acquisition methods of current schedules can be current according to
The ratio calculation of total handling duration and single part of handling duration obtains, by this side for obtaining processing progress by simply calculating
Method, not easy to make mistakes, accuracy rate is high.
In some embodiments, may be used also according to the processing progress output display that single part of handling duration generates percents
To be accomplished by the following way:
Timer is set according to single part of handling duration, and is counted according to the interrupt signal of timer and generates percents
Processing progress output display.After obtaining above-mentioned single part of duration, the specific acquisition methods of current schedules can also be counted according to having
The main control module of the hard disk operation machine of display function is handled, which is arranged timer with single part of duration, interrupts system
System control adds up the current schedules of single part of duration acquisition, since interruption system and timer are all the own systems on main control module
And device, it does not need additionally to increase extra device and hardware circuit again, keeps treatment process simple and accurate feasibility is high, it can be with
Obtain accurately current schedules.
In some embodiments, the preprocessed signal generated in the above method may include hard-disk capacity and operation speed
Degree, the essential information of the hard disk of acquisition may include hard disk serial number and revolving speed, can also include:
Configure hard disk performance information and service speed control information storage, wherein the hard disk performance information of configuration can wrap
Hard disk serial number, hard disk model and hard-disk capacity are included, service speed control information may include the rotation speed of hard disk and hard disk operation speed
Degree carries out pretreatment to generate preprocessed signal including: hard in essential information according to hard disk to the hard disk essential information of acquisition
Disk sequence number and the matching result of the hard disk performance information prestored obtain hard-disk capacity;According to the revolving speed in the essential information of hard disk
The matching result that information is compareed with the service speed prestored obtains hard disk operation speed.Thus, it is possible to which the hard disk that will acquire is basic
Information, which is converted into required for the hard disk operation machine that this has digital display function, pre-processes information, hard-disk capacity and hard disk operation speed
The necessary pretreatment information being retrieved as needed for main control module calculates, the hard disk performance information and service speed of configuration compares information
It can directly compare, and occupy little space with the essential information of hard disk.When the hard disk of different model, different capabilities carry out into
When degree processing, hard disk essential information can be quickly obtained very much.Since hard disk can be lost in use, with using
Number increases, and the disk running speed of hard disk can be gradually reduced, and therefore, the hard disk operation speed of different usage degrees is different,
Hard disk real-time operation speed is thus obtained based on the real-time essential information of hard disk, and according to hard disk actual capacity and real-time operation speed
The implementation that processing progress shows information is obtained, more can really reflect the processing progress of hard disk, as a result accurately and reliably, and is realized
Simply.
It in some embodiments, include erase operation and copy function, copy function to the corresponding operating that hard disk carries out
It is realized by the program of file copy prestored;Operation of erasing is realized by low-level formatting mode.Thus, it is possible to realize the copy of hard disk
With the dual function of erasing of hard disk, and to the copy process of hard disk and erase processing processing progress digitize real-time display, side
Just user checks progress.And for the prior art, erasing for hard disk can only be by computer or with the equipment of operating system
For, it can directly be completed, be more convenient by the hard disk operation machine with digital display function, practicability is high.
Detailed description of the invention
Fig. 1 is the structure chart of the hard disk operation machine with digital display function of an embodiment of the present invention;
Fig. 2 is the structure chart of the hard disk operation machine with digital display function of another embodiment of the present invention;
Fig. 3 is the method flow diagram that the processing progress of the hard disk of an embodiment of the present invention carries out digitlization display;
Fig. 4 is that the digitized hard disk processing progress output that is converted into disk copy progress of an embodiment of the present invention is shown
Show method flow diagram;
Fig. 5 is that the digitized hard disk processing progress output that is converted into the hard disk progress of erasing of an embodiment of the present invention is shown
Show method flow diagram;
Fig. 6 is that the digitized hard disk processing progress that is converted into the hard disk progress of erasing of another embodiment of the present invention exports
Display methods flow chart.
Specific embodiment
The invention will now be described in further detail with reference to the accompanying drawings.
Fig. 1 schematically shows a kind of hard disk operation machine with digital display function of embodiment according to the present invention.
As shown, a kind of hard disk operation machine with digital display function, comprising: main control module 1, digital display controlling module 3 and display module
4, digital display controlling module 2 is connect with main control module 1, and digital display controlling module 3 is connect with display module 4;Main control module 1 is according to reception
The operational order that arrives reads the essential information of hard disk, and according to the essential information of hard disk generate processing progress show signal export to
Digital display controlling module 3;Digital display controlling module shows that signal driving display module 4 is shown according to processing progress.Wherein, at this
In embodiment, the main control chip of main control module 1 is a JMB3915 singlechip chip, and the control chip of digital display controlling module 3 is
One JMS567 singlechip chip can also use the identical chip of other function.After hard disk injects the card slot of hard disk operation machine,
User starts switch, hard disk operation lamp correspondence lights, user by function button selection copy or mode of erasing, function button and
The chip pin of main control module 1 connects, and main control module 1 receives operational order (such as low and high level signal, the user's selection of user
Copy function is high level 1, and user selects to erase function as low level 0) after, the information read in the MCU of hard disk is (logical in hard disk
After electricity, MCU can be first from the storage of the information such as detection revolving speed, sequence number), the hard disk essential information that main control module 1 will will acquire
With the information comparison prestored and carry out generating processing progress after calculation process and show signal, which is shown into signal transmission
To digital display controlling module 3, digital display controlling module will be by the number of low and high level driving display module 4 after receiving the signal
Display screen shows processing progress.Wherein, in a preferred embodiment, the processing progress of generation shows that signal can make three percentages
The digital information of form, such as 1%, 2%, 3%......100%.Thus, it is possible to realize that three percentages of digital display screen are aobvious
Show, user is allow to understand the progress of hard disk operation.
In a preferred embodiment, the hard disk operation machine with digital display function can also include connecting with main control module 1
The first memory module 2, the first memory module 2 be one with store function chip (for example, FLASH flash memory), first storage
Hard disk performance information and service speed control information can be prestored in module 2, be in the present embodiment the sequence number of hard disk
With the information tables such as title, the mapping table of copying speed, speed of erasing and the rotation speed of hard disk.Main control module 1 includes that pretreatment is single
Member 6 and display signal generation unit 7.Pretreatment unit 6 can be used for obtaining the hard disk information prestored according to the sequence number of hard disk
The mapping table of table and copying speed, speed of erasing and the rotation speed of hard disk, is matched one by one, including the basic letter according to hard disk
Hard disk serial number in breath and the matching result of the hard disk performance information prestored obtain hard-disk capacity, in the essential information of hard disk
The matching result that revolving speed compares information with the service speed prestored obtains hard disk operation speed.Later, pretreatment unit 6 will pass through
The hard-disk capacity and hard disk operation speed obtained after comparison is sent to display signal generation unit 7, shows signal generation unit 7
It is handled according to hard-disk capacity and hard disk operation speed, generates processing progress and show that signal is exported to digital display controlling module 3, digital display
Control module 3 will drive display module 4 to show operation progress.Display module 4 is a number in the present embodiment
Display screen.Display signal generation unit 7 can be set for according to the sequence circuit of operational formula and main control module 1 generation handle into
Degree display signal, specific implementation is, for example, that hard-disk capacity is divided into 100 parts, by single part of hard-disk capacity after division divided by phase
The hard disk operation speed answered obtains the handling duration of single part of data, formula are as follows:
The copy or duration of erasing=(hard-disk capacity/100)/disk copy of single part of data or speed of erasing;
Later, the duration that the data that currently copied or erased are obtained by the sequence circuit of main control module 1, due to timing electricity
Road is the circuit containing energy-storage travelling wave tube, has Memorability, and the control chip of main control module 1 will instruct under (for example, high level signal)
It is sent to sequence circuit, the handling duration for currently having copied or having erased can be obtained by energy-storage travelling wave tubes such as triggers, then pass through
Following formula are calculated, so that it may which copied or erased progress, formula are as follows:
Copy or erase progress=(copy of the data of the duration for the data that currently copied or erased/mono- part or when erasing
It is long) %.
In other embodiments, display signal generation unit 7 is also implemented as according to operational formula and main control module 1
Timer and interruption system generate processing progress and show signal, and hard-disk capacity is divided into 100 parts, single part of hard disk after division is held
Amount obtains the handling duration of single part of data, formula divided by corresponding hard disk operation speed are as follows:
The handling duration of single part of data=(hard-disk capacity/100)/hard disk operation speed.
After obtaining single part of data duration, timer is arranged according to single part of data handling duration in main control module 1, interrupts system
Interrupt signal is arranged according to single part of data handling duration of timer in system, and when a data duration of every progresss, interruption system will
An interrupt signal (such as low and high level signal) is issued, each interrupt signal is added up, is automatically stopped to 100 parts, to obtain
Current copy or progress of erasing.
Fig. 2 schematically shows the structure chart of hard disk operation machine according to an embodiment of the present invention;As shown, tool
The hard disk operation machine for having digital display function can also include switching switch 11, the secondary control module 9(pair control for connecting outer computer
Module is a bridging chip in the present embodiment), prestore the second memory module 8 of hard disk driver, the second storage mould
Block 8 is connect with pair control module 9, and pair control module 8 is connect with main control module 1;Wherein, the contact for switching switch 11 stores mould first
Switch between block 2 and the second memory module 8, for connecting the power supply circuit of the first memory module 2 or by the second memory module 8
Power supply circuit connect.User can select the environment of hard disk operation by stirring switching switch 11 after powering, such as upper
It states hard disk hands- operation or operates on computers, when user wants to operate hard disk on hard disk operation machine, can incite somebody to action
Switching switch 11 toggles it to side to connect the first memory module 2, and the first memory module 2 prestores program of file copy or journey of erasing
Sequence will be read when main control module 1, which receives user, passes through the operational order of function button (copy function or function of erasing)
Corresponding program of file copy or erasing procedure are taken, realizes the respective operations of hard disk drive.Thus it is achieved that and is selected as operating environment
Operation machine.When user thinks on computers to operate hard disk, switching switch 11 can be toggled it into the other side to connect
The circuit of second memory module 8, the second memory module 8 prestore hard disk driver, and pair control module 9 reads hard drive journey
Sequence will read hard disk essential information from main control module 1 according to the driving of driver and be sent to computer 10, user later
Hard disk essential information can be seen on computer 10.
It is as shown in Figure 1 in the concrete principle of hard disk hands- operation.When user's selection operates on computer 10, to realize firmly
When disk is copied and erased, the contact for stirring switching switch 11 is connected to the power supply circuit of the second memory module 8, is connected and master control mould
The secondary control module 9 that block 1 connects.After hard disk injects the card slot of hard disk operation machine, user, which starts switch, operates boundary with computer 10
Face, pair control module 9 call the hard disk driver of the second memory module 8, hard disk to be operated are driven to access hard disk operation machine.With
Family selects corresponding function (copy or erase) to generate operational order, main control module 1 according to demand on computer operation interface
After the operational order (being issued by computer terminal, control module 9 by pair and be transmitted to main control module 1) for receiving user, hard disk is read
MCU in information (after hard disk energization, MCU can be first from detection revolving speed, the storage of the information such as sequence number), the hard disk that will acquire
Essential information is transmitted to secondary control module 9, and computer 10 will pass through the secondary essential information controlled module 9 and obtain hard disk, so that it may
Corresponding operation is made to hard disk on computer, such as copies or erases.
Fig. 3 schematically shows that the processing progress of hard disk according to an embodiment of the present invention carries out digitlization display
Method flow diagram;As shown, this method comprises:
S301: control signal is generated according to the instruction of the user's selection received, is specifically included: will be with digital display function
The switch of hard disk operation machine is powered, and is inserted into hard disk to be operated, and user voluntarily selects copy or function of erasing.At this moment, master control mould
Block 1 can judge according to the function button signal of the user's selection got, and generate control signal according to judging result, and
Obtain the essential information of the hard disk of connection.
S302: main control module 1 carries out corresponding operation to hard disk after receiving control signal, such as when control signal is height
When level 1, main control module 1 carries out copy function;When controlling signal is low level 0, main control module 1 carries out operation of erasing.Together
When, main control module 1 reads the information of the MCU of hard disk also according to the control instruction received, obtains the essential information of hard disk, specifically
It realizes are as follows: the pin of the control chip of main control module 1 is electrically connected with hard disk, after receiving control instruction, can pass through the pin
The hard disk essential information, including hard disk serial number, the rotation speed of hard disk etc. of hard disk MCU storage inside are read in detecting.Later, main control module
1 calls the mapping table of the first memory module 2 the hard disk information table prestored and copying speed, speed of erasing and the rotation speed of hard disk,
The hard disk information received is compared with it and obtains hard-disk capacity and copy or speed of erasing.
S303: according to essential information, that is, hard-disk capacity of hard disk and copy or speed of erasing, the progress of corresponding operating is turned
Change digitized hard disk processing progress output display into.Conversion process can be realized by following two mode:
Implementation one: the essential information of obtained hard disk is first made into following operation:
Hard-disk capacity is divided into 100 parts, by single part of hard-disk capacity after division divided by corresponding hard disk operation speed, is obtained
The handling duration of single part of data, formula are as follows:
The handling duration of single part of data=(hard-disk capacity/100)/hard disk operation speed;
After the handling duration for getting single part of data, main control module is obtained in real time by the sequence circuit being arranged inside works as
Preceding operation data duration, calculating current operation data duration includes how many single part of data durations, each single number
It is just current processing progress, formula according to duration are as follows:
Processing progress=(the currently handling durations of the data of the duration of operation data/mono- part) %.
For example, the capacity of hard disk is 300GB, the speed that copies or erase is obtained after tabling look-up as 500M/s, by first formula
The copy of single part of data or duration of erasing can be calculated are as follows: (300GB/100)/500M/s=6s.Currently copied or erased data
Duration carried out remembering cumulative acquisition by the sequence circuit inside main control module 1, after obtaining, such as currently copied 24s, then copied
Or progress of erasing is that tri- bit digital of (24s/6s) %=4%(is shown, and default does not show the number after decimal point), this progress is believed
Breath is transmitted to main control module 1.
Implementation two: being divided into 100 parts for hard-disk capacity, and single part of hard-disk capacity after division is grasped divided by corresponding hard disk
Make speed, obtain the handling duration of single part of data, formula are as follows:
The handling duration of single part of data=(hard-disk capacity/100)/hard disk operation speed;
After the handling duration for getting single part of data, counter is set by the handling duration of single part of data by main control module 1,
Interruption system issues interrupt signal by this setting, thus can be gone out according to interrupt signal accumulation calculating current processing into
Degree, such as be accumulated 4 parts, then progress is 4%.Later, this progress msg is transmitted to main control module 1.
Digital display screen is connected to the driving pin of main control chip, and main control module 1 receives above-mentioned copy or progress of erasing
After information, drive command is issued to digital display screen with regard to after, the charactron of digital display screen, which will correspond to, shows corresponding hundred
Divide than data 4%.
Fig. 4 schematically show according to an embodiment of the present invention disk copy progress is converted into it is digitized hard
Disk processing progress output display method flow chart, as shown, this method comprises:
S401: copy function is selected by function button after user's booting.
S402: main control module 1 obtains hard disk information and executes copy command, and copy command is to be pre-stored in main control module 1
Program of file copy.Main control module 1 can generate copy control signal (such as low and high level according to the copy function of the user's selection got
Signal, user select copy function for high level 1)., and copy function is carried out, meanwhile, main control module 1 is controlled also according to copy
The information of the MCU of hard disk is read in instruction, obtains the essential information of hard disk, including sequence number and revolving speed.
S403: hard disk information is carried out the processing generation progress of erasing and exported to digital display controlling module 3 by main control module, passes through number
Aobvious control module 3 drives display module 4 to show.The information that will first be prestored in the essential information of obtained hard disk and memory module 2
It compares to obtain the capacity and copying speed of hard disk to be copied, hard-disk capacity is divided into 100 parts, single part of hard disk after division is held
Amount obtains the handling duration of single part of data, formula divided by corresponding hard disk operation speed are as follows:
The copy duration of single part of data=(hard-disk capacity/100)/disk copy speed;
For example, to acquire the capacity of the hard disk be 600GB by comparing, copying speed is obtained after tabling look-up as 500M/s, then
The copy duration of single part of data can be calculated by first formula are as follows: (600GB/100)/500M/s=12s.
It obtains later and has currently copied data duration, copy progress is obtained by following calculation formula:
Copy progress=(currently having copied the copy duration of the data of the duration of data/mono- part) %
Currently progress has been copied wherein it is possible to obtain by following two mode:
A method of obtaining copy progress are as follows: obtained by the sequence circuit inside main control module 1 and currently copied data
Duration, the cumulative duration for currently having copied data of memory can be carried out by sequence circuit, later by current copy data
Duration by above-mentioned formula carry out operation obtain copy progress.If currently copied 24s, then copying progress is (24s/12s) %
Tri- bit digital of=2%(shows that default does not show the number after decimal point).
Another kind obtains the mode of copy progress: after the copy duration that single part of data have been calculated, main control module 1 presses single part
Counter is arranged in data duration, and interruption system issues interrupt signal by this setting, thus can add up current copy into
Degree, such as be accumulated 2 parts, then progress is 2%.
Later, obtained progress msg is transmitted to main control module 1.The driving that digital display screen is connected to main control chip is drawn
Foot after main control module 1 receives above-mentioned copy progress msg, issues drive command, digital display screen to digital display screen with regard to after
Charactron will correspond to and show corresponding copy percent data 2%.
Fig. 5 schematically show according to an embodiment of the present invention the hard disk progress of erasing is converted into it is digitized hard
Disk processing progress output display method flow chart, as shown, this method comprises:
S501: function of erasing is selected by function button after user's booting.
S502: main control module 1 obtains hard disk information and executes order of erasing, and order of erasing is to be pre-stored in main control module 1
Erasing procedure.Main control module 1 can erase according to the function generation of erasing of the user's selection got and control signal (such as low and high level
Signal, user select to erase function as high level 0), and operation of erasing is carried out, meanwhile, main control module 1 refers to also according to control of erasing
The information for reading the MCU of hard disk is enabled, the essential information of hard disk, including sequence number and revolving speed are obtained.
S503: hard disk information is carried out the processing generation progress of erasing and exported to digital display controlling module 3 by main control module, passes through number
Aobvious control module 3 drives display module 4 to show.The information that will first be prestored in the essential information of obtained hard disk and memory module 2
It compares to obtain the capacity and copying speed of hard disk to be copied, hard-disk capacity is divided into 100 parts, single part of hard disk after division is held
Amount obtains the duration of erasing of single part of data, formula divided by corresponding hard disk operation speed are as follows:
The duration of erasing of single part of data=(hard-disk capacity/100)/hard disk is erased speed;
For example, the capacity of hard disk is 1000GB, copying speed obtains to be calculated for 800M/s by first formula after tabling look-up
The duration of erasing of single part of data out are as follows: (1000GB/100)/800M/s=12.5s.
The duration for obtaining data of currently having erased later, carries out following calculation formula and obtains the progress of erasing:
Erase progress=(durations of erasing of the data of the duration for data of currently having erased/mono- part) %.
Wherein it is possible to obtain progress of currently having erased by following two mode:
A method of obtaining the duration for data of currently having erased: the duration of current data of having erased is by main control module 1
Internal sequence circuit obtains, and the duration of the cumulative data of currently having erased of memory is carried out by sequence circuit, later smears current
The progress of erasing is obtained except the duration of data carries out operation by above-mentioned formula.Such as currently erased 125s, then the progress of erasing is
(125s/12.5s) %=10%(turns to percentage).
Another kind obtains the mode of the duration for data of currently having erased: after the duration of erasing that single part of data have been calculated, by
Counter is arranged by single part of data duration of erasing in main control module 1, and interruption system issues interrupt signal by this setting, thus
Can add up current progress of erasing, such as be accumulated 10 parts, then progress is 10%.
The progress msg of acquisition is transmitted to main control module 1.Digital display screen is connected to the driving pin of main control chip, main
After control module 1 receives above-mentioned progress msg of erasing, drive command, the number of digital display screen are issued to digital display screen with regard to after
Pipe, which will correspond to, shows percent data 10% of erasing accordingly.
Fig. 6 schematically show another embodiment according to the present invention the hard disk progress of erasing is converted into it is digitized
Hard disk processing progress output display method flow chart, in the present embodiment, user is also an option that before carrying out hard disk operation
Operating environment is dealt with, as shown in the figure according to the result of selection, the specific steps are as follows:
S601: according to the switching switch 11 of user setting, the circuit of corresponding mode is connected.
There is the hull outside of the hard disk operation machine of digital display function to be equipped with switching switch 11 for this, after user opens power supply,
Switching switch 11 can be stirred and carry out operating environment selection, when user's selection operation environment is hard disk operation machine, carry out step
S602 to S604 carries out step S605 when user's selection operation environment is computer 10.The specific selection for carrying out operating environment
Process may is that when switch switch 11 toggle it to side when, connection the first memory module 2, the first memory module 2, which prestores, to be copied
Shellfish program or erasing procedure just can read corresponding when main control module 1, which receives user, passes through the operational order of function button
Program of file copy or erasing procedure, realize the respective operations of hard disk drive, the implementation method and S301 of specific steps after this
It is essentially identical to S303.When switching switch 11 toggles it to the other side, the circuit of the second memory module 8, the second storage mould are connected
Block 8 prestores hard disk driver, and pair control module 9 reads hard disk driver, later, will according to the driving of driver from
Main control module 1 reads hard disk essential information and is sent to computer 10, and user can see that on computer 10 hard disk is believed substantially
Breath.
S605: obtain hard disk essential information after, user can on computers 10 operating system according to demand to hard
Disk is operated and (copies or erase, be referred to the prior art hard disk is copied or erased on computers).
Above-described is only some embodiments of the present invention.For those of ordinary skill in the art, not
Under the premise of being detached from the invention design, various modifications and improvements can be made, these belong to protection model of the invention
It encloses.
Claims (15)
1. a kind of hard disk operation machine with digital display function characterized by comprising main control module, digital display controlling module and aobvious
Show module, the main control module is connect with the digital display controlling module, and the digital display controlling module is connect with the display module;
The main control module reads the essential information of the hard disk to be operated of insertion according to the operational order received, and according to institute
The essential information for stating hard disk and the information prestored generate processing progress and show that signal is exported to digital display controlling module;
Digital display controlling module shows that signal driving display module is shown according to processing progress.
2. the hard disk operation machine according to claim 1 with digital display function, which is characterized in that the hard disk operation machine is also
Include the first memory module being connected to the main control module, prestored in first memory module hard disk performance information and
Service speed compares information;
The main control module include pretreatment unit and display signal generation unit,
The pretreatment unit is used to obtain the hard disk performance information and service speed prestored according to the essential information of the hard disk
Information is compareed, is matched, and preprocessed signal is generated according to matching result;
The display signal generation unit, which is used to generate processing progress according to preprocessed signal, shows signal output.
3. the hard disk operation machine according to claim 2 with digital display function, which is characterized in that wherein, the generation
Preprocessed signal includes hard-disk capacity and service speed, and the essential information of the hard disk of the reading includes hard disk serial number and turns
Speed, the hard disk performance information prestored include hard disk serial number, hard disk model and hard-disk capacity, the service speed control letter
Breath includes the rotation speed of hard disk and hard disk operation speed,
The pretreatment unit according in the essential information of hard disk hard disk serial number and the matching of hard disk performance information that prestores
As a result hard-disk capacity is obtained, and compares the matching knot of information with the service speed prestored according to the revolving speed in the essential information of hard disk
Fruit obtains hard disk operation speed.
4. the hard disk operation machine according to claim 3 with digital display function, which is characterized in that the processing progress is shown
Signal is the digital information of percents,
The display signal generation unit includes digital signal transition components and processing progress statistics component, and the digital signal turns
Component is changed for calculating single part of handling duration for generating percents, the processing according to hard-disk capacity and hard disk operation speed
Statistics component is used to generate the processing progress of percents according to the single part of handling duration.
5. the hard disk operation machine according to claim 4 with digital display function, which is characterized in that the processing progress statistics
Component Configuration is to obtain currently processed duration, is calculated according to currently processed duration and the single part of handling duration and generates percentage shape
The processing progress of formula.
6. the hard disk operation machine according to claim 4 with digital display function, which is characterized in that the processing progress statistics
Component Configuration is timer to be arranged according to the single part of handling duration, and count according to the interrupt signal of timer and generate percentage
The processing progress of form.
7. according to claim 1 ~ 6 with the hard disk operation machine of digital display function described in any one, which is characterized in that described aobvious
Show that module is digital display screen.
8. the hard disk operation machine according to claim 7 with digital display function, which is characterized in that further include for switching behaviour
The function button of operation mode, the operation mode include copy function and operation of erasing.
9. according to the described in any item hard disk operation machines with digital display function of claim 3 to 6, which is characterized in that further include
Switching switch, the secondary control module for connecting outer computer, the second memory module for prestoring hard disk driver, described the
Two memory modules are connect with the secondary control module, and the secondary control module is connected to the main control module;
Wherein, the contact of the switching switch switches between first memory module and the second memory module, is used for institute
The power supply circuit for stating the first memory module is connected or connects the power supply circuit of second memory module.
10. the method that the processing progress of hard disk is carried out digital display characterized by comprising
Control signal is generated according to the hard disk operation instruction received;
Corresponding operation is carried out according to be operated hard disk of the control signal of generation to insertion, and obtains the basic letter of hard disk
Breath;
The progress of corresponding operating is converted into digitized hard disk processing progress according to the essential information of hard disk and the information prestored
Output display.
11. according to the method described in claim 10, it is characterized in that, the essential information according to hard disk and the information prestored
The progress of corresponding operating is converted into digitized hard disk processing progress output display to be accomplished by the following way:
Pretreatment is carried out with the information prestored to the hard disk essential information of acquisition and generates preprocessed signal;
Single part of handling duration for generating percents is calculated according to preprocessed signal;
Display is exported according to the processing progress that the single part of handling duration generates percents.
12. according to the method for claim 11, which is characterized in that described to generate percentage according to the single part of handling duration
The processing progress output display of form is accomplished by the following way:
Currently processed duration is obtained, the place for generating percents is calculated according to currently processed duration and the single part of handling duration
The output display of reason progress.
13. according to the method for claim 11, which is characterized in that described to generate percentage according to the single part of handling duration
The processing progress output display of form is accomplished by the following way:
Timer is set according to the single part of handling duration, and is counted according to the interrupt signal of timer and generates percents
Processing progress output display.
14. method according to claim 12 or 13, which is characterized in that wherein, the preprocessed signal of generation includes hard disk
Capacity and service speed, the essential information of the hard disk of the acquisition include hard disk serial number and revolving speed, the method also includes:
Configure hard disk performance information and service speed control information storage, wherein the hard disk performance information of the configuration includes hard
Disk sequence number, hard disk model and hard-disk capacity, service speed control information includes the rotation speed of hard disk and hard disk operation speed,
The hard disk essential information of described pair of acquisition carries out pretreatment generation preprocessed signal with the information prestored
Hard disk is obtained according to the matching result of hard disk serial number and the hard disk performance information prestored in the essential information of hard disk to hold
Amount;
The matching result for compareing information with the service speed prestored according to the revolving speed in the essential information of hard disk obtains hard disk operation
Speed.
15. method according to any one of claims 10 to 13, which is characterized in that the hard disk to be operated of described pair of insertion
Carrying out corresponding operation includes erase operation and copy function, and the copy function passes through the program of file copy prestored and realizes;It is described
Operation of erasing is realized by low-level formatting mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810142263.4A CN108415812B (en) | 2018-02-11 | 2018-02-11 | Hard disk operation machine and its digital display method with digital display function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810142263.4A CN108415812B (en) | 2018-02-11 | 2018-02-11 | Hard disk operation machine and its digital display method with digital display function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108415812A CN108415812A (en) | 2018-08-17 |
CN108415812B true CN108415812B (en) | 2019-07-12 |
Family
ID=63128542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810142263.4A Active CN108415812B (en) | 2018-02-11 | 2018-02-11 | Hard disk operation machine and its digital display method with digital display function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108415812B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446130A (en) * | 2010-10-09 | 2012-05-09 | 上海研祥智能科技有限公司 | Method, system and device for displaying copying process based on bootstrap |
CN102736864A (en) * | 2012-06-19 | 2012-10-17 | 杭州海康威视数字技术股份有限公司 | Method and device for formatting hard disk |
CN106326080A (en) * | 2016-08-22 | 2017-01-11 | 浪潮电子信息产业股份有限公司 | Method for displaying progress bar during file copying under linux system |
CN106919483A (en) * | 2017-02-19 | 2017-07-04 | 郑州云海信息技术有限公司 | A kind of method and system of real-time display dd testing progress |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4962727B2 (en) * | 2007-09-12 | 2012-06-27 | コニカミノルタビジネステクノロジーズ株式会社 | Data storage device |
-
2018
- 2018-02-11 CN CN201810142263.4A patent/CN108415812B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446130A (en) * | 2010-10-09 | 2012-05-09 | 上海研祥智能科技有限公司 | Method, system and device for displaying copying process based on bootstrap |
CN102736864A (en) * | 2012-06-19 | 2012-10-17 | 杭州海康威视数字技术股份有限公司 | Method and device for formatting hard disk |
CN106326080A (en) * | 2016-08-22 | 2017-01-11 | 浪潮电子信息产业股份有限公司 | Method for displaying progress bar during file copying under linux system |
CN106919483A (en) * | 2017-02-19 | 2017-07-04 | 郑州云海信息技术有限公司 | A kind of method and system of real-time display dd testing progress |
Also Published As
Publication number | Publication date |
---|---|
CN108415812A (en) | 2018-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20040088449A1 (en) | USB unit control method and a USB unit controller | |
CN1229921A (en) | Method and apparatus for electronic meter testing | |
JP2010000164A (en) | Game machine | |
JPS6410856B2 (en) | ||
CN101609440A (en) | The method that bus system and bus are recovered from lock-out state | |
CN102331569B (en) | Intelligent interactive detection apparatus for detection on electric energy meter | |
CN108415812B (en) | Hard disk operation machine and its digital display method with digital display function | |
CN202025210U (en) | Stage lighting intelligent control device based on music | |
CN201689161U (en) | Battery performance detector | |
CN203606875U (en) | Digital history recorder of aero-engine | |
WO2024088182A1 (en) | Xr device adapter, display system, and display method | |
CN1135478C (en) | Method of synchronizing communications means in a battery to communications means in an electronic device, an apparatus, and a battery | |
CN1220942C (en) | Test card for computer | |
CN101576393B (en) | Fault detecting device of ship-used log | |
CN103035273B (en) | A kind of device that utilizes knob type digital code switch to switch audio file | |
CN101105766A (en) | Storage device with capacity indication function | |
CN2510902Y (en) | Computer main board failure diagnosis card | |
CN109459945B (en) | Novel multichannel off-line programmable control driver and programming method | |
CN106125456A (en) | Flash lamp and the light compensation method of mobile terminal | |
US20220190612A1 (en) | Multi-Port Charger and Battery Pack Multi-Port Charger Set | |
CN207895270U (en) | A kind of off-line type inertia measurement data acquisition device | |
CN112881902A (en) | Display chip test equipment | |
CN111104361B (en) | Serial port number query method and device, computer equipment and storage medium | |
CN109491818A (en) | A kind of storage device failure positioning device | |
CN107300876B (en) | Multi-path LED management method, management module and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 518107 Room 403, building a, Huaqiang Creative Industry Park, Biyan community, Guangming Street, Guangming District, Shenzhen City, Guangdong Province Patentee after: SHENZHEN KSY Co.,Ltd. Address before: 518107 Guangdong province Shenzhen City Guangming Street South Outer Ring Road exchange Po Industrial Park five building fourth layer Patentee before: SHENZHEN KSY Co.,Ltd. |