CN102750163B - The method of line card internal memory is saved during a kind of network management upgrading - Google Patents
The method of line card internal memory is saved during a kind of network management upgrading Download PDFInfo
- Publication number
- CN102750163B CN102750163B CN201210167068.XA CN201210167068A CN102750163B CN 102750163 B CN102750163 B CN 102750163B CN 201210167068 A CN201210167068 A CN 201210167068A CN 102750163 B CN102750163 B CN 102750163B
- Authority
- CN
- China
- Prior art keywords
- dsp
- edition data
- upgrade
- line card
- internal memory
- 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
Abstract
The method of line card internal memory is saved during a kind of network management upgrading, relate to optical communication field, comprise the steps: that the scale-of-two upgrade file of the voice module of voice terminal device is divided into upper level applications and DSP driver by S1., DSP driver is divided into again DSP upper layer drivers and DSP edition data; S2. described DSP edition data is put into can power-off preserve FLASH; S3. according to webmaster remote upgrade requirement, remote upgrade upper level applications and DSP upper layer drivers, or remote upgrade DSP edition data.The present invention saves line card internal memory, improves the updating speed of webmaster, does not adopt and progressively upgrades, lower, easy to use to the requirement of stabilization of equipment performance and whether power-off.
Description
Technical field
The present invention relates to optical communication field, when being specifically a kind of network management upgrading, save the method for line card internal memory.
Background technology
Along with the fast development of the communication technology, the weeding out the old and bring forth the new of communication facilities, business constantly expands, function constantly increases, and causes the binary file size of voice terminal device increasing, also continues to increase line card request memory during network management upgrading communication facilities.
At present, during light mouth network management upgrading software, the binary file of voice terminal device is first from NM server FTP (File Transfer Protocol, file transfer protocol (FTP)) on main control unit, treat that main control unit receives, main control unit by the whole binary file FTP that receives to line card, after line card receives, line card by binary file TFTP (Trivial File Transfer Protocol, TFTP) on voice terminal device.Because the userbase of Access Network constantly expands, operation, the maintenance and management workload of network also progressively rise, and also get more and more to the summation function that needs of voice terminal device.But the memory size of line card limits the binary file size of voice terminal device, and the time requirement of FTP and TFTP is very high, if batch upgrade voice terminal device, need to complete sequence of operations within the time of FTP and TFTP requirement, could successfully return, otherwise can as timeout treatment.In order to add function perfect as far as possible, the binary file of the voice terminal device therefore issued can be increasing, but also more and more higher to the rate request of webmaster batch upgrade.
Solved the problem following two methods at present:
1. strengthen line card internal memory, the internal memory of the voice terminal device that is used for by line card upgrading strengthens, and directly deals with problems.But this method cannot save internal memory, simultaneously because the size of binary file is increasing, line card internal memory along with the change of scale-of-two upgrade file large and increase, the network management upgrading time can be more and more longer, thus cannot improve the updating speed of webmaster.
2. progressively degree-raising approach, upgrades large binary file divided data, does not need to wait for that whole file transfer is complete.That is, a part of data from NM server FTP to main control unit, direct FTP is to line card, and line card again TFTP, to voice terminal device, returns to NM server after success again, by that analogy, until the upgrading of whole binary file is complete.But this process, larger for batch upgrade elapsed time, likely cause FPT or TFTP time-out, and each equipment of centre all can not power-off, once power-off, the binary file data before transmitted, because sufficiently complete, needs to roll back on original version, requires higher to stabilization of equipment performance.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of method of saving line card internal memory during network management upgrading, save line card internal memory, improve the updating speed of webmaster, do not adopt and progressively upgrade, lower, easy to use to the requirement of stabilization of equipment performance and whether power-off.
For reaching above object, the technical scheme that the present invention takes is, the method of line card internal memory is saved during a kind of network management upgrading, comprise the steps: that the scale-of-two upgrade file of the voice module of voice terminal device is divided into upper level applications and DSP driver by S1., DSP driver is divided into again DSP upper layer drivers and DSP edition data; S2. described DSP edition data is put into can power-off preserve FLASH; S3. according to webmaster remote upgrade requirement, remote upgrade upper level applications and DSP upper layer drivers, or remote upgrade DSP edition data.
On the basis of technique scheme, described upper level applications and DSP upper layer drivers merge, as the scale-of-two upgrade file that voice terminal device is new.
On the basis of technique scheme, described remote upgrade upper level applications and DSP upper layer drivers, then upgrade the binary file program of optical network unit, if be updated successfully, namely restart whole optical network unit, comprise and restart dsp chip; If upgrade unsuccessful, then the software version before the software version of optical network unit being rolled back to upgrading.
On the basis of technique scheme, described remote upgrade DSP edition data, when upgrading the DSP edition data of optical network unit, first read front 4 bytes of the DSP edition data of renewal, if front 4 bytes are newer than front 4 byte version numbers of the DSP edition data stored in optical network unit, then upgrade described DSP edition data.
On the basis of technique scheme, if upgrade the success of described DSP version, then restart dsp chip separately; If unsuccessful, then the DSP edition data of optical network unit inside is rolled back to original version.
On the basis of technique scheme, described in restart dsp chip after, then restart DSP upper layer drivers.
On the basis of technique scheme, described in restart dsp chip and will judge whether to read DSP edition data, if not, according to original flow startup dsp chip; If so, then read front 4 bytes of DSP edition data, if not up-to-date version number, then upgrade described DSP version.
On the basis of technique scheme, read the 2nd 4 byte content, the i.e. data length of DSP version of described DSP edition data, distribute the DSP edition data of space storage from described reading of equal length, then DSP edition data is sent to dsp chip.
Beneficial effect of the present invention is:
1. DSP edition data is separated, put into specific FLASH region, be equivalent to the scale-of-two upgrade file just reducing voice terminal device, line card internal memory need not continue to increase along with the increase of binary file, also the restriction of binary file size network management upgrading would not be become, thus when webmaster batch upgrade voice terminal device, save line card memory headroom.
2. DSP driver is divided into DSP upper layer drivers and DSP edition data (i.e. DSP Firmware), the DSP edition data that the manufacturer of dsp chip provides generally can be very large, and generally can not manufacturer's version of frequent updating dsp chip during remote upgrade program, whether therefore the present invention is separable programming, does not adopt and progressively upgrades, stablize each equipment during upgrading, the requirement of power-off is lower, hardware requirement is low, and realizes simple, solves the too high problem of stability requirement.
Accompanying drawing explanation
Fig. 1 is that the scale-of-two upgrade file of voice module in embodiment of the present invention voice terminal device is formed;
Fig. 2 is embodiment of the present invention network management upgrading process flow diagram;
Fig. 3 is embodiment of the present invention dsp chip Booting sequence figure.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The method of saving line card internal memory during network management upgrading of the present invention comprises the steps:
S1. as shown in Figure 1, the scale-of-two upgrade file of voice module in voice terminal device is divided into upper level applications and DSP (Digital Signal Processing, digital signal processing) driver, DSP driver is divided into again DSP upper layer drivers and DSP edition data.Described upper level applications and DSP upper layer drivers are merged, as the scale-of-two upgrade file that voice terminal device is new, the DSP edition data that dsp chip manufacturer provides is separated from DSP driver, carry out separately upgrading and control.The foundation of this practice is: the data volume of the DSP edition data that general dsp chip manufacturer provides is very large, probably have several million, once burned, renewal frequency is very low, there is certain stability, and upper level applications constantly can change along with the demand of outer scene and application.
S2. described DSP edition data is put into can power-off preserve FLASH (nonvolatile memory).Before voice terminal device remote upgrade, can remote upgrade DSP edition data separately, these data are stored in a file in specific FLASH region, and power-off can be preserved.During so each voice terminal device initialization, binary file reads this DSP edition data from FLASH file, starts dsp chip.Like this, the binary file of upper level applications just can this DSP edition data integrated, saves the space of several million, is conducive to completing rapidly of webmaster batch remote upgrade.
S3. according to webmaster remote upgrade requirement, remote upgrade upper level applications and DSP upper layer drivers, namely new scale-of-two upgrade file, or remote upgrade DSP edition data, wherein, at the same time, said two devices can only be upgraded one.As shown in Figure 2, be network management upgrading process flow diagram, its concrete steps are as follows:
S31., time network management upgrading ONU (Optical Network Unit, optical network unit), judge according to webmaster remote upgrade requirement, if remote upgrade upper level applications and DSP upper layer drivers, then enter S32; If remote upgrade DSP edition data, then enter S36.
S32. remote upgrade upper level applications and DSP upper layer drivers, upgrades the binary file program of ONU.
S33. judge that whether renewal is successful, if so, then enter S34; If not, then S35 is entered.
S34. restart whole optical network unit, comprise and restart dsp chip.
S35. the software version before the software version of ONU being rolled back to upgrading.
S36. described remote upgrade DSP edition data, when upgrading the DSP edition data of ONU, first read front 4 bytes of the DSP edition data of renewal, if front 4 bytes are newer than front 4 byte version numbers of the DSP edition data stored in ONU, then upgrade described DSP version, upgrade in the present embodiment ONU inside preserve /dev/mtddspfw file.
S37. whether successfully judge to upgrade DSP version, if so, then enter S38; If not, then S35 is entered.
S38. restart dsp chip separately, then restart DSP upper layer drivers.
As shown in Figure 3, embodiment of the present invention dsp chip Booting sequence figure, in above-mentioned steps, restarts separately the flow process of dsp chip, and need the flow process of restarting dsp chip identical with restarting in whole ONU system, detailed step is as follows:
S301. judge whether to read DSP edition data, if so, enter S302; If not, S305 is entered;
S302. open/dev/mtddspfw file, what this file stored is DSP edition data, and read front 4 bytes of DSP edition data, the version number of front 4 these DSP of byte representation, if the version number of DSP has been new, just need not upgrade; If not up-to-date version number, then upgrade described DSP version.
S303. the 2nd 4 byte content in reading/dev/mtddspfw file, the data length of the 2nd 4 byte representation DSP versions, for Memory Allocation during disposable sense data file, and successfully reads all data for judging whether.
S304. distribute the DSP edition data of space storage from described reading of equal length, then the DSP edition data of reading is sent to dsp chip.Dsp chip starts successfully, and the stored memory of these data can all discharge.
S305. according to original flow startup, this operation is mainly in order to the voice terminal device before compatibility.
The present invention is not limited to above-mentioned embodiment, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this instructions belongs to the known prior art of professional and technical personnel in the field.
Claims (7)
1. save a method for line card internal memory during network management upgrading, it is characterized in that, comprise the steps:
S1. the scale-of-two upgrade file of the voice module of voice terminal device is divided into upper level applications and DSP driver, DSP driver is divided into again DSP upper layer drivers and DSP edition data; Described upper level applications and DSP upper layer drivers are merged, as the scale-of-two upgrade file that voice terminal device is new, the DSP edition data that dsp chip manufacturer provides is separated from DSP driver, carry out separately upgrading and control;
S2. described DSP edition data is put into can power-off preserve FLASH;
S3. according to webmaster remote upgrade requirement, remote upgrade upper level applications and DSP upper layer drivers, or remote upgrade DSP edition data.
2. during network management upgrading as claimed in claim 1, save the method for line card internal memory, it is characterized in that: described remote upgrade upper level applications and DSP upper layer drivers, then upgrade the binary file program of optical network unit, if be updated successfully, restart whole optical network unit, comprise and restart dsp chip; If upgrade unsuccessful, then the software version before the software version of optical network unit being rolled back to upgrading.
3. during network management upgrading as claimed in claim 1, save the method for line card internal memory, it is characterized in that: described remote upgrade DSP edition data, when upgrading the DSP edition data of optical network unit, first read front 4 bytes of the DSP edition data of renewal, if front 4 bytes are newer than front 4 byte version numbers of the DSP edition data stored in optical network unit, then upgrade described DSP edition data.
4. save the method for line card internal memory during network management upgrading as claimed in claim 3, it is characterized in that: if upgrade the success of described DSP version, then restart dsp chip separately; If unsuccessful, then the DSP edition data of optical network unit inside is rolled back to original version.
5. save the method for line card internal memory during network management upgrading as claimed in claim 4, it is characterized in that: described in restart dsp chip after, then restart DSP upper layer drivers.
6. save the method for line card internal memory during network management upgrading as described in claim 2 or 5, it is characterized in that: described in restart dsp chip and will judge whether to read DSP edition data, if not, according to original flow startup dsp chip; If so, then read front 4 bytes of DSP edition data, if not up-to-date version number, then upgrade described DSP version.
7. during network management upgrading as claimed in claim 6, save the method for line card internal memory, it is characterized in that: the 2nd 4 byte content reading described DSP edition data, the i.e. data length of DSP version, the space distributing equal length stores to the DSP edition data of described reading, then DSP edition data is sent to dsp chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210167068.XA CN102750163B (en) | 2012-05-28 | 2012-05-28 | The method of line card internal memory is saved during a kind of network management upgrading |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210167068.XA CN102750163B (en) | 2012-05-28 | 2012-05-28 | The method of line card internal memory is saved during a kind of network management upgrading |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102750163A CN102750163A (en) | 2012-10-24 |
CN102750163B true CN102750163B (en) | 2015-07-29 |
Family
ID=47030382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210167068.XA Active CN102750163B (en) | 2012-05-28 | 2012-05-28 | The method of line card internal memory is saved during a kind of network management upgrading |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102750163B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881301A (en) * | 2014-02-28 | 2015-09-02 | 北京谊安医疗系统股份有限公司 | Burning method and device for DSP (digital signal processing) chip program upgrading |
CN105677368B (en) * | 2016-03-01 | 2018-11-30 | 烽火通信科技股份有限公司 | A method of it promoting Operation Network communication equipment the whole network and upgrades efficiency |
CN109728883B (en) * | 2018-12-13 | 2022-02-25 | 中国银行股份有限公司 | Data interaction method and system, source system and target system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1773455A (en) * | 2004-11-11 | 2006-05-17 | 乐金电子(中国)研究开发中心有限公司 | Upgrading system and method for electronic product firmware utilizing intelligent cell phone |
CN1783799A (en) * | 2004-11-29 | 2006-06-07 | 中兴通讯股份有限公司 | Automatic obtaining method for telecommunication trausmission systen unit soft and hard ware version |
CN101136768A (en) * | 2006-09-01 | 2008-03-05 | 中兴通讯股份有限公司 | Software and hardware version management method and system of communication equipment |
CN101753352A (en) * | 2008-12-12 | 2010-06-23 | 华为技术有限公司 | Method, system for loading business single plate and main control single plate |
CN102223256A (en) * | 2011-07-26 | 2011-10-19 | 烽火通信科技股份有限公司 | Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system |
-
2012
- 2012-05-28 CN CN201210167068.XA patent/CN102750163B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1773455A (en) * | 2004-11-11 | 2006-05-17 | 乐金电子(中国)研究开发中心有限公司 | Upgrading system and method for electronic product firmware utilizing intelligent cell phone |
CN1783799A (en) * | 2004-11-29 | 2006-06-07 | 中兴通讯股份有限公司 | Automatic obtaining method for telecommunication trausmission systen unit soft and hard ware version |
CN101136768A (en) * | 2006-09-01 | 2008-03-05 | 中兴通讯股份有限公司 | Software and hardware version management method and system of communication equipment |
CN101753352A (en) * | 2008-12-12 | 2010-06-23 | 华为技术有限公司 | Method, system for loading business single plate and main control single plate |
CN102223256A (en) * | 2011-07-26 | 2011-10-19 | 烽火通信科技股份有限公司 | Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system |
Also Published As
Publication number | Publication date |
---|---|
CN102750163A (en) | 2012-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170206079A1 (en) | Method and Device for Upgrading Software | |
US9996142B2 (en) | Selective power management for pre-boot firmware updates | |
US8856772B2 (en) | Server and firmware updating method | |
CN101730882B (en) | Robust firmware upgrade method and system in network terminal | |
CN110347414A (en) | Firmware update, device, equipment and computer readable storage medium | |
CN106708543B (en) | OTA (over the air) upgrading method and device of operating system | |
CN103365696B (en) | BIOS image file acquisition methods and device | |
CN101694623A (en) | Method for updating handheld device software | |
WO2019062635A1 (en) | Update method and device | |
CN103399840A (en) | Out-of-band altering method of configuration file of computer and computer | |
CN104834543A (en) | Method and device for externally refreshing BIOS (basic input/output system) firmware | |
CN111176701A (en) | Firmware upgrading method and device based on external memory card | |
CN102799452B (en) | system software upgrading method and device | |
CN102750163B (en) | The method of line card internal memory is saved during a kind of network management upgrading | |
CN103777979A (en) | Method and device for recovering BIOD through cloud end | |
CN113434202A (en) | Starting method and device of equipment, electronic equipment and computer storage medium | |
CN101751265B (en) | Updating system of basic input/output system of server and method thereof | |
CN109710297B (en) | Method for upgrading and backing equipment wholly or in modules | |
CN114661368A (en) | Chip and starting method thereof | |
CN102855162B (en) | A kind of data-updating method, data update system and memorizer | |
WO2020199009A1 (en) | Processing method, apparatus and device for starting apparatus, and storage medium | |
US20170308154A1 (en) | Fast system setting changes | |
CN103970556A (en) | Updating method and system for power amplification software in radio remote equipment | |
CN103136008A (en) | Firmware updating method and firmware updating device for intelligent terminal coprocessor | |
CN107273370A (en) | Switching system method and device |
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 |