Summary of the invention
In view of this, the invention provides a kind of method for supervising and electronic equipment, to solve in prior art after solid state hard disc store data inside a period of time, be easy to occur digital independent failure, thus affect the technical matters that the use sense of user to this solid state hard disc be subject to.
To achieve these goals, this application provides following technical scheme:
A kind of method for supervising, described method comprises:
Obtain and store the data attribute information of solid state hard disc;
According to preset rules, verify whether described data attribute information meets pre-conditioned;
Based on the result, performing predetermined registration operation for not meeting solid state hard disc corresponding to described pre-conditioned data attribute information, described in eliminating, not meeting the impact of described pre-conditioned data attribute information on described solid state hard disc storage data stability.
Preferably, described according to preset rules, verify whether described data attribute information meets pre-conditioned comprising:
When described solid state hard disc is in using state, whether the data attribute information detecting described solid state hard disc is abnormal;
When described solid state hard disc is in idle condition, utilizes the described data attribute information stored, obtain the current time that described solid state hard disc is in described idle condition continuously, and verify whether described current time reaches pre-set threshold value.
Preferably, described based on the result, comprise for the solid state hard disc execution predetermined registration operation not meeting described pre-conditioned data attribute information corresponding:
Based on the result, export information for not meeting solid state hard disc corresponding to described pre-conditioned data attribute information; And/or;
The solid state hard disc not meeting described pre-conditioned data attribute information corresponding is refreshed.
Preferably, the described solid state hard disc to not meeting described pre-conditioned data attribute information corresponding refreshes specifically:
When not meeting the corresponding solid state hard disc of pre-conditioned data attribute information and being in using state, the terminal be connected by current and described solid state hard disc is refreshed described solid state hard disc.
Preferably, described acquisition the data attribute information storing solid state hard disc are specifically:
When described solid state hard disc is in using state, obtains and store the data attribute information of described solid state hard disc.
A kind of electronic equipment, described electronic equipment comprises:
Data transmission device, for storing the data attribute information of solid state hard disc;
Controller, for obtaining the data message of described solid state hard disc, and be sent to described storer and store, according to preset rules, verify whether described data attribute information meets pre-conditioned, and based on the result, performing predetermined registration operation for not meeting solid state hard disc corresponding to pre-conditioned data attribute information, described in removing, not meeting the impact of described pre-conditioned data attribute information on described solid state hard disc data storage stability.
Preferably, described controller is specifically for when described solid state hard disc is in using state, and whether the current data attribute information detecting described solid state hard disc is abnormal; When described solid state hard disc is in idle condition, utilize the described data attribute information that described storer stores, obtain the current time that described solid state hard disc is in described idle condition continuously, and verify whether described current time reaches pre-set threshold value.
Preferably, described controller comprises:
Reminding module, for based on the result, exports information for not meeting solid state hard disc corresponding to described pre-conditioned data attribute information;
And/or described controller is specifically for refreshing the solid state hard disc not meeting described pre-conditioned data attribute information corresponding.
Preferably, described controller is not specifically for when meeting the corresponding solid state hard disc of pre-conditioned data attribute information and being in using state, and the terminal be connected by current and described solid state hard disc is refreshed described solid state hard disc.
Preferably, described controller, specifically for when described solid state hard disc is in using state, obtains the data attribute information of described solid state hard disc, and is sent to described storer and stores.
As can be seen here, compared with prior art, this application provides a kind of method for supervising and electronic equipment, by obtaining the data attribute information storing solid state hard disc, according to preset rules, verify whether this data attribute information meets pre-conditioned, and based on the result, predetermined registration operation is performed for not meeting solid state hard disc corresponding to pre-conditioned data attribute information, eliminate this and do not meet pre-conditioned data attribute information stores data stability impact on solid state hard disc, namely the reading and writing data ability of this solid magnetic disc is improved, extend the life-span that solid magnetic disc stores data, thus avoid this solid state hard disc store data a period of time do not use after, be easy to the situation occurring digital independent failure, and affect the use sense of user to this solid state hard disc and be subject to.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
This application provides a kind of method for supervising and electronic equipment, by obtaining the data attribute information storing solid state hard disc, according to preset rules, verify whether this data attribute information meets pre-conditioned, and based on the result, predetermined registration operation is performed for not meeting solid state hard disc corresponding to pre-conditioned data attribute information, eliminate this and do not meet pre-conditioned data attribute information stores data stability impact on solid state hard disc, namely the reading and writing data ability of this solid magnetic disc is improved, extend the life-span that solid magnetic disc stores data, thus avoid this solid state hard disc store data a period of time do not use after, be easy to the situation occurring digital independent failure, and affect the use sense of user to this solid state hard disc and be subject to.
In order to enable above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
As shown in Figure 1, be the schematic flow sheet of a kind of method for supervising embodiment that the application provides, the method can comprise the following steps:
Step S110: obtain and store the data attribute information of solid state hard disc.
Wherein, solid state hard disc (SolidStateDrive, SSD) be the hard disk made with solid-state electronic storage chip array, it has great advantage compared to conventional hard tool, except read or write speed soon except, because its inside does not have mechanical part, solid state hard disc is made not to be afraid of vibrations, also more powerful to the tolerance of various extreme operating environments.
But due to the characteristic that solid state hard disc flash memory particle is intrinsic, when one section time no power, after namely solid state hard disc a period of time do not use, the transistor grid of flash memory internal is easy to lose its primary characteristic, causes the data failure stored.Visible, after this solid state hard disc and traditional mechanical hard disk leave standstill the several years simultaneously, the possibility that the possibility that this solid state hard disc can not read data can not read data than mechanical hard disk is higher.So, store to solve solid state hard disc the problem of data lost efficacy, the application by monitoring its data attribute information, when finding that this solid state hard disc stores data exception, can process in time abnormal data.
Wherein, this data attribute information to characterize or to verify that this solid state hard disc stores the whether abnormal information of data, and as time data memory, data do not use duration etc., the application is not construed as limiting this.
Optionally, in actual applications, if this solid state hard disc is in using state, namely this solid state hard disc is current is connected with terminal, as with notebook, ipad etc. electronic equipment, this terminal can obtain the data attribute information of this solid state hard disc, and is stored in the local storage of this terminal, so that this terminal utilizes this data attribute information stored to complete subsequent step; Certainly, this data attribute information can also be transferred to the server be connected with this terminal by this terminal, also performs subsequent step accordingly by this data attribute information of this server stores.
As can be seen here, above-mentioned steps S110 can be that the terminal be connected with solid state hard disc performs, also can be that the server realizing communicating with this terminal performs, now, this server is the data attribute information being obtained solid state hard disc by this terminal, and the concrete obtain manner of the application to this data attribute information is not construed as limiting.
Step S120: according to preset rules, verifies whether described data attribute information meets pre-conditioned, if so, performs step S130; If not, step S110 is returned.
In the present embodiment practical application, can according to the current state of solid state hard disc to be monitored, the data attribute information of corresponding mode to this solid state hard disc be adopted to process, to determine whether this solid state hard disc stores fail data.
Concrete, if this solid state hard disc is in using state, namely this solid state hard disc is connected with terminal, and is using this solid state hard disc, now, if above-mentioned steps S110 is performed by this terminal, whether the data attribute information by this terminal direct-detection this solid state hard disc current is abnormal, during as read the data of this certain physical location of solid state hard disc, detect and whether read successfully, if read unsuccessfully, illustrate that the data attribute information of this solid state hard disc is abnormal, namely in this solid state hard disc, store the data of inefficacy.
Certainly, if above-mentioned steps S110 is realized by this terminal by server, now, this server is still by this terminal or other current terminals be connected with this solid state hard disc, whether the current data attribute information detecting this solid state hard disc is abnormal, concrete testing process and said process similar, this enforcement does not repeat them here.
In addition, if this solid state hard disc is in spatiality, namely this solid state hard disc current is not used by any terminal, the terminal of the data attribute information of this solid state hard disc can be stored by the executive agent and server or this locality with above-mentioned steps S110, utilize the data attribute information stored, obtain the current time that this solid state hard disc is in this spatiality continuously, namely this solid state hard disc has so far and how long does not use, afterwards, by verifying whether this current time reaches pre-set threshold value, judge whether there is fail data in this solid state hard disc.
As can be seen here, the preset rules in step S120 and determining based on solid state hard disc current state with pre-conditioned particular content, as described above, no longer repeat at this.It should be noted that, this is pre-conditioned is the condition of the data exception showing this solid state hard disc.
Step S130: perform predetermined registration operation for not meeting solid state hard disc corresponding to described pre-conditioned data attribute information, does not meet the impact of described pre-conditioned data attribute information on described solid state hard disc storage data stability described in eliminating.
Wherein, this predetermined registration operation can be determined according to this solid state hard disc current state, concrete:
In the present embodiment practical application, if perform this method for supervising by server, at this server after above-mentioned steps S120 is verified result, this the result can be sent to any one terminal, if this terminal is connected with the solid state hard disc of this monitoring, this server refreshes this solid state hard disc by this terminal, namely according to concrete the result, fail data in this solid state hard disc is removed, or upgrade the data mode of this solid state hard disc storage, namely the data attribute information of this solid state hard disc is upgraded, to avoid the time on this solid state hard disc do not power on or do not use, interior data is caused to lose efficacy.
If the terminal receiving the result that server sends is not connected with the solid state hard disc of monitoring, exportable information, to inform the monitored results of user to this solid state hard disc, especially when this result shows that the data attribute information of this solid state hard disc does not meet pre-conditioned, can may there is data exception risk by this this solid state hard disc of reminding user in this information, need to use terminal to connect this solid state hard disc as early as possible to process, thus avoid the situation that data failure occurs.
Certainly, when the terminal receiving the result is connected with solid state hard disc, also information can be exported, inform the current monitoring situation to this solid state hard disc of user, the way of output of the application to this information is not construed as limiting, can be export with voice mode output, mode word or export in modes such as buzzer or pilot lamp flickers, the application will not enumerate at this.
In addition, if this monitor mode that the present embodiment provides is realized by terminal, so in this terminal through above-mentioned steps S120, after being verified result, if what this monitored does not meet, solid state hard disc corresponding to pre-conditioned data attribute information is current to be connected with this terminal, and this terminal can directly refresh this solid state hard disc, certainly, now this terminal also can export information, points out this solid state hard disc of user may there is data exception risk; If what this monitored does not meet, solid state hard disc corresponding to pre-conditioned data attribute information is current is in idle condition, namely this solid state hard disc is current is not connected with this terminal, information can be exported for this solid state hard disc, to point out this solid state hard disc of user to there is data exception risk, need to connect this solid state hard disc in time and process.
As can be seen here, after being verified result, no matter accordingly solid state hard disc is current is in using state or is in idle condition, can export corresponding information, point out this solid state hard disc of user to there is data exception risk, thus avoid the situation of this solid state hard disc generation data failure.Wherein, the way of output of the application to this information is not construed as limiting.
In sum, the present embodiment stores the data attribute information of solid state hard disc by obtaining, according to preset rules, verify whether this data attribute information meets pre-conditioned, and based on the result, predetermined registration operation is performed for not meeting solid state hard disc corresponding to pre-conditioned data attribute information, eliminate this and do not meet pre-conditioned data attribute information stores data stability impact on solid state hard disc, namely the reading and writing data ability of this solid magnetic disc is improved, extend the life-span that solid magnetic disc stores data, thus avoid this solid state hard disc store data a period of time do not use after, be easy to the situation occurring digital independent failure, and affect the use sense of user to this solid state hard disc and be subject to.
As shown in Figure 2, be the schematic flow sheet of a kind of method for supervising preferred embodiment that the application provides, the method can comprise:
Step S201: when solid state hard disc is in using state, obtains and stores the data attribute information of described solid state hard disc.
As shown in Figure 3, when solid state hard disc 310 is in using state, it is connected with terminal 320, afterwards, this terminal 320 can obtain the data attribute information of this solid state hard disc 310, also can be the data attribute information being obtained this solid state hard disc 310 by the server 330 communicated to connect with this terminal 320, the application be not construed as limiting this.
Wherein, be not limited to wireless mode as shown in Figure 3 about the communication connection mode between terminal 320 and server 330, specifically can determine according to the concrete communication module of this terminal 320, the present embodiment describes in detail no longer one by one at this.
Step S202: when this solid state hard disc is in using state, whether the data attribute information detecting described solid state hard disc is abnormal, if so, performs step S205; If not, step S201 is returned.
Known in conjunction with above-mentioned analysis, in the present embodiment practical application, the current terminal be connected with this solid state hard disc specifically can be utilized whether extremely to detect the data attribute information of this solid state hard disc.
Certainly, if this method for supervising is realized by server, so, when needing to verify the data attribute information of solid state hard disc, can to any one terminal sending controling instruction, and after this terminal is connected with solid state hard disc, whether control terminal detects the current data attribute information of this solid state hard disc abnormal; Or server completes this detecting step directly to the current terminal be connected with this solid state hard disc, and the application is not construed as limiting this.
Step S203: when described solid state hard disc is in idle condition, utilizes the described data attribute information stored, obtains the current time that described solid state hard disc is in described idle condition continuously.
In the present embodiment, this current time can be the data that store in this solid state hard disc still untapped times so far.
Whether step S204: verify whether this current time reaches pre-set threshold value, if so, perform step S205, return step S201.
Wherein, this pre-set threshold value through test or rule of thumb can be determined, the application is not construed as limiting its concrete numerical value.Under normal circumstances, if the data of solid state hard disc did not use through the time of this pre-set threshold value, that is, this solid state hard disc does not power within the time of this pre-set threshold value, and now its data stored occur fail data possibly.Visible, this pre-set threshold value can be the critical value judging that whether the data of this solid state hard disc are abnormal.
Step S205: if this solid state hard disc is in using state, this solid state hard disc is refreshed.
Wherein, in this case, also can export information, point out user may there is data exception risk, to avoid the situation that data failure occurs.
Step S206: if this solid state hard disc is in idle condition, exports information for this solid state hard disc.
In the present embodiment, may there is data exception for what point out this solid state hard disc of user in this information, need terminal to connect this solid state hard disc and process.
Known in conjunction with above-mentioned analysis, the present embodiment is by when solid state hard disc is in using state, obtain the data attribute information storing solid state hard disc, when needs process this data attribute information, according to the current status of this solid state hard disc, perform corresponding operation, as used this solid state hard disc, can directly refresh it, if do not use this solid state hard disc, exportable information, to point out, user is current to be needed to connect this solid state hard disc and processes, thus improve the reading and writing data ability of this solid magnetic disc, extend the life-span that solid magnetic disc stores data, thus avoid this solid state hard disc store data a period of time do not use after, be easy to the situation occurring digital independent failure, and affect the use sense of user to this solid state hard disc and be subject to.
As shown in Figure 4, be the structural representation of a kind of electronic equipment embodiment that the application provides, this electronic equipment can comprise:
Storer 410, for storing the data attribute information of solid state hard disc.
In conjunction with the description of corresponding part obtaining this data attribute information in said method embodiment, the data attribute information of this solid state hard disc can be obtained by the terminal be connected with this solid state hard disc, and is sent to described storer 410 and stores.Certainly, this solid state hard disc attribute information obtained can also be sent to the server communicating with connection and store by this terminal, and the application is not construed as limiting this.
Controller 420, for obtaining the data message of described solid state hard disc, and be sent to described storer and store, according to preset rules, verify whether described data attribute information meets pre-conditioned, and based on the result, performing predetermined registration operation for not meeting solid state hard disc corresponding to pre-conditioned data attribute information, described in removing, not meeting the impact of described pre-conditioned data attribute information on described solid state hard disc data storage stability.
Optionally, when this solid state hard disc is in using state, whether this controller 420 is abnormal by the current data attribute information of the terminal direct-detection solid state hard disc be connected with this solid state hard disc, if, reminding module by comprising directly exports information, to point out the data exception of this solid state hard disc of user, if now this solid state hard disc is in using state, can also not meet solid state hard disc corresponding to pre-conditioned data attribute information for this, namely the solid state hard disc of data attribute information exception refreshes.
Visible, this controller 420 can comprise reminding module, for based on the result, information is exported for not meeting solid state hard disc corresponding to described pre-conditioned data attribute information, the concrete structure type of the application to this reminding module is not construed as limiting, can be voice module, hummer or pilot lamp etc.
In addition, if when this solid state hard disc is in idle condition, the described data attribute information that this controller 420 can utilize storer 410 to store, obtain the current time that described solid state hard disc is in described idle condition continuously, and verify whether described current time reaches pre-set threshold value, if reach, can according to above-mentioned processing mode, export the information for this solid state hard disc, this solid state hard disc of user is pointed out not power on for a long time, need to connect terminal to process, can also when this solid state hard disc be in using state, directly this solid state hard disc is refreshed, the application does not do concrete restriction to this.
Wherein, when current time reaches pre-set threshold value, the present embodiment can utilize the information of another reminding module output for this solid state hard disc of this controller 420, and above-mentioned information also can be utilized to export this information, and this enforcement is not construed as limiting this.
In the various embodiments described above, if the electronic equipment of the present embodiment is server, when not meeting the corresponding solid state hard disc of pre-conditioned data attribute information and being in using state, the terminal that controller 420 is connected by current and described solid state hard disc refreshes described solid state hard disc; If this electronic equipment is the terminal be connected with this solid state hard disc, now the direct controller by this terminal is refreshed this solid state hard disc.
In sum, the present embodiment stores the data attribute information of solid state hard disc by obtaining, according to preset rules, verify whether this data attribute information meets pre-conditioned, and based on the result, predetermined registration operation is performed for not meeting solid state hard disc corresponding to pre-conditioned data attribute information, eliminate this and do not meet pre-conditioned data attribute information stores data stability impact on solid state hard disc, namely the reading and writing data ability of this solid magnetic disc is improved, extend the life-span that solid magnetic disc stores data, thus avoid this solid state hard disc store data a period of time do not use after, be easy to the situation occurring digital independent failure, and affect the use sense of user to this solid state hard disc and be subject to.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For electronic equipment disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the application.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.