CN113591165A - Hard disk read-write protection method and device, computer equipment and storage medium - Google Patents

Hard disk read-write protection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113591165A
CN113591165A CN202110917500.1A CN202110917500A CN113591165A CN 113591165 A CN113591165 A CN 113591165A CN 202110917500 A CN202110917500 A CN 202110917500A CN 113591165 A CN113591165 A CN 113591165A
Authority
CN
China
Prior art keywords
vibration
protection
magnetic disk
preset
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110917500.1A
Other languages
Chinese (zh)
Inventor
王军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110917500.1A priority Critical patent/CN113591165A/en
Publication of CN113591165A publication Critical patent/CN113591165A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/80Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in storage media based on magnetic or optical technology, e.g. disks with sectors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B33/00Constructional parts, details or accessories not provided for in the other groups of this subclass
    • G11B33/02Cabinets; Cases; Stands; Disposition of apparatus therein or thereon
    • G11B33/08Insulation or absorption of undesired vibrations or sounds

Abstract

The invention relates to the field of host equipment, and discloses a hard disk read-write protection method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: detecting an environmental vibration signal of the hard magnetic disk in a specified time period through a sensor, wherein the sensor is arranged in a specified range of the hard magnetic disk and generates position change along with the position change of the hard magnetic disk; processing the environmental vibration signal according to a preset analytical algorithm to generate a vibration analysis result; and when the vibration analysis result meets the preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal. The hard magnetic disk read-write protection method provided by the invention can reduce the damage of vibration to the hard magnetic disk.

Description

Hard disk read-write protection method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of host devices, and in particular, to a hard disk read/write protection method and apparatus, a computer device, and a storage medium.
Background
Mobile computing equipment, such as notebook computers and the like, brings great convenience to life and work of people. At the present stage, there are still a large number of mobile computing devices that use hard disks as storage media. Although hard disks have the advantages of large storage capacity and low price, they are sensitive to vibration. Large vibrations easily cause damage to the hard disk.
In particular, hard disks are damaged more frequently for some mobile computing devices that require long-term use in a vibrating environment.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a hard disk read/write protection method, apparatus, computer device and storage medium to reduce damage to the hard disk caused by vibration.
A hard disk read-write protection method comprises the following steps:
detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
processing the environment vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and when the vibration analysis result meets a preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
A hard disk read-write protection device, comprising:
the signal detection module is used for detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
the signal analysis module is used for processing the environmental vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and the vibration protection module is used for sending a protection control signal when the vibration analysis result meets a preset protection condition so as to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
A computer device comprises a memory, a processor and computer readable instructions stored in the memory and executable on the processor, wherein the processor executes the computer readable instructions to realize the hard disk read-write protection method.
One or more readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform a method of hard disk read-write protection as described above.
According to the hard disk read-write protection method, the hard disk read-write protection device, the computer equipment and the storage medium, the sensor is used for detecting the environmental vibration signal of the hard disk in a specified time period; the sensor is arranged in the designated range of the hard magnetic disk, and changes in position along with the change in position of the hard magnetic disk, and here, the collected environmental vibration signal can be used for judging the vibration of the hard magnetic disk. And processing the environment vibration signal according to a preset analytical algorithm to generate a vibration analysis result, wherein the obtained vibration analysis result can be used for determining the vibration amplitude of the hard disk. And when the vibration analysis result meets a preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal, wherein the hard magnetic disk is protected by changing the working state of the hard magnetic disk. The hard magnetic disk read-write protection method provided by the invention can reduce the damage of vibration to the hard magnetic disk.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an application environment of a hard disk read/write protection method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a hard disk read/write protection method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of peak locations at different vibration amplitudes in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a hard disk according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a hard disk read/write protection apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The hard disk read-write protection method provided in this embodiment can be applied to the application environment shown in fig. 1, where a client communicates with a server. The client includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a hard disk read/write protection method is provided, which is described by taking the method as an example for being applied to the client in fig. 1, and includes the following steps S10-S30.
S10, detecting the environment vibration signal of the hard magnetic disk in a specified time period through a sensor; the sensor is disposed within a specified range of the hard disk and changes in position as the position of the hard disk changes.
Understandably, hard disks, also known as hard disks, are short for hard disk storage. A hard disk is a disk memory that utilizes magnetic recording technology to provide data access on a disk having a magnetic surface that rotates at high speeds. The sensor refers to a sensor for detecting an environmental vibration signal. Here, the sensor may refer to a light sensor, and the ambient vibration signal may be a light signal. When the hard magnetic disk is severely vibrated or falls into water, the refractive index of the peripheral medium is changed, and the optical sensor can detect the change to obtain an environmental vibration signal.
The sensor can be disposed within a specified range of the hard disk to facilitate accurate detection of the environmental vibration signal of the hard disk. The specified range can be set according to actual needs. For example, the specified range may be within 10 cm. The position of the sensor changes with the position of the hard disk, and the position of the sensor changes. In the first case, the sensor may be mounted on the motherboard of the mobile computer device together with the hard disk, the motherboard vibrating, the sensor vibrating together with the hard disk. The other is that the sensor is arranged in a movable device, a movable part is arranged in the movable device, the movable device and the hard disk vibrate together, and the movable part vibrates along with the movable part. In the second case, a movable member having a vibration characteristic correlated with that of a head arm of a hard disk is provided in addition to the optical sensor in the movable device. When the sensor detects the vibration of the movable member, the vibration of the hard disk can be estimated based on the vibration.
The specified time period can be set according to actual needs. In an example, the specified time period may be 5 s.
And S20, processing the environment vibration signal according to a preset analysis algorithm to generate a vibration analysis result.
Understandably, since the environmental vibration signal is an optical signal, specifically, a resonance peak wavelength, it needs to be converted into a vibration analysis result that can reflect the vibration magnitude. In the preset analysis algorithm, when the hard disk vibrates violently or falls into water, the refractive index of the peripheral medium changes, and the optical sensor detects the shift of the wavelength of the resonance peak. Wherein, the change quantity (delta lambda) of the resonance peak wavelength and the change quantity (delta n) of the refractive index of the external medium have the following relationship:
Figure BDA0003206183280000051
wherein N iseffIs the effective refractive index of the mode in the waveguide, n is the refractive index of the external environment substance, and λ is the wavelength of the incident light. The change quantity (delta n) of the refractive index of the external substance can be measured by measuring the change quantity (delta lambda) of the resonance peak wavelength,the change information of the refractive index, the concentration and the like of the measured substance is obtained, and then the vibration analysis result can be obtained. In one example, the vibration analysis results may be expressed in terms of peak wavelength shift rates.
And S30, when the vibration analysis result meets the preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
Understandably, the preset protection condition can be set according to actual needs. When the preset protection condition is not met, the vibration of the hard magnetic disk is very small, and the normal work of the hard magnetic disk cannot be influenced. When the preset protection condition is met, the hard magnetic disk has larger vibration, and the hard magnetic disk is easily damaged. The protection control signal is a signal for suspending the process of the hard disk read/write operation temporarily. When the hard magnetic disk is in the vibration protection state, the hard magnetic disk stops all the read-write operations to the hard magnetic disk data. At this time, the head arm of the hard disk is located outside the disk read/write area, and even if the hard disk vibrates violently, the head will not damage the disk area.
In steps S10-S30, detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in the designated range of the hard magnetic disk, and changes in position along with the change in position of the hard magnetic disk, and here, the collected environmental vibration signal can be used for judging the vibration of the hard magnetic disk. And processing the environment vibration signal according to a preset analytical algorithm to generate a vibration analysis result, wherein the obtained vibration analysis result can be used for determining the vibration amplitude of the hard disk. And when the vibration analysis result meets a preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal, wherein the hard magnetic disk is protected by changing the working state of the hard magnetic disk. The hard disk read-write protection method provided by the embodiment can reduce the damage of vibration to the hard disk.
Optionally, the sensor includes an optical waveguide sensor, and the ambient vibration signal includes a plurality of resonance peak wavelengths;
step S10, detecting the environment vibration signal of the hard magnetic disk in the appointed time period by the sensor; the sensor is arranged in a specified range of the hard magnetic disk, and changes in position along with the change in position of the hard magnetic disk, and comprises:
s101, sending an electrifying signal to the optical waveguide sensor; the optical waveguide sensor is arranged at the outer edge of the hard magnetic disk or arranged inside the movable device;
s102, enabling the optical waveguide sensor to be in a working state according to the electrifying signal;
s103, when the optical waveguide sensor is in a working state, acquiring the resonant peak wavelength of incident light through the optical waveguide sensor according to a preset sampling frequency.
Understandably, the sensor may be an optical waveguide sensor. An optical waveguide sensor is a sensor that can measure the wavelength of the resonant peak of incident light. The optical waveguide sensor can be disposed inside the mobile computing device at an outer edge of the hard disk (in one example, meaning that the distance from the outer edge of the hard disk is less than a specified distance, which can be 2 cm). The ambient vibration signal includes a number of resonant peak wavelengths. Specifically, the plurality of resonant peak wavelengths refers to a group of data collected at a preset sampling frequency within a specified time period. For example, if the specified time period is 5s and the preset sampling frequency is 50Hz, 250 resonance peak wavelengths can be obtained.
An energizing signal can be sent to the optical waveguide sensor to place the optical waveguide sensor in an operational state. At this time, the optical waveguide sensor acquires the resonance peak wavelength of the incident light at a preset sampling frequency. The preset sampling frequency can be set according to actual needs, and can be 50 Hz. If the vibration of the hard disk does not need to be monitored, the energizing signal is not sent to the optical waveguide sensor, and the optical waveguide sensor is in a dormant state. The incident light may be a light beam that is irradiated on the optical waveguide sensor after the ambient light passes through the incident light path.
The embodiment installs the optical waveguide sensor inside portable computing device, can not additionally increase portable computing device's volume, also can not occupy portable computing device's usb interface, and the transformation cost is low, can effectively reduce the damage of vibration to the hard disk.
Optionally, the sensor includes an optical waveguide sensor, and the ambient vibration signal includes a plurality of resonance peak wavelengths;
step S10, detecting the environment vibration signal of the hard magnetic disk in the appointed time period by the sensor; the sensor is arranged in a specified range of the hard magnetic disk, and changes in position along with the change in position of the hard magnetic disk, and comprises:
s104, sending an electrifying signal to an optical waveguide sensor arranged in the movable device;
s105, enabling the optical waveguide sensor to be in a working state according to the electrifying signal;
and S106, when the optical waveguide sensor is in a working state, acquiring the resonant peak wavelength of the incident light through the optical waveguide sensor according to a preset sampling frequency.
Understandably, the sensor may be an optical waveguide sensor. An optical waveguide sensor is a sensor that can measure the wavelength of the resonant peak of incident light. The optical waveguide sensor may be arranged inside the movable device. The ambient vibration signal includes a number of resonant peak wavelengths. Specifically, the plurality of resonant peak wavelengths refers to a group of data collected at a preset sampling frequency within a specified time period. For example, if the specified time period is 5s and the preset sampling frequency is 50Hz, 250 resonance peak wavelengths can be obtained.
The removable device may be provided with an interface (e.g., usb (Universal Serial Bus)), which may send a power-on signal to the optical waveguide sensor to enable the optical waveguide sensor to be in an operational state when the interface is connected to the interface of the mobile computing device. At this time, the optical waveguide sensor acquires the resonance peak wavelength of the incident light at a preset sampling frequency. The preset sampling frequency can be set according to actual needs, and can be 50 Hz. If the vibration of the hard disk does not need to be monitored, the energizing signal is not sent to the optical waveguide sensor, and the optical waveguide sensor is in a dormant state. The incident light may be a light beam that is irradiated on the optical waveguide sensor after the ambient light passes through the incident light path.
This embodiment sets up the optical waveguide sensor inside mobile device, is connected with portable computing equipment through the usb interface, has very big convenience and flexibility, and plug-and-play can effectively reduce the damage of vibration to the hard disk.
Optionally, step S105, namely, the making the optical waveguide sensor in the working state according to the power-on signal, further includes:
s1051, acquiring the intensity of incident light detected by the optical waveguide sensor;
s1052, judging whether the incident light intensity is within a preset light intensity range;
s1053, if the incident light intensity is out of the preset light intensity range, generating a light path adjusting parameter according to the incident light intensity;
s1054, adjusting the incident light path of the optical waveguide sensor according to the light path adjusting parameters so that the incident light intensity is within a preset light intensity range.
Understandably, the optical waveguide sensor may be provided with an adjustable incident light path. The incident light path is used for adjusting the incident light intensity of the optical waveguide sensor. The incident light path can be provided with optical devices such as a reflection grating, a miniature convergent lens and the like. When the incident light intensity of the optical waveguide sensor is within the preset light intensity range, the optical waveguide sensor has higher sensitivity. Therefore, it is necessary to control the intensity of the incident light of the optical waveguide sensor to be within a preset light intensity range. The preset light intensity range can be set according to actual needs.
If the intensity of the incident light is outside the preset light intensity range, the light path adjusting parameters can be generated according to the intensity of the incident light. For example, if the intensity of the incident light is smaller than the minimum value of the preset light intensity range, a light path adjusting parameter for increasing the light intensity can be generated, so that the intensity of the incident light is increased; if the intensity of the incident light is greater than the maximum value of the preset light intensity range, light path adjusting parameters for reducing the light intensity can be generated, so that the intensity of the incident light is reduced.
The embodiment adjusts the incident light path of the optical waveguide sensor through the light path adjusting parameters, so that the incident light intensity is within a preset light intensity range, and the sensitivity of the optical waveguide sensor is ensured.
Optionally, in step S1052, after the determining whether the light intensity data is within the set light intensity range, the method further includes:
s1055, if the intensity of the incident light is in the set light intensity range, the optical waveguide sensor is judged to enter the working state.
Understandably, if the intensity of the incident light is within the set light intensity range, the optical waveguide sensor is judged to enter the working state, and at the moment, the optical waveguide sensor can measure the environmental vibration signal with high accuracy.
Optionally, the environment vibration signal includes a plurality of resonance peak wavelengths, and the vibration analysis result includes a vibration amplitude;
step S20, namely, the processing the environmental vibration signal according to a preset analytic algorithm to generate a vibration analysis result, including:
s201, determining a peak wavelength shift rate according to the resonance peak wavelength;
s202, searching in a preset wavelength deviation rate-amplitude ratio comparison table according to the peak wavelength deviation rate, and obtaining the vibration amplitude corresponding to the peak wavelength deviation rate.
Understandably, if at time t (t)>1) Resonance peak wavelength of λtThe resonance peak wavelength at the time t-1 is lambdat-1Then the peak wavelength shift rate can be expressed as:
Figure BDA0003206183280000101
wherein, Δ δ is the peak wavelength shift rate, and T is the time difference between the time T and the time T-1, which is the preset sampling frequency.
The preset wavelength shift ratio-amplitude ratio look-up table may be data obtained based on actual experiments. In the preset wavelength shift rate-amplitude ratio comparison table, a plurality of sets of corresponding relations between the wavelength shift rates and the amplitude ratios are stored. Here, the amplitude ratio may be a ratio between the current amplitude and the maximum amplitude. As shown in fig. 3, the larger the amplitude ratio, the larger the shift amount of the wavelength (the shift of the peak to the right).
Optionally, as shown in fig. 4, the vibration analysis result includes a vibration amplitude, and the protection control signal includes a read/write suspension signal; when a magnetic head 03 of the hard magnetic disk 01 is positioned outside a magnetic disk read-write area, the hard magnetic disk 01 is in a vibration protection state;
step S30, namely, when the vibration analysis result satisfies a preset protection condition, sending a protection control signal to make the hard disk 01 in a vibration protection state according to the protection control signal, including:
s301, when the vibration amplitude is larger than or equal to a preset amplitude threshold value, judging that the vibration analysis result meets a preset protection condition, and triggering a protection control signal;
s302, sending the protection control signal to a hard disk 01 controller, so that the hard disk 01 controller controls a magnetic head 03 to leave a magnetic disk read-write area through a magnetic head arm 02.
Understandably, the preset amplitude threshold can be set according to actual needs, such as 5%. The protection control signal is a signal for suspending the process of the read/write operation of the hard disk 01 temporarily and finally. Thus, upon receiving the protection control signal, the hard disk 01 controller lifts the head arm 02, and causes the head arm 02 to rotate with the head 03, thereby moving the head 03 away from the disk read/write area (disk area in fig. 4).
When the hard disk 01 is in the vibration protection state, the hard disk 01 stops all reading and writing operations of the hard disk 01 data. At this time, the head arm 02 of the hard disk 01 is located outside the disk read/write area, and the magnetic head 03 does not damage the disk read/write area even if the hard disk 01 vibrates violently.
Optionally, after step S30, that is, after the vibration analysis result meets a preset protection condition, sending a protection control signal to make the hard magnetic disk in a vibration protection state according to the protection control signal, including:
s40, obtaining the read-write mode of the hard magnetic disk, and determining the protection period of the hard magnetic disk according to the read-write mode;
and S50, when the duration time that the vibration analysis result does not meet the preset protection condition is longer than the protection period, sending a protection releasing signal to release the vibration protection state of the hard magnetic disk according to the protection releasing signal.
Understandably, the read-write mode and the protection period can be set according to actual needs. For example, the read/write modes that can be divided based on the operation type include: office mode, entertainment mode, etc.; the read-write modes which can be divided based on the road surface type comprise: mountain road mode, country road mode, etc. The protection period can be set according to the vibration characteristics in a certain read-write mode. In some examples, the guard period may be set to 10s to 100 s. One read-write mode corresponds to at least one protection period. In some cases, in a certain read-write mode, there are multiple protection cycles corresponding to the environment variables. Here, the environment variables include, but are not limited to, vehicle speed, geographical location. And if the current environment variable cannot be acquired, using the default protection period in the read-write mode.
The duration that the vibration analysis result does not satisfy the preset protection condition is longer than the protection period, that is, the duration that the vibration amplitude of the hard disk is smaller than the preset amplitude threshold is longer than the protection period, which indicates that the current environment vibration of the hard disk is smaller. Here, a release protection signal is issued, and the hard disk is released from the vibration protection state in response to the release protection signal. After the hard disk is released from the vibration protection state, the read-write operation can be performed.
The embodiment is based on the protection period set by the read-write mode, combines the vibration characteristic under the read-write mode, can realize intelligent opening and closing of the vibration protection state, and meets the requirements of hard disk data reading and writing while ensuring the safety of the hard disk.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In one embodiment, a hard disk read/write protection device is provided, which corresponds to the hard disk read/write protection method in the above embodiment one to one. As shown in fig. 5, the hard disk read/write protection device includes a signal detection module 10, a signal analysis module 20, and a vibration protection module 30. The functional modules are explained in detail as follows:
the signal detection module 10 is used for detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
the signal analysis module 20 is configured to process the environmental vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and the vibration protection module 30 is configured to send a protection control signal when the vibration analysis result meets a preset protection condition, so as to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
Optionally, the sensor includes an optical waveguide sensor, and the ambient vibration signal includes a plurality of resonance peak wavelengths;
the signal detection module 10 includes:
a first energization unit for transmitting an energization signal to the optical waveguide sensor; the optical waveguide sensor is arranged at the outer edge of the hard magnetic disk or arranged inside the movable device;
the working state entering unit is used for enabling the optical waveguide sensor to be in a working state according to the electrifying signal;
and the wavelength detection unit is used for acquiring the resonance peak wavelength of the incident light through the optical waveguide sensor according to a preset sampling frequency when the optical waveguide sensor is in a working state.
Optionally, the sensor includes an optical waveguide sensor, and the ambient vibration signal includes a plurality of resonance peak wavelengths;
the signal detection module 10 includes:
a second energization unit for transmitting an energization signal to an optical waveguide sensor provided inside the movable device;
the working state entering unit is used for enabling the optical waveguide sensor to be in a working state according to the electrifying signal;
and the wavelength detection unit is used for acquiring the resonance peak wavelength of the incident light through the optical waveguide sensor according to a preset sampling frequency when the optical waveguide sensor is in a working state.
Optionally, the unit for entering the working state further includes:
an incident light intensity detection unit for acquiring an incident light intensity detected by the optical waveguide sensor;
the light intensity range comparison unit is used for judging whether the incident light intensity is within a preset light intensity range or not;
the adjusting parameter determining unit is used for generating a light path adjusting parameter according to the incident light intensity if the incident light intensity is out of a preset light intensity range;
and the incident light intensity adjusting unit is used for adjusting the incident light path of the optical waveguide sensor according to the light path adjusting parameters so as to enable the incident light intensity to be within a preset light intensity range.
Optionally, the unit for entering the working state further includes:
and the working state entering determining unit is used for determining that the optical waveguide sensor enters a working state if the incident light intensity is within a set light intensity range.
Optionally, the environment vibration signal includes a plurality of resonance peak wavelengths, and the vibration analysis result includes a vibration amplitude;
the signal analysis module 20 includes:
a peak wavelength shift rate determining unit for determining a peak wavelength shift rate according to the resonance peak wavelength;
and the vibration amplitude determining unit is used for searching in a preset wavelength deviation rate-amplitude ratio comparison table according to the peak wavelength deviation rate to obtain the vibration amplitude corresponding to the peak wavelength deviation rate.
Optionally, the vibration analysis result includes a vibration amplitude, and the protection control signal includes a read-write suspension signal; when the magnetic head of the hard magnetic disk is positioned outside the magnetic disk read-write area, the hard magnetic disk is in a vibration protection state;
the vibration protection module 30 includes:
the trigger protection control signal unit is used for judging that the vibration analysis result meets a preset protection condition and triggering a protection control signal when the vibration amplitude is larger than or equal to a preset amplitude threshold value;
and the hard disk protection unit is used for sending the protection control signal to a hard disk controller so that the hard disk controller controls the magnetic head to leave the magnetic disk read-write area through the magnetic head arm.
Optionally, the hard disk read-write protection device further includes:
a protection period determining module, configured to obtain a read-write mode of the hard magnetic disk, and determine a protection period of the hard magnetic disk according to the read-write mode;
and the protection state removing module is used for sending a protection removing signal when the duration time that the vibration analysis result does not meet the preset protection condition is longer than the protection period so as to remove the vibration protection state of the hard disk according to the protection removing signal.
For the specific definition of the hard disk read/write protection apparatus, reference may be made to the above definition of the hard disk read/write protection method, which is not described herein again. All or part of each module in the hard disk read-write protection device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a readable storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions. The internal memory provides an environment for the operating system and execution of computer-readable instructions in the readable storage medium. The network interface of the computer device is used for communicating with an external server through a network connection. The computer readable instructions, when executed by a processor, implement a hard disk read-write protection method. The readable storage media provided by the present embodiment include nonvolatile readable storage media and volatile readable storage media.
In one embodiment, a computer device is provided, comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor when executing the computer readable instructions implementing the steps of:
detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
processing the environment vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and when the vibration analysis result meets a preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided, the readable storage media provided by the embodiments including non-volatile readable storage media and volatile readable storage media. The readable storage medium has stored thereon computer readable instructions which, when executed by one or more processors, perform the steps of:
detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
processing the environment vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and when the vibration analysis result meets a preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to computer readable instructions, which may be stored in a non-volatile readable storage medium or a volatile readable storage medium, and when executed, the computer readable instructions may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A hard disk read-write protection method is characterized by comprising the following steps:
detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
processing the environment vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and when the vibration analysis result meets a preset protection condition, sending a protection control signal to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
2. The method of claim 1, wherein the sensor comprises an optical waveguide sensor, and the environmental vibration signal comprises a plurality of resonant peak wavelengths;
the detecting of the environmental vibration signal of the hard disk in a specified time period through the sensor includes:
sending a power-on signal to the optical waveguide sensor; the optical waveguide sensor is arranged at the outer edge of the hard magnetic disk or arranged inside the movable device;
enabling the optical waveguide sensor to be in a working state according to the electrifying signal;
and when the optical waveguide sensor is in a working state, acquiring the resonance peak wavelength of incident light through the optical waveguide sensor according to a preset sampling frequency.
3. The hard disk read-write protection method of claim 2, wherein the enabling the optical waveguide sensor to be in an operating state according to the power-on signal further comprises:
acquiring the intensity of incident light detected by the optical waveguide sensor;
judging whether the intensity of the incident light is within a preset light intensity range;
if the incident light intensity is out of the preset light intensity range, generating a light path adjusting parameter according to the incident light intensity;
and adjusting the incident light path of the optical waveguide sensor according to the light path adjusting parameters so as to enable the incident light intensity to be within a preset light intensity range.
4. A hard disk read-write protection method according to claim 3, wherein said determining whether said light intensity data is within a set light intensity range further comprises:
and if the intensity of the incident light is within a set light intensity range, judging that the optical waveguide sensor enters a working state.
5. The hard disk read-write protection method of claim 1, wherein the environmental vibration signal includes a number of resonance peak wavelengths, and the vibration analysis result includes a vibration amplitude;
the processing the environmental vibration signal according to a preset analysis algorithm to generate a vibration analysis result comprises:
determining a peak wavelength shift rate according to the resonance peak wavelength;
and searching in a preset wavelength deviation rate-amplitude ratio comparison table according to the peak wavelength deviation rate to obtain the vibration amplitude corresponding to the peak wavelength deviation rate.
6. The hard disk read-write protection method of claim 1, wherein the vibration analysis result includes vibration amplitude, and the protection control signal includes a suspend read-write signal; when the magnetic head of the hard magnetic disk is positioned outside the magnetic disk read-write area, the hard magnetic disk is in a vibration protection state;
when the vibration analysis result meets a preset protection condition, a protection control signal is sent out to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal, and the method comprises the following steps:
when the vibration amplitude is larger than or equal to a preset amplitude threshold value, judging that the vibration analysis result meets a preset protection condition, and triggering a protection control signal;
and sending the protection control signal to a hard disk controller so that the hard disk controller controls the magnetic head to leave the magnetic disk read-write area through a magnetic head arm.
7. The hard disk read-write protection method of claim 1, wherein said sending out a protection control signal when the vibration analysis result satisfies a preset protection condition to make the hard disk in a vibration protection state according to the protection control signal comprises:
acquiring a read-write mode of the hard magnetic disk, and determining a protection period of the hard magnetic disk according to the read-write mode;
and when the duration time that the vibration analysis result does not meet the preset protection condition is longer than the protection period, sending a protection releasing signal to enable the hard magnetic disk to release the vibration protection state according to the protection releasing signal.
8. A hard disk read-write protection device, comprising:
the signal detection module is used for detecting an environmental vibration signal of the hard disk in a specified time period through a sensor; the sensor is arranged in a specified range of the hard magnetic disk and changes position along with the position change of the hard magnetic disk;
the signal analysis module is used for processing the environmental vibration signal according to a preset analysis algorithm to generate a vibration analysis result;
and the vibration protection module is used for sending a protection control signal when the vibration analysis result meets a preset protection condition so as to enable the hard magnetic disk to be in a vibration protection state according to the protection control signal.
9. A computer device comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions implements the hard disk read-write protection method as recited in any one of claims 1 to 7.
10. One or more readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the method of hard disk read-write protection of any of claims 1 to 7.
CN202110917500.1A 2021-08-11 2021-08-11 Hard disk read-write protection method and device, computer equipment and storage medium Pending CN113591165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110917500.1A CN113591165A (en) 2021-08-11 2021-08-11 Hard disk read-write protection method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110917500.1A CN113591165A (en) 2021-08-11 2021-08-11 Hard disk read-write protection method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113591165A true CN113591165A (en) 2021-11-02

Family

ID=78257039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110917500.1A Pending CN113591165A (en) 2021-08-11 2021-08-11 Hard disk read-write protection method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113591165A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941131A (en) * 2005-10-02 2007-04-04 北京华旗资讯数码科技有限公司 Portable electronic device with hard disk as storage medium
CN110542474A (en) * 2019-09-04 2019-12-06 中国科学院上海高等研究院 Method, system, medium, and apparatus for detecting vibration signal of device
CN110554091A (en) * 2018-05-30 2019-12-10 株式会社斯巴鲁 optical inspection system, optical inspection method, and aircraft structure
CN112530475A (en) * 2020-12-11 2021-03-19 杭州鸿泉物联网技术股份有限公司 Mechanical hard disk shockproof device, method and system, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941131A (en) * 2005-10-02 2007-04-04 北京华旗资讯数码科技有限公司 Portable electronic device with hard disk as storage medium
CN110554091A (en) * 2018-05-30 2019-12-10 株式会社斯巴鲁 optical inspection system, optical inspection method, and aircraft structure
CN110542474A (en) * 2019-09-04 2019-12-06 中国科学院上海高等研究院 Method, system, medium, and apparatus for detecting vibration signal of device
CN112530475A (en) * 2020-12-11 2021-03-19 杭州鸿泉物联网技术股份有限公司 Mechanical hard disk shockproof device, method and system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6751560B2 (en) Delay trimming of control NAND flash memory in computing devices
JP6407363B2 (en) Management of sensory information on user devices
CN103262087B (en) With the irrelevant malware detection based on system action of signing
US20180039779A1 (en) Predictive Behavioral Analysis for Malware Detection
US20170024135A1 (en) Memory Hierarchy Monitoring Systems and Methods
KR102324336B1 (en) User device and integrity verification method for the same
US20230135295A1 (en) Electronic device which prefetches application and method therefor
KR102536266B1 (en) Method for memory leak detection and electronic device thereof
KR20180054726A (en) Detection of software attacks on processes in computing devices
CN108984234B (en) Calling prompt method for mobile terminal and camera device
KR102223414B1 (en) Sensor power management
CN105323375A (en) Determination of device body location
CN108509348B (en) System aging test method and mobile terminal
KR20200100404A (en) Electronic device for adaptive power management
KR102346815B1 (en) A system to mitigate against adversarial samples for ml and ai models
CN109933986B (en) Malicious code detection method and device
US9756141B2 (en) Media content consumption analytics
CN113591165A (en) Hard disk read-write protection method and device, computer equipment and storage medium
CN109600272B (en) Crawler detection method and device
US11429178B2 (en) Electronic device and method for determining operating frequency of processor
CN110955580A (en) Shell temperature acquisition method and device, storage medium and electronic equipment
CN115294564A (en) Method, device, medium and electronic equipment for detecting identification effectiveness of point cloud data
KR101625643B1 (en) Apparatus and method for detecting malicious code based on volatile virtual file
US20220334658A1 (en) Stylus haptic component arming and power consumption
KR102648539B1 (en) Electronic device and operating method thereof

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20211102