CN113672461A - Working mode control method and device of memory, terminal and storage medium - Google Patents

Working mode control method and device of memory, terminal and storage medium Download PDF

Info

Publication number
CN113672461A
CN113672461A CN202110955663.9A CN202110955663A CN113672461A CN 113672461 A CN113672461 A CN 113672461A CN 202110955663 A CN202110955663 A CN 202110955663A CN 113672461 A CN113672461 A CN 113672461A
Authority
CN
China
Prior art keywords
working mode
memory
preset
mode
preset initial
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
CN202110955663.9A
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.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation 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 China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202110955663.9A priority Critical patent/CN113672461A/en
Publication of CN113672461A publication Critical patent/CN113672461A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses a working mode control method, a device, a terminal and a storage medium of a memory, wherein the method comprises the following steps: responding to a memory starting instruction, and controlling the memory to operate in a preset initial working mode; periodically acquiring the temperature of the memory chip; if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode; according to the method and the device, in the running process of the memory, the working mode of the memory is adjusted based on the temperature change of the memory chip, and the stability of the storage performance of the memory is further improved.

Description

Working mode control method and device of memory, terminal and storage medium
Technical Field
The present application relates to the field of memory technologies, and in particular, to a method and an apparatus for controlling a working mode of a memory, a terminal, and a storage medium.
Background
An EMMC (Embedded multimedia Media Card) chip is a mainstream external memory of an Embedded ARM system, and is mainly used for storing images and configuration files and for starting and working the ARM system.
The existing mainstream operating system, such as Android or Linux, supports the EMMC chip driver of the kernel, and the EMMC driver reinitializes the EMMC after encountering a transmission error and restores to the current working mode, wherein the transmission error is caused by an excessively high temperature with a high probability.
The driving of the existing EMMC chip does not take active protection measures when the temperature rises into consideration, and only after transmission errors occur, the EMMC chip controller is triggered to reinitialize; the particular EMMC chip driver operating in a certain operating mode reinitializes and reverts to this operating mode after a transmission error caused by high temperature, which has two problems: 1) when a transmission error occurs, recovery is started, the transmission error transmits a block of error data, and the probability can cause the exception of the operating system; 2) the original working mode is restored again, if the original mode is the high-speed mode, when the temperature is continuously increased, transmission errors can be generated again; this design makes the memory of the EMMC chip less stable.
Disclosure of Invention
In order to solve the technical problems, the application discloses a method for controlling the working mode of a memory, which adjusts the working mode of the memory based on the temperature change of a memory chip in the operation process of the memory so as to improve the stability of the storage performance of the memory.
In order to achieve the above object, the present application provides a method for controlling an operating mode of a memory, the method comprising:
responding to a memory starting instruction, and controlling the memory to operate in a preset initial working mode;
periodically acquiring the temperature of the memory chip;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode.
In some embodiments, if the current temperature of the memory chip meets a preset temperature condition and the preset initial operating mode meets a preset operating mode condition, the method further includes:
judging whether the current temperature of the memory chip is greater than a first threshold and less than a second threshold;
if so, judging that the current temperature of the memory chip meets a preset temperature condition;
under the condition that the current temperature of the memory chip meets a preset temperature condition, judging whether the preset initial working mode meets a first preset working mode or not;
and if the preset initial working mode meets a first preset working mode, judging that the preset initial working mode meets a working mode preset condition.
In some embodiments, if the current temperature of the memory chip meets a preset temperature condition and the preset initial operating mode meets a preset operating mode condition, the method further includes:
judging whether the current temperature of the memory chip is greater than or equal to a third threshold value or not;
if so, judging that the current temperature of the memory chip meets a preset temperature condition;
under the condition that the current temperature of the memory chip meets a preset temperature condition, judging whether the preset initial working mode meets a second preset working mode or not;
and if the preset initial working mode meets a second preset working mode, judging that the preset initial working mode meets the preset working mode condition.
In some embodiments, the switching the operation mode of the memory from the preset initial operation mode to the target operation mode further includes:
judging whether the current temperature of the memory chip is less than or equal to a fourth threshold value;
if so, acquiring a current working mode of the memory chip corresponding to the current temperature;
judging whether the current working mode is consistent with the preset initial working mode or not;
if not, the current working mode of the memory is switched to the preset initial working mode.
In some embodiments, the switching the operation mode of the memory from the preset initial operation mode to the target operation mode further includes:
acquiring the current read-write state of the memory;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, judging whether the current reading-writing state is an idle state or not;
and if so, executing the step of switching the working mode of the memory from the preset initial working mode to the target working mode.
In some embodiments, further comprising:
and if the current temperature of the memory chip does not meet the preset temperature condition, controlling the memory to operate in a preset initial working mode.
The present application also provides an apparatus for controlling an operation mode of a memory, the apparatus including:
the first control module is used for responding to a memory starting instruction and controlling the memory to operate in a preset initial working mode;
the acquisition module is used for periodically acquiring the temperature of the memory chip;
and the second control module is used for switching the working mode of the memory from the preset initial working mode to a target working mode if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode.
In some embodiments, further comprising:
further comprising:
the second judgment module is used for judging whether the current temperature of the memory chip is less than or equal to a fourth threshold value or not;
the mode acquisition module is used for acquiring the current working mode of the memory chip corresponding to the current temperature if the current temperature of the memory chip is less than or equal to a fourth threshold;
the third judging module is used for judging whether the current working mode is consistent with the preset initial working mode or not;
and the third control module is used for switching the current working mode of the memory to the preset initial working mode if the current working mode is inconsistent with the preset initial working mode.
The application also provides a terminal for controlling the working mode of the memory, the terminal comprises a processor and a memory, at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to realize the method for controlling the working mode of the memory.
The present application also provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the method for controlling the operating mode of the memory as described above.
The embodiment of the application has the following beneficial effects:
according to the working mode control method of the memory, in the operation process of the memory, the working mode of the memory is adjusted based on the temperature change of the memory chip, and therefore the stability of the storage performance of the memory is improved.
Drawings
In order to more clearly illustrate the operation mode control method, apparatus, terminal and storage medium of the memory described in the present application, the following briefly introduces the drawings required for the embodiments, and obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for controlling an operating mode of a memory according to an embodiment of the present disclosure;
fig. 2 is a first flowchart illustrating a memory determination method according to an embodiment of the present disclosure;
fig. 3 is a second flowchart illustrating a memory determination method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart illustrating a method for determining whether to switch operating modes of a memory according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another memory operation mode control device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a memory operation mode control terminal according to 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.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
An EMMC (Embedded multimedia Media Card) chip is a mainstream external memory of an Embedded ARM system, and is mainly used for storing images and configuration files and for starting and working the ARM system.
Specifically, an EMMC controller in a main Controller (CPU) is used for controlling an EMMC chip and realizing a data read-write function, the EMMC controller needs driving software to control, and the control method of the working mode of the memory in the application can be an improvement on the driving software of the EMMC controller.
The EMMC working mode comprises the following modes: legacy SDR (traditional single rate mode), High Speed SDR (High Speed single rate mode), DDR52 (double rate 52MHz mode), HS200 (High Speed 200 megabytes per second mode), HS400 (High Speed 400 megabytes per second mode);
specifically, each mode specifically includes the following data:
(1) legacy SDR mode: at this time, the clock frequency is 26MHz, the maximum read-write rate is 26MB/s, and the read-write data is only sampled at the rising edge of the working clock.
(2) High Speed SDR mode: at this time, the clock frequency is 52MHz, the maximum read-write rate is 52MB/s, and the read-write data is only sampled at the rising edge of the working clock.
(3) DDR52 mode: at this time, the clock frequency is 52MHz, the maximum read/write rate is 104MB/s, and the read/write data are sampled at the rising edge and the falling edge of the working clock simultaneously.
(4) HS200 mode: at this time, the clock frequency is 200MHz, the maximum read-write rate is 200MB/s, and the read-write data is only sampled at the rising edge of the working clock.
(5) HS400 mode: at this time, the clock frequency is 200MHz, the maximum read-write rate is 400MB/s, and the read-write data are sampled at the rising edge and the falling edge of the working clock simultaneously.
Specifically, the EMMC has five working modes, from Legacy SDR mode, High Speed SDR mode, DDR52 mode, HS200 mode to HS400 mode, where the performance increases and the stability decreases sequentially, for example, Legacy SDR has the highest stability and the lowest performance; the HS400 mode has the lowest stability but the highest performance. And the read and write speeds are sequentially changed from the low speed mode to the high speed mode.
In addition, the higher the read/write rate, the worse the stability performance of the operating mode with increasing temperature.
The method for controlling the operating mode of the memory based on the above system is described below with reference to fig. 1, and may be applied to a vehicle; the method can be applied to the control of the work mode of the EMMC on the vehicle during running.
Referring to fig. 1, which is a schematic flow chart illustrating a method for controlling an operation mode of a memory according to an embodiment of the present application, the present specification provides the method steps according to the embodiment or the flow chart, but is based on the conventional method; or the inventive process may include additional or fewer steps. The step sequence recited in the embodiment is only one of the execution sequence of many steps, and does not represent the only execution sequence, and the operation mode control method of the memory can be executed according to the method sequence shown in the embodiment or the attached drawings. Specifically, as shown in fig. 1, the method includes:
s101, responding to a memory starting instruction, and controlling the memory to operate in a preset initial working mode;
it should be noted that, in the embodiment of the present application, the memory may be an embedded memory, and specifically, may be an EMMC chip.
In the embodiment of the present application, the preset initial operating mode may be any one of a Legacy SDR mode, a High Speed SDR mode, a DDR52 mode, an HS200 mode to an HS400 mode;
specifically, in order to ensure the read-write speed, the HS200 mode to the HS400 mode may be set as an initial operating mode during initial setting;
in the embodiment of the application, based on the fact that the stability of the HS200 mode or the HS400 mode is low, the HS200 mode or the HS400 mode needs to be calibrated when the HS200 mode or the HS400 mode is set as the initial working mode;
specifically, taking the HS200 mode as an example, the calibration method may be:
acquiring a clock line and a data line in an HS200 mode;
performing synchronous processing on the clock line and the data line;
specifically, the offset of the sampling time of the data line relative to the clock line may be selected to obtain an offset result;
based on the offset result, calibrating, and carrying out synchronous processing on the data line and the clock line;
if the temperature of the memory chip is continuously increased, the accuracy of the calibration result is affected, and the accuracy of the sampling time is affected.
S103, periodically acquiring the temperature of the memory chip;
in the embodiment of the present application, the preset detection period may be 2 s; that is, the temperature of the memory chip is acquired every 2 s.
S105, if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode.
In the embodiment of the present application, the preset temperature condition may include that the current temperature of the memory chip is greater than a first threshold and less than a second threshold or the current temperature of the memory chip is greater than or equal to a third threshold; wherein the second threshold and the third threshold may be equal; the third threshold is greater than the first threshold;
in the embodiment of the application, the memory always operates in the preset initial working mode under the condition that the current temperature of the memory chip is less than or equal to the first threshold.
The preset conditions of the working modes may include that a preset initial working mode meets a first preset working mode or that the preset initial working mode meets the first preset working mode and meets a second preset working mode.
In this embodiment of the present application, if the current temperature of the memory chip meets a preset temperature condition and the preset initial operating mode meets a preset operating mode condition, the operating mode of the memory is switched from the preset initial operating mode to a target operating mode, and a determination method for the memory is further included before the operating mode of the memory is switched, specifically, the determination method for the temperature of the memory and the determination method for the initial operating mode are included;
specifically, as shown in fig. 2, a first flowchart of a memory determination method provided in the embodiment of the present application is shown, which specifically includes the following steps:
s201, periodically acquiring the temperature of the memory chip;
s203, judging whether the current temperature of the memory chip is greater than a first threshold value and less than a second threshold value;
in the present embodiment, the first threshold may be 85 °, the second threshold may be 95 °; specifically, it can be determined whether the current temperature of the memory chip is greater than 85 ° and less than 95 °;
s205, if yes, judging that the current temperature of the memory chip meets a preset temperature condition;
in the embodiment of the present application, if the current temperature of the memory chip is greater than the first threshold and less than the second threshold, it is determined that the current temperature of the memory chip meets the preset temperature condition.
S207, under the condition that the current temperature of the memory chip meets a preset temperature condition, judging whether the preset initial working mode meets a first preset working mode or not;
in the embodiment of the present application, the first preset operation mode may include, but is not limited to, the current operation mode of the memory being the HS200 mode or the HS400 mode;
that is, under the condition that the current temperature of the memory chip is greater than the first threshold and less than the second threshold, judging whether the preset initial working mode is the HS200 mode or the HS400 mode;
s209, if the preset initial working mode satisfies a first preset working mode, determining that the preset initial working mode satisfies a preset working mode condition.
In the embodiment of the application, under the condition that the preset initial working mode is the HS200 mode or the HS400 mode, the preset initial working mode is judged to meet the preset working mode condition;
in the present embodiment, the target operation mode may include, but is not limited to, DDR52 mode;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode; the method comprises the following steps:
if the current temperature of the memory chip is greater than a first threshold and less than a second threshold and a preset initial working mode meets a first preset working mode, switching the working mode of the memory from the preset initial working mode (HS200 mode or HS400 mode) to a DDR52 mode; the read-write speed of the DDR52 mode is lower than that of the HS200 mode or the HS400 mode.
Specifically, as shown in fig. 3, a second flowchart of the memory determination method provided in the embodiment of the present application is shown, which is specifically as follows:
s301, periodically acquiring the temperature of the memory chip;
s303, judging whether the current temperature of the memory chip is greater than or equal to a third threshold value;
in the embodiment of the present application, the third threshold may be equal to the second threshold, and specifically, the third threshold may be 95 °; namely judging whether the current temperature of the memory chip is greater than or equal to 95 degrees;
s305, if yes, judging that the current temperature of the memory chip meets a preset temperature condition;
in the embodiment of the application, if the current temperature of the memory chip is greater than or equal to 95 degrees, the current temperature of the memory chip is judged to meet a preset temperature condition;
s307, under the condition that the current temperature of the memory chip meets a preset temperature condition, judging whether the preset initial working mode meets a second preset working mode or not;
in the embodiment of the present application, the second preset operation mode may include, but is not limited to, that the current operation mode of the memory is the HS200 mode, the HS400 mode, or the DDR52 mode;
that is, under the condition that the current temperature of the memory chip is greater than or equal to the third threshold, whether the preset initial working mode is the HS200 mode, the HS400 mode or the DDR52 mode is judged;
s309, if the preset initial working mode meets a second preset working mode, judging that the preset initial working mode meets a working mode preset condition;
in the embodiment of the present application, when the preset initial operating mode is the HS200 mode, the HS400 mode, or the DDR52 mode, it is determined that the preset initial operating mode satisfies the operating mode preset condition.
In the embodiment of the present application, the target operation mode may include, but is not limited to, a High Speed SDR mode;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode; the method comprises the following steps:
if the current temperature of the memory chip is greater than or equal to a third threshold value and a preset initial working mode meets a second preset working mode, switching the working mode of the memory from the preset initial working mode (HS200 mode, HS400 mode or DDR52 mode) to a High Speed SDR mode; the read-write Speed of the High Speed SDR mode is lower than that of the HS200 mode, the HS400 mode or the DDR52 mode.
According to the method and the device, when the temperature of the memory chip of the EMMC rises, the current working mode of the EMMC is switched to the target working mode with the lower read-write speed than the current working mode, and the stability of the EMMC under the high-temperature condition can be effectively improved.
In this embodiment of the present application, the switching the working mode of the memory from the preset initial working mode to the target working mode further includes:
acquiring the current read-write state of the memory;
in the embodiment of the present application, the current read-write state may include a read-write state or an idle state;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, judging whether the current reading-writing state is an idle state or not;
and if so, executing the step of switching the working mode of the memory from the preset initial working mode to the target working mode.
In the embodiment of the present application, when the current read-write state is the idle state, the step of switching the working mode of the memory from the preset initial working mode to the target working mode is performed.
In another embodiment of the present application, if the current temperature of the memory chip does not satisfy the preset temperature condition, the memory is controlled to operate in a preset initial operating mode.
Specifically, if the current temperature of the memory chip is less than or equal to the first threshold, the memory may be controlled to operate in a preset initial operating mode.
In the embodiment of the application, after the working mode of the memory is switched to the target working mode, the memory operates in the target working mode until the temperature of the memory is reduced to be less than or equal to a preset fourth threshold value;
specifically, the operating mode of the memory is switched from the target operating mode to the preset initial operating mode when the temperature of the memory is less than or equal to the preset fourth threshold.
Specifically, as shown in fig. 4, it is a schematic flow chart of a method for determining whether to switch the working mode of the memory according to the embodiment of the present application; specifically, the following is:
s401, periodically acquiring the temperature of the memory chip;
s403, judging whether the current temperature of the memory chip is less than or equal to a fourth threshold value;
in the embodiment of the present application, the fourth threshold may be 70 °, and it is determined whether the current temperature of the memory chip is 70 ° or less.
S405, if yes, acquiring a current working mode of the memory chip corresponding to the current temperature;
in this embodiment of the present application, the current working mode may include, but is not limited to, a preset initial working mode, or a target working mode after the initial working mode is switched in the above embodiment;
s407, judging whether the current working mode is consistent with the preset initial working mode;
s409, if not, switching the current working mode of the memory to the preset initial working mode;
in the embodiment of the application, if the current working mode is inconsistent with the preset initial working mode, the current working mode of the memory is switched to the preset initial working mode.
In an embodiment of the present application, after the current operating mode of the memory is switched to the preset initial operating mode, if the temperature of the memory is increased again, the following steps are repeated:
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode; thereby improving the stability of the performance of the memory.
As can be seen from the embodiments of the method, the device, the system, and the terminal for controlling the working mode of the memory provided by the present application, in response to a memory start instruction, the embodiment of the present application controls the memory to operate in a preset initial working mode; periodically acquiring the temperature of the memory chip; if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode; by utilizing the technical scheme provided by the embodiment of the application, the working mode of the memory is adjusted based on the temperature change of the memory chip in the operation process of the memory, so that the stability of the storage performance of the memory is improved.
An embodiment of the present application further provides a device for controlling a working mode of a memory, as shown in fig. 5, which is a schematic structural diagram of the device for controlling a working mode of a memory provided in the embodiment of the present application; specifically, the device comprises:
a first control module 510, configured to control the memory to operate in a preset initial operating mode in response to a memory start instruction;
an obtaining module 520, configured to periodically obtain a temperature of the memory chip;
a second control module 530, configured to switch the working mode of the memory from the preset initial working mode to a target working mode if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, where a read-write rate of the target working mode is lower than a read-write rate of the preset initial working mode.
In the embodiment of the present application, the method further includes:
the first judgment module is used for judging whether the current temperature of the memory chip is greater than a first threshold and less than a second threshold;
the first judgment module is used for judging that the current temperature of the memory chip meets a preset temperature condition if the current temperature of the memory chip is greater than a first threshold and smaller than a second threshold;
the second judgment module is used for judging whether the preset initial working mode meets a first preset working mode or not under the condition that the current temperature of the memory chip meets a preset temperature condition;
and the second judgment module is used for judging that the preset initial working mode meets the preset condition of the working mode if the preset initial working mode meets the first preset working mode.
In the embodiment of the present application, the method further includes:
the third judging module is used for judging whether the current temperature of the memory chip is greater than or equal to a third threshold value or not;
the third judging module is used for judging that the current temperature of the memory chip meets a preset temperature condition if the current temperature of the memory chip is greater than or equal to a third threshold value;
the fourth judging module is used for judging whether the preset initial working mode meets a second preset working mode or not under the condition that the current temperature of the memory chip meets a preset temperature condition;
and the fourth judging module is used for judging that the preset initial working mode meets the preset working mode condition if the preset initial working mode meets a second preset working mode.
In the embodiment of the present application, the method further includes:
the fifth judging module is used for judging whether the current temperature of the memory chip is less than or equal to a fourth threshold value or not;
the mode acquisition module is used for acquiring the current working mode of the memory chip corresponding to the current temperature if the current temperature of the memory chip is less than or equal to a fourth threshold;
a sixth judging module, configured to judge whether the current working mode is consistent with the preset initial working mode;
and the third control module is used for switching the current working mode of the memory to the preset initial working mode if the current working mode is inconsistent with the preset initial working mode.
In the embodiment of the present application, the method further includes:
the state acquisition module is used for acquiring the current read-write state of the memory;
a seventh determining module, configured to determine whether the current read-write state is an idle state if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a preset working mode condition;
and the execution module is used for executing the step of switching the working mode of the memory from the preset initial working mode to the target working mode if the current read-write state is the idle state.
In the embodiment of the present application, the method further includes:
and the fourth control module is used for controlling the memory to operate in a preset initial working mode if the current temperature of the memory chip does not meet the preset temperature condition.
The embodiment of the application provides a terminal for controlling the working mode of a memory, the terminal comprises a processor and a memory, at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to realize the method for controlling the working mode of the memory according to the embodiment of the method.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
Fig. 6 is a schematic structural diagram of an operation mode control terminal of a memory according to an embodiment of the present disclosure, where an internal configuration of the operation mode control terminal of the memory may include, but is not limited to: the processor, the network interface and the memory in the operation mode control terminal of the memory may be connected by a bus or in other manners, and fig. 6 shown in the embodiment of the present specification is exemplified by being connected by a bus.
The processor (or CPU) is a computing core and a control core of the working mode control terminal of the memory. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The Memory (Memory) is a Memory device in the operation mode control terminal of the Memory, and is used for storing programs and data. It is understood that the memory herein may be a high-speed RAM storage device, or may be a non-volatile storage device (non-volatile memory), such as at least one magnetic disk storage device; optionally, at least one memory device located remotely from the processor. The memory provides a storage space storing an operating system of the operation mode control terminal of the memory, and may include but is not limited to: windows system (an operating system), Linux (an operating system), etc., which are not limited in this application; also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. In this embodiment of the present application, the processor loads and executes one or more instructions stored in the memory to implement the method for controlling the operating mode of the memory provided in the foregoing method embodiment.
Embodiments of the present application further provide a computer-readable storage medium, which may be disposed in an operation mode control terminal of a memory to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing an operation mode control method of the memory in the method embodiments, where the at least one instruction, the at least one program, the code set, or the set of instructions may be loaded and executed by a processor of an electronic device to implement the operation mode control method of the memory provided in the above method embodiments.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations described above.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above disclosure is only one preferred embodiment of the present application, and certainly does not limit the scope of the present application, which is therefore intended to cover all modifications and equivalents of the claims.

Claims (10)

1. A method for controlling an operating mode of a memory, the method comprising:
responding to a memory starting instruction, and controlling the memory to operate in a preset initial working mode;
periodically acquiring the temperature of the memory chip;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, switching the working mode of the memory from the preset initial working mode to a target working mode, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode.
2. The method as claimed in claim 1, wherein if the current temperature of the memory chip meets a preset temperature condition and the preset initial operating mode meets a preset operating mode condition, the operating mode of the memory is switched from the preset initial operating mode to a target operating mode, and before the method further comprises:
judging whether the current temperature of the memory chip is greater than a first threshold and less than a second threshold;
if so, judging that the current temperature of the memory chip meets a preset temperature condition;
under the condition that the current temperature of the memory chip meets a preset temperature condition, judging whether the preset initial working mode meets a first preset working mode or not;
and if the preset initial working mode meets a first preset working mode, judging that the preset initial working mode meets a working mode preset condition.
3. The method as claimed in claim 1, wherein if the current temperature of the memory chip meets a preset temperature condition and the preset initial operating mode meets a preset operating mode condition, the operating mode of the memory is switched from the preset initial operating mode to a target operating mode, and before the method further comprises:
judging whether the current temperature of the memory chip is greater than or equal to a third threshold value or not;
if so, judging that the current temperature of the memory chip meets a preset temperature condition;
under the condition that the current temperature of the memory chip meets a preset temperature condition, judging whether the preset initial working mode meets a second preset working mode or not;
and if the preset initial working mode meets a second preset working mode, judging that the preset initial working mode meets the preset working mode condition.
4. The method for controlling the operating mode of the memory according to claim 1, wherein the switching the operating mode of the memory from the preset initial operating mode to the target operating mode further comprises:
judging whether the current temperature of the memory chip is less than or equal to a fourth threshold value;
if so, acquiring a current working mode of the memory chip corresponding to the current temperature;
judging whether the current working mode is consistent with the preset initial working mode or not;
if not, the current working mode of the memory is switched to the preset initial working mode.
5. The method for controlling the operating mode of the memory according to any one of claims 1 to 4, wherein the switching the operating mode of the memory from the preset initial operating mode to the target operating mode further comprises:
acquiring the current read-write state of the memory;
if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, judging whether the current reading-writing state is an idle state or not;
and if so, executing the step of switching the working mode of the memory from the preset initial working mode to the target working mode.
6. The method for controlling the operation mode of the memory according to claim 1, further comprising:
and if the current temperature of the memory chip does not meet the preset temperature condition, controlling the memory to operate in a preset initial working mode.
7. An apparatus for controlling an operation mode of a memory, the apparatus comprising:
the first control module is used for responding to a memory starting instruction and controlling the memory to operate in a preset initial working mode;
the acquisition module is used for periodically acquiring the temperature of the memory chip;
and the second control module is used for switching the working mode of the memory from the preset initial working mode to a target working mode if the current temperature of the memory chip meets a preset temperature condition and the preset initial working mode meets a working mode preset condition, wherein the reading and writing rate of the target working mode is lower than that of the preset initial working mode.
8. The apparatus for controlling an operation mode of a memory according to claim 7, further comprising:
the second judgment module is used for judging whether the current temperature of the memory chip is less than or equal to a fourth threshold value or not;
the mode acquisition module is used for acquiring the current working mode of the memory chip corresponding to the current temperature if the current temperature of the memory chip is less than or equal to a fourth threshold;
the third judging module is used for judging whether the current working mode is consistent with the preset initial working mode or not;
and the third control module is used for switching the current working mode of the memory to the preset initial working mode if the current working mode is inconsistent with the preset initial working mode.
9. An operation mode control terminal of a memory, characterized in that: the terminal comprises a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executed to realize the working mode control method of the memory according to any one of claims 1 to 6.
10. A computer-readable storage medium, in which at least one instruction or at least one program is stored, the at least one instruction or the at least one program being loaded and executed by a processor to implement the operation mode control method of the memory according to any one of claims 1 to 6.
CN202110955663.9A 2021-08-19 2021-08-19 Working mode control method and device of memory, terminal and storage medium Pending CN113672461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110955663.9A CN113672461A (en) 2021-08-19 2021-08-19 Working mode control method and device of memory, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110955663.9A CN113672461A (en) 2021-08-19 2021-08-19 Working mode control method and device of memory, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113672461A true CN113672461A (en) 2021-11-19

Family

ID=78544129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110955663.9A Pending CN113672461A (en) 2021-08-19 2021-08-19 Working mode control method and device of memory, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113672461A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430923A (en) * 2007-11-06 2009-05-13 威刚科技股份有限公司 Solid-state semiconductor storage device and application system and control assembly thereof
CN102982836A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for improving reliability of solid state disk and solid state disk of method
CN103035282A (en) * 2011-09-30 2013-04-10 群联电子股份有限公司 Memory storage device, memory controller and temperature management method
CN103699491A (en) * 2012-09-28 2014-04-02 群联电子股份有限公司 Data storage method, memory controller and memory storage device
CN106598200A (en) * 2016-12-08 2017-04-26 武汉斗鱼网络科技有限公司 Temperature-based CPU dynamic frequency modulation apparatus and method
CN110825327A (en) * 2019-11-11 2020-02-21 深圳忆联信息系统有限公司 SSD temperature control method and device, computer equipment and storage medium
CN111651327A (en) * 2020-06-03 2020-09-11 深圳忆联信息系统有限公司 Temperature control method and device for solid state disk, computer equipment and storage medium
CN111949100A (en) * 2020-09-01 2020-11-17 深圳大普微电子科技有限公司 Temperature control method, device and equipment of memory and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430923A (en) * 2007-11-06 2009-05-13 威刚科技股份有限公司 Solid-state semiconductor storage device and application system and control assembly thereof
CN103035282A (en) * 2011-09-30 2013-04-10 群联电子股份有限公司 Memory storage device, memory controller and temperature management method
CN103699491A (en) * 2012-09-28 2014-04-02 群联电子股份有限公司 Data storage method, memory controller and memory storage device
CN102982836A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for improving reliability of solid state disk and solid state disk of method
CN106598200A (en) * 2016-12-08 2017-04-26 武汉斗鱼网络科技有限公司 Temperature-based CPU dynamic frequency modulation apparatus and method
CN110825327A (en) * 2019-11-11 2020-02-21 深圳忆联信息系统有限公司 SSD temperature control method and device, computer equipment and storage medium
CN111651327A (en) * 2020-06-03 2020-09-11 深圳忆联信息系统有限公司 Temperature control method and device for solid state disk, computer equipment and storage medium
CN111949100A (en) * 2020-09-01 2020-11-17 深圳大普微电子科技有限公司 Temperature control method, device and equipment of memory and storage medium

Similar Documents

Publication Publication Date Title
US6785808B2 (en) System and method for altering an operating system start-up sequence prior to operating system loading
WO2015021020A1 (en) Electronic system with storage drive life estimation mechanism and method of operation thereof
CN103336736A (en) System log acquisition method and device
CN111949220B (en) Abnormal power-off recovery method of storage device and storage device
US7607001B2 (en) Memory management method for simultaneously loading and executing program codes
GB2463809A (en) Peripheral device operation method, peripheral device and host
CN109213448B (en) Method, device, equipment and storage medium for erasing and writing data of smart card
CN113377179A (en) Method and device for reducing working temperature of solid state disk, computer equipment and medium
CN111580876A (en) Application program control method, system and terminal
CN109521970B (en) Data processing method and related equipment
CN113672461A (en) Working mode control method and device of memory, terminal and storage medium
CN114327258A (en) Solid state disk processing method, system, equipment and computer storage medium
CN111857596A (en) SSD low-power-consumption realization method and device, computer equipment and storage medium
KR100962101B1 (en) Memory card and memory card control changeover method
CN111028881B (en) Open Block testing device, method and system
CN112114752A (en) Method and device for improving reliability of solid-state storage device, computer device and storage medium
CN101131649A (en) Updating speed improving method for read-only memory of device with flash memory
JPH10198463A (en) Automatic operating condition setting circuit
CN107515730B (en) Data storage device and operation method
CN115509454A (en) Solid state disk data writing method and device, electronic equipment and medium
CN115098138A (en) Function upgrading method and device of battery management system, electronic equipment and medium
CN114721877A (en) Software fault tolerance recovery method, device, equipment and storage medium
CN113051184B (en) Data reading method and device, electronic equipment and storage medium
CN112673364A (en) Data transmission method, data transmission device, electronic apparatus, and storage medium
CN113626091A (en) Starting optimization method and device of solid state disk, computer equipment and storage medium

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