CN103685552A - Software upgrading method for small memory device - Google Patents

Software upgrading method for small memory device Download PDF

Info

Publication number
CN103685552A
CN103685552A CN201310727103.3A CN201310727103A CN103685552A CN 103685552 A CN103685552 A CN 103685552A CN 201310727103 A CN201310727103 A CN 201310727103A CN 103685552 A CN103685552 A CN 103685552A
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.)
Granted
Application number
CN201310727103.3A
Other languages
Chinese (zh)
Other versions
CN103685552B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201310727103.3A priority Critical patent/CN103685552B/en
Publication of CN103685552A publication Critical patent/CN103685552A/en
Application granted granted Critical
Publication of CN103685552B publication Critical patent/CN103685552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Communication System (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a software upgrading method for a small memory device, and relates to the field of optical distribution network devices. When a network management system directly sends an upgrading instruction to an optical wiring network device, a memory space directly writes an upgrading sub-file into a flash after the upgrading sub-file is received, and then deletes the upgrading sub-file to receive the next upgrading sub-file until all the upgrading sub-files are written into the flash; when an intelligent management terminal sends an upgrading instruction to the optical wiring network device, the memory space receives one upgrading sub-file, writes the upgrading sub-file into the flash after the CRC and the number of the upgrading sub-file are checked right, and then deletes the upgrading sub-file to receive the next upgrading sub-file until all the upgrading sub-files are written into flash; the memory space of the optical distribution network device is not less than the maximum size of the upgrading sub-files in two upgrading cases. According to the method, the upgrades occupy a small memory space, and therefore, the power consumption of upgrading is reduced, the memory chip cost is reduced and the complexity of hardware circuit is simplified.

Description

A kind of method for upgrading software of little memory device
Technical field
The present invention relates to Optical Distribution Network apparatus field, is specifically a kind of method for upgrading software of little memory device.
Background technology
As shown in Figure 1, optical distribution network device upgrade system comprises network management system (comprising ftp server), Intelligent management terminal, optical distribution network equipment (MMU, DMU, DCU etc.), the main upgrading approach of optical distribution network device object has two kinds: a kind of is directly to optical distribution network equipment, to send upgrade command by network management system, the upgrade command that optical distribution network device parses is received, therefrom obtain the filename of user name, password and the equipment of ftp server, the file by File Transfer Protocol download equipment carries out updating operation.Another kind is that Intelligent management terminal sends upgrade command to optical distribution network equipment, and Intelligent management terminal directly sends file to optical distribution network equipment, and optical distribution network equipment carries out updating operation again.
The upgrade method of above-mentioned optical distribution network equipment is all that all upgrading subfiles (approaching 2M) are all transferred in internal memory, then upgrade file is write to flash, and this is greater than whole upgrading subfiles with regard to the internal memory that needs optical distribution network equipment to adopt.And the memory headroom that optical distribution network device upgrade takies is larger, during upgrading, power consumption is higher, can not meet the requirement of user to product low-power consumption; Memory chip price used is also more expensive, increases cost; The address wire needing is on the high side, and the I/O interface of employing also increases thereupon, and the complexity of whole hardware circuit also increases.
Summary of the invention
For the defect existing in prior art, the object of the present invention is to provide a kind of method for upgrading software of little memory device, the memory headroom that optical distribution network device upgrade takies is little, reduces upgrading power consumption, saves memory chip cost, simplifies hardware circuit complexity.
For reaching above object, the invention provides a kind of method for upgrading software of little memory device, comprise the step of network management system upgrading optical distribution network equipment and the step of Intelligent management terminal upgrading optical distribution network equipment, when network management system directly sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment writes direct in flash after receiving a upgrading subfile, memory headroom is deleted upgrading subfile subsequently this time, again receive next upgrading subfile, until all upgrading subfiles all write flash; When Intelligent management terminal sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment receives a upgrading subfile, and check (CRC) and upgrading subfile numbering correct after, write in flash, memory headroom is deleted upgrading subfile subsequently this time, again receive next upgrading subfile, 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.
On the basis of technique scheme, when described network management system directly sends upgrade command to optical distribution network equipment, optical distribution network equipment is downloaded upgrading subfile by the ftp server of its FTP customer side connection network guard system.
On the basis of technique scheme, the upgrade command that described optical distribution network device parses network management system is sent, obtains ftp server user name, password and upgrade file name, if obtain failure, optical distribution network equipment obtains failure information to network management system feedback.
On the basis of technique scheme, described 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, judges whether this upgrading subfile deposits memory headroom in, if so, this upgrading subfile is write in flash; If not, in the mode of trap, inform that network management system upgrades unsuccessfully, and remove the flash having write.
On the basis of technique scheme, when network management system directly sends upgrade command to optical distribution network equipment, all upgrading subfiles all write after flash, and optical distribution network equipment informs that in the mode of trap network management system upgrades successfully.
On the basis of technique scheme, when described Intelligent management terminal sends upgrade command to optical distribution network equipment, optical distribution network equipment obtains optical distribution network device type, the upgrading subfile quantity of upgrading, if obtain failure, optical distribution network equipment obtains failure information to Intelligent management terminal feedback.
On the basis of technique scheme, described Intelligent management terminal sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment receives each upgrading subfile, judge that this upgrading subfile deposits memory headroom in right, if so, further whether this upgrading subfile of verification CRC is successful, if success, this upgrading subfile is write in flash, feed back to Intelligent management terminal and receive successful information; If this upgrading subfile does not deposit memory headroom or this subfile of verification CRC failure in,, to Intelligent management terminal feedback error message, stop upgrading.
On the basis of technique scheme, when described Intelligent management terminal sends upgrade command to optical distribution network equipment, all upgrading subfiles all write after flash, and optical distribution network equipment is given out a contract for a project and upgraded successfully to Intelligent management terminal feedback.
On the basis of technique scheme, when described network management system directly sends upgrade command to optical distribution network equipment, each upgrading subfile is 256 bytes; When Intelligent management terminal sends upgrade command to optical distribution network equipment, each upgrading subfile is 1300 bytes; The memory headroom of described optical distribution network equipment is not less than 1300 bytes.
Beneficial effect of the present invention is:
1, the memory headroom of optical distribution network equipment only need to be stored each upgrading subfile, therefore memory headroom reduces, use little internal memory can complete the upgrading of optical distribution network equipment, the memory chip adopting reduces thereupon, greatly reduce the cost of optical distribution network equipment, for example the memory chip price of 256K only has the general of 2M internal memory, and the cost of optical distribution network equipment can reduce by 50% left and right.
2, along with the reduction of memory headroom, the power consumption of optical distribution network equipment also decreases, energy savings.
3, memory headroom reduces, the address wire that optical distribution network equipment needs just reduces relatively, the I/O interface of response also can reduce, reduce the complexity of whole hardware circuit, for example use the memory headroom of 32K, the address wire of needs is 15, for 21 address wires of 2M memory headroom needs, has reduced by 6 address wires.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of optical distribution network device upgrade system in background technology;
Fig. 2 is the method for embodiment of the present invention network management system upgrading optical distribution network equipment;
Fig. 3 is the method for embodiment of the present invention Intelligent management terminal upgrading optical distribution network equipment.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The method for upgrading software of the little memory device of the present invention, comprise: when network management system directly sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment writes direct in flash after receiving each upgrading subfile, memory headroom is deleted upgrading subfile subsequently this time, again receive next upgrading subfile, until all upgrading subfiles all write flash.When Intelligent management terminal sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment receives each upgrading subfile, and check (CRC) and upgrading subfile numbering correct after, write in flash, memory headroom is deleted upgrading subfile subsequently this time, again receive next upgrading subfile, 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, and in the present embodiment, when described network management system directly sends upgrade command to optical distribution network equipment, each upgrading subfile is 256 bytes; When Intelligent management terminal sends upgrade command to optical distribution network equipment, each upgrading subfile is 1300 bytes; The memory headroom of described optical distribution network equipment is not less than 1300 bytes.Between described network management system and optical distribution network equipment, by snmp protocol, communicate by letter, described optical distribution network equipment is downloaded upgrading subfile by the ftp server of its FTP customer side connection network guard system; Network management system and Intelligent management terminal between pass through usb communication.
As shown in Figure 2, the method for network management system upgrading optical distribution network equipment, its concrete steps are as follows:
S101. the upgrade command that optical distribution network device parses network management system is sent, judges whether successfully to obtain FTP information, as server user's name, password and upgrade file name, if so, enters S103; If not, enter S102.
S102. described optical distribution network equipment obtains failure information to network management system Response feedback.
The upgrading subfile size that S103.FTP server transmits is 256 bytes, and FTP service end receives described upgrading subfile to equipment application 256 byte of memory spaces.Because FTP adopts Transmission Control Protocol transmission, optical distribution network equipment is without the situation of considering that subfile order and transmitting procedure payload are made mistakes.
S104. judge that whether this upgrading subfile deposits memory headroom in, if so, enters S106; If not, enter as S105.
S105. optical distribution network equipment informs that in the mode of trap network management system upgrades unsuccessfully, and removes the flash having write.
S106. this upgrading subfile is write in flash, and judge whether to write flash success, if so, enter S107; If not, enter S105.
S107. judge whether all upgrading subfiles all write flash complete, if so, prove whole upgrade file end of transmission, enter S108; If not, proceed to S103.
S108. optical distribution network equipment informs that by the mode of trap network management system upgrades successfully.
S109. optical distribution network equipment is waited for instruction of restarting.
As shown in Figure 3, the method for Intelligent management terminal upgrading optical distribution network equipment, its concrete steps are as follows:
S201. the upgrade command that optical distribution network device parses Intelligent management terminal sends, judges whether successfully to obtain updating apparatus type, upgrade file subfile quantity, if so, enters S203; If not, enter S202.
S202. optical distribution network equipment obtains failure information to Intelligent management terminal Response feedback.
S203. a upgrading subfile bag payload packets of Intelligent management terminal transmission is containing 1300 bytes, upgrading subfile bag of optical distribution network device parses, obtain subfile numbering and subfile payload, and this upgrading subfile bag is deposited in to the memory headroom of optical distribution network equipment.
S204. judge that whether this upgrading subfile deposits memory headroom in, if so, enters S206; If not, enter S205.
S205. optical distribution network equipment feeds back error message to Intelligent management terminal, stops upgrading.
S206. this upgrading of verification subfile CRC(Cyclic Redundancy Check, cyclic redundancy check (CRC) code) whether success, if so, enters S207; If not, enter S205.Whether the object of check (CRC) is to judge whether subfile payload makes mistakes, be the needed byte of upgrading.
S207. whether this subfile numbering of verification is correct, if so, enters S208; If not, enter S205.
S208. this upgrading subfile is write in flash, and judge whether successfully to write flash, if so, enter S209; If not, enter S205.
S209. optical distribution network equipment feeds back to Intelligent management terminal reception successful information.
S210. judge that whether all upgrading subfiles all write flash, if so, enter S211; If not, proceed to S203.
S211. optical distribution network equipment is given out a contract for a project and is upgraded successfully to Intelligent management terminal feedback.
S212. optical distribution network equipment is waited for instruction of restarting.
The present invention is not limited to above-mentioned execution mode, for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, within these improvements and modifications are also considered as protection scope of the present invention.The content not being described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (9)

1. a method for upgrading software for little memory device, comprises the step of network management system upgrading optical distribution network equipment and the step of Intelligent management terminal upgrading optical distribution network equipment, it is characterized in that:
When network management system directly sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment writes direct in flash after receiving a upgrading subfile, memory headroom is deleted upgrading subfile subsequently this time, again receive next upgrading subfile, until all upgrading subfiles all write flash;
When Intelligent management terminal sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment receives a upgrading subfile, and check (CRC) and upgrading subfile numbering correct after, write in flash, memory headroom is deleted upgrading subfile subsequently this time, again receive next upgrading subfile, 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.
2. the method for upgrading software of little memory device as claimed in claim 1, it is characterized in that: when described network management system directly sends upgrade command to optical distribution network equipment, optical distribution network equipment is downloaded upgrading subfile by the ftp server of its FTP customer side connection network guard system.
3. the method for upgrading software of little memory device as claimed in claim 2, it is characterized in that: the upgrade command that described optical distribution network device parses network management system is sent, obtain ftp server user name, password and upgrade file name, if obtain failure, optical distribution network equipment obtains failure information to network management system feedback.
4. the method for upgrading software of little memory device as claimed in claim 1, it is characterized in that: described 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 this upgrading subfile deposits memory headroom in, if so, this upgrading subfile is write in flash; If not, in the mode of trap, inform that network management system upgrades unsuccessfully, and remove the flash having write.
5. the method for upgrading software of little memory device as claimed in claim 1, it is characterized in that: when network management system directly sends upgrade command to optical distribution network equipment, all upgrading subfiles all write after flash, and optical distribution network equipment informs that in the mode of trap network management system upgrades successfully.
6. the method for upgrading software of little memory device as claimed in claim 1, it is characterized in that: when described Intelligent management terminal sends upgrade command to optical distribution network equipment, optical distribution network equipment obtains optical distribution network device type, the upgrading subfile quantity of upgrading, if obtain failure, optical distribution network equipment obtains failure information to Intelligent management terminal feedback.
7. the method for upgrading software of little memory device as claimed in claim 1, it is characterized in that: described Intelligent management terminal sends upgrade command to optical distribution network equipment, the memory headroom of optical distribution network equipment receives each upgrading subfile, judge that this upgrading subfile deposits memory headroom in right, if so, further whether this upgrading subfile of verification CRC is successful, if success, this upgrading subfile is write in flash, feed back to Intelligent management terminal and receive successful information; If this upgrading subfile does not deposit memory headroom or this subfile of verification CRC failure in,, to Intelligent management terminal feedback error message, stop upgrading.
8. the method for upgrading software of little memory device as claimed in claim 1, it is characterized in that: when described Intelligent management terminal sends upgrade command to optical distribution network equipment, all upgrading subfiles all write after flash, and optical distribution network equipment is given out a contract for a project and upgraded successfully to Intelligent management terminal feedback.
9. the method for upgrading software of little memory device as claimed in claim 1, is characterized in that: when described network management system directly sends upgrade command to optical distribution network equipment, each upgrading subfile is 256 bytes; When Intelligent management terminal sends upgrade command to optical distribution network equipment, each upgrading subfile is 1300 bytes; The memory headroom of described optical distribution network equipment is not less than 1300 bytes.
CN201310727103.3A 2013-12-25 2013-12-25 A kind of method for upgrading software of small memory device Active CN103685552B (en)

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 true CN103685552A (en) 2014-03-26
CN103685552B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN111190628A (en) * 2019-12-31 2020-05-22 京信通信系统(中国)有限公司 Base station upgrading method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100527818C (en) * 2005-03-07 2009-08-12 威盛电子股份有限公司 Memory access method and device of digital video-audio data
CN100507886C (en) * 2005-12-22 2009-07-01 北京中星微电子有限公司 Method of direct storage access for non-volatility storage and its device
CN101464834B (en) * 2007-12-19 2011-01-26 群联电子股份有限公司 Flash memory data write-in method and controller using the same
CN101826109B (en) * 2010-04-07 2011-11-23 深圳创维-Rgb电子有限公司 Large-capacity file splitting method, device and system
EP2580703A4 (en) * 2010-06-11 2013-11-27 Freescale Semiconductor Inc Method for providing data protection for data stored within a memory element and integrated circuit device therefor

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN111190628A (en) * 2019-12-31 2020-05-22 京信通信系统(中国)有限公司 Base station upgrading method, device, equipment and storage medium
CN111190628B (en) * 2019-12-31 2023-10-20 京信网络系统股份有限公司 Base station upgrading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103685552B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107087033A (en) Information push method, device, storage medium and computer equipment
CN104951341A (en) Method for remotely upgrading collector
CN110175042A (en) A kind of firmware upgrade method, device and its relevant device
CN106411619A (en) Wireless equipment upgrading method based on low-power-consumption wide area network
CN101621411B (en) Method and system for remotely updating microcontrollers
CN102195798B (en) A kind of method and system of optical network unit of upgrading
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN113746892B (en) Remote upgrading method and wireless terminal equipment
CN108446132A (en) A method of remotely updating electric power acquisition terminal software based on TFTP
CN112910679B (en) Multi-level remote upgrading method for power Internet of things
CN103685552A (en) Software upgrading method for small memory device
CN106453629B (en) A kind of automobile electronic system remote update system and its method based on mobile network
CN106130771B (en) Method for upgrading FLASH on line based on in-band Ethernet
CN105007308A (en) File transmission method for use in database isolation device environment
CN113031990A (en) Broadcasting upgrading method, system, equipment and storage medium for street lamp terminal
CN101826997A (en) Communication method of newly accessed intelligent equipment, device and monitoring system
CN109688208B (en) Data loading method based on FC-AE-ASM message
KR101428778B1 (en) Apparatus and method for upgrading firmware of automatic meter reading terminal on the remote
CN101409636A (en) Safety on-line upgrade method for networking equipment firmware
CN202679393U (en) Online firmware upgrading system base on centralized management frame-type equipment
CN104090792B (en) The dynamic loading method of logical file in a kind of broadband access network
CN103838587A (en) Control system remote upgrading method and device based on GPRS
CN108153561A (en) The Ethernet loading method and signal processing system of a kind of DSP and FPGA
CN116541047A (en) Firmware upgrading method, device, computer equipment and computer readable storage medium
CN105391031B (en) The data processing method and system of protective relaying device with more plug-in units

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