CN105739928A - Multi-region storage based parameter storage method for distribution network terminal device - Google Patents

Multi-region storage based parameter storage method for distribution network terminal device Download PDF

Info

Publication number
CN105739928A
CN105739928A CN201610066146.5A CN201610066146A CN105739928A CN 105739928 A CN105739928 A CN 105739928A CN 201610066146 A CN201610066146 A CN 201610066146A CN 105739928 A CN105739928 A CN 105739928A
Authority
CN
China
Prior art keywords
parameter
region
distribution network
network terminal
storage
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
CN201610066146.5A
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.)
Shandong Luneng Intelligence Technology Co Ltd
Original Assignee
Shandong Luneng Intelligence 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 Shandong Luneng Intelligence Technology Co Ltd filed Critical Shandong Luneng Intelligence Technology Co Ltd
Priority to CN201610066146.5A priority Critical patent/CN105739928A/en
Publication of CN105739928A publication Critical patent/CN105739928A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a multi-region storage based parameter storage method for a distribution network terminal device. A storage module comprises at least three or more storage regions which are regions 1-n respectively, wherein n is greater than or equal to 3. When the distribution network terminal device runs for the first time, default values of all parameters are stored in the storage regions; when being modified, the parameters are stored in the storage regions after being checked; when the distribution network terminal device runs normally, the parameters of all the storage regions are cyclically detected, and if all the storage regions have errors and the errors do not disappear after rechecking, functions related to the parameters are disabled; and as long as one correct storage region exists, the parameter of the correct storage region is stored in the error storage region, and if an error does not disappear after rechecking, a system reports the storage region with the error and enters a normal running state, so that the problem that the parameter cannot be used due to the fact that an exception occurs to one memory is solved.

Description

Distribution network terminal device parameter storage method based on multizone storage
Technical field
The present invention relates to distribution network terminal equipment technical field, particularly relate to the distribution network terminal device parameter storage method based on multizone storage.
Background technology
Development along with intelligent power distribution network technology; performance for distribution terminal equipment proposes increasingly higher requirement; but in running environment at the scene; due to the factor such as accidental power failure, interference; some parameter in equipment can be affected; and can the correctness of parameter directly decide distribution network terminal equipment and play the effect of monitor and detection and protection, the equipment of ultimately resulting in cannot be properly functioning.The general design of the terminal detection device of intelligent network distribution is all based on embedded platform, and the parameter required for equipment is left in single fixing storage chip by memorizer of arranging in pairs or groups in periphery.Fig. 1 represents existing parameter storage scheme, parameter is stored region 1 by the CPU of distribution network terminal equipment, so when occurring accident or memorizer to damage in storing process, parameter cannot be recovered, and equipment can cause the system failure even to collapse because of the parameter of mistake in, ultimately results in serious security incident.If increasing extra backing storage will increase hardware cost.
Summary of the invention
The purpose of the present invention is contemplated to solve the problems referred to above, a kind of distribution network terminal device parameter storage method based on multizone storage is provided, will not occur abnormal because of a memorizer, cause the obsolete problem of parameter, effectively reduce because electromagnetic interference, memorizer damage the abnormal parameters caused, namely do not increase system resource, it is ensured that the correct storage of parameter, increase the time that system equipment runs well.
To achieve these goals, the present invention adopts the following technical scheme that
Based on the distribution network terminal device parameter storage method of multizone storage, distribution network terminal equipment includes CPU, testing circuit module, memory module, power module and communication module;
Described memory module includes the memory area of more than at least three, respectively region 1, region 2 ... region n, n are be more than or equal to 3, and each memory area is relatively independent and standby each other, when distribution network terminal equipment runs first, the default value of all parameters is stored each memory area;Parameter check when modifying errorless after also by storage to each memory area.
When distribution network terminal equipment is properly functioning, whether the parameter of all memory areas of continuous cycle detection is correct, if mistake all occurs in memory area, after inspection again, mistake does not disappear, and the function with relating to parameters is closed;Correct simply by the presence of a memory area, the parameter of correct memory area is stored error memory area, this error memory area mistake after inspection again does not disappear, and the memory area of mistake occurs by reporting in system, and system enters normal operating condition.
When described distribution network terminal equipment runs first, the function relevant to parameter is closed, it is prevented that parameter dysfunction occurs in change process.
Parameter first checks for amended parameter whether beyond set point when modifying, and errorless being stored to each region if checked, if parameter has exceeded set point, cancelling amendment and also error message being fed back to communication module.
When parameter is in amendment process, the function relevant to parameter is closed, it is prevented that in change process, dysfunction occurs.
When distribution network terminal equipment is properly functioning, in the correctness of the continuous cycle detection parameter of interval that function completes.
When distribution network terminal equipment is properly functioning, the concrete grammar of the storage of parameter includes:
Whether correct first check for the parameter in RAM, if correctly continuing checking for the correctness of subsequent region parameter, if it is incorrect, parameter is read from region 1, whether the parameter in service test algorithm detection region 1 is correct, its value is passed to RAM if correct and continue checking for the correctness of subsequent region parameter, if the parameter obtained from region 1 is not verified, parameter correct judgment will be read from region 2, its value is passed to RAM if correct and be stored to region 1, if again there is mistake in storing process in region 1, region 1 will be abandoned, the priority in such region 2 raises, the parameter values in region 2 is preferentially used when RAM checks and goes wrong;If the incorrect parameter continuing the next memory area of inspection, correct until the parameter having a memory area, correct parameter is replaced the parameter of all incorrect memory areas;The like, identical strategy is also carried out for follow-up parameter backup region;If the parameter of all memory areas all detects incorrect, the function of distribution network terminal equipment and relating to parameters will be closed, and error message is fed back upper level equipment.
Removing and store outside special region 1 as parameter, other memory areas all utilize it mainly to store the part that function does not all use.Namely do not increasing on the basis of equipment cost, making full use of each memorizer and complete the storage of parameter, it is ensured that the correctness of parameter.
Beneficial effects of the present invention:
(1) single storage being expanded to multizone, more than at least 3, one of them region is parameter private memory, and each region is mutually contradictory and standby each other;
(2) system is run first, and the default value of all parameters is stored each region;Parameter modify inspection errorless after also by storage to each region;When storing, the function relevant to parameter is exited, it is prevented that in change process, dysfunction occurs.
(3), when system is properly functioning, whether the parameter in continuous cycle detection region 1, region 2 and region 3 is correct.If mistake all occur in 3 regions, after inspection again, mistake does not disappear, and the function with relating to parameters is closed by system;Correct simply by the presence of a region, the parameter in correct region is stored zone errors, after inspection again, mistake does not disappear, and the region of mistake occurs by reporting in system, and system enters normal operating condition.
(4) utilize the remainder of many functional memories, do not increase system cost, it is possible to make full use of each memorizer.
(5) the method will not occur abnormal because of a memorizer, cause the obsolete problem of parameter, effectively reduce because electromagnetic interference, memorizer damage the abnormal parameters caused, namely do not increase system resource, ensure the correct storage of parameter, increase the time that system equipment runs well.
Accompanying drawing explanation
Fig. 1 is existing parameter storage scheme;
Fig. 2 is distribution network terminal device parameter testing process in the present embodiment.
Detailed description of the invention
Below in conjunction with accompanying drawing, the invention will be further described with embodiment.
Distribution network terminal equipment is generally all made up of CPU, testing circuit module, memory module, power module and communication module.Memory module can select mass storage when being the data of record testing circuit module, memory module also has a special parameter storage, also have because the extra memory of other functional requirements design, such as update the memorizer for storing program code for convenience of program.Memory module includes three memory areas, respectively region 1, region 2 and region 3, and each memory area is relatively independent and standby each other.
The main region 1 that distribution network terminal equipment choosing ferrum electricity FRAM stores as parameter;
The CPU of distribution network terminal equipment selects the microcontroller of STM32 series, and the FLASH capacity of internal storage program code is relatively larger, and code will not take too many space, selects a portion as region 2;
Distribution network terminal equipment uses big data storage NANDFLASH to preserve tele rcording, in order to later device upgrade or expansion have reserved area, it is possible to select a portion as region 3;
The default value of parameter, when first powering on, is stored region 1, region 2 and region 3, and whether read the parameter using CRC algorithm inspection storage after storage terminates correct by distribution network terminal equipment.If any region parameter in region 1, region 2 and region 3 is correct, distribution network terminal equipment will run well.If region 1, region 2 and region 3 check errors, distribution network terminal equipment will be closed key function and parameter error information will be passed to upper level equipment, in order to processes in time and prevents misoperation from producing.
Distribution network terminal equipment, in the gap of the functions such as parameter calling, amendment, checks that whether the parameter in RAM district, region 1, region 2 and region 3 is normal in turn.If mistake all occurs in the parameter in 4 regions, distribution network terminal equipment will be closed key function and parameter error information will be passed to upper level equipment.If there is wrong number of regions less than 4, the parameter in correct region is stored again zone errors, and reading is tested, if again making a mistake, zone errors being isolated and reporting.
The specific embodiment of the present invention is described in conjunction with accompanying drawing although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme, those skilled in the art need not pay various amendments or deformation that creative work can make still within protection scope of the present invention.

Claims (7)

1., based on the distribution network terminal device parameter storage method of multizone storage, distribution network terminal equipment includes CPU, testing circuit module, memory module, power module and communication module, it is characterized in that,
Described memory module includes the memory area of more than at least three, respectively region 1, region 2 ... region n, n are be more than or equal to 3, and each memory area is relatively independent and standby each other, when distribution network terminal equipment runs first, the default value of all parameters is stored each memory area;Parameter when modifying inspection errorless after also by storage to each memory area;
When distribution network terminal equipment is properly functioning, whether the parameter of all memory areas of continuous cycle detection is correct, if mistake all occurs in memory area, after inspection again, mistake does not disappear, and the function with relating to parameters is closed;Correct simply by the presence of a memory area, the parameter of correct memory area is stored error memory area, this error memory area mistake after inspection again does not disappear, and the memory area of mistake occurs by reporting in system, and system enters normal operating condition.
2., as claimed in claim 1 based on the distribution network terminal device parameter storage method of multizone storage, it is characterized in that, when described distribution network terminal equipment runs first, the function relevant to parameter is closed, it is prevented that parameter dysfunction occurs in change process.
3. as claimed in claim 1 based on the distribution network terminal device parameter storage method of multizone storage, it is characterized in that, whether parameter first checks for amended parameter beyond set point when modifying, if check errorless after be stored to each region, if parameter has exceeded set point, cancel amendment and error message is fed back to communication module.
4., as claimed in claim 3 based on the distribution network terminal device parameter storage method of multizone storage, it is characterized in that, when parameter is in amendment process, the function relevant to parameter is closed, it is prevented that in change process, dysfunction occurs.
5., as claimed in claim 1 based on the distribution network terminal device parameter storage method of multizone storage, it is characterized in that, when distribution network terminal equipment is properly functioning, in the correctness of the continuous cycle detection parameter of interval that function completes.
6. as claimed in claim 1 based on the distribution network terminal device parameter storage method of multizone storage, it is characterized in that, when distribution network terminal equipment is properly functioning, the concrete grammar of parameter storage includes:
Whether correct first check for the parameter in RAM, if correctly continuing checking for the correctness of next memory area parameter, if it is incorrect, parameter is read from region 1, whether the parameter in service test algorithm detection region 1 is correct, its value is passed to RAM if correct and continue checking for the correctness of next memory area parameter, if the parameter obtained from region 1 is not verified, parameter correct judgment will be read from region 2, its value is passed to RAM if correct and be stored to region 1, if again there is mistake in storing process in region 1, region 1 will be abandoned, the priority in such region 2 raises, the parameter values in region 2 is preferentially used when RAM checks and goes wrong;If the incorrect parameter continuing the next memory area of inspection, correct until the parameter having a memory area, correct parameter is replaced the parameter of all incorrect memory areas;The like, identical strategy is also carried out for follow-up parameter backup region;If the parameter of all memory areas all detects incorrect, the function of distribution network terminal equipment and relating to parameters will be closed, and error message is fed back upper level equipment.
7. based on the distribution network terminal device parameter storage method of multizone storage as described in any one of claim 1-6, it is characterized in that, removing and store outside special region 1 as parameter, other memory areas all utilize it mainly to store the part that function does not all use.
CN201610066146.5A 2016-01-29 2016-01-29 Multi-region storage based parameter storage method for distribution network terminal device Pending CN105739928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610066146.5A CN105739928A (en) 2016-01-29 2016-01-29 Multi-region storage based parameter storage method for distribution network terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610066146.5A CN105739928A (en) 2016-01-29 2016-01-29 Multi-region storage based parameter storage method for distribution network terminal device

Publications (1)

Publication Number Publication Date
CN105739928A true CN105739928A (en) 2016-07-06

Family

ID=56247140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610066146.5A Pending CN105739928A (en) 2016-01-29 2016-01-29 Multi-region storage based parameter storage method for distribution network terminal device

Country Status (1)

Country Link
CN (1) CN105739928A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445722A (en) * 2016-10-20 2017-02-22 积成电子股份有限公司 Method for conducting parameter storage in embedded system based on flash memory
CN108664358A (en) * 2018-05-18 2018-10-16 广州视源电子科技股份有限公司 Single-chip microcomputer parameter processing method and system, readable storage medium and terminal equipment
CN109521954A (en) * 2018-10-12 2019-03-26 许继集团有限公司 A kind of distribution FTU fixed point file management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201387448Y (en) * 2009-02-25 2010-01-20 青岛乾程电子科技有限公司 Multi-functional electric energy meter with high-reliability data storage function
CN101923112A (en) * 2010-07-26 2010-12-22 珠海中慧微电子有限公司 Method for managing high reliability of electric energy measurement data
CN201765272U (en) * 2010-03-02 2011-03-16 威胜集团有限公司 Three-fee-controlled wireless intelligent electric energy meter
CN104571961A (en) * 2014-12-31 2015-04-29 深圳市成为信息技术有限公司 Data verification backup, writing and reading method for triangle type memory device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201387448Y (en) * 2009-02-25 2010-01-20 青岛乾程电子科技有限公司 Multi-functional electric energy meter with high-reliability data storage function
CN201765272U (en) * 2010-03-02 2011-03-16 威胜集团有限公司 Three-fee-controlled wireless intelligent electric energy meter
CN101923112A (en) * 2010-07-26 2010-12-22 珠海中慧微电子有限公司 Method for managing high reliability of electric energy measurement data
CN104571961A (en) * 2014-12-31 2015-04-29 深圳市成为信息技术有限公司 Data verification backup, writing and reading method for triangle type memory device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445722A (en) * 2016-10-20 2017-02-22 积成电子股份有限公司 Method for conducting parameter storage in embedded system based on flash memory
CN106445722B (en) * 2016-10-20 2019-08-06 积成电子股份有限公司 A kind of method for carrying out parameter storage based on flash memories in embedded system
CN108664358A (en) * 2018-05-18 2018-10-16 广州视源电子科技股份有限公司 Single-chip microcomputer parameter processing method and system, readable storage medium and terminal equipment
CN109521954A (en) * 2018-10-12 2019-03-26 许继集团有限公司 A kind of distribution FTU fixed point file management method and device
CN109521954B (en) * 2018-10-12 2021-11-16 许继集团有限公司 Distribution network FTU fixed point file management method and device

Similar Documents

Publication Publication Date Title
WO2017215377A1 (en) Method and device for processing hard memory error
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
EP2749848A1 (en) Firmware upgrade error detection and automatic rollback
JP2012113466A (en) Memory controller and information processing system
CN102236569A (en) Embedded system and starting method thereof
CN103902399B (en) Software system repair processing method and software system repair processing device
CN112542199B (en) Method, circuit, storage medium and terminal for detecting flash memory error
CN103247345A (en) Quick-flash memory and detection method for failure memory cell of quick-flash memory
CN105739928A (en) Multi-region storage based parameter storage method for distribution network terminal device
CN110489259B (en) Memory fault detection method and equipment
CN112306726A (en) Single-particle-upset-resistant system and method
CN108920301A (en) Data back up method and system, data reconstruction method and system
CN112433498B (en) Redundant module implementation method, electronic equipment and storage medium
CN105868038B (en) Memory error processing method and electronic equipment
CN104158843A (en) Storage unit invalidation detecting method and device for distributed file storage system
CN115705261A (en) Memory fault repairing method, CPU, OS, BIOS and server
CN115686951A (en) Fault processing method and device for database server
CN113127035A (en) Traceable upgrading method based on single chip microcomputer
CN115658373B (en) Server-based memory processing method and device, processor and electronic equipment
CN106149284A (en) A kind of washing machine fault detect processing method
CN116010158A (en) Verification device, verification system and chip device of configuration register
CN116072202A (en) Storage device management method, system and storage medium
CN114201393A (en) Software test processing method, device, equipment, medium and program product
CN106021089B (en) A kind of test method and device of patch interface
CN112835745B (en) High-reliability storage method of embedded system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 250101 block B, Yinhe building, 2008 Xinjie street, hi tech Zone, Ji'nan, Shandong.

Applicant after: Shandong Luneng Intelligent Technology Co., Ltd.

Address before: 250101 B block 626, Yinhe building, 2008 Xinjie street, Ji'nan high tech Zone, Shandong.

Applicant before: Shandong Luneng Intelligent Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication