CN113419900B - Data read-write control method of storage device, circuit breaker and medium - Google Patents

Data read-write control method of storage device, circuit breaker and medium Download PDF

Info

Publication number
CN113419900B
CN113419900B CN202110686188.XA CN202110686188A CN113419900B CN 113419900 B CN113419900 B CN 113419900B CN 202110686188 A CN202110686188 A CN 202110686188A CN 113419900 B CN113419900 B CN 113419900B
Authority
CN
China
Prior art keywords
data
storage device
sector
data set
hot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110686188.XA
Other languages
Chinese (zh)
Other versions
CN113419900A (en
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.)
SHENZHEN HEGUANG MEASUREMENT CONTROL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN HEGUANG MEASUREMENT CONTROL TECHNOLOGY 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 SHENZHEN HEGUANG MEASUREMENT CONTROL TECHNOLOGY CO LTD filed Critical SHENZHEN HEGUANG MEASUREMENT CONTROL TECHNOLOGY CO LTD
Priority to CN202110686188.XA priority Critical patent/CN113419900B/en
Publication of CN113419900A publication Critical patent/CN113419900A/en
Application granted granted Critical
Publication of CN113419900B publication Critical patent/CN113419900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application is applicable to the technical field of data reading and writing, and provides a data reading and writing control method of a storage device, a data reading and writing control device of the storage device, a circuit breaker and a medium, wherein the data reading and writing control method of the storage device is applied to the circuit breaker connected with the storage device.

Description

Data read-write control method of storage device, circuit breaker and medium
Technical Field
The present application belongs to the field of data read-write technology, and in particular, to a data read-write control method for a storage device, a data read-write control apparatus for a storage device, a circuit breaker, and a computer-readable storage medium.
Background
The circuit breaker is a protective device for electricity utilization process, and is mainly used for protection operation of overload, short circuit, overcurrent, voltage loss, undervoltage, grounding, electric leakage, double-power-supply automatic switching and infrequent starting of an internal motor in a circuit in a civil electricity environment.
At present, with the development of the internet of things technology, the functional requirements for the circuit breaker are also continuously increased. For example, the circuit breaker is required to have a high automatic operation function, or the power consumption data can be analyzed, so that more optimization functions are added while power consumption protection is realized. In order to enrich the use and function of the circuit breaker, in the prior art, an external storage device is configured for the circuit breaker, and the storage device is used for storing data, so that a realization basis is provided for data analysis. However, the basic function of the circuit breaker is to protect the electricity utilization process and is related to the actual electricity utilization requirement, so that the circuit breaker can be subjected to accidental high-current switching in some actual use scenes. Accordingly, in the process of using the circuit breaker to implement power consumption protection, interference signals are necessarily radiated to the surroundings of the circuit breaker due to the high-current on-off or the impact of other leakage currents, and therefore when data is read and written in the storage device, errors occur in the read and written data due to the interference signals. Therefore, the problem that the existing storage equipment connected with the circuit breaker has weak anti-interference performance when data are read and written is solved.
Disclosure of Invention
In view of this, embodiments of the present application provide a data read-write control method for a storage device, a data read-write control apparatus for a storage device, a circuit breaker, and a computer-readable storage medium, so as to solve the problem that, when data is read and written by an existing storage device connected to a circuit breaker, interference resistance is weak.
A first aspect of an embodiment of the present application provides a data read-write control method for a storage device, which is applied to a circuit breaker connected to the storage device, and the method includes:
reading a first data set from a conventional sector of the storage device for verification operation in response to a preset instruction for controlling the circuit breaker to protect the power utilization process;
if the result of checking the first data set is successful, performing new data writing operation on the storage equipment on the basis of the first data set;
and if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is success, performing new data writing operation on the storage device on the basis of the second data set.
A second aspect of the embodiments of the present application provides a data read-write control apparatus for a storage device, configured to a circuit breaker connected to the storage device, the apparatus including:
the reading unit is used for responding to a preset instruction for controlling the circuit breaker to protect the electricity utilization process, and reading a first data set from a conventional sector of the storage device to perform verification operation;
a first execution unit, configured to, if a result of performing the verification on the first data set is successful, perform a new data write operation on the storage device on the basis of the first data set;
and the second execution unit is used for performing new data writing operation on the storage device on the basis of the second data set if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is success.
A third aspect of the embodiments of the present application provides a circuit breaker, where the circuit breaker is connected to a storage device, the circuit breaker includes a memory, a processor, and a computer program that is stored in the memory and can run on the circuit breaker, and when the processor executes the computer program, each step of the data read-write control method of the storage device provided in the first aspect is implemented.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the data read-write control method for a storage device provided in the first aspect.
A fifth aspect of the embodiments of the present application provides a computer program product, which, when running on a circuit breaker, causes the circuit breaker to execute the steps of the method for controlling data read and write of a storage device according to any one of the first aspect.
The implementation of the data read-write control method of the storage device, the data read-write control device of the storage device, the circuit breaker and the computer readable storage medium provided by the embodiment of the application has the following beneficial effects:
the data read-write control method of the storage device is applied to a circuit breaker connected with the storage device, the storage device is distinguished from a conventional sector and a backup sector, a preset instruction for controlling the circuit breaker to protect a power utilization process is responded, a first data set is read from the conventional sector of the storage device to carry out verification operation, if the result of verifying the first data set is successful, new data write operation is carried out on the storage device on the basis of the first data set, if the result of verifying the first data set is failed, and the result of verifying a second data set read from the backup sector of the storage device is successful, the new data write operation is carried out on the storage device on the basis of the second data set, and because different sectors cannot influence each other, the probability of data content errors caused by interference when the data are read and written on the storage device can be reduced, and the anti-interference performance when the data are read and written on the storage device connected with the circuit breaker is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a data read/write control method of a storage device according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an implementation of a data read/write control method of a storage device according to another embodiment of the present application;
fig. 3 is a flowchart illustrating an implementation of a data read/write control method for a storage device according to yet another embodiment of the present application;
fig. 4 is a block diagram of a data read/write control apparatus of a storage device according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a circuit breaker according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data read-write control method for the storage device provided by the embodiment is applied to a circuit breaker, that is, the main execution body of the data read-write control method for the storage device is the circuit breaker.
It should be noted that, in all embodiments of the present application, the circuit breaker is connected to the storage device, and since the storage device is only used for data storage and does not have a data read/write control function, the control function of the circuit breaker connected to the storage device is multiplexed, so that the data read/write operation on the storage device is further implemented. When the method is implemented, the execution main body may specifically be a control unit or a control chip of the circuit breaker, and the control unit or the control chip of the circuit breaker is connected with the storage device, and a script file for describing the data read-write control method of the storage device provided by this embodiment is configured in the control unit or the control chip of the circuit breaker, so that the control unit or the control chip of the circuit breaker completes data read-write operation on the storage device by executing the data read-write control method of the storage device provided by this embodiment.
In all embodiments of the present application, the memory device is a Ferroelectric memory device (FRAM), which is also a random access memory. Since FRAM realizes data storage by using the ferroelectric effect of a ferroelectric crystal, and the ferroelectric effect means that when a certain electric field is applied to the ferroelectric crystal, central atoms of the crystal move under the action of the electric field and reach a stable state, after the electric field is removed from the crystal, the central atoms can be kept at the original position, because the middle layer of the crystal is a high-energy level, and the central atoms cannot cross the high-energy level to reach another stable position when external energy is not obtained, FRAM does not need voltage for data (stored data) retention, and does not need periodic refreshing like DRAM. Because the ferroelectric effect is a polarization characteristic inherent to the ferroelectric crystal and is irrelevant to the electromagnetic effect, the data stored in the FRAM cannot be influenced by external electromagnetic field factors, and the data stored in the sector of the breaker can be prevented from being damaged by interference signals when the breaker generates interference electromagnetic signals due to large current impact, so that the basic anti-interference condition of being matched with the breaker for use is met.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a data read/write control method of a storage device according to an embodiment of the present disclosure. The data read-write control method of the storage device shown in fig. 1 comprises the following steps:
s11: and reading a first data set from a conventional sector of the storage device for verification operation in response to a preset instruction for controlling the circuit breaker to protect the power utilization process.
In step S11, the preset instruction for controlling the circuit breaker to protect the power utilization process refers to an instruction for starting the circuit breaker to operate, and the circuit breaker operates by responding to the preset instruction, so as to protect the power utilization process. That is, the preset instruction may be understood as an instruction to trigger the circuit breaker for protection of the power utilization process. Here, the power utilization process refers to an actual power utilization process of a power utilization circuit where the circuit breaker is located, the circuit breaker is connected to the power utilization circuit, and when the circuit breaker works, power utilization protection of the power utilization circuit in the power utilization process or the power consumption process is achieved.
As for when the circuit breaker receives and responds to the preset command, the following two scenarios can be included, but not limited to.
Scene 1: taking the case that the circuit breaker is applied to a household circuit as an example, after the circuit breaker is connected to the power utilization circuit, the power utilization circuit supplies power to the circuit breaker, and a preset instruction for protecting the power utilization process of the power utilization circuit by the circuit breaker is triggered, namely the preset instruction at the moment is equivalent to a work instruction triggered by the power-on operation of the circuit breaker.
Scene 2: taking the example that the circuit breaker is applied to the power utilization circuit of the specific device, assuming that the circuit breaker can be remotely controlled by the control terminal, when the circuit breaker receives a starting instruction sent by the control terminal, the starting instruction of the circuit breaker is used as a preset instruction for protecting the power utilization process of the power utilization circuit, that is, the preset instruction in the scene is sent to the circuit breaker by the control terminal.
In all embodiments of the present application, the storage device is configured with a conventional sector and a spare sector, and because the conventional sector and the spare sector are isolated from each other, when the first data set is read from the conventional sector of the storage device, the data in the spare sector is not accessed, and similarly, when the data is read from the spare sector of the storage device, the data in the conventional sector is not accessed, so that data storage independence between the conventional sector isolation and the spare sector is realized, and the data storage isolation is isolated from the data reading and writing process, thereby providing a basis for improving the anti-interference performance of the data reading and writing process of the storage device.
In all embodiments of the present application, whether the normal sector or the spare sector, attribute data of the circuit breaker itself, circuit data related to the power utilization circuit where the circuit breaker is located, and power utilization data collected by the power utilization circuit are stored, where the attribute data and the circuit data may be referred to as cold data, and the power utilization data may be referred to as hot data. For example, the model of the circuit breaker and the rated power consumption of the power utilization circuit stored in the storage device are cold data; the current electricity utilization degree of the electricity utilization circuit and the current power of the electricity utilization circuit stored in the storage device are thermal data.
Here, since the storage device is connected to the circuit breaker and the storage device is configured as a necessary data storage for enriching the function of the circuit breaker, the data stored in the storage device is related to the circuit breaker and also to the circuit in which the circuit breaker is located. Such as attribute data of the circuit breaker, circuit data related to the power utilization circuit where the circuit breaker is located, and power utilization data collected by the power utilization circuit.
For example, existing circuit breakers include four basic types, namely a single-fire type circuit breaker, a zero-fire type circuit breaker, a three-phase type circuit breaker and a three-phase plus zero type circuit breaker, and whether each type of circuit breaker is provided with an earth leakage protection function, other current range functions and the like needs to be considered. Unlike cold data, hot data pertains to data that is frequently read and written, such as specific power consumption.
In this embodiment, the data content in the first data set is data obtained from a regular sector, and performing a verification operation on the first data set refers to performing an authenticity verification on the data content in the first data set. Here, the authenticity check is performed on the data content in the first data set, and specifically, the check operation may be performed on the first data set by using an existing cyclic redundancy check code, or the check operation may be performed on the first data set by using a summation check. The cyclic redundancy check code is also called a cyclic code and is a commonly used check code with error detection and error correction capabilities, the summation check is to sum data values in the first data set and judge whether the summed data is consistent with the reference data so as to realize check operation on the first data set, and since the cyclic redundancy check code and the summation check are commonly used for data check of synchronous communication between the external memory and the computer, detailed description of specific processes of the cyclic redundancy check code and the summation check is not repeated here.
As an embodiment, step S11 includes:
if the first data set is read from the conventional sector of the storage device for the first time to carry out the verification operation and the verification result is failure, reading the first data set from the conventional sector of the storage device again according to the preset trial times M to carry out the verification operation; wherein M is an integer greater than 0;
if the first data set is read from the conventional sector of the storage device for the m-th time for verification operation and the verification result is successful, determining that the result of the verification operation on the first data set is successful; wherein m is an integer greater than 0, and m is not less than 1 and not more than 1+M;
and if the first data set is read from the conventional sector of the storage device for verification operation at 1+M and the verification result is failure, determining that the result of verifying the first data set is failure.
In this embodiment, to read the first data set from the regular sector of the storage device for the verification operation, the corresponding read times 1+M and verification times 1+M are configured. Here, each time the first data set is read, the verification operation is performed on the read first data set again.
It should be noted that, in the practical application process, the reason that the result of the verification operation performed on the first data set is a failure may also be that the first data set cannot pass the verification due to interference of an interference signal during data reading, so that in order to avoid that the first data set is a failure due to interference of an interference signal during data reading, a corresponding reading number may be set, if the verification result of the first data set read once is successful within the reading number, the verification result of the first data set may be determined as a verification success, and if the verification result of the first data set read once is not successful within the reading number, the verification result of the first data set may be determined as a verification failure.
Based on the foregoing embodiments, as an implementation manner, the reading of the first data set from the normal sector of the storage device for performing the verification operation includes:
reading first cold data and first hot data from the cold data regular sector and the hot data regular sector respectively as the first data set; and respectively carrying out verification operation on the first cold data and the first hot data.
In the present embodiment, the normal sectors include a cold data normal sector and a hot data normal sector, the first cold data is cold data stored in the cold data normal sector, and the first hot data is hot data stored in the hot data normal sector. Here, since the read-write requirements of cold data and hot data are different, the cold data normal sector and the hot data normal sector are also distinguished on the basis of the normal sector, so that independence between the cold data read operation and the hot data read operation can be achieved even when the first data set is read from the normal sector.
Here, since the cold data and the hot data are two completely different data, when the first data set is subjected to the verification operation, the first cold data in the first data set needs to be verified separately from the first hot data.
It can be understood that, although the first cold data and the first hot data are checked separately, the same checking manner may be adopted, that is, the checking operation may be performed on the first cold data and the first hot data by using an existing cyclic redundancy check code, or the checking operation may be performed on the first cold data and the first hot data by using a sum check.
In the present embodiment, after step S11 is executed, step S12 and step S13 are executed, where step S12 and step S13 are in parallel, that is, step S12 and step S13 are executed in no existing order, step S13 is not executed after step S12 is executed, and step S12 is not executed until step S11 is executed again after step S13 is executed.
S12: and if the result of checking the first data set is successful, performing new data writing operation on the storage equipment on the basis of the first data set.
In step S12, the result of the verification of the first data set is successful, which means that the data content read from the regular sector of the storage device by the circuit breaker is not affected by the interference signal, that is, the data in the first data set is correct data and can be directly used by the circuit breaker.
In this embodiment, since the first data set includes the cold data and the hot data, the data content in the first data set represents the operation mode and the operation content of the circuit breaker, and therefore, based on the first data set, the circuit breaker is referred to operate with the data content in the first data set as the current operation mode and the operation content. And performing new data writing operation on the storage device, namely writing the collected electricity utilization data as new data into the storage device under the condition that the circuit breaker normally works. Here, the electricity consumption data may be data collected by other meters in the electricity consumption circuit, for example, the electricity consumption circuit includes an electricity meter, a circuit breaker, and a storage device, the electricity meter collects the electricity consumption of the electricity consumption circuit, the collected electricity consumption is transmitted to the circuit breaker in the form of electricity consumption number, and the circuit breaker writes the electricity consumption number as new data into the storage device.
In practical application, because the data in the first data set includes cold data and hot data, the circuit breaker can enter a corresponding working mode according to the cold data, and in the working mode, the hot data is used as basic data or reference data, and data collected by the power utilization circuit in the working process is combined to obtain new data, and the new data is written into the storage device.
It can be understood that, when performing a write operation of new data to the storage device, corresponding write strategies may also be configured according to different data contents, and the write requirements of different data are satisfied by following the corresponding data write strategies. For example, the thermal data acquired immediately is written into the storage device in real time, and the thermal data acquired immediately is periodically written into the storage device as backup data.
In some other embodiments, the data writing operation may also be completed according to the result of the refinement and the distinction by further refining and distinguishing the sectors. For example, the sectors are numbered, and corresponding writing sequence is set according to the numbers, so that when data writing operation is performed on the data storage device, the writing operation of new data is sequentially completed on the storage device according to the numbers of the sectors.
S13: and if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is success, performing new data writing operation on the storage device on the basis of the second data set.
In step S13, the result of verifying the first data set is failure, which means that the data content read from the regular sector of the storage device by the circuit breaker has been affected by the interference signal, that is, the data in the first data set is error data and cannot be used by the circuit breaker.
The result of the verification of the second data set is successful, which means that the data content read from the backup sector of the storage device by the circuit breaker is not affected by the interference signal, that is, the data in the second data set is correct data and can be directly used by the circuit breaker.
In the present embodiment, since the data in the regular sector is periodically backed up into the backup sector, the data in the backup sector is identical to the data in the regular sector when the data is not interfered. And when the result of verifying the first data set is failure, the second data set can be read from the backup sector to perform verification operation, and when the result of verifying the second data set is success, new data writing operation is performed on the storage device on the basis of the second data set, so that when the data in the conventional sector is interfered, the data in the backup sector can provide a data basis for the work of the breaker, and the new data writing operation on the storage device is realized.
In a specific implementation, when the second data set read from the backup sector of the storage device is verified, in order to avoid that an error occurs in the read second data set due to an interference signal occurring in the reading process, so that the verification result of the second data set is a failure, the reading and verifying operations of the second data set may be performed repeatedly.
As an embodiment of the present application, step S13 includes:
if the second data set is read from the backup sector of the storage device for the first time to carry out the verification operation and the verification result is failure, reading the second data set from the backup sector of the storage device again according to the preset number of attempts N to carry out the verification operation; wherein N is an integer greater than 0;
if the second data set is read from the backup sector of the storage device for the nth time for verification operation and the verification result is successful, determining that the result of the verification operation on the second data set is successful, and further performing new data writing operation on the storage device on the basis of the second data set; wherein n is an integer greater than 0, and n is greater than or equal to 1 and less than or equal to 1+N.
In this embodiment, in order to read the second data set from the backup sector of the storage device for the verification operation, the corresponding read times 1+N and verification times 1+N are configured. Here, each time the second data set is read, the read second data set is subjected to a verification operation again.
It should be noted that, in an actual application process, the reason that the result of the verification operation performed on the second data set is a failure may also be that the second data set is interfered by an interference signal during data reading, so that the read second data set cannot pass the verification, and therefore, in order to avoid that the verification result of the second data set is a failure due to the interference of the interference signal during the data reading, a corresponding reading frequency may be set, and if within the reading frequency, the verification result of the second data set can be determined as a verification success as long as the verification result of the second data set is a success.
Based on the above embodiments, as an implementation manner, the backup sectors include a cold data backup sector and a hot data backup sector. In the above scheme, reading the second data set from the backup sector of the storage device to perform the verification operation includes:
reading out second cold data and second hot data from the cold data backup sector and the hot data backup sector respectively as the second data set; and respectively carrying out verification operation on the second cold data and the second hot data.
In this embodiment, the backup sectors include a cold data backup sector and a hot data backup sector, the second cold data is cold data stored in the cold data backup sector, and the second hot data is hot data stored in the hot data backup sector. Here, since the read-write requirements of the cold data and the hot data are different, the cold data backup sector and the hot data backup sector are also distinguished on the basis of the backup sector, so that independence between the cold data read operation and the hot data read operation can be achieved even when the second data set is read from the backup sector.
Here, since the cold data and the hot data are two completely different data, when the second data set is subjected to the verification operation, the second cold data and the second hot data in the second data set need to be verified separately.
It can be understood that, although the second cold data and the second hot data are checked separately, the same checking manner may be adopted, that is, the existing cyclic redundancy check code may be adopted to perform the checking operation on the second cold data and the second hot data, or the sum check may be adopted to perform the checking operation on the second cold data and the second hot data.
As can be seen from the above, the data read-write control method for the storage device provided in this embodiment is applied to a circuit breaker connected to the storage device, the storage device is distinguished between a conventional sector and a backup sector, and a first data set is read from the conventional sector of the storage device for verification in response to a preset instruction for controlling the circuit breaker to protect a power utilization process, if a result of verifying the first data set is successful, a new data write operation is performed on the storage device based on the first data set, and if the result of verifying the first data set is failed and a result of verifying a second data set read from the backup sector of the storage device is successful, the new data write operation is performed on the storage device based on the second data set.
It should be understood that, although step S12 and step S13 are parallel steps and step S13 is not executed again when step S12 is executed or step S13 is executed again when step S13 is executed, the operations of performing the new data writing operation on the storage device are included in both step S12 and step S13. That is, it can be understood that the difference between step S12 and step S13 is whether the second data set is read for verification, and whether the breaker operates on the basis of the first data set or the breaker operates on the basis of the second data set. Therefore, based on the above embodiment, the steps performed in step S12 and step S13 are: performing new data writing operation on the storage device; the description is given.
As an embodiment, in the foregoing scheme, performing a new data write operation on the storage device includes:
obtaining new thermal data based on the detected real-time thermal data; writing the new thermal data to a thermal data regular sector of the storage device.
In this embodiment, the real-time thermal data is real-time data of the power utilization circuit collected by other meters connected to the circuit breaker. Here, the real-time thermal data is instantaneous data, or time-interval data, not total amount data. Different from the real-time data, the new thermal data is total data and is data obtained by the circuit breaker according to the real-time thermal data, namely the new thermal data is equivalent to the real-time thermal data in value only when the real-time thermal data is obtained for the first time, and the new thermal data in other periods is not equivalent to the real-time thermal data.
For example, the other meters connected with the circuit breaker are electric meters, the real-time thermal data is the current power consumption degrees collected by the electric meters, the electric meters use the current power consumption degrees as real-time thermal data transfer type circuit breakers, the circuit breakers obtain the total power consumption degrees according to the current power consumption degrees, and the current power consumption degrees are written into the thermal data conventional sector of the storage device as new thermal data.
It should be appreciated that after writing new hot data to a hot data regular sector of the storage device, the new hot data may also be backed up as needed.
Based on the foregoing embodiments, as a possible implementation manner, performing a new data write operation on the storage device further includes:
and writing the new hot data into a hot data backup sector of the storage device according to a preset data backup period.
In this embodiment, the backup period is used to describe a time for backing up new hot data, and may also be used to describe an interval duration between two adjacent hot data backup operations.
It should be noted that, since writing new hot data into the hot data backup sector of the storage device is an operation after obtaining new hot data, when writing new hot data into the hot data backup sector of the storage device, it is not necessary to read new hot data from the hot data regular sector, so that a distinction is made between the data backup operation of hot data and the real-time write operation of hot data.
Based on the foregoing embodiment, as a possible implementation manner, the writing the new hot data into the hot data regular sector of the storage device includes:
if an on-off command for controlling the circuit breaker is detected and the new hot data is not written into the hot data conventional sector of the storage device, the new hot data is prohibited from being written into the hot data conventional sector of the storage device until the response operation to the on-off command is completed, and the new hot data is permitted to be written into the hot data conventional sector of the storage device;
and if a switching-on/off command for controlling the circuit breaker is detected and the new thermal data is being written into the thermal data conventional sector of the storage device, delaying response operation on the switching-on/off command until the switching-on/off command is responded when the operation of writing the new thermal data into the thermal data conventional sector of the storage device is completed.
In this embodiment, because the circuit breaker has a function of protecting the power consumption circuit, in some non-human-controlled scenes, for example, when a large current impacts the power consumption circuit or the power consumption circuit has electric leakage, the circuit breaker automatically triggers a control instruction for switching on/off the power consumption circuit, that is, a switching-on/off instruction for controlling the circuit breaker is triggered, and the circuit breaker performs switching-on/off operation according to the switching-on/off instruction. Here, since the switching-off or the switching-on is accompanied by the generation of the disturbing signal, in order to avoid the disturbance of the new hot data written into the hot data regular sector, at this time, if the new hot data is not written into the hot data regular sector of the storage device, the writing of the new hot data into the hot data regular sector of the storage device is prohibited, and the writing of the new hot data into the hot data regular sector of the storage device is not permitted until the response operation to the switching-off command is completed.
In specific implementation, the effect of postponing writing new hot data into the hot data conventional sector can be realized by actively postponing the read-write operation function, for example, configuring a subroutine for storing new hot data, that is, not directly writing the new hot data into the hot data conventional sector, but setting a flag bit, or using a byte as a password to indicate that the new hot data is needed, and then executing response operation of an on-off instruction in a main function, that is, executing a motor control function first and then executing a write function, and if the motor control function starts an action process, prohibiting the write function from being executed until the process flag bit is cleared.
In some scenarios, in order to improve the reliability of the written data, since the time required for the operation task of writing the new thermal data into the thermal data conventional sector is short, and the writing operation is not interrupted by other functions except some necessary interrupts, the motor is not started when the new thermal data is not completely written into the thermal data conventional sector, and the influence of electromagnetic interference and voltage current impact on the writing of the new thermal data into the thermal data conventional sector during switching on and switching off is greatly avoided by mutual exclusion of the two.
In some implementations, the normal sector and the backup sector may be more finely divided, for example, the normal sector is subdivided into a hot data normal sector and a cold data normal sector, and the backup sector is subdivided into a hot data backup sector and a cold data backup sector, and when a read-write operation of hot data or cold data is performed on any sector, the read-write strategy may be more finely divided. For example, the thermal data is data that needs to be frequently read and written, so the read-write times can be configured for the conventional sectors of the thermal data, and the overall read-write times of the storage device are configured according to the number of the conventional sectors of the thermal data, that is, a preset threshold is configured for each conventional sector of the thermal data, so as to balance the read-write times of all the conventional sectors of the thermal data.
Based on the above embodiment, as a possible implementation manner, the storage device includes a plurality of thermal data regular sectors; the steps are as follows: writing the new thermal data to a thermal data regular sector of the storage device, comprising:
and if the writing times of the first thermal data conventional sector are equal to or larger than a preset threshold value, writing the new thermal data into a second thermal data conventional sector.
In this embodiment, the utilization rate of each thermal data general storage sector in the storage device may be balanced by configuring a corresponding data writing frequency, that is, a preset threshold, for each thermal data general sector.
In practical application, the new hot data is written into the hot data regular sector of the storage device, and the hot data regular sector to which the new hot data should be written currently is determined according to the hot data area index of the sector. That is, a target thermal data regular sector is determined from the plurality of thermal data regular sectors according to the thermal data area index of the sector, and new thermal data is written into the target thermal data regular sector.
It should be noted that, each time new hot data is written into a hot data regular sector of the storage device, the number of times of writing the hot data regular sector needs to be recorded, and if a threshold is reached, the next hot data regular sector is switched to according to the sequence between the hot data regular sectors to perform a new hot data writing operation, and sector marks are synchronized, that is, index contents of the hot data area of the sector need to be updated.
Referring to fig. 2, fig. 2 is a flowchart illustrating an implementation of a data read/write control method of a storage device according to another embodiment of the present application. With respect to the embodiment shown in fig. 1, the data read/write control method of the storage device provided in this embodiment further includes a step S21 after step S11. Here, since step S21 is in parallel with both step S12 and step S13 after step S11, step S12 is executed without executing step S13 and step S21, and step S21 is executed without executing step S12 and step S13. The details are as follows:
s21: and if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is failure, performing initialization operation on the storage device.
In this embodiment, that the result of verifying the first data set is a failure means that the data content read by the circuit breaker from the conventional sector of the storage device has been affected by the interference signal, that is, the data in the first data set is error data and cannot be used by the circuit breaker. The result of the verification performed on the second data set read from the backup sector of the storage device is a failure, which means that the data content read from the backup sector of the storage device by the circuit breaker has also been affected by the interference signal, that is, the data in the second data set is error data and cannot be used by the circuit breaker.
It should be understood that, when both the verification result of the first data set and the verification result of the second data set fail, it indicates that both the data in the storage device are damaged, and therefore, an initialization operation needs to be performed on the storage device.
In this embodiment, initializing the storage device refers to returning the regular sector and the backup sector of the storage device to the factory equipment, and since the cold data content configured in the factory equipment is adapted to both the circuit breaker and the power circuit, the normal operation of the circuit breaker can be ensured by initializing the storage device.
As an embodiment, step S21 includes:
if the second data set is read from the backup sector of the storage device for the first time to carry out the verification operation and the verification result is failure, reading the second data set from the backup sector of the storage device again according to the preset number of attempts N to carry out the verification operation; wherein N is an integer greater than 0;
and if the second data set is read from the backup sector of the storage device for verification operation at 1+n and the verification result is failure, judging that the result of verifying the second data set is failure, and performing initialization operation on the storage device, wherein n is an integer larger than 0 and is not less than 1 and not more than 1+N.
In this embodiment, in order to read the second data set from the backup sector of the storage device for the verification operation, the corresponding read times 1+N and verification times 1+N are configured. Here, each time the second data set is read, the read second data set is subjected to a verification operation again.
It should be noted that, in the practical application process, the reason that the result of the verification operation performed on the second data set is a failure may also be that the second data set cannot pass the verification due to interference of an interference signal during data reading, so that in order to avoid that the second data set fails to pass the verification result due to interference of the interference signal during data reading, a corresponding reading number may be set, if the verification result of the second data set that is read once is successful within the reading number, the verification result of the second data set may be determined as a verification success, and if the verification result of the first data set that is not read once is successful within the reading number, the verification result of the second data set may be determined as a verification failure.
Referring to fig. 3, fig. 3 is a flowchart illustrating an implementation of a data read/write control method of a storage device according to still another embodiment of the present application. With respect to the embodiment corresponding to fig. 1 or fig. 2, the data read-write control method of the storage device provided in this embodiment further includes step S31 after step S13. Here, since step S31 follows step S13, step S12 and step S13 are in parallel in fig. 1, and step S21, step S12 and step S13 are in parallel in fig. 2, step S13 is not executed when step S12 or step S21 is executed, and step S31 is not necessarily executed, that is, step S31 is executed only when step S13 is executed. The details are as follows:
s31: replacing the first set of data in the regular sector of the storage device with the second set of data.
In this embodiment, replacing the first data set in the regular sector of the storage device with the second data set means replacing the data content of the first data set in the regular sector with the data content of the second data set in the backup sector.
It should be noted that, since step S31 is after step S13, when step S13 determines that the result of checking the second data set is successful, it determines that the data in the second data set is correct data, and therefore replaces the data content of the first data set in the regular sector with the second data set, so that the first data set in the regular sector is configured as correct data.
In some implementations of the present application, not only the conventional sector and the backup sector may be more finely divided, for example, the conventional sector is subdivided into the hot data conventional sector and the cold data conventional sector, and the backup sector is subdivided into the hot data backup sector and the cold data backup sector, but also the read-write strategy may be more finely divided when the read-write operation of the hot data or the cold data is performed on any sector. For example, the cold data is data that does not need to be read and written frequently, so a corresponding read-write and storage policy can be configured for the cold data.
Taking the total 256 bytes of the normal sector of the cold data as an example, assuming that there are multiple groups of cold data, when storing the cold data, each group of cold data is isolated. For example, the data is stored in a remote manner, for example, the first group of cold data is stored at address 0, the second group of cold data is stored at position 128, and a corresponding CRC check code is configured for each group of cold data, so that the first group of cold data can be recovered by using the backup data alone when the first group of cold data has an error, and the second group of cold data is not recovered jointly, thereby improving the data reading and writing efficiency and the data maintenance efficiency of the storage device.
As can be seen from the above, the data read-write control method for the storage device provided in this embodiment is applied to a circuit breaker connected to the storage device, the storage device is distinguished between a conventional sector and a backup sector, and a first data set is read from the conventional sector of the storage device for verification in response to a preset instruction for controlling the circuit breaker to protect a power utilization process, if a result of verifying the first data set is successful, a new data write operation is performed on the storage device based on the first data set, and if the result of verifying the first data set is failed and a result of verifying a second data set read from the backup sector of the storage device is successful, the new data write operation is performed on the storage device based on the second data set.
In addition, if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is failure, the storage device is initialized, that is, the factory equipment is returned to the conventional sector and the backup sector of the storage device.
In addition, the data in the second data set is determined to be correct data, so that the data content of the first data set in the conventional sector is replaced by using the second data set, the first data set in the conventional sector is configured to be correct data, the first data set read from the conventional sector next time can pass the verification operation, and the data reading and writing efficiency of the storage device is improved.
Referring to fig. 4, fig. 4 is a block diagram of a data read/write control apparatus of a storage device according to an embodiment of the present disclosure. In this embodiment, each unit included in the data read-write control apparatus of the storage device is configured to execute each step in the embodiments corresponding to fig. 1 to fig. 3. Please specifically refer to fig. 1 to 3 and the related descriptions of the embodiments corresponding to fig. 1 to 3. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 4, the data read/write control apparatus 40 of the storage device is configured to a circuit breaker connected to the storage device, and includes: a reading unit 41, a first execution unit 42 and a second execution unit 43. Wherein:
and the reading unit 41 is configured to read the first data set from the regular sector of the storage device for a verification operation in response to a preset instruction for controlling the circuit breaker to protect the power utilization process.
A first executing unit 42, configured to perform a new data writing operation on the storage device based on the first data set if a result of checking the first data set is successful.
A second executing unit 43, configured to, if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is success, perform a new data writing operation on the storage device based on the second data set.
As an embodiment, the data read-write control apparatus 40 of the storage device further includes:
an initializing unit 44, configured to initialize the storage device if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is failure.
As an embodiment, the data read/write control apparatus 40 of the storage device further includes:
a replacing unit 45 for replacing the first data set in the regular sector of the storage device with the second data set.
It should be understood that, in the structural block diagram of the data read/write control apparatus of the storage device shown in fig. 4, each unit is used to execute each step in the embodiment corresponding to fig. 1 to 3, and each step in the embodiment corresponding to fig. 1 to 3 has been explained in detail in the above embodiment, and specific reference is made to the relevant description in the embodiment corresponding to fig. 1 to 3 and fig. 1 to 3, which is not repeated herein.
Fig. 5 is a block diagram of a circuit breaker according to an embodiment of the present disclosure. As shown in fig. 5, the circuit breaker 5 of this embodiment is connected to a storage device 6. The circuit breaker 5 includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and being executable on said processor 50, such as a program of a data read-write control method of a storage device. The processor 50 executes the computer program 52 to implement the steps in the embodiments of the data read/write control method for each storage device, such as S11 to S13 shown in fig. 1, S11 to S21 shown in fig. 2, and S11 to S31 shown in fig. 3. Alternatively, when the processor 50 executes the computer program 52, the functions of the units in the embodiment corresponding to fig. 4, for example, the functions of the units 41 to 45 shown in fig. 4, are implemented, for which reference is specifically made to the relevant description in the embodiment corresponding to fig. 5, which is not repeated herein.
Illustratively, the computer program 52 may be divided into one or more units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the circuit breaker 5. For example, the computer program 52 may be divided into a reading unit, a first execution unit, and a second execution unit, each unit having the specific functions as described above.
The circuit breaker may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a circuit breaker 5 and does not constitute a limitation of the circuit breaker 5, and may include more or fewer components than shown, or some components in combination, or different components, e.g., the circuit breaker may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the circuit breaker 5, such as a hard disk or a memory of the circuit breaker 5. The memory 51 may also be an external storage device of the circuit breaker 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the circuit breaker 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the circuit breaker 5. The memory 51 is used for storing the computer program and other programs and data required by the circuit breaker. The memory 51 may also be used to temporarily store data that has been output or is to be output.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (5)

1. A data read-write control method of a storage device is characterized by being applied to a circuit breaker connected with the storage device, and comprising the following steps:
reading a first data set from a conventional sector of the storage device for verification operation in response to a preset instruction for controlling the circuit breaker to protect the power utilization process; the regular sectors include cold data regular sectors and hot data regular sectors; the reading the first data set from the regular sector of the storage device for the verification operation comprises: reading first cold data and first hot data from the cold data regular sector and the hot data regular sector respectively as the first data set; respectively carrying out verification operation on the first cold data and the first hot data; the method comprises the following steps that first cold data and first hot data are separately checked in a cyclic redundancy check code mode;
if the result of checking the first data set is successful, performing new data writing operation on the storage device on the basis of the first data set, including: obtaining new thermal data based on the detected real-time thermal data; writing the new hot data into a hot data conventional sector of the storage device, and writing the new hot data into a hot data backup sector of the storage device according to a preset data backup period; the new data is the electricity utilization data collected by the electricity utilization circuit under the condition of normal work; the storage device includes a plurality of thermal data regular sectors; the writing the new thermal data to a thermal data regular sector of the storage device includes: if an on-off instruction for controlling the circuit breaker is detected and the new hot data is not written into the hot data conventional sector of the storage device, prohibiting the new hot data from being written into the hot data conventional sector of the storage device until the response operation to the on-off instruction is completed, and allowing the new hot data to be written into the hot data conventional sector of the storage device; if a switching-on/off command for controlling the circuit breaker is detected and the new thermal data is being written into the thermal data conventional sector of the storage device, delaying response operation on the switching-on/off command until the operation of writing the new thermal data into the thermal data conventional sector of the storage device is completed, and responding to the switching-on/off command; if the writing times of the first thermal data conventional sector are equal to or larger than a preset threshold value, writing the new thermal data into a second thermal data conventional sector;
if the result of verifying the first data set is failure and the result of verifying the second data set read from the backup sector of the storage device is success, performing a new data write operation on the storage device based on the second data set, including: if the second data set is read from the backup sector of the storage device for the first time to carry out the verification operation and the verification result is failure, reading the second data set from the backup sector of the storage device again according to the preset number of attempts N to carry out the verification operation; wherein N is an integer greater than 0; if the second data set is read from the backup sector of the storage device for the nth time for verification operation and the verification result is successful, determining that the result of the verification operation on the second data set is successful, and further performing new data writing operation on the storage device on the basis of the second data set; wherein n is an integer greater than 0, and n is greater than or equal to 1 and less than or equal to 1+N; wherein the normal sector and the spare sector are isolated from each other; the backup sectors comprise a cold data backup sector and a hot data backup sector; the reading the second data set from the backup sector of the storage device for verification operation includes: reading out second cold data and second hot data from the cold data backup sector and the hot data backup sector respectively as the second data set; respectively carrying out verification operation on the second cold data and the second hot data;
replacing the first set of data in the regular sector of the storage device with the second set of data.
2. The method according to claim 1, wherein reading the first data set from the regular sector of the storage device for performing the verification operation includes:
if the first data set is read from the conventional sector of the storage device for the first time to carry out the verification operation and the verification result is failure, reading the first data set from the conventional sector of the storage device again according to the preset number of attempts M to carry out the verification operation; wherein M is an integer greater than 0;
if the first data set is read from the conventional sector of the storage device for the m-th time for verification operation and the verification result is successful, determining that the result of the verification operation on the first data set is successful; wherein m is an integer greater than 0, and m is not less than 1 and not more than 1+M;
and if the first data set is read from the conventional sector of the storage device for verification operation at the 1+M time and the verification result is failure, determining that the result of verifying the first data set is failure.
3. A data read-write control apparatus of a storage device, characterized by being configured to a circuit breaker connected to the storage device, the apparatus comprising:
the reading unit is used for responding to a preset instruction for controlling the circuit breaker to protect the electricity utilization process, and reading a first data set from a conventional sector of the storage device to perform verification operation; the regular sectors include cold data regular sectors and hot data regular sectors; the reading the first data set from the regular sector of the storage device for the verification operation comprises: reading first cold data and first hot data from the cold data regular sector and the hot data regular sector respectively as the first data set; respectively carrying out verification operation on the first cold data and the first hot data; the method comprises the following steps that first cold data and first hot data are separately checked in a cyclic redundancy check code mode;
a first execution unit, configured to perform a new data write operation on the storage device based on the first data set if a result of checking the first data set is successful, including: obtaining new thermal data based on the detected real-time thermal data; writing the new hot data into a hot data conventional sector of the storage device, and writing the new hot data into a hot data backup sector of the storage device according to a preset data backup period; the new data is the electricity utilization data collected by the electricity utilization circuit under the condition of normal work; the storage device includes a plurality of thermal data regular sectors; the writing the new thermal data to a thermal data regular sector of the storage device includes: if an on-off instruction for controlling the circuit breaker is detected and the new hot data is not written into the hot data conventional sector of the storage device, prohibiting the new hot data from being written into the hot data conventional sector of the storage device until the response operation to the on-off instruction is completed, and allowing the new hot data to be written into the hot data conventional sector of the storage device; if a switching-on/off command for controlling the circuit breaker is detected and the new thermal data is being written into the thermal data conventional sector of the storage device, delaying response operation on the switching-on/off command until the operation of writing the new thermal data into the thermal data conventional sector of the storage device is completed, and responding to the switching-on/off command; if the writing times of the first thermal data conventional sector are equal to or larger than a preset threshold value, writing the new thermal data into a second thermal data conventional sector;
a second execution unit, configured to perform a new data writing operation on the storage device based on a second data set if a result of verifying the first data set is failure and a result of verifying the second data set read from a backup sector of the storage device is success, where the second execution unit includes: if the second data set is read from the backup sector of the storage device for the first time to carry out the verification operation and the verification result is failure, reading the second data set from the backup sector of the storage device again according to the preset number of attempts N to carry out the verification operation; wherein N is an integer greater than 0; if the second data set is read from the backup sector of the storage device for the nth time to carry out the verification operation and the verification result is successful, judging that the result of the verification operation on the second data set is successful, and further carrying out new data writing operation on the storage device on the basis of the second data set; wherein n is an integer greater than 0, and n is greater than or equal to 1 and less than or equal to 1+N; wherein the normal sector and the spare sector are isolated from each other; the backup sectors comprise a cold data backup sector and a hot data backup sector; the reading the second data set from the backup sector of the storage device for verification operation includes: reading out second cold data and second hot data from the cold data backup sector and the hot data backup sector respectively as the second data set; respectively carrying out verification operation on the second cold data and the second hot data;
a replacement unit for replacing the first data set in the regular sector of the storage device with the second data set.
4. A circuit breaker, characterized in that the circuit breaker is connected to a storage device, the circuit breaker comprises a memory, a processor and a computer program stored in the memory and operable on the circuit breaker, the processor when executing the computer program implements the steps of the data read-write control method of the storage device according to claim 1 or 2.
5. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of a data read-write control method of a storage device according to claim 1 or 2.
CN202110686188.XA 2021-06-21 2021-06-21 Data read-write control method of storage device, circuit breaker and medium Active CN113419900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110686188.XA CN113419900B (en) 2021-06-21 2021-06-21 Data read-write control method of storage device, circuit breaker and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110686188.XA CN113419900B (en) 2021-06-21 2021-06-21 Data read-write control method of storage device, circuit breaker and medium

Publications (2)

Publication Number Publication Date
CN113419900A CN113419900A (en) 2021-09-21
CN113419900B true CN113419900B (en) 2023-03-31

Family

ID=77789538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110686188.XA Active CN113419900B (en) 2021-06-21 2021-06-21 Data read-write control method of storage device, circuit breaker and medium

Country Status (1)

Country Link
CN (1) CN113419900B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012126360A1 (en) * 2011-03-23 2012-09-27 惠州Tcl移动通信有限公司 Method for recovering original software when mobile terminal has failed in software upgrade

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055226A (en) * 2008-08-27 2010-03-11 Oki Electric Ind Co Ltd Charging control device, charging control method, program and financial terminal apparatus
US10243345B2 (en) * 2015-06-30 2019-03-26 AB Schweiz AG Circuit breaker having breaker information module and method of use
CN112596672B (en) * 2020-12-18 2022-08-02 珠海格力电器股份有限公司 Storage processing method and device of main control chip, processor and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012126360A1 (en) * 2011-03-23 2012-09-27 惠州Tcl移动通信有限公司 Method for recovering original software when mobile terminal has failed in software upgrade

Also Published As

Publication number Publication date
CN113419900A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US9117552B2 (en) Systems and methods for testing memory
CN102541690B (en) Intelligent card and method for recovering data
CN109656895B (en) Distributed storage system, data writing method, device and storage medium
CN103631721A (en) Method and system for isolating bad blocks in internal storage
JP2014120179A (en) Salvaging event trace information in power loss interruption scenarios
CN106445720A (en) Memory error recovery method and device
CN103366831A (en) Detection method for memory
WO2020233001A1 (en) Distributed storage system comprising dual-control architecture, data reading method and device, and storage medium
CN102388365B (en) Processor start-up method and device
US8843800B2 (en) Semiconductor integrated circuit
US20180046543A1 (en) Erasure codes to prevent lower page corruption in flash memory
CN113419900B (en) Data read-write control method of storage device, circuit breaker and medium
CN107402843A (en) Restoration methods, device and the equipment of database corruption
CN105069381B (en) A kind of partition protecting method and system based on intelligent terminal
CN112433861B (en) Event recording method of double-core intelligent ammeter and double-core intelligent ammeter
JPH1091289A (en) Memory initialization device and method
CN108762987A (en) Data reconstruction method and device for double copies microcontroller flash memory
CN111045858A (en) Bad channel processing method and system
CN115509466B (en) Data management method and device, electronic equipment and storage medium
CN104570821A (en) Integrated circuit and operation method thereof
CN106935266B (en) Control method, device and system for reading configuration information from memory
US9483641B2 (en) Method and device for the performance of a function by a microcircuit
EP4334815A1 (en) Systems and methods for processor monitoring and recovery
Dopson SoftECC: A system for software memory integrity checking
CN110245036B (en) System and method for realizing NAND flash memory data backup processing in embedded system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant