CN112767972A - Vibration detection method and electronic equipment - Google Patents

Vibration detection method and electronic equipment Download PDF

Info

Publication number
CN112767972A
CN112767972A CN202110105008.4A CN202110105008A CN112767972A CN 112767972 A CN112767972 A CN 112767972A CN 202110105008 A CN202110105008 A CN 202110105008A CN 112767972 A CN112767972 A CN 112767972A
Authority
CN
China
Prior art keywords
target area
accessing
time length
memory
vibration
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
CN202110105008.4A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110105008.4A priority Critical patent/CN112767972A/en
Publication of CN112767972A publication Critical patent/CN112767972A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Telephone Function (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses a vibration detection method and electronic equipment, wherein an operation of accessing a target area is executed at the target area of a memory of the electronic equipment, and because vibration can affect the access speed of the electronic equipment, whether the vibration of the environment where the electronic equipment is located exceeds a vibration intensity threshold value is determined based on the time length required by the operation of accessing the target area, so that whether prompt information needs to be output or not is determined, a prompt is provided for a user, and the problem that the memory in the electronic equipment is damaged due to the fact that the environment vibration exceeds the vibration intensity threshold value is avoided.

Description

Vibration detection method and electronic equipment
Technical Field
The present disclosure relates to the field of hard disks, and in particular, to a vibration detection method and an electronic device.
Background
During the use process of the electronic device, the electronic device may be used in a scene of high-frequency micro vibration, such as: electronic equipment with a hard disk in a KTV is in large air vibration for a long time; such as: electronic equipment with a hard disk in a workshop may be in direct contact with vibration source equipment such as a machine tool; such as: the electronic device generates various vibrations during its own use.
And the micro vibration of certain specific frequency has a great influence on the reading and writing speed of the mechanical hard disk. In the process of reading and writing of the mechanical hard disk, the distance between the magnetic head and the disk surface is only in a nanometer level, if the magnetic head is influenced by vibration, the hard disk can be decelerated to carry out self-protection, and the disk surface can be scratched by the magnetic head under severe conditions, so that the physical damage of the hard disk is caused, and the file in the electronic equipment is lost.
Disclosure of Invention
In view of the above, the present application provides a vibration detection method and an electronic device, and the specific scheme is as follows:
a vibration detection method, comprising:
if the environmental information of the electronic equipment meets the target condition, accessing a target area in a memory of the electronic equipment;
detecting whether a time length required for executing the operation of accessing the target area meets a threshold condition;
and if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds a vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
Further, the accessing a target area in a memory of an electronic device includes:
repeatedly reading a fixed-size data packet at a target area in a memory of the electronic device;
and/or the presence of a gas in the gas,
repeatedly writing the fixed-size data packet to a target area in a memory of the electronic device.
Further, the operation of accessing the target area includes: a read operation is performed at the target area,
the detecting whether a time length required for executing the operation of accessing the target area meets a threshold condition includes:
detecting whether a first time length required by executing the read operation each time meets a first threshold range of the standard time length of the read operation;
and/or, the operation of accessing the target area comprises: performing a write operation at the target area, the detecting whether a duration required for performing the operation of accessing the target area satisfies a threshold condition, comprising: and detecting whether a second time length required for executing the write operation each time meets a second threshold range of the standard time length of the write operation.
Further, if the duration required for the operation of accessing the target area does not satisfy the threshold condition, outputting a prompt message, including:
and if the first time length exceeds a first threshold range of the standard time length of the reading operation and/or the second time length exceeds a second threshold range of the standard time length of the writing operation, outputting prompt information.
Further, the accessing a target area in a memory of the electronic device if the environmental information of the electronic device meets the target condition includes:
if the environmental information of the electronic equipment meets the target condition, determining a plurality of test moments, wherein every two test moments are separated by a target time length, and the target time length is longer than the time length required for executing the operation of accessing the target area;
at each of the plurality of test moments, performing an operation to access a target area in a memory of the electronic device.
Further, the operation of accessing the target area includes: performing a read operation at the target area and a write operation at the target area, wherein:
if the environmental information of the electronic device meets the target condition, accessing the target area in the memory of the electronic device includes:
and executing the read operation at a first test time, and executing the write operation at a second test time, wherein the first test time and the second test time are adjacent test times in the plurality of test times, and the first test time is earlier than the second test time.
Further, the meeting of the target condition includes at least one of:
detecting at least one audio information of a first frequency range, the intensity of a sound frequency of the at least one audio information reaching a first threshold;
detecting at least one piece of vibration information in a second frequency range, wherein the intensity of the vibration frequency of the vibration information reaches a second threshold value;
detecting that the placement position of the electronic equipment is changed.
An electronic device, comprising:
a memory for storing a plurality of data to be transmitted,
the processor is used for accessing the target area in the memory when the environmental information of the electronic equipment meets the target condition; detecting whether a time length required for executing the operation of accessing the target area meets a threshold condition; and if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds a vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
Further, the processor accesses a target area in the memory, including:
the processor repeatedly reads fixed-size packets at a target area in the memory;
and/or the presence of a gas in the gas,
the processor repeatedly writes the fixed-size data packet at a target area in the memory.
Further, the processor accessing the target area includes: the processor executes a read operation at the target area, and the processor detects whether a time length required for executing an operation of accessing the target area meets a threshold condition, including:
the processor detects whether a first time length required by executing the read operation each time meets a first threshold range of the standard time length of the read operation;
and/or, the processor accessing the operation of the target area, including: the processor executes a write operation at the target area, and the processor detects whether a time length required for executing an operation of accessing the target area meets a threshold condition, including:
the processor detects whether a second time length required for executing the write operation each time meets a second threshold range of the standard time length of the write operation.
According to the vibration detection method and the electronic device disclosed by the application, if the environmental information of the electronic device meets the target condition, the target area in the memory of the electronic device is accessed, whether the time length required for executing the operation of accessing the target area meets the threshold condition is detected, and if the time length required for executing the operation of accessing the target area does not meet the threshold condition, prompt information is output to prompt that the vibration of the environment of the electronic device exceeds the vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required for executing the operation of accessing the target area is. According to the scheme, the operation of accessing the target area is executed at the target area of the memory of the electronic equipment, and since the vibration can affect the access speed of the electronic equipment, whether the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold value or not is determined based on the time length required by the operation of accessing the target area, whether prompt information needs to be output or not is determined, so that prompt is conducted on a user, and the problem that the memory in the electronic equipment is damaged due to the fact that the environment vibration exceeds the vibration intensity threshold value is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a vibration detection method disclosed in an embodiment of the present application;
FIG. 2 is a flow chart of a vibration detection method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of a vibration detection method disclosed in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application discloses a vibration detection method, a flow chart of which is shown in fig. 1, comprising the following steps:
step S11, if the environmental information of the electronic device meets the target condition, accessing the target area in the memory of the electronic device;
step S12, detecting whether the time length required for executing the operation of accessing the target area meets the threshold value condition;
and step S13, if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
In the using process of the electronic device, if there is vibration in the using environment of the electronic device, the use of the memory in the electronic device may be greatly affected, and the memory may be a hard disk or other types of memories, where the use of the memory is affected, such as: the read-write speed of the memory is slowed, or the hard disk of the electronic equipment vibrates to influence the magnetic head in the read-write process, so that the read-write speed of the hard disk is reduced, the purpose of self-protection is achieved, and when the read-write speed of the hard disk is reduced and the influence of the vibration on the magnetic head cannot be relieved, the magnetic head can scratch the disk surface, so that the hard disk is physically damaged, and files in the hard disk are lost or even the hard disk is damaged.
In order to avoid this situation, when the vibration in the usage environment of the electronic device affects the memory of the electronic device, a prompt message is output to prompt the user, so that the user can improve the current usage environment of the electronic device, for example: the use environment is replaced, or the vibration in the environment is reduced.
When vibration in the environment affects the memory of the electronic device, the prompt information needs to be output, and under what conditions, the vibration in the environment affects the memory of the electronic device.
Specifically, when the environmental information of the electronic device meets a target condition, a target area in the memory of the electronic device is accessed, where the target area may be a specific area in the memory, and it is not limited in which sector and which specific address of the memory the target area is located, as long as the area is fixed in the memory of the electronic device, and the detection of the environmental vibration in any case is performed by performing an access operation on the fixed area.
In addition, because the vibration in the environment of the electronic device affects the read-write efficiency of the memory in the electronic device, the vibration condition in the environment is detected as long as the environmental information where the electronic device is located satisfies the target condition, and then the target condition may be at least a condition related to the vibration condition in the environment.
Accessing a target area in a memory of an electronic device may be: a read operation, a write operation, or both are performed on a target area in a memory of the electronic device.
Vibrations in the environment of the electronic device can affect the memory of the electronic device, including both the speed at which read operations are performed on the memory and the speed at which write operations are performed on the memory. Therefore, the influence of the vibration in the environment on the use of the memory can be determined only by performing the read operation on the target area of the memory, or the influence of the vibration in the environment on the use of the memory can be determined only by performing the write operation on the target area of the memory, or both the read operation and the write operation can be performed to ensure that the detection of the influence of the vibration on the memory can be performed simultaneously through the parameters of the read operation and the parameters of the write operation, and the accuracy of the detection result is ensured.
The parameters of the read operation may be: the speed of the read operation may also be a duration of performing the read operation, and the parameters of the write operation may be: the speed of the write operation may also be a duration of time for which the write operation is performed.
Detecting whether the time length required for executing the operation of accessing the target area meets a threshold condition, if so, indicating that the vibration intensity in the current environment is in an adaptive range of a memory of the electronic equipment, namely, under the condition that the electronic equipment is in the vibration intensity of the current environment, the memory of the electronic equipment can be in a normal running state, namely, the memory can perform read-write operation at a speed in a target speed range, wherein the target speed range is a speed range when the memory normally executes read operation, and/or the memory normally executes write operation;
if it is determined that the time length required for executing the operation of accessing the target area does not satisfy the threshold condition, it indicates that the vibration intensity in the current environment exceeds the adaptive range of the memory of the electronic device, that is, the read-write speed of the memory in the electronic device is affected when the electronic device is under the vibration intensity of the current environment, that is, the memory of the electronic device cannot continue to read and write normally at the normal read-write speed.
Wherein, the adaptation range is as follows: when the vibration intensity of the environment where the electronic equipment is located is within the range, the memory of the electronic equipment can be in a normal operation state. The adaptation range may include vibration intensity thresholds, such as: the vibration intensity threshold value is the minimum value in the adaptation range;
or, the adaptation range may not include a vibration intensity threshold, where the vibration intensity threshold is smaller than the minimum value in the adaptation range, but a difference between the vibration intensity threshold and the minimum value in the adaptation range is smaller than a specific range, and when it is determined that the current environmental vibration reaches the vibration intensity threshold, a prompt message is output to prompt the user that the vibration intensity in the current environment where the electronic device is located reaches a critical value, where the critical value is a value at which the memory of the electronic device cannot be in a normal operation state, that is, if the vibration intensity in the current environment continues to increase, the read-write rate of the memory of the electronic device is further decreased, so that the memory of the electronic device cannot be operated normally.
For example: for a 2.5 inch hard disk, there is the following formula:
y=0.0135e12.812x
wherein x is the vibration intensity value of vibration with the frequency below 500Hz, and y is the time for reading the 4k data packet by the hard disk.
Namely, based on the formula, the influence of the vibration with the vibration frequency below 500Hz on the hard disk can be displayed in a datamation mode, namely, under different vibration intensities, the hard disk has different time for reading data packets with fixed sizes. When it is determined that y does not meet the threshold condition, that is, the time for reading the data packet with the fixed size is too long and exceeds a certain value, it is indicated that the vibration intensity x of the current vibration exceeds the adaptive range of the hard disk, and at this time, the hard disk cannot normally operate.
It should be noted that the degree of influence of environmental vibration on the rate of performing read operation on the memory and performing write operation on the memory is related to the read-write mechanism of the memory itself, and the read-write mechanism may be a write mode, such as: sequential writing or random writing, etc., such as: the memory adopts a sequential writing mode, so that the read operation performed by the memory is more easily influenced by environmental vibration compared with the write operation.
Therefore, if only the read operation on the target area is adopted, or only the time length required by the write operation performed on the target area is adopted for detection, it is necessary to first determine the read-write mechanism of the memory of the electronic device, and determine whether the required time length of the read operation on the target area or the required time length of the write operation performed on the target area is selected for the current memory based on the read-write mechanism, so as to detect whether the threshold condition is met.
Detecting whether the time length required for executing the operation of accessing the target area satisfies a threshold condition may be: and determining whether the time length required for executing the operation of accessing the target area is less than a certain threshold, if so, indicating that the threshold condition is met, and if not, indicating that the threshold condition is not met.
In addition, in the embodiment, whether the time length required for executing the operation of accessing the target area satisfies the threshold condition is adopted to determine whether the time length for executing the operation of accessing the target area is too long, so as to determine whether the vibration intensity in the current environment exceeds the vibration intensity threshold value, that is, whether the memory is influenced by the vibration in the environment.
The speed of the operation of accessing the target area is determined whether to meet the threshold condition, and when the speed of the operation of accessing the target area does not meet the threshold condition, the prompt message is output to determine that the speed of the operation of accessing the target area is too low, so that the normal reading and writing of the memory of the electronic equipment are affected.
When the vibration intensity in the environment is larger, the reading and writing speed of the memory of the electronic device is slower and slower, and the time length required for completing the access operation, i.e. the reading operation or the writing operation, of the memory of the electronic device is longer and longer.
In the vibration detection method disclosed in this embodiment, if the environmental information of the electronic device meets the target condition, a target area in a memory of the electronic device is accessed, whether a time length required for executing an operation of accessing the target area meets the threshold condition is detected, and if the time length required for executing the operation of accessing the target area does not meet the threshold condition, prompt information is output to prompt that the vibration of the environment of the electronic device exceeds a vibration intensity threshold, where the larger the vibration intensity is, the longer the time length required for executing the operation of accessing the target area is. According to the scheme, the operation of accessing the target area is executed at the target area of the memory of the electronic equipment, and since the vibration can affect the access speed of the electronic equipment, whether the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold value or not is determined based on the time length required by the operation of accessing the target area, whether prompt information needs to be output or not is determined, so that prompt is conducted on a user, and the problem that the memory in the electronic equipment is damaged due to the fact that the environment vibration exceeds the vibration intensity threshold value is solved.
The embodiment discloses a vibration detection method, a flow chart of which is shown in fig. 2, and the method comprises the following steps:
step S21, if the environment information of the electronic device meets the target condition, repeatedly reading the fixed size data packet in the target area in the memory of the electronic device, and/or repeatedly writing the fixed size data packet in the target area in the memory of the electronic device;
step S22, detecting whether the time length required for executing the operation of accessing the target area meets the threshold value condition;
and step S23, if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds a vibration threshold, wherein the larger the vibration intensity is, the longer the operation time length of executing the operation of accessing the target area is.
Accessing a target area in a memory of an electronic device may be for performing a read operation or for performing a write operation to the target area of the memory of the electronic device.
If accessing the target area is to perform a read operation on the target area, the following steps may be specifically performed: repeatedly reading a fixed size data packet at a target area in a memory of the electronic device; if accessing the target area is to perform a write operation on the target area, the following steps may be specifically performed: the fixed-size data packet is repeatedly written to the electronic device at the target area in the memory.
The repeated reading and writing are both to ensure that the more accurate time length required by the reading operation and/or the time length required by the writing operation are obtained by averaging a plurality of times under the condition that the number of times of the reading operation and/or the writing operation is large.
That is, whether it is a read operation or a write operation, the objects of the execution action are fixed-size packets, the positions of the execution action are target areas, and the execution action is repeatedly executed. That is, no variable is set in the process of accessing the target area regardless of the read operation or the write operation, and only the environment information where the electronic device is located is uncertain. Therefore, if the time period required for the operation of accessing the target area does not satisfy the threshold condition, it is inevitable that this is due to the environmental information in which the electronic device is located.
Under the condition that the variable is not set, the time length obtained by performing the reading operation and/or the writing operation for multiple times is more valuable relative to the threshold value condition.
Wherein, the threshold condition may be: and obtaining the standard reference time length required by the operation of accessing the target area according to the standard reference value obtained by repeatedly reading the data packet with the fixed size in the memory of the electronic equipment and/or repeatedly writing the data packet with the fixed size in the memory of the electronic equipment.
Specifically, the operation when accessing the target area includes: when a read operation is executed at a target area, detecting whether a time length required for executing an operation of accessing the target area meets a threshold condition, including: detecting whether a first time length required by executing the read operation each time meets a first threshold range of the standard time length of the read operation;
and/or, when the operation of accessing the target area comprises: when a write operation is executed at a target area, detecting whether a time length required for executing an operation of accessing the target area meets a threshold condition, including: whether a second time length required for executing the write operation each time meets a second threshold range of the standard time length of the write operation is detected.
The threshold condition is a read operation standard time length and/or a write operation standard time length, the read operation standard time length and the write operation standard time length are obtained under a standard environment condition, the standard environment condition is that the vibration intensity under the environment condition is a vibration intensity threshold value of the memory capable of normally working, namely, as long as the vibration intensity exceeds the vibration intensity threshold value, the vibration can affect the normal read-write speed of the memory, and if the vibration intensity does not exceed the vibration intensity threshold value, the vibration in the environment can not affect the normal read-write speed of the memory.
Further, if the duration required for the operation of accessing the target area does not satisfy the threshold condition, outputting prompt information, including:
and if the first time length exceeds a first threshold range of the standard time length of the reading operation and/or the second time length exceeds a second threshold range of the standard time length of the writing operation, outputting prompt information.
When the first time length required for executing the read operation on the target area of the memory exceeds the standard time length of the read operation, the prompt information is not output, but a threshold value range is set for the standard time length of the read operation, and the prompt information is output only when the first time length required for executing the read operation on the target area of the memory exceeds the threshold value range, so that when the vibration intensity in the environment has small influence on the speed of the read operation, the user does not need to be prompted, and only when the influence on the speed of the read operation is large, the user is prompted.
Similarly, when the first time period required for performing the write operation on the target area of the memory exceeds the standard time period of the write operation, the hint information is not output, but a threshold range is set for the standard time period of the write operation, and the hint information is output only when the first time period required for performing the write operation on the target area of the memory exceeds the threshold range.
The first duration is different from the second duration, and the standard duration of the read operation is different from the standard duration of the write operation. Because the write operation is more sensitive to vibrations in the environment than the write operation under the same vibration conditions, the time period required to perform the write operation may already exceed the standard time period for the write operation if the time period required to perform the read operation does not exceed the standard time period for the read operation under the same vibration conditions.
If the duration required for performing the read operation on the memory and the duration required for performing the write operation on the memory are detected, only one of the durations exceeds the corresponding threshold range in the detection process, for example: the time length required for executing the write operation on the memory exceeds the standard time length of the write operation, and at the moment, prompt information is also output.
In the vibration detection method disclosed in this embodiment, if the environmental information of the electronic device meets the target condition, a target area in a memory of the electronic device is accessed, whether a time length required for executing an operation of accessing the target area meets the threshold condition is detected, and if the time length required for executing the operation of accessing the target area does not meet the threshold condition, prompt information is output to prompt that the vibration of the environment of the electronic device exceeds a vibration intensity threshold, where the larger the vibration intensity is, the longer the time length required for executing the operation of accessing the target area is. According to the scheme, the operation of accessing the target area is executed at the target area of the memory of the electronic equipment, and since the vibration can affect the access speed of the electronic equipment, whether the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold value or not is determined based on the time length required by the operation of accessing the target area, whether prompt information needs to be output or not is determined, so that prompt is conducted on a user, and the problem that the memory in the electronic equipment is damaged due to the fact that the environment vibration exceeds the vibration intensity threshold value is solved.
The embodiment discloses a vibration detection method, a flow chart of which is shown in fig. 3, and the method comprises the following steps:
step S31, if the environmental information of the electronic equipment meets the target condition, determining a plurality of test moments, wherein every two test moments are separated by a target time length, and the target time length is longer than the time length required for executing the operation of accessing the target area;
step S32, at each of the plurality of test timings, performing an operation of accessing a target area in a memory of the electronic device;
step S33, detecting whether the time length required for executing the operation of accessing the target area meets the threshold value condition;
and step S34, if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
When the environmental information of the electronic device meets the target condition, accessing the target area in the memory of the electronic device may be accessing the target area of the memory multiple times, and an interval time is needed for accessing the target area of the memory each time.
Specifically, a plurality of test moments can be directly determined, and the operation of accessing the target area of the memory is only executed at each of the plurality of test moments, so that the access rate is not influenced by other accesses when the access operation is executed each time, the time required for executing the access operation is more accurate, and whether the vibration in the current environment influences the read-write operation of the memory can be more accurately determined.
And the target duration is separated every two testing moments, and the target duration is longer than the duration required for executing the operation of accessing the target area. Such as: the interval between every two test moments is 600ms, namely the target time length is 600ms, and the time length required for executing the operation of accessing the target area is less than 600ms, such as: 100ms, even if the read-write speed of the memory has been affected by the vibration in the environment, the time period required to perform the operation of accessing the target area is necessarily less than 600ms under the current environmental conditions, such as: 300 ms.
That is, even if the time period required to perform the operation of accessing the target area has been affected by the environmental vibration, it is necessarily less than the target time period.
Further, the operation of accessing the target area includes: executing a read operation at the target area and executing a write operation at the target area, and then accessing the target area in the memory of the electronic device if the environmental information where the electronic device is located satisfies the target condition, including:
and executing the read operation at a first test time, and executing the write operation at a second test time, wherein the first test time and the second test time are adjacent test times in the plurality of test times, and the first test time is earlier than the second test time.
That is, if the operation of accessing the target area includes both the read operation and the write operation, then, when the access operation is performed, since there are a plurality of test timings and the access operation is performed once at each test timing, different access operations can be performed at every two adjacent test timings.
Such as: the first test time executes read operation, the second test time executes write operation, and the third test time executes read operation, and the first test time and the second test time are adjacent test times, and the second test time and the third test time are adjacent test times, so as to ensure that different access operations are executed at each two connected test times.
It should be noted that the first test time may be a first test time of all the multiple test times, that is, the access operation is executed from the first test time, or may be a second test time of the multiple test times, that is, the first test time, the second test time, and the third test time are only used to indicate a sequence of the three test times, and do not indicate positions of the first test time, the second test time, and the third test time.
When there are a plurality of test times and an access operation is performed on a target area of the memory at each test time, a read operation may be performed first or a write operation may be performed first when the access operation is started.
Further, satisfying the target condition includes at least one of:
detecting at least one audio information of a first frequency range, the intensity of sound frequencies of the at least one audio information reaching a first threshold;
detecting at least one piece of vibration information in a second frequency range, wherein the intensity of the vibration frequency of the vibration information reaches a second threshold value;
a change in the placement position of the electronic device is detected.
When detecting that the environment where the electronic device is located has audio, it is necessary to first determine whether the frequency of the audio information is in a first frequency range, and if the frequency is in the first frequency range, it is determined whether the intensity of the sound frequency of the audio information reaches a first threshold, and only the sound with specific frequency and specific intensity can affect the read-write speed of the memory of the electronic device.
Wherein, the first frequency range may be: 20-500 Hz.
Because the vibration in the environment may affect the read-write rate of the memory, when the vibration is detected in the environment, it is necessary to first determine whether the frequency range of the vibration is in the frequency range that can affect the memory, and when the frequency range of the vibration is in the frequency range that can affect the memory, it is further necessary to determine whether the intensity of the vibration reaches a second threshold, and only when the intensity of the vibration reaches the second threshold, the read-write rate of the memory is affected.
Wherein the second frequency range may be the same as the first frequency range, such as: 20-500 Hz.
In addition, the following may be also possible: when the placement position of the electronic equipment is changed, the time length required by the read-write operation of the memory of the electronic equipment is detected, so as to determine whether the vibration or sound in the environment can influence the read-write speed of the memory of the electronic equipment in the environment where the current position of the electronic equipment is located.
In the vibration detection method disclosed in this embodiment, if the environmental information of the electronic device meets the target condition, a target area in a memory of the electronic device is accessed, whether a time length required for executing an operation of accessing the target area meets the threshold condition is detected, and if the time length required for executing the operation of accessing the target area does not meet the threshold condition, prompt information is output to prompt that the vibration of the environment of the electronic device exceeds a vibration intensity threshold, where the larger the vibration intensity is, the longer the time length required for executing the operation of accessing the target area is. According to the scheme, the operation of accessing the target area is executed at the target area of the memory of the electronic equipment, and since the vibration can affect the access speed of the electronic equipment, whether the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold value or not is determined based on the time length required by the operation of accessing the target area, whether prompt information needs to be output or not is determined, so that prompt is conducted on a user, and the problem that the memory in the electronic equipment is damaged due to the fact that the environment vibration exceeds the vibration intensity threshold value is solved.
The embodiment discloses an electronic device, a schematic structural diagram of which is shown in fig. 4, and the electronic device includes:
a memory 41 and a processor 42.
The processor is used for accessing a target area in the memory when the environmental information of the electronic equipment meets a target condition, and detecting whether the time length required for executing the operation of accessing the target area meets a threshold condition; and if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds a vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
Further, the processor accesses a target area in a memory of the electronic device, including:
the processor repeatedly reads a fixed size data packet at a target area in a memory of the electronic device;
and/or the presence of a gas in the gas,
the processor repeatedly writes fixed-size data packets to the memory of the electronic device at the target area.
Further, the processor accessing the target area includes: if the processor detects that the time length required for executing the operation of accessing the target area meets the threshold condition, the method includes:
whether a first time length required by the processor to execute the read operation each time meets a first threshold range of the standard time length of the read operation;
and/or the presence of a gas in the gas,
operations for a processor to access a target area, comprising: if the processor executes the write operation at the target area, the processor detects whether a time length required for executing the operation of accessing the target area meets a threshold condition, including:
the processor detects whether a second time period required for each write operation satisfies a second threshold range of the standard time period for write operations.
Further, if the processor determines that the duration required for the operation of accessing the target area does not satisfy the threshold condition, outputting prompt information, including:
and if the processor determines that the first time length exceeds a first threshold range of the standard time length of the reading operation and/or the second time length exceeds a second threshold range of the standard time length of the writing operation, outputting prompt information.
Further, if the processor determines that the environmental information of the electronic device meets the target condition, accessing the target area in the memory of the electronic device includes:
if the processor determines that the environmental information of the electronic equipment meets the target condition, determining a plurality of test moments, wherein every two test moments are separated by a target time length, and the target time length is longer than the time length required for executing the operation of accessing the target area; at each of the plurality of test moments, an operation is performed to access a target area in a memory of the electronic device.
Further, the processor accessing the target area includes: the processor executes a read operation at the target area and a write operation at the target area, and accesses the target area in the memory of the electronic device if the processor determines that the environmental information where the electronic device is located satisfies the target condition, including:
the processor executes read operation at a first test time and executes write operation at a second test time, wherein the first test time and the second test time are adjacent test times in the plurality of test times, and the first test time is earlier than the second test time.
Further, satisfying the target condition includes at least one of:
detecting at least one audio information of a first frequency range, the intensity of sound frequencies of the at least one audio information reaching a first threshold;
detecting at least one piece of vibration information in a second frequency range, wherein the intensity of the vibration frequency of the vibration information reaches a second threshold value;
a change in the placement position of the electronic device is detected.
The electronic device disclosed in this embodiment is implemented based on the vibration detection method disclosed in the above embodiment, and details are not repeated here.
In the electronic device disclosed in this embodiment, if the environment information of the electronic device satisfies the target condition, a target area in a memory of the electronic device is accessed, whether a time length required for executing an operation of accessing the target area satisfies the threshold condition is detected, and if the time length required for executing the operation of accessing the target area does not satisfy the threshold condition, prompt information is output to prompt that vibration of the environment of the electronic device exceeds a vibration intensity threshold, where the larger the vibration intensity is, the longer the time length required for executing the operation of accessing the target area is. According to the scheme, the operation of accessing the target area is executed at the target area of the memory of the electronic equipment, and since the vibration can affect the access speed of the electronic equipment, whether the vibration of the environment where the electronic equipment is located exceeds the vibration intensity threshold value or not is determined based on the time length required by the operation of accessing the target area, whether prompt information needs to be output or not is determined, so that prompt is conducted on a user, and the problem that the memory in the electronic equipment is damaged due to the fact that the environment vibration exceeds the vibration intensity threshold value is solved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A vibration detection method, comprising:
if the environmental information of the electronic equipment meets the target condition, accessing a target area in a memory of the electronic equipment;
detecting whether a time length required for executing the operation of accessing the target area meets a threshold condition;
and if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds a vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
2. The method of claim 1, wherein the accessing a target area in a memory of an electronic device comprises:
repeatedly reading a fixed-size data packet at a target area in a memory of the electronic device;
and/or the presence of a gas in the gas,
repeatedly writing the fixed-size data packet to a target area in a memory of the electronic device.
3. The method of claim 1, wherein the operation of accessing a target area comprises: a read operation is performed at the target area,
the detecting whether a time length required for executing the operation of accessing the target area meets a threshold condition includes:
detecting whether a first time length required by executing the read operation each time meets a first threshold range of the standard time length of the read operation;
and/or, the operation of accessing the target area comprises: performing a write operation at the target area, the detecting whether a duration required for performing the operation of accessing the target area satisfies a threshold condition, comprising: and detecting whether a second time length required for executing the write operation each time meets a second threshold range of the standard time length of the write operation.
4. The method of claim 3, wherein the outputting a prompt if the duration required for the operation of accessing the target area does not satisfy the threshold condition comprises:
and if the first time length exceeds a first threshold range of the standard time length of the reading operation and/or the second time length exceeds a second threshold range of the standard time length of the writing operation, outputting prompt information.
5. The method of claim 1, wherein the accessing the target area in the memory of the electronic device if the environmental information of the electronic device meets the target condition comprises:
if the environmental information of the electronic equipment meets the target condition, determining a plurality of test moments, wherein every two test moments are separated by a target time length, and the target time length is longer than the time length required for executing the operation of accessing the target area;
at each of the plurality of test moments, performing an operation to access a target area in a memory of the electronic device.
6. The method of claim 5, wherein the operation of accessing a target area comprises: performing a read operation at the target area and a write operation at the target area, wherein:
if the environmental information of the electronic device meets the target condition, accessing the target area in the memory of the electronic device includes:
and executing the read operation at a first test time, and executing the write operation at a second test time, wherein the first test time and the second test time are adjacent test times in the plurality of test times, and the first test time is earlier than the second test time.
7. The method of claim 1, wherein the meeting of the target condition comprises at least one of:
detecting at least one audio information of a first frequency range, the intensity of a sound frequency of the at least one audio information reaching a first threshold;
detecting at least one piece of vibration information in a second frequency range, wherein the intensity of the vibration frequency of the vibration information reaches a second threshold value;
detecting that the placement position of the electronic equipment is changed.
8. An electronic device, comprising:
a memory for storing a plurality of data to be transmitted,
the processor is used for accessing the target area in the memory when the environmental information of the electronic equipment meets the target condition; detecting whether a time length required for executing the operation of accessing the target area meets a threshold condition; and if the time length required by the operation of accessing the target area does not meet the threshold condition, outputting prompt information to prompt that the vibration of the environment where the electronic equipment is located exceeds a vibration intensity threshold, wherein the larger the vibration intensity is, the longer the time length required by the operation of accessing the target area is.
9. The electronic device of claim 8, wherein the processor accessing a target area in memory comprises:
the processor repeatedly reads fixed-size packets at a target area in the memory;
and/or the presence of a gas in the gas,
the processor repeatedly writes the fixed-size data packet at a target area in the memory.
10. The electronic device of claim 8, wherein the processor accessing the target area comprises: the processor executes a read operation at the target area, and the processor detects whether a time length required for executing an operation of accessing the target area meets a threshold condition, including:
the processor detects whether a first time length required by executing the read operation each time meets a first threshold range of the standard time length of the read operation;
and/or, the processor accessing the operation of the target area, including: the processor executes a write operation at the target area, and the processor detects whether a time length required for executing an operation of accessing the target area meets a threshold condition, including:
the processor detects whether a second time length required for executing the write operation each time meets a second threshold range of the standard time length of the write operation.
CN202110105008.4A 2021-01-26 2021-01-26 Vibration detection method and electronic equipment Pending CN112767972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110105008.4A CN112767972A (en) 2021-01-26 2021-01-26 Vibration detection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110105008.4A CN112767972A (en) 2021-01-26 2021-01-26 Vibration detection method and electronic equipment

Publications (1)

Publication Number Publication Date
CN112767972A true CN112767972A (en) 2021-05-07

Family

ID=75705793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110105008.4A Pending CN112767972A (en) 2021-01-26 2021-01-26 Vibration detection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112767972A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09251702A (en) * 1996-03-13 1997-09-22 Toshiba Corp Disk reproducing device and its access control method
CN1462447A (en) * 2001-05-11 2003-12-17 松下电器产业株式会社 Disk memory device, disk memory device defect detecting method and program recording medium
JP2006330855A (en) * 2005-05-23 2006-12-07 Fuji Xerox Co Ltd Information processor, information processing method and program
CN101996671A (en) * 2010-11-25 2011-03-30 深圳市研祥通讯终端技术有限公司 Disc protection method, apparatus and device
CN108932114A (en) * 2018-07-09 2018-12-04 郑州云海信息技术有限公司 A kind of method and device of data storage
CN109115436A (en) * 2018-07-06 2019-01-01 郑州天迈科技股份有限公司 A kind of disk damper damping effect testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09251702A (en) * 1996-03-13 1997-09-22 Toshiba Corp Disk reproducing device and its access control method
CN1462447A (en) * 2001-05-11 2003-12-17 松下电器产业株式会社 Disk memory device, disk memory device defect detecting method and program recording medium
JP2006330855A (en) * 2005-05-23 2006-12-07 Fuji Xerox Co Ltd Information processor, information processing method and program
CN101996671A (en) * 2010-11-25 2011-03-30 深圳市研祥通讯终端技术有限公司 Disc protection method, apparatus and device
CN109115436A (en) * 2018-07-06 2019-01-01 郑州天迈科技股份有限公司 A kind of disk damper damping effect testing method
CN108932114A (en) * 2018-07-09 2018-12-04 郑州云海信息技术有限公司 A kind of method and device of data storage

Similar Documents

Publication Publication Date Title
CN105654967B (en) The methods, devices and systems powered on based on noise measuring spin torque oscillator
US10802720B2 (en) Mode-detection method for a storage device
CN111767000B (en) Method, device, equipment and storage medium for inhibiting vibration of electronic equipment shell
CN108571997A (en) A kind of method and apparatus that measured point is steadily contacted in detection probe
US7559003B2 (en) Semiconductor memory test apparatus
CN112767972A (en) Vibration detection method and electronic equipment
JP4408193B2 (en) Semiconductor memory device and method for testing semiconductor memory device
CN1956081B (en) Electronic apparatus and electronic apparatus control method
JP2008059636A (en) Controller and storage device
JP2010160724A (en) System, method and program for controlling memory and recording medium
US8254050B2 (en) System and method for determining vibration of at least one hard disk drive
KR101300036B1 (en) Memory test apparatus calibrating setting value of memory and method thereof
TWI547144B (en) Testing system and method using same
CN109783259A (en) Slow disk detection method and device, storage medium
CN106325471B (en) Device and control method
CN109065094B (en) Method and system for obtaining mass production frequency of double-rate synchronous dynamic random access memory
JP2012173200A (en) Abnormality state detection method and electronic apparatus
JP2007226942A (en) Testing storage system electronics using loopback
CN101169975A (en) Memory test method
TWI797494B (en) Electronic device and control method thereof
US9449589B2 (en) Touch detecting device, electronic musical instrument, touch detecting method and storage medium
JP7408026B1 (en) How to install stop devices, stop systems, and sound detection devices
JP2008514899A (en) Program, recording medium, test apparatus, and test method
JP5505176B2 (en) Magnetic disk device, performance evaluation method and performance evaluation program
CN103824575B (en) Defect grader based on harmonic wave ratio

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210507