CN103685552B - A kind of method for upgrading software of small memory device - Google Patents
A kind of method for upgrading software of small memory device Download PDFInfo
- Publication number
- CN103685552B CN103685552B CN201310727103.3A CN201310727103A CN103685552B CN 103685552 B CN103685552 B CN 103685552B CN 201310727103 A CN201310727103 A CN 201310727103A CN 103685552 B CN103685552 B CN 103685552B
- Authority
- CN
- China
- Prior art keywords
- upgrading
- distribution network
- optical distribution
- network equipment
- subfile
- 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
Links
Landscapes
- Optical Communication System (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A kind of method for upgrading software of small memory device, it is related to Optical Distribution Network apparatus field, when network management system directly sends upgrade command to optical distribution network equipment, memory headroom is write direct in flash after receiving a upgrading subfile, then delete this time upgrading subfile, next upgrading subfile is received, until all upgrading subfiles all write flash;When Intelligent management terminal is to optical distribution network equipment transmission upgrade command, memory headroom receives a upgrading subfile, and after check (CRC) and upgrading subfile numbering are correct, write in flash, then delete this time upgrading subfile, next upgrading subfile is received again, until all upgrading subfiles all write flash;Wherein, the memory headroom of optical distribution network equipment is not less than the size of maximum upgrading subfile under two kinds of upgrade cases.The memory headroom that present invention upgrading takes is small, reduction upgrading power consumption, saves memory chip cost, simplifies hardware circuit complexity.
Description
Technical field
It is specifically a kind of method for upgrading software of small memory device the present invention relates to Optical Distribution Network apparatus field.
Background technology
As shown in figure 1, optical distribution network device upgrade system includes network management system(Including ftp server), intelligent management
Terminal, optical distribution network equipment(MMU, DMU, DCU etc.), the main upgrade path of optical distribution network device object has two kinds:One
It is directly to send upgrade command to optical distribution network equipment from network management system to plant, and the upgrading that the parsing of optical distribution network equipment is received refers to
Order, therefrom obtains the filename of user name, password and the equipment of ftp server, and the file for downloading equipment by File Transfer Protocol is carried out
Updating operation.Another is that Intelligent management terminal sends upgrade command to optical distribution network equipment, and Intelligent management terminal directly will
File sends optical distribution network equipment to, and optical distribution network equipment carries out updating operation again.
The upgrade method of above-mentioned optical distribution network equipment is all by all upgrading subfiles(Close to 2M)All it is transferred to
In internal memory, then upgrade file write into flash, this internal memory for being accomplished by the use of optical distribution network equipment is greater than whole upgradings
Subfile.And the memory headroom that optical distribution network device upgrade takes is larger, power consumption is higher during upgrading, it is impossible to meet user to production
The requirement of product low-power consumption;Memory chip price used also costly, increases cost;The address wire needed is on the high side, use
I/O interfaces are also increased, and the complexity of whole hardware circuit also increases.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of software upgrading of small memory device
Method, the memory headroom that optical distribution network device upgrade takes is small, reduction upgrading power consumption, saves memory chip cost, simplifies hard
Part circuit complexity.
To achieve the above objectives, the present invention provides a kind of method for upgrading software of small memory device, including network management system liter
The step of the step of level optical distribution network equipment and Intelligent management terminal upgrading optical distribution network equipment, network management system is directly to light
When distribution network equipment sends upgrade command, the memory headroom of optical distribution network equipment is directly write after receiving a upgrading subfile
Enter in flash, memory headroom then deletes this time upgrading subfile, next upgrading subfile is received again, until all liters
Level subfile all writes flash;When Intelligent management terminal is to optical distribution network equipment transmission upgrade command, optical distribution network is set
It is interior in write-in flash after standby memory headroom receives a upgrading subfile, and check (CRC) and upgrading subfile numbering are correct
Deposit space and then delete this time upgrading subfile, next upgrading subfile is received again, until all upgrading subfiles are whole
Write flash;Wherein, maximum the big of subfile of upgrading under not less than two kinds upgrade cases of the memory headroom of optical distribution network equipment
It is small.
On the basis of above-mentioned technical proposal, the network management system directly sends upgrade command to optical distribution network equipment
When, the ftp server that optical distribution network equipment connects network management system by its FTP customer side downloads upgrading subfile.
On the basis of above-mentioned technical proposal, the upgrade command that the optical distribution network equipment parsing network management system is sent,
Ftp server user name, password and upgrade file name are obtained, if obtaining failure, optical distribution network equipment is fed back to network management system
Obtain failure information.
On the basis of above-mentioned technical proposal, the network management system directly sends upgrade command to optical distribution network equipment,
When the memory headroom of optical distribution network equipment receives each upgrading subfile, judge whether the upgrading subfile is stored in internal memory empty
Between, if so, the upgrading subfile is write in flash;If it is not, network management system upgrading failure is informed in the way of trap, and clearly
Except the flash having been written into.
On the basis of above-mentioned technical proposal, when network management system directly sends upgrade command to optical distribution network equipment, institute
There is upgrading subfile all to write after flash, optical distribution network equipment informs that network management system is upgraded successfully in the way of trap.
On the basis of above-mentioned technical proposal, the Intelligent management terminal sends upgrade command to optical distribution network equipment
When, optical distribution network equipment obtains the optical distribution network device type of upgrading, upgrading subfile quantity, if obtaining failure, light
Distribution network equipment obtains failure information to Intelligent management terminal feedback.
On the basis of above-mentioned technical proposal, the Intelligent management terminal sends upgrade command to optical distribution network equipment,
The memory headroom of optical distribution network equipment receives each upgrading subfile, judges that the upgrading subfile is stored in memory headroom right,
If so, further verifying whether upgrading subfile CRC succeeds, if success, the upgrading subfile is write in flash, feedback
Successful information is received to Intelligent management terminal;If the upgrading subfile is not stored in memory headroom or verifies subfile CRC
Failure, then feed back error message to Intelligent management terminal, terminates upgrading.
On the basis of above-mentioned technical proposal, the Intelligent management terminal sends upgrade command to optical distribution network equipment
When, all upgrading subfiles are all after write-in flash, and optical distribution network equipment is given out a contract for a project to be escalated into Intelligent management terminal feedback
Work(.
On the basis of above-mentioned technical proposal, the network management system directly sends upgrade command to optical distribution network equipment
When, each upgrading subfile is 256 bytes;When Intelligent management terminal is to optical distribution network equipment transmission upgrade command, Mei Gesheng
Level subfile is 1300 bytes;The memory headroom of the optical distribution network equipment is not less than 1300 bytes.
The beneficial effects of the present invention are:
1st, the memory headroom of optical distribution network equipment only needs to store each upgrading subfile, therefore memory headroom reduces,
The upgrading of optical distribution network equipment can be completed using small internal memory, the memory chip of use reduces therewith, substantially reduces light and matches somebody with somebody
The cost of the line network equipment, there was only 2M internal memories such as 256K memory chip price, the cost of optical distribution network equipment
50% or so can be reduced.
2nd, with the reduction of memory headroom, the power consumption of optical distribution network equipment is also decreased, and saves the energy.
3rd, memory headroom reduces, and the address wire that optical distribution network equipment needs just relative reduction, the I/O interfaces of response also may be used
To reduce, reduce the complexity of whole hardware circuit, for example using 32K memory headroom, it is necessary to address wire be 15, relatively
For 21 address wires that 2M memory headrooms need, 6 address wires are reduced.
Brief description of the drawings
Fig. 1 is the schematic diagram of optical distribution network device upgrade system in background technology;
Fig. 2 is the method for network management system of embodiment of the present invention upgrading optical distribution network equipment;
Fig. 3 is the method for Intelligent management terminal of embodiment of the present invention upgrading optical distribution network equipment.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
The method for upgrading software of the small memory device of the present invention, including:Network management system is directly sent to optical distribution network equipment
During upgrade command, the memory headroom of optical distribution network equipment is write direct in flash after receiving each upgrading subfile, and internal memory is empty
Between then delete this time upgrading subfile, next upgrading subfile is received again, until it is all upgrading subfiles all write
flash.When Intelligent management terminal is to optical distribution network equipment transmission upgrade command, the memory headroom of optical distribution network equipment is received
Each upgrading subfile, and after check (CRC) and upgrading subfile numbering are correct, in write-in flash, memory headroom is then deleted should
Secondary upgrading subfile, receives next upgrading subfile again, until all upgrading subfiles all write flash;Wherein, light
Under not less than two kinds upgrade cases of the memory headroom of distribution network equipment in the size of maximum upgrading subfile, the present embodiment, institute
When stating network management system directly to optical distribution network equipment transmission upgrade command, each upgrading subfile is 256 bytes;Intelligent management
When terminal is to optical distribution network equipment transmission upgrade command, each upgrading subfile is 1300 bytes;The optical distribution network is set
Standby memory headroom is not less than 1300 bytes.Communicated between the network management system and optical distribution network equipment by snmp protocol,
The ftp server that the optical distribution network equipment connects network management system by its FTP customer side downloads upgrading subfile;Webmaster system
System and Intelligent management terminal between pass through usb communication.
The method of optical distribution network equipment as shown in Fig. 2 network management system is upgraded, it is comprised the following steps that:
S101. the upgrade command that optical distribution network equipment parsing network management system is sent, judges whether successfully to obtain FTP letters
Breath, such as server user name, password and upgrade file name, if so, into S103;If it is not, into S102.
S102. the optical distribution network equipment obtains failure information to network management system Response feedbacks.
Transmit one upgrading subfile size of S103.FTP servers is 256 bytes, and FTP service end is to equipment application
256 byte of memory spaces receive the upgrading subfile.Because FTP is transmitted using Transmission Control Protocol, optical distribution network equipment need not be examined
Consider the situation of subfile order and the error of transmitting procedure payload.
S104. judge whether the upgrading subfile is stored in memory headroom, if so, into S106;If it is not, entering such as S105.
S105. optical distribution network equipment informs network management system upgrading failure in the way of trap, and removes what is had been written into
flash。
S106. the upgrading subfile is write in flash, and judges whether write-in flash successes, if so, into S107;
If it is not, into S105.
S107. judge whether all write-in flash is finished all upgrading subfiles, if, it was demonstrated that whole upgrade file is passed
It is totally lost complete, into S108;If it is not, being transferred to S103.
S108. optical distribution network equipment informs that network management system is upgraded successfully by way of trap.
S109. optical distribution network equipment waits instruction of restarting.
The method of optical distribution network equipment as shown in figure 3, Intelligent management terminal is upgraded, it is comprised the following steps that:
S201. the upgrade command that optical distribution network equipment parsing Intelligent management terminal is sent, judges whether successfully to obtain liter
Level device type, upgrade file subfile quantity, if so, into S203;If it is not, into S202.
S202. optical distribution network equipment obtains failure information to Intelligent management terminal Response feedbacks.
S203. a upgrading subfile bag payload of Intelligent management terminal transmission includes 1300 bytes, and optical distribution network is set
Standby one upgrading subfile bag of parsing, obtains subfile numbering and subfile payload, and upgrading subfile bag deposit light is matched somebody with somebody
The memory headroom of the line network equipment.
S204. judge whether the upgrading subfile is stored in memory headroom, if so, into S206;If it is not, into S205.
S205. optical distribution network equipment feeds back error message to Intelligent management terminal, terminates upgrading.
S206. upgrading subfile CRC is verified(Cyclic Redundancy Check, CRC)Whether
Success, if so, into S207;If it is not, into S205.Whether the purpose of check (CRC) is to judge whether subfile payload malfunctions, i.e.,
For the byte required for upgrading.
S207. whether correct subfile numbering is verified, if so, into S208;If it is not, into S205.
S208. the upgrading subfile is write in flash, and judges whether write-in flash succeeds, if so, into S209;
If it is not, into S205.
S209. optical distribution network equipment feeds back to Intelligent management terminal reception successful information.
S210. judge whether all upgrading subfiles all write flash, if so, into S211;If it is not, being transferred to S203.
S211. optical distribution network equipment is given out a contract for a project and upgraded successfully to Intelligent management terminal feedback.
S212. optical distribution network equipment waits instruction of restarting.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
On the premise of the principle of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention
Within the scope of.The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.
Claims (6)
1. a kind of method for upgrading software of small memory device, including the step of network management system upgrading optical distribution network equipment and intelligence
The step of management terminal upgrading optical distribution network equipment, it is characterised in that:
When network management system directly sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment receives one
Write direct after individual upgrading subfile in flash, memory headroom then deletes this time upgrading subfile, and next liter is received again
Level subfile, until all upgrading subfiles all write flash;
When Intelligent management terminal is to optical distribution network equipment transmission upgrade command, the memory headroom of optical distribution network equipment receives one
Individual upgrading subfile, and after check (CRC) and upgrading subfile numbering are correct, in write-in flash, memory headroom then deletes this time
Upgrading subfile, receives next upgrading subfile again, until all upgrading subfiles all write flash;
Wherein, the memory headroom of optical distribution network equipment is not less than the size of maximum upgrading subfile under two kinds of upgrade cases;
Network management system directly sends upgrade command to optical distribution network equipment, and the memory headroom of optical distribution network equipment receives each
During subfile of upgrading, judge whether the upgrading subfile is stored in memory headroom, if so, the upgrading subfile is write in flash;
If it is not, informing network management system upgrading failure in the way of trap, and remove the flash having been written into;
When network management system directly sends upgrade command to optical distribution network equipment, all upgrading subfiles are all write after flash,
Optical distribution network equipment informs that network management system is upgraded successfully in the way of trap;
When Intelligent management terminal is to optical distribution network equipment transmission upgrade command, optical distribution network equipment obtains the light distribution of upgrading
Types of network equipment, upgrading subfile quantity, if obtaining failure, optical distribution network equipment is fed back to Intelligent management terminal to be obtained
Failure information.
2. the method for upgrading software of small memory device as claimed in claim 1, it is characterised in that:The network management system directly to
When optical distribution network equipment sends upgrade command, the FTP that optical distribution network equipment connects network management system by its FTP customer side takes
Business device downloads upgrading subfile.
3. the method for upgrading software of small memory device as claimed in claim 2, it is characterised in that:The optical distribution network equipment
The upgrade command that parsing network management system is sent, obtains ftp server user name, password and upgrade file name, if obtaining failure, light
Distribution network equipment obtains failure information to network management system feedback.
4. the method for upgrading software of small memory device as claimed in claim 1, it is characterised in that:The Intelligent management terminal to
Optical distribution network equipment sends upgrade command, and the memory headroom of optical distribution network equipment receives each upgrading subfile, and judging should
Upgrading subfile is stored in memory headroom right, if so, further verifying whether upgrading subfile CRC succeeds, if success, by this
In subfile of upgrading write-in flash, feed back to Intelligent management terminal and receive successful information;If in the upgrading subfile is not stored in
Deposit space or verify subfile CRC failures, then feed back error message to Intelligent management terminal, terminate upgrading.
5. the method for upgrading software of small memory device as claimed in claim 1, it is characterised in that:The Intelligent management terminal to
When optical distribution network equipment sends upgrade command, all upgrading subfiles are all after write-in flash, and optical distribution network equipment is given out a contract for a project
Upgraded successfully to Intelligent management terminal feedback.
6. the method for upgrading software of small memory device as claimed in claim 1, it is characterised in that:The network management system directly to
When optical distribution network equipment sends upgrade command, each upgrading subfile is 256 bytes;Intelligent management terminal is to optical distribution network
When equipment sends upgrade command, each upgrading subfile is 1300 bytes;The memory headroom of the optical distribution network equipment is not small
In 1300 bytes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310727103.3A CN103685552B (en) | 2013-12-25 | 2013-12-25 | A kind of method for upgrading software of small memory device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310727103.3A CN103685552B (en) | 2013-12-25 | 2013-12-25 | A kind of method for upgrading software of small memory device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103685552A CN103685552A (en) | 2014-03-26 |
CN103685552B true CN103685552B (en) | 2017-11-07 |
Family
ID=50321826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310727103.3A Active CN103685552B (en) | 2013-12-25 | 2013-12-25 | A kind of method for upgrading software of small memory device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685552B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108833526A (en) * | 2018-06-08 | 2018-11-16 | 太仓市同维电子有限公司 | A kind of intelligent gateway upgrade method |
CN110007943A (en) * | 2019-03-29 | 2019-07-12 | 烽火通信科技股份有限公司 | A kind of application program update management method and system based on android system |
CN111190628B (en) * | 2019-12-31 | 2023-10-20 | 京信网络系统股份有限公司 | Base station upgrading method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794214A (en) * | 2005-12-22 | 2006-06-28 | 北京中星微电子有限公司 | Method of direct storage access for non-volatibility storage and its device |
CN1832559A (en) * | 2005-03-07 | 2006-09-13 | 威盛电子股份有限公司 | Memory access method and device of digital video-audio data |
CN101464834A (en) * | 2007-12-19 | 2009-06-24 | 群联电子股份有限公司 | Flash memory data write-in method and controller using the same |
CN101826109A (en) * | 2010-04-07 | 2010-09-08 | 深圳创维-Rgb电子有限公司 | Large-capacity file splitting method, device and system |
WO2011154780A1 (en) * | 2010-06-11 | 2011-12-15 | Freescale Semiconductor, Inc. | Method for providing data protection for data stored within a memory element and integrated circuit device therefor |
-
2013
- 2013-12-25 CN CN201310727103.3A patent/CN103685552B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1832559A (en) * | 2005-03-07 | 2006-09-13 | 威盛电子股份有限公司 | Memory access method and device of digital video-audio data |
CN1794214A (en) * | 2005-12-22 | 2006-06-28 | 北京中星微电子有限公司 | Method of direct storage access for non-volatibility storage and its device |
CN101464834A (en) * | 2007-12-19 | 2009-06-24 | 群联电子股份有限公司 | Flash memory data write-in method and controller using the same |
CN101826109A (en) * | 2010-04-07 | 2010-09-08 | 深圳创维-Rgb电子有限公司 | Large-capacity file splitting method, device and system |
WO2011154780A1 (en) * | 2010-06-11 | 2011-12-15 | Freescale Semiconductor, Inc. | Method for providing data protection for data stored within a memory element and integrated circuit device therefor |
Also Published As
Publication number | Publication date |
---|---|
CN103685552A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108062230B (en) | Serial port transparent transmission and program updating system and method in Internet range | |
CN109768970B (en) | Configurable universal protocol generation method | |
CN104184553B (en) | Low-power consumption bluetooth data transmission method, device and equipment | |
CN102510409A (en) | Method and system for quickly and remotely updating program of mobile terminal by using wireless network | |
CN105975308B (en) | The remote update system and remote upgrade method of low memory overhead in home gateway | |
CN106886438A (en) | System remote update method based on FPGA | |
CN103685552B (en) | A kind of method for upgrading software of small memory device | |
CN106411619A (en) | Wireless equipment upgrading method based on low-power-consumption wide area network | |
CN104917586A (en) | Verification method, device and system of transmitted data | |
CN108874825A (en) | A kind of method of calibration and device of abnormal data | |
CN103248424A (en) | Optical module firmware upgrading method and system | |
CN106453629B (en) | A kind of automobile electronic system remote update system and its method based on mobile network | |
CN102622550B (en) | Safe online patch check system facing terminal computers | |
CN111506335A (en) | DSP + FPGA-based program online upgrading method and system | |
CN109327511A (en) | A kind of data request method and server based on http protocol | |
CN112910679A (en) | Multi-level remote upgrading method for power Internet of things | |
CN108446132A (en) | A method of remotely updating electric power acquisition terminal software based on TFTP | |
CN104461589A (en) | Single-chip microcomputer updating method and system | |
CN106534342A (en) | Connection control method and system, and hosts | |
CN110247926A (en) | A kind of exchange method and system | |
CN108153561A (en) | The Ethernet loading method and signal processing system of a kind of DSP and FPGA | |
WO2024108940A1 (en) | Performance supervision method, apparatus and system, and device and medium | |
CN103838587A (en) | Control system remote upgrading method and device based on GPRS | |
CN105391031B (en) | The data processing method and system of protective relaying device with more plug-in units | |
CN116541047A (en) | Firmware upgrading method, device, computer equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |