Movatterモバイル変換


[0]ホーム

URL:


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 PDF

Info

Publication number
CN103077097A
CN103077097ACN2013100576986ACN201310057698ACN103077097ACN 103077097 ACN103077097 ACN 103077097ACN 2013100576986 ACN2013100576986 ACN 2013100576986ACN 201310057698 ACN201310057698 ACN 201310057698ACN 103077097 ACN103077097 ACN 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
Application number
CN2013100576986A
Other languages
Chinese (zh)
Other versions
CN103077097B (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 LtdfiledCriticalNARI Technology Co Ltd
Priority to CN201310057698.6ApriorityCriticalpatent/CN103077097B/en
Publication of CN103077097ApublicationCriticalpatent/CN103077097A/en
Application grantedgrantedCritical
Publication of CN103077097BpublicationCriticalpatent/CN103077097B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

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

But a kind of FLASH data programming method based on verification under the TCP mode
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)

CN201310057698.6A2013-02-252013-02-25A kind of FLASH data programming method based on verifying under TCP modeActiveCN103077097B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310057698.6ACN103077097B (en)2013-02-252013-02-25A kind of FLASH data programming method based on verifying under TCP mode

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310057698.6ACN103077097B (en)2013-02-252013-02-25A kind of FLASH data programming method based on verifying under TCP mode

Publications (2)

Publication NumberPublication Date
CN103077097Atrue CN103077097A (en)2013-05-01
CN103077097B CN103077097B (en)2015-08-12

Family

ID=48153630

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310057698.6AActiveCN103077097B (en)2013-02-252013-02-25A kind of FLASH data programming method based on verifying under TCP mode

Country Status (1)

CountryLink
CN (1)CN103077097B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105468408A (en)*2015-11-192016-04-06中国航天科工集团第二研究院七〇六所Method for downloading cryptographic algorithm by intelligent card
CN106354119A (en)*2016-08-262017-01-25华自科技股份有限公司Microcomputer relay protection device power cut length recording method, system and device
CN118069067A (en)*2024-04-162024-05-24泉州华中科技大学智能制造研究院Nor Flash data storage method and device based on master-slave-free TCP communication

Citations (4)

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

Patent Citations (4)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105468408A (en)*2015-11-192016-04-06中国航天科工集团第二研究院七〇六所Method for downloading cryptographic algorithm by intelligent card
CN106354119A (en)*2016-08-262017-01-25华自科技股份有限公司Microcomputer relay protection device power cut length recording method, system and device
CN106354119B (en)*2016-08-262020-04-21华自科技股份有限公司Power-down time recording method, system and device for microcomputer relay protection device
CN118069067A (en)*2024-04-162024-05-24泉州华中科技大学智能制造研究院Nor Flash data storage method and device based on master-slave-free TCP communication
CN118069067B (en)*2024-04-162024-08-13泉州华中科技大学智能制造研究院Nor Flash data storage method and device based on master-slave-free TCP communication

Also Published As

Publication numberPublication date
CN103077097B (en)2015-08-12

Similar Documents

PublicationPublication DateTitle
CN110704304B (en)Application program testing method and device, storage medium and server
CN105912469B (en)Test script automated detection method for rail transportation vehicle-mounted controller software
CN105048632B (en)The consistency detection system and method for intelligent substation IED configuration informations and SCD file
CN102183726A (en)Field programmable gate array (FPGA)-based integrated circuit chip testing system and method
CN104679559A (en)Single chip microcomputer on-line programming method
CN102917242A (en)Testing system and testing method of multi-format video decoder
CN111480150A (en) Software environment for control engine tuning, testing, calibration and tuning
CN104063242A (en)Method applicable to parameter upgrading in whole production process of inertial measurement unit
CN103077097A (en)Verifiable flash data programming method based on transmission control protocol (TCP) way
CN106054114A (en) A detection and calibration method and detection equipment for charging parameters of a DC charging pile
CN105320583A (en)UVM (universal verification methodology) based write-only register verification test platform and verification method
CN104572195A (en)Remote online device program updating method
CN103713993A (en)Chip verification platform and method for implementing chip testing
CN103869275A (en)Measuring accuracy calibration method of intelligent single-phase watt-hour meter
CN102799494B (en)A kind of method and apparatus verifying application program in internal memory
CN104950237A (en)Test system and test method for power down protection of smart card
CN105446859A (en)Automatic generation method of software condition monitoring and wave file for power consumption analysis
CN102538824B (en)Method suitable for MEMS IMU repeated multiple calibrating
CN104376283A (en)Smart card COS high-speed downloading system
CN112181444A (en)DSP multi-core data programming method based on 1553B bus
CN103294837A (en)Method and system for verifying and debugging integrated circuit
CN115290165A (en) Ultrasonic water meter detection method, system and device
CN107122272A (en)A kind of automatic Verification method and device of CPU register informations
CN114064098A (en)Efficient programming method and system for chip program
CN109800172A (en)The system and method to be crashed based on EJTAG interface position embeded processor

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp