CN103077097A - Verifiable flash data programming method based on transmission control protocol (TCP) way - Google Patents
Verifiable flash data programming method based on transmission control protocol (TCP) way Download PDFInfo
- Publication number
- CN103077097A CN103077097A CN2013100576986A CN201310057698A CN103077097A CN 103077097 A CN103077097 A CN 103077097A CN 2013100576986 A CN2013100576986 A CN 2013100576986A CN 201310057698 A CN201310057698 A CN 201310057698A CN 103077097 A CN103077097 A CN 103077097A
- Authority
- CN
- China
- Prior art keywords
- data
- flash
- write
- crc
- check
- 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.)
- Granted
Links
Landscapes
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
Abstract
The invention relates to a verifiable flash data programming method based on a transmission control protocol (TCP) way, which belongs to the field of the automation of a power system, and the method comprises the following steps of connecting a protection measuring and control device, packaging data to be programmed, calculating verification, inputting the data into an internal memory of the protection measuring and control device, finally writing the data and the verification into a flash, reading the data which is written into the flash, and calculating the verification. Due to the adoption of the method, fast writing of device data can be completed, the data programming error code problem of the protection measure and control device can be solved, and reliability in data programming can be realized. The flash data programming method has the advantages of verifiability, fast speed, reliability, accuracy and the like.
Description
Technical field
What the present invention relates to is the FLASH data programming method that a kind of intelligent substation protection measure and control device adds verification; what be specifically related to is a kind of based on TCP(Transmission Control Protocol; transmission control protocol) but the FLASH data programming method of verification under the mode belongs to power system automatic field.
Background technology
Intelligent substation and intelligent assembly intelligent substation are to be formed by advanced, reliable, energy-saving and environmental protection, integrated device combination; take the express network communications platform as Information Transmission System; automatically finish the basic functions such as information acquisition, measurement, control, protection, metering and monitoring, and can support as required the transformer station of the senior application functions such as electrical network is controlled in real time automatically, intelligence adjusting, on-line analysis decision-making, collaborative interaction.And intelligent substation protection measure and control device uses high-performance embedded multi-core CPU to become mainstream configuration, generally moves LINUX operating system, in order to satisfy the needs of replacing program, need to carry out programming to device FLASH.
But the time that the at present burning of FLASH itself needs has increased by one times; The BMC of simultaneously present main flow adopts the microprocessor of ARM9 kernel mostly, in the process of debug, mostly adopt and download bootloader to SPI FLASH by JTAG, this mode at first will be written to bootloader among the SDRAM by JTAG, then in SDRAM, start bootloader, then download firmware by the tftp instrument of bootloader, and then write among the SPI FLASH, the time that at first this mode needs is long, besides for some ARM chip, also needing to send out some configuration script orders by JTAG could download to bootloader among the sdram, so that development difficulty strengthens; And producing easily protection measure and control device FLASH data programming error code problem, writing speed is slow, and is improper for the batch production stage.
Summary of the invention
For the deficiency that exists on the prior art; but the object of the invention provides a kind of FLASH data programming method based on verification under the TCP mode; can finish the quick programming of low-voltage variation measure and control device implementation data and checking data to operation LINUX operating system; solved protection measure and control device FLASH data programming error code problem, the data programming that makes is reliable.
To achieve these goals, the present invention realizes by the following technical solutions:
But a kind of FLASH data programming method based on verification under the TCP mode comprises the following steps:
(1) is connected with target FLASH module creation;
(2) import file and calculation document size and CRC check code, then download;
(3) judge whether successfully connect with target FLASH module; If successful then enter step (4); If unsuccessful, then return error code, close connection;
(4) to target FLASH module the transmission of data, judge then whether the transmission of data finishes, the transmission of data finishes rear resolution data and calculates CRC check;
CRC when (5) CRC check is with the importing file relatively judges whether data check passes through; If pass through, then to the FLASH writing in files, be about to CRC check and write FLASH by data; Otherwise return error code, close connection;
(6) read FLASH data that write and recomputate CRC check, the CRC when importing file relatively judges again whether data check passes through again, guarantees whether the data that write are correct;
If pass through, then return correct code, close connection;
If do not pass through, then return error code, close connection.
The present invention compares the beneficial effect that has with other FLASH programming methods:
The present invention by with the protection measure and control device be that the FLASH module is connected; data packing and calculation check that will programming; data are imported into protection measure and control device internal memory, at last data and check are write FLASH, and will write data reading and the calculation check of FLASH; the no write de-lay of finishing the device data has solved protection measure and control device FLASH data programming error code problem; the data programming that makes is reliable, but it has verification, and speed is fast; reliably, the advantage such as accurate.
Description of drawings
Describe the present invention in detail below in conjunction with the drawings and specific embodiments;
Fig. 1 is process flow diagram of the present invention.
Embodiment
For technological means, creation characteristic that the present invention is realized, reach purpose and effect is easy to understand, below in conjunction with embodiment, further set forth the present invention.
The present invention forms software flow to realize that intelligent substation protection measure and control device adds the quick programming of FLASH data of verification; but it is based on the FLASH data programming method of verification under the TCP mode; finished the quick programming of low-voltage variation measure and control device implementation data and checking data to operation LINUX operating system, the whole step of the method is as follows:
(1) is connected with target FLASH module creation;
(2) import file and calculate the CRC check code;
(3) the file subpackage is sent in the object module;
(4) with Data Analysis and the CRC when calculating CRC check and importing file relatively;
(5) data of verification being passed through write FLASH;
(6) will write the data reading of FLASH and recomputate CRC check and guarantee that the data that write are correct.
Referring to Fig. 1, present embodiment is the better implementation result of the present invention of setting forth, but these detailed concrete steps based on the FLASH data programming method of verification under the TCP mode are as follows:
(1) incipient stage, is connected with target FLASH module creation;
(2) import file and calculation document size and CRC check code, then download;
(3) judge whether successfully connect with target FLASH module; If successful then enter step (4); If unsuccessful, then return error code, close connection;
(4) to target FLASH module the transmission of data, judge then whether the transmission of data finishes, the transmission of data finishes rear resolution data and calculates CRC check;
CRC when (5) CRC check is with the importing file relatively judges whether data check passes through; If pass through, then to the FLASH writing in files, be about to CRC check and write FLASH by data; Otherwise return error code, close connection;
(6) read FLASH data that write and recomputate CRC check, the CRC when importing file relatively judges again whether data check passes through again, guarantees whether the data that write are correct;
If pass through, then return correct code, close connection;
If do not pass through, then return error code, close connection.
By above-described embodiment, present embodiment can be finished the quick programming of low-voltage variation measure and control device implementation data and the checking data to operation LINUX operating system, has solved protection measure and control device FLASH data programming error code problem, and the data programming that makes is reliable.
Based on above-mentioned; the present invention is by being that the FLASH module is connected with the protection measure and control device, and data packing and calculation check that will programming import data into protection measure and control device internal memory; at last data and check are write FLASH; and will write data reading and the calculation check of FLASH, and the no write de-lay of finishing the device data has solved protection measure and control device FLASH data programming error code problem, and the data programming that makes is reliable; but it has verification; the advantages such as speed is fast, and is reliable, accurate.
More than show and described 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; that describes in above-described embodiment and the 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.The claimed scope of the present invention is defined by appending claims and equivalent thereof.
Claims (1)
- But 1. FLASH data programming method based on verification under the TCP mode, it may further comprise the steps:(1) is connected with target FLASH module creation;(2) import file and calculation document size and CRC check code, then download;(3) judge whether successfully connect with target FLASH module; If successful then enter step (4); If unsuccessful, then return error code, close connection;(4) to target FLASH module the transmission of data, judge then whether the transmission of data finishes, the transmission of data finishes rear resolution data and calculates CRC check;CRC when (5) CRC check is with the importing file relatively judges whether data check passes through; If pass through, then to the FLASH writing in files, be about to CRC check and write FLASH by data; Otherwise return error code, close connection;(6) read FLASH data that write and recomputate CRC check, the CRC when importing file relatively judges again whether data check passes through again, guarantees whether the data that write are correct;If pass through, then return correct code, close connection;If do not pass through, then return error code, close connection.
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 true CN103077097A (en) | 2013-05-01 |
CN103077097B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468408A (en) * | 2015-11-19 | 2016-04-06 | 中国航天科工集团第二研究院七〇六所 | Method for downloading cryptographic algorithm by intelligent card |
CN106354119A (en) * | 2016-08-26 | 2017-01-25 | 华自科技股份有限公司 | Microcomputer relay protection device power cut length recording method, system and device |
Citations (4)
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 |
-
2013
- 2013-02-25 CN CN201310057698.6A patent/CN103077097B/en active Active
Patent Citations (4)
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 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468408A (en) * | 2015-11-19 | 2016-04-06 | 中国航天科工集团第二研究院七〇六所 | Method for downloading cryptographic algorithm by intelligent card |
CN106354119A (en) * | 2016-08-26 | 2017-01-25 | 华自科技股份有限公司 | Microcomputer relay protection device power cut length recording method, system and device |
CN106354119B (en) * | 2016-08-26 | 2020-04-21 | 华自科技股份有限公司 | Power-down time recording method, system and device for microcomputer relay protection device |
Also Published As
Publication number | Publication date |
---|---|
CN103077097B (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912469B (en) | Test script automated detection method for rail transportation vehicle-mounted controller software | |
CN103544122B (en) | The cooperative system and its Synergistic method of a kind of interface adaptive matching | |
CN102183726A (en) | Field programmable gate array (FPGA)-based integrated circuit chip testing system and method | |
CN104679559A (en) | Single chip microcomputer on-line programming method | |
CN110704304B (en) | Application program testing method and device, storage medium and server | |
CN104063242B (en) | A kind of method suitable for the upgrading of Inertial Measurement Unit all round process parameter | |
CN106569166B (en) | A kind of test method in twin-core electric energy meter legality measurement portion | |
CN107643506A (en) | A kind of verification system of universal full automatic electric energy meter calibrating installation | |
CN104572195A (en) | Remote online device program updating method | |
CN111480150A (en) | Software environment for control engine debugging, testing, calibration and tuning | |
CN103175567A (en) | Online correcting device of absolute grating ruler reading head parameters | |
CN105005209A (en) | System for fast measuring and automatically calibrating engine stand | |
CN103077097A (en) | Verifiable flash data programming method based on transmission control protocol (TCP) way | |
CN103425580A (en) | Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device | |
CN102799494B (en) | A kind of method and apparatus verifying application program in internal memory | |
CN113063442A (en) | Floor sweeping robot gyroscope calibration method and device, computer equipment and memory | |
CN102538824B (en) | Method suitable for MEMS IMU repeated multiple calibrating | |
CN105404275B (en) | A kind of satellite control test equipment automatic checkout system and detection method | |
CN103869275A (en) | Measuring accuracy calibration method of intelligent single-phase watt-hour meter | |
CN115290165A (en) | Detection method, system and device of ultrasonic water meter | |
CN104950237A (en) | Test system and test method for power down protection of smart card | |
CN104483649A (en) | High-precision time synchronization method and system applied to electric energy meter | |
CN112181448A (en) | Remote application program installation method and device and computer equipment | |
CN109800172A (en) | The system and method to be crashed based on EJTAG interface position embeded processor | |
CN204009871U (en) | A kind of overall platform access control proving installation |
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 |