CN103077097B - A kind of FLASH data programming method based on verifying under TCP mode - Google Patents

A kind of FLASH data programming method based on verifying under TCP mode Download PDF

Info

Publication number
CN103077097B
CN103077097B CN201310057698.6A CN201310057698A CN103077097B CN 103077097 B CN103077097 B CN 103077097B CN 201310057698 A CN201310057698 A CN 201310057698A CN 103077097 B CN103077097 B CN 103077097B
Authority
CN
China
Prior art keywords
data
flash
write
connect
crc
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
CN201310057698.6A
Other languages
Chinese (zh)
Other versions
CN103077097A (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.)
Nari Technology Co Ltd
Original Assignee
Nari 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 Nari Technology Co Ltd filed Critical Nari Technology Co Ltd
Priority to CN201310057698.6A priority Critical patent/CN103077097B/en
Publication of CN103077097A publication Critical patent/CN103077097A/en
Application granted granted Critical
Publication of CN103077097B publication Critical patent/CN103077097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

What the present invention relates to is a kind of FLASH data programming method based on verifying under TCP mode; belong to power system automatic field; its method is: be connected with protection supervisory equipment; will programming data packing and calculation check; data are imported into protection supervisory equipment internal memory; finally data and inspection write FLASH, and will the data reading of FLASH be write and calculation check.The no write de-lay of the complete twin installation data of the present invention, solve protection supervisory equipment FLASH data programming error code problem, the data programming made is reliable.It has and can verify, and speed is fast, reliably, and the advantage such as accurate.

Description

A kind of FLASH data programming method based on verifying under TCP mode
Technical field
What the present invention relates to is a kind of FLASH data programming method that intelligent substation protection supervisory equipment adds verification; what be specifically related to is a kind of based on TCP(Transmission Control Protocol; transmission control protocol) the FLASH data programming method that can verify under mode, belong to power system automatic field.
Background technology
Intelligent substation and intelligent assembly intelligent substation are combined by advanced, reliable, energy-saving and environmental protection, integrated equipment; with high-speed network communication platform for Information Transmission System; automatically complete the basic functions such as information acquisition, measurement, control, protection, metering and monitoring, and the transformer station of the senior application functions such as electrical network control automatically in real time, Intelligent adjustment, on-line analysis decision-making, collaborative interaction can be supported as required.And intelligent substation protection supervisory equipment uses high-performance embedded multi-core CPU to become mainstream configuration, general operation LINUX operating system, in order to the needs of satisfied replacing program, needs to carry out programming to device FLASH.
But the time that the burning of FLASH itself needs at present adds one times, the BMC of main flow adopts the microprocessor of ARM9 kernel mostly now simultaneously, mostly adopt in the process of debug and download bootloader to SPI FLASH by JTAG, first this mode will be written to bootloader in SDRAM by JTAG, then in SDRAM, bootloader is started, then firmware is downloaded by the tftp instrument of bootloader, and then in write SPI FLASH, first the time that this mode needs is long, besides for some ARM chip, also needing to send out some configuration script orders by JTAG could download in sdram bootloader, development difficulty is strengthened, and easily producing protection supervisory equipment FLASH data programming error code problem, writing speed is slow, improper for mass-production stage.
Summary of the invention
For the deficiency that prior art exists; the object of the invention is to provide a kind of FLASH data programming method based on verifying under TCP mode; the quick programming of low-voltage variation measure and control device implementation data to operation LINUX operating system can be completed and checking data; solve protection supervisory equipment FLASH data programming error code problem, the data programming made is reliable.
To achieve these goals, the present invention realizes by the following technical solutions:
Based on the FLASH data programming method that can verify under TCP mode, comprise the following steps:
(1) be connected with target FLASH module creation;
(2) import file calculation document size and CRC check code, then download;
(3) whether judgement and target FLASH module connect successful; If success, enters step (4); If unsuccessful, then return error code, close and connect;
(4) to target FLASH module transfer data, then judge whether transmission data terminate, resolution data after transmission ED also calculates CRC check;
(5) CRC check compares with CRC when importing file, judges whether data check passes through; If pass through, then to FLASH writing in files, write FLASH by CRC check by data; Otherwise return error code, close and connect;
(6) read the FLASH data of write and recalculate CRC check, again comparing with CRC when importing file, again judge whether data check passes through, guaranteeing that whether the data write are correct;
If pass through, then return correct code, close and connect;
If do not pass through, then return error code, close and connect.
The beneficial effect that the present invention has compared with other FLASH programming methods is:
The present invention is by being connected with protection supervisory equipment and FLASH module; will programming data packing and calculation check; data are imported into protection supervisory equipment internal memory, finally data and inspection write FLASH, and will the data reading of FLASH be write and calculation check; the no write de-lay of complete twin installation data solves protection supervisory equipment FLASH data programming error code problem; the data programming made is reliable, and it has and can verify, and speed is fast; reliably, the advantage such as accurate.
Accompanying drawing explanation
The present invention is described in detail below in conjunction with the drawings and specific embodiments;
Fig. 1 is process flow diagram of the present invention.
Embodiment
The technological means realized for making the present invention, creation characteristic, reaching object and effect is easy to understand, below in conjunction with embodiment, setting forth the present invention further.
The present invention forms software flow to realize the quick programming of FLASH data that intelligent substation protection supervisory equipment adds verification; it is the FLASH data programming method based on verifying under TCP mode; complete the quick programming of low-voltage variation measure and control device implementation data to operation LINUX operating system and checking data, the overall step of the method is as follows:
(1) be connected with target FLASH module creation;
(2) import file and calculate CRC check code;
(3) file subpackage is sent in object module;
(4) by Data Analysis and calculate CRC check with import file time CRC compare;
(5) the data write FLASH passed through will be verified;
(6) will write FLASH data reading and recalculate CRC check guarantee write data correct.
See Fig. 1, the present embodiment is better elaboration implementation result of the present invention, should be as follows based on the detailed concrete steps of the FLASH data programming method that can verify under TCP mode:
(1) incipient stage, be connected with target FLASH module creation;
(2) import file calculation document size and CRC check code, then download;
(3) whether judgement and target FLASH module connect successful; If success, enters step (4); If unsuccessful, then return error code, close and connect;
(4) to target FLASH module transfer data, then judge whether transmission data terminate, resolution data after transmission ED also calculates CRC check;
(5) CRC check compares with CRC when importing file, judges whether data check passes through; If pass through, then to FLASH writing in files, write FLASH by CRC check by data; Otherwise return error code, close and connect;
(6) read the FLASH data of write and recalculate CRC check, again comparing with CRC when importing file, again judge whether data check passes through, guaranteeing that whether the data write are correct;
If pass through, then return correct code, close and connect;
If do not pass through, then return error code, close and connect.
By above-described embodiment, the present embodiment can complete running the quick programming of low-voltage variation measure and control device implementation data of LINUX operating system and checking data, and solve protection supervisory equipment FLASH data programming error code problem, the data programming made is reliable.
Based on above-mentioned; the present invention by being connected with protection supervisory equipment and FLASH module, will programming data packing and calculation check, data are imported into protection supervisory equipment internal memory; finally data and inspection write FLASH; and will the data reading of FLASH be write and calculation check, the no write de-lay of complete twin installation data solves protection supervisory equipment FLASH data programming error code problem, and the data programming made is reliable; it has and can verify; speed is fast, reliably, and the advantage such as accurate.
More than show and describe ultimate principle of the present invention and principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; what describe in above-described embodiment and instructions just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.Application claims protection domain is defined by appending claims and equivalent thereof.

Claims (1)

1., based on the FLASH data programming method that can verify under TCP mode, it comprises the following steps:
(1) be connected with target FLASH module creation;
(2) import file calculation document size and CRC check code, then download;
(3) whether judgement and target FLASH module connect successful; If success, enters step (4); If unsuccessful, then return error code, close and connect;
(4) to target FLASH module transfer data, then judge whether transmission data terminate, resolution data after transmission ED also calculates CRC check;
(5) CRC check compares with CRC when importing file, judges whether data check passes through; If pass through, then to FLASH writing in files, write FLASH by CRC check by data; Otherwise return error code, close and connect;
(6) read the FLASH data of write and recalculate CRC check, again comparing with CRC when importing file, again judge whether data check passes through, guaranteeing that whether the data write are correct;
If pass through, then return correct code, close and connect;
If do not pass through, then return error code, close and connect.
CN201310057698.6A 2013-02-25 2013-02-25 A kind of FLASH data programming method based on verifying under TCP mode Active CN103077097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310057698.6A CN103077097B (en) 2013-02-25 2013-02-25 A kind of FLASH data programming method based on verifying under TCP mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310057698.6A CN103077097B (en) 2013-02-25 2013-02-25 A kind of FLASH data programming method based on verifying under TCP mode

Publications (2)

Publication Number Publication Date
CN103077097A CN103077097A (en) 2013-05-01
CN103077097B true CN103077097B (en) 2015-08-12

Family

ID=48153630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310057698.6A Active CN103077097B (en) 2013-02-25 2013-02-25 A kind of FLASH data programming method based on verifying under TCP mode

Country Status (1)

Country Link
CN (1) CN103077097B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468408A (en) * 2015-11-19 2016-04-06 中国航天科工集团第二研究院七〇六所 Method for downloading cryptographic algorithm by intelligent card
CN106354119B (en) * 2016-08-26 2020-04-21 华自科技股份有限公司 Power-down time recording method, system and device for microcomputer relay protection device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979415A (en) * 2005-12-09 2007-06-13 中兴通讯股份有限公司 Method for automatically configurating programmable device by inlaid CPU
CN101957764A (en) * 2010-08-02 2011-01-26 珠海许继电气有限公司 Method for remotely updating remote terminal program
CN102622250A (en) * 2012-03-07 2012-08-01 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment
CN102902732A (en) * 2012-09-11 2013-01-30 南车株洲电力机车研究所有限公司 Check adding method into extensive makeup language (XML) configuration file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979415A (en) * 2005-12-09 2007-06-13 中兴通讯股份有限公司 Method for automatically configurating programmable device by inlaid CPU
CN101957764A (en) * 2010-08-02 2011-01-26 珠海许继电气有限公司 Method for remotely updating remote terminal program
CN102622250A (en) * 2012-03-07 2012-08-01 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment
CN102902732A (en) * 2012-09-11 2013-01-30 南车株洲电力机车研究所有限公司 Check adding method into extensive makeup language (XML) configuration file

Also Published As

Publication number Publication date
CN103077097A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN105912469B (en) Test script automated detection method for rail transportation vehicle-mounted controller software
CN104536303B (en) A kind of fault filling method
CN106329720B (en) Detection and debugging method for secondary system of reconstruction and extension project of intelligent substation
CN104407951A (en) Method for automatically testing server
BR102015007965A2 (en) SYSTEM, COMPUTER-RELATED NON-TRANSIENT MEDIA AND METHOD
CN104679559A (en) Single chip microcomputer on-line programming method
CN105491038A (en) Intelligent device protocol analysis method
CN103544451B (en) Based on the PLC encryption methods safeguarded and system by stages
CN107643506A (en) A kind of verification system of universal full automatic electric energy meter calibrating installation
CN103077097B (en) A kind of FLASH data programming method based on verifying under TCP mode
CN104346272A (en) Automatic chip simulative testing system
CN107508727B (en) Automatic network card information checking method and device
CN105319529A (en) System and method for calibrating errors of watt-hour meters
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN105005209A (en) System for fast measuring and automatically calibrating engine stand
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN104572195A (en) Remote online device program updating method
CN102799494B (en) A kind of method and apparatus verifying application program in internal memory
CN105446859A (en) Automatic generation method of software condition monitoring and wave file for power consumption analysis
CN113806816A (en) Electronic file management method and device based on block chain and electronic equipment
CN106484639A (en) A kind of method that CPU register information is obtained by ipmi agreement
CN105320583A (en) UVM (universal verification methodology) based write-only register verification test platform and verification method
CN102735978B (en) Computer on-line debugging method for grid-connected inverter
CN104950237A (en) Test system and test method for power down protection of smart card
CN109800172A (en) The system and method to be crashed based on EJTAG interface position embeded processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant