CN109597639A - A kind of method for upgrading software, device, equipment and medium - Google Patents

A kind of method for upgrading software, device, equipment and medium Download PDF

Info

Publication number
CN109597639A
CN109597639A CN201811472581.3A CN201811472581A CN109597639A CN 109597639 A CN109597639 A CN 109597639A CN 201811472581 A CN201811472581 A CN 201811472581A CN 109597639 A CN109597639 A CN 109597639A
Authority
CN
China
Prior art keywords
onu
current
software
upgrading
flash
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
CN201811472581.3A
Other languages
Chinese (zh)
Other versions
CN109597639B (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.)
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Software 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 Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Software Co Ltd
Priority to CN201811472581.3A priority Critical patent/CN109597639B/en
Publication of CN109597639A publication Critical patent/CN109597639A/en
Application granted granted Critical
Publication of CN109597639B publication Critical patent/CN109597639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of method for upgrading software, device, equipment and media, which comprises judges whether to receive the instruction for carrying out current each ONU software upgrading, if so, the intrinsic key parameter of current each ONU is backed up to respective memory;The flash of current each ONU is all wiped;Upgraded based on software of the upgrade file to current each ONU, while the intrinsic key parameter for backing up to each ONU memory being written back to the flash of corresponding ONU;Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.By using above-mentioned technical proposal, the software updating efficiency of different subregions is improved, and remains the intrinsic key parameter of ONU automatically before upgrading.

Description

A kind of method for upgrading software, device, equipment and medium
Technical field
The present embodiments relate to ONU (Optical Network Unit, optical network unit) field of terminal technology, especially It is related to a kind of method for upgrading software, device, equipment and medium.
Background technique
The high speed development of broadband services creates demand for the speed-raising of each operator broadband.Telephone wire in family by Gradually replaced by optical fiber, and EPON (ETHERNET Passive Optical Network, ethernet passive optical network) is a kind of reality Existing fiber-to-the-home important technology.EPON is the PON technology based on Ethernet, is transmitted using point-to-multipoint structure, passive fiber, Multiple business is provided over ethernet.(optical line terminal, optical link are whole by local side apparatus OLT for EPON system End), ONU and ODN (Optical Distribution Network, optical distribution network) composition.
EPON system is in actual motion maintenance, it is often necessary to upgrade to the software of ONU.However due to different operations The software partition of the ONU of quotient is typically different, for example, the software of the ONU of first operator is stored in C subregion, the space of C subregion is big Small is 50M;And the software of the ONU of second operator is stored in D subregion, and the space size of D subregion is 100M, is now needed first The software of operator ONU and the software of second operator ONU upgrade to the software that size is 100M, and the upgrading software of 100M It is stored in the D subregion of ONU, then since subregion (C subregion) where original software of first operator ONU is with second operator ONU's Original software partition (D subregion) is different, leads to not to the software of the software of first operator ONU and second operator ONU simultaneously Upgraded.Can not be by batch upgrade accordingly, there exist the software of the ONU of different operators the problem of.Unless under uboot environment The flash of each ONU is all wiped, then carries out the write operation of new software document;But each ONU's in this manner is intrinsic Key parameter is also wiped free of simultaneously, therefore, it is also desirable to which the intrinsic key parameter to each ONU re-writes, due to different ONU Intrinsic key parameter it is different, therefore can only carry out intrinsic key parameter to an ONU every time re-writes operation, therefore above-mentioned Software upgrading mode efficiency is very low.
Summary of the invention
The embodiment of the present invention provides a kind of method for upgrading software, device, equipment and medium, by the way that the method increase differences The software updating efficiency of the ONU of software partition.
In a first aspect, the embodiment of the invention provides a kind of method for upgrading software, which comprises
Judge whether to receive the instruction for carrying out current each ONU software upgrading, if so, by the intrinsic of current each ONU Key parameter backs up to respective memory;
The flash of current each ONU is all wiped;
The intrinsic key for upgrading based on software of the upgrade file to current each ONU, while each ONU memory being backed up to Parameter is written back to the flash of corresponding ONU;
Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.
Second aspect, the embodiment of the invention provides a kind of software updating apparatus, described device includes:
Judgment module receives the instruction to current each ONU progress software upgrading for judging whether;
Backup module, for when determine receive the instruction of software upgrading is carried out to current each ONU when, will current each ONU Intrinsic key parameter back up to respective memory;
Module is wiped, for all wiping the flash of current each ONU;
Upgraded module for upgrading based on software of the upgrade file to current each ONU, while will back up to each ONU The intrinsic key parameter of memory is written back to the flash of corresponding ONU;
Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.
The third aspect the embodiment of the invention provides a kind of electronic equipment, including memory, processor and is stored in storage On device and the computer program that can run on a processor, the processor realizes such as above-mentioned the when executing the computer program A kind of method for upgrading software described in one side.
Fourth aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters Calculation machine executable instruction realizes a kind of method for upgrading software as described in above-mentioned first aspect when being executed as computer processor.
A kind of method for upgrading software provided in an embodiment of the present invention carries out current each ONU by judging whether to receive The instruction of software upgrading, if so, the intrinsic key parameter of current each ONU is backed up to respective memory;By current each ONU's Flash is all wiped;Upgraded based on software of the upgrade file to current each ONU, while consolidating for each ONU memory will be backed up to There is key parameter to be written back to the flash of corresponding ONU;Wherein, the upgrade file is obtained based on multicast mode, current each ONU's The technological means that quantity is at least two, realizes the intrinsic key parameter of each ONU of the automated back-up before software upgrading, thus After software upgrading without being re-write to the intrinsic key parameter of each ONU, improves and the software of each ONU is upgraded Efficiency, and the method for upgrading software is suitable for carrying out batch upgrade to the ONU software of different subregions.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is a kind of method for upgrading software flow diagram that the embodiment of the present invention one provides;
Fig. 2 is a kind of method for upgrading software flow diagram provided by Embodiment 2 of the present invention;
Fig. 3 is another method for upgrading software flow diagram provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of software updating apparatus structural schematic diagram that the embodiment of the present invention three provides;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.
Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of method for upgrading software flow diagram that the embodiment of the present invention one provides.Provided in this embodiment one Kind method for upgrading software is suitable for the case where upgrading to the ONU software of different subregions, can be held by software updating apparatus Row.Wherein the device can be implemented by software and/or hardware, and be typically integrated in terminal, more specifically, such as be integrated in server In.Referring specifically to shown in Fig. 1, the method for upgrading software includes the following steps:
Step 110 judges whether to receive the instruction for carrying out current each ONU software upgrading, if so, thening follow the steps 120。
Specifically, described judge whether to receive the instruction for carrying out current each ONU software upgrading, comprising:
The attribute information of the upgrade file is matched with the attribute information of current each ONU existing file, if matching Failure, it is determined that receive and the instruction of software upgrading carried out to current each ONU, otherwise, it determines do not receive to current each ONU into The instruction of row software upgrading;The size information and the partition information where file that the attribute information includes: file.
If the size and place subregion and the size and place subregion of current each ONU existing file of upgrade file are homogeneous Together, it is determined that otherwise successful match determines that it fails to match, be determined as receiving to current each ONU progress software upgrading at this time Instruction.The technical solution of the present embodiment aims to solve the problem that the software upgrade problem of each ONU of different subregions, therefore works as the big of upgrade file When small and place subregion is from the size and different place subregion of current each ONU existing file, it is determined that receive to working as Preceding each ONU carries out the instruction of software upgrading.
The intrinsic key parameter of current each ONU is backed up to respective memory by step 120.
Wherein, the intrinsic key parameter of each ONU specifically includes: the MAC Address of each ONU, device id and device model.It will The process nature that the intrinsic key parameter of current each ONU backs up to respective memory is: intrinsic crucial ginseng is stored with from flash Read in several subregions intrinsic key parameter to memory process.
Step 130 all wipes the flash of current each ONU.
Step 140 is upgraded based on software of the upgrade file to current each ONU, while will back up to each ONU memory Intrinsic key parameter is written back to the flash of corresponding ONU.
Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.The multicast Mode is specially the mode that multicast server sends upgrade file to multiple ONU simultaneously.Based on upgrade file to current each ONU's Software is upgraded, and upgrade file is specially written to the flash of each ONU, since the flash of each ONU has been completely erased, Therefore, it no matter which subregion original software document of each ONU is stored in and will not impact to current upgrading, can will rise Any position of grade file write-in flash, while in order to retain the intrinsic key parameter of each ONU, it is completed when upgrade file is written Afterwards, the intrinsic key parameter for backing up to each ONU memory is written back to the flash of corresponding ONU.Usually matched with upgrade file The partition information of upgrade file is carried in uboot, therefore can will be upgraded according to the partition information of the upgrade file carried in uboot Flash memory space corresponding with the partition information is written in file.
A kind of method for upgrading software provided in this embodiment will be each before the flash to each ONU carries out whole erasings The intrinsic key parameter of ONU backs up to respective memory, after the completion of upgrade file write-in, then will back up to consolidating for respective memory There is key parameter to be written back to the flash of corresponding ONU, realizes when upgrading to the ONU software of different subregions, it is automatic to retain The purpose of the intrinsic key parameter of ONU, and can realize and batch upgrade is carried out to each ONU, without upgrading one by one, improve different points The upgrading efficiency of area's software.
Embodiment two
Fig. 2 is a kind of method for upgrading software flow diagram provided by Embodiment 2 of the present invention.In the base of above-described embodiment On plinth, the present embodiment embodies software upgrade process.Referring specifically to shown in Fig. 2, described method includes following steps:
Step 210 judges whether to receive the instruction for carrying out current each ONU software upgrading, if so, thening follow the steps 220。
The intrinsic key parameter of current each ONU is backed up to respective memory by step 220.
Specifically, can by the uboot of current each ONU by the intrinsic key parameter Area-Specific Archive of current each ONU to respective Memory, to realize the backup to the intrinsic key parameter of each ONU.The intrinsic key parameter subregion refers specifically to store intrinsic pass The file of bond parameter.The intrinsic key parameter of each ONU can exist in the form of a variety of, such as file or the spy of various formats Different coding etc., and these intrinsic key parameters would generally be encrypted, and uboot is the system initialization journey an of bottom Sequence does not have the ability of decryption or the various files of parsing, therefore, can be directly standby by carrying out intrinsic key parameter subregion Part, to realize the backup to intrinsic key parameter.
Step 230 all wipes the flash of current each ONU.
Step 240, new uboot file programming to the first predeterminated position of current each ONU flash.
Wherein, the new uboot file is obtained based on multicast mode, and the new uboot file includes intrinsic closes The partition information where partition information and upgrade file where bond parameter.First predeterminated position can by engineering staff into Row setting.
Step 250, the vacant position that the intrinsic key parameter for backing up to each ONU memory is written back to corresponding ONU flash.
Wherein, the vacant position for the intrinsic key parameter for backing up to each ONU memory being written back to corresponding ONU flash is specific For for example, the intrinsic key parameter of No. 1 ONU memory to be written back to the vacant position of No. 1 ONU flash, which refers to not Any position of the flash occupied by new uboot file, is temporarily stored for the intrinsic key parameter to each ONU, when When upgrade file write-in flash is completed, further the intrinsic key parameter of each ONU is written and is taken with new uboot file The corresponding position flash of partition information where the intrinsic key parameter of band.The write operation of upgrade file is completed, need to restart and work as Preceding each ONU new uboot therefore, before restarting, need to be by the intrinsic pass in memory in order to retain the intrinsic key parameter of each ONU The vacant position that bond parameter is written back to flash is temporarily stored.
Step 260, the uboot for restarting current each ONU, the intrinsic key parameter in current each ONU flash is backed up to Respective memory.
After the uboot for restarting current each ONU, need the intrinsic key parameter in current each ONU flash is standby again Part makes upgrade file be written into specified position to respective memory to vacate the space flash, and the specified position is by current The uboot of each ONU is specified.
Partition information where the upgrade file stored in step 270, the uboot based on current each ONU is by the upgrading File is saved to the correspondence subregion of current each ONU flash;The intrinsic key parameter stored in uboot based on current each ONU The intrinsic key parameter for backing up to each ONU memory is written back to the corresponding position of each ONU flash by the partition information at place.
A kind of method for upgrading software provided in this embodiment will current each ONU when detecting write-in complement mark Intrinsic key parameter in flash backs up to respective memory, and the upgrade file stored in the uboot based on current each ONU The partition information at place saves the upgrade file to the correspondence subregion of current each ONU flash, based on current each ONU's The intrinsic key parameter for backing up to each ONU memory is written back to by the partition information where the intrinsic key parameter stored in uboot The technological means of the corresponding position of each ONU flash realizes when upgrading to the ONU software of different subregions, automatic to retain The purpose of the intrinsic key parameter of ONU, and can realize and batch upgrade is carried out to each ONU, improve the upgrading effect of different subregions software Rate.
On the basis of the above embodiments, another method for upgrading software flow diagram shown in Figure 3, this method Include:
Step 310, each ONU booting.
Step 320 judges whether to receive multicast data flow, no to then follow the steps 330b if so then execute step 330a.
Wherein, the multicast data flow is used to send upgrade file to each ONU, if ONU receives multicast data flow, then it represents that needs pair The ONU carries out software upgrading, otherwise executes other normal workflows of ONU.
Step 330a, upgrade file is downloaded.
Step 330b, other normal workflows are executed.
Step 340 judges whether to detect the complement mark in each ONU flash, if so, thening follow the steps 350, otherwise Execute step 360.
If detecting the complement mark in each ONU flash, then it represents that current each ONU meets the software to variant subregion The condition upgraded;If not detecting the complement mark in each ONU flash, then it represents that current each ONU is unsatisfactory for each The condition that the software of different subregions is upgraded, or indicate that the software to current each identical partitions ONU is needed to carry out upgrading behaviour Make.Complement mark setting when the uboot to each ONU upgrades.
Step 350 reads intrinsic key parameter subregion from flash to memory, and upgrade file is saved to current each The intrinsic key parameter for backing up to memory is written back to the corresponding position of each ONU flash, deleted by the correspondence subregion of ONU flash Except the complement mark in flash, continue step 390.
Step 360 carries out updating operation.
Step 370 judges whether upgrading succeeds, if so, 390 are thened follow the steps, it is no to then follow the steps 380.
If carrying out updating operation to the software of different subregions, the judging result of step 370 is upgrading failure, because of upgrading The size and partition information of the size and partition information of file and each ONU existing file mismatch, therefore can not upgrade successfully. Updating operation is carried out to the software of different subregions, can preferentially upgrade the uboot of each ONU because the initial address of new uboot with And length is identical as the initial address of the original uboot of each ONU and length, therefore the upgrading of achievable uboot, and new Uboot carries the partition information of upgrade file.
The intrinsic key parameter of each ONU is backed up to respective memory by step 380, and the flash of each ONU is all wiped, By the flash of new uboot programming to each ONU, the intrinsic key parameter for backing up to respective memory is written back to flash, It is provided with mark in flash, restarts each ONU, and return step 310.
Step 390 opens flashing lamp, and upgrading is prompted to complete.
Embodiment three
Fig. 4 is a kind of software updating apparatus structural schematic diagram that the embodiment of the present invention three provides, shown in Figure 4, described Device includes: judgment module 410, backup module 420, erasing module 430 and upgraded module 440;
Wherein, judgment module 410 receive the instruction to current each ONU progress software upgrading for judging whether;Backup Module 420, for when determine receive the instruction of software upgrading is carried out to current each ONU when, by the intrinsic key of current each ONU Parameter backup is to respective memory;Module 430 is wiped, for all wiping the flash of current each ONU;Upgraded module 440, Intrinsic key parameter for upgrading based on software of the upgrade file to current each ONU, while each ONU memory being backed up to It is written back to the flash of corresponding ONU;Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least Two.
Further, judgment module 410 is specifically used for:
The attribute information of the upgrade file is matched with the attribute information of current each ONU existing file, if matching Failure, it is determined that receive and the instruction of software upgrading carried out to current each ONU, otherwise, it determines do not receive to current each ONU into The instruction of row software upgrading.The size information and the partition information where file that the attribute information includes: file.
Further, backup module 420 is specifically used for:
By the intrinsic key parameter Area-Specific Archive of current each ONU to respective memory.
Further, described device further include: uboot upgraded module, for based on upgrade file to current each ONU's Before software is upgraded, new uboot file programming to the first predeterminated position of current each ONU flash;It will back up to The intrinsic key parameter of each ONU memory is written back to the vacant position of corresponding ONU flash;The second of current each ONU flash Complement mark is written in predeterminated position, meets promotion condition to identify current each ONU;Wherein, the new uboot file is based on group Where broadcast mode obtains, and the new uboot file includes partition information and upgrade file where intrinsic key parameter Partition information.
Further, upgraded module 440 includes:
Unit is restarted, for restarting the uboot of current each ONU;
Backup units, for the intrinsic key parameter in current each ONU flash to be backed up to respective memory;
Upgrade unit, the partition information where upgrade file for storing in the uboot based on current each ONU will be described Upgrade file is saved to the correspondence subregion of current each ONU flash;
Write back unit, the partition information where intrinsic key parameter for storing in the uboot based on current each ONU will The intrinsic key parameter for backing up to each ONU memory is written back to the corresponding position of each ONU flash.
Further, described device further include: removing module, in the software based on upgrade file to current each ONU Upgraded, while after the intrinsic key parameter for backing up to each ONU memory is written back to the flash of corresponding ONU, is deleted current The write-in complement mark of the second predeterminated position storage of each ONU flash.
A kind of software updating apparatus provided in this embodiment will be each before the flash to each ONU carries out whole erasings The intrinsic key parameter of ONU backs up to respective memory, after the completion of upgrade file write-in, then will back up to consolidating for respective memory There is key parameter to be written back to the flash of corresponding ONU, realizes when upgrading to the ONU software of different subregions, it is automatic to retain The purpose of the intrinsic key parameter of ONU, and can realize and batch upgrade is carried out to each ONU, without upgrading one by one, improve different points The upgrading efficiency of area's software.
Example IV
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.As shown in figure 5, the electronics is set It is standby to include: processor 670, memory 671 and be stored in the computer journey that run on memory 671 and on processor 670 Sequence;Wherein, the quantity of processor 670 can be one or more, in Fig. 5 by taking a processor 670 as an example;Processor 670 is held A kind of such as above-mentioned method for upgrading software as described in the examples is realized when the row computer program.As shown in figure 5, the electronics Equipment can also include input unit 672 and output device 673.Processor 670, memory 671, input unit 672 and output Device 673 can be connected by bus or other modes, in Fig. 5 for being connected by bus.
Memory 671 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of method for upgrading software a kind of in the embodiment of the present invention is (for example, software upgrading Judgment module 410, backup module 420, erasing module 430 and upgraded module 440 etc. in device).Processor 670 passes through operation Software program, instruction and the module being stored in memory 671, thereby executing the various function application and number of electronic equipment According to processing, that is, realize a kind of above-mentioned method for upgrading software.
Memory 671 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 671 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 671 can be into one Step includes the memory remotely located relative to processor 670, these remote memories can be set by network connection to electronics Standby/storage medium.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and its Combination.
Input unit 672 can be used for receiving the number or character information of input, and generates and set with the user of electronic equipment It sets and the related key signals of function control inputs.Output device 673 may include that display screen etc. shows equipment.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium comprising computer executable instructions, and the computer can be held Row instruction is used to execute a kind of method for upgrading software when being executed by computer processor, this method comprises:
Judge whether to receive the instruction for carrying out current each ONU software upgrading, if so, by the intrinsic of current each ONU Key parameter backs up to respective memory;
The flash of current each ONU is all wiped;
The intrinsic key for upgrading based on software of the upgrade file to current each ONU, while each ONU memory being backed up to Parameter is written back to the flash of corresponding ONU;
Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method operation that executable instruction is not limited to the described above, can also be performed a kind of software provided by any embodiment of the invention Relevant operation in upgrade method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, storage medium or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method for upgrading software, which is characterized in that the described method includes:
Judge whether to receive the instruction for carrying out current each ONU software upgrading, if so, by the intrinsic key of current each ONU Parameter backup is to respective memory;
The flash of current each ONU is all wiped;
The intrinsic key parameter for upgrading based on software of the upgrade file to current each ONU, while each ONU memory being backed up to It is written back to the flash of corresponding ONU;
Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.
2. the method according to claim 1, wherein it is described judge whether to receive current each ONU is carried out it is soft The instruction of part upgrading, comprising:
The attribute information of the upgrade file is matched with the attribute information of current each ONU existing file, if it fails to match, It then determines to receive and the instruction of software upgrading is carried out to current each ONU, otherwise, it determines not receiving soft to current each ONU progress The instruction of part upgrading.
3. according to the method described in claim 2, it is characterized in that, the attribute information include: file size information and Partition information where file.
4. according to the method described in claim 3, it is characterized in that, the intrinsic key parameter by current each ONU backs up to Respective memory, comprising:
By the intrinsic key parameter Area-Specific Archive of current each ONU to respective memory.
5. the method according to claim 1, wherein being carried out based on software of the upgrade file to current each ONU Before upgrading, the method also includes:
New uboot file programming to the first predeterminated position of current each ONU flash;
The intrinsic key parameter for backing up to each ONU memory is written back to the vacant position of corresponding ONU flash;
Wherein, the new uboot file is obtained based on multicast mode, and the new uboot file includes intrinsic crucial ginseng The partition information where partition information and upgrade file where number.
6. according to the method described in claim 5, it is characterized in that, it is described based on upgrade file to the software of current each ONU into Row upgrades, while the intrinsic key parameter for backing up to each ONU memory being written back to the flash of corresponding ONU, comprising:
Restart the uboot of current each ONU;
Intrinsic key parameter in current each ONU flash is backed up into respective memory;
Partition information where the upgrade file of uboot storage based on current each ONU saves the upgrade file to current The correspondence subregion of each ONU flash;
Partition information where the intrinsic key parameter of uboot storage based on current each ONU will back up to consolidating for each ONU memory There is key parameter to be written back to the corresponding position of each ONU flash.
7. a kind of software updating apparatus, which is characterized in that described device includes:
Judgment module receives the instruction to current each ONU progress software upgrading for judging whether;
Backup module, for when determine receive the instruction of software upgrading is carried out to current each ONU when, by consolidating for current each ONU There is key parameter to back up to respective memory;
Module is wiped, for all wiping the flash of current each ONU;
Upgraded module for upgrading based on software of the upgrade file to current each ONU, while will back up to each ONU memory Intrinsic key parameter be written back to the flash of corresponding ONU;
Wherein, the upgrade file is obtained based on multicast mode, and the quantity of current each ONU is at least two.
8. device according to claim 7, which is characterized in that the judgment module is specifically used for:
The attribute information of the upgrade file is matched with the attribute information of current each ONU existing file, if it fails to match, It then determines to receive and the instruction of software upgrading is carried out to current each ONU, otherwise, it determines not receiving soft to current each ONU progress The instruction of part upgrading.
9. a kind of electronic equipment, including first memory, first processor and storage are on a memory and can be in first processor The computer program of upper operation, which is characterized in that realized when the first processor executes the computer program as right is wanted Seek any method for upgrading software in 1-6.
10. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal Such as method for upgrading software as claimed in any one of claims 1 to 6 is realized when device executes.
CN201811472581.3A 2018-12-04 2018-12-04 Software upgrading method, device, equipment and medium Active CN109597639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811472581.3A CN109597639B (en) 2018-12-04 2018-12-04 Software upgrading method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811472581.3A CN109597639B (en) 2018-12-04 2018-12-04 Software upgrading method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109597639A true CN109597639A (en) 2019-04-09
CN109597639B CN109597639B (en) 2022-07-05

Family

ID=65960722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811472581.3A Active CN109597639B (en) 2018-12-04 2018-12-04 Software upgrading method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109597639B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306511A (en) * 2020-11-04 2021-02-02 深圳市友华软件科技有限公司 Multicast upgrading method and device
CN112752154A (en) * 2019-10-29 2021-05-04 青岛海尔多媒体有限公司 Software upgrading method and device and smart television

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104810A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Method and system for upgrading software versions of passive optical network unit in batch
CN102571462A (en) * 2012-04-06 2012-07-11 烽火通信科技股份有限公司 Self-protecting method for long-distance upgrading of optical network unit
US20120251113A1 (en) * 2011-03-28 2012-10-04 Zte Portugal-Projectos De Telecomunicações Unipessoal Lda Seamless configuration update for optical network unit in ethernet passive optical network
CN103108262A (en) * 2013-03-07 2013-05-15 烽火通信科技股份有限公司 Method for upgrading configuration file of optical network unit in GPON system
CN103384208A (en) * 2013-05-23 2013-11-06 上海斐讯数据通信技术有限公司 System and method for upgrading ONU equipment in EPON system
CN103677902A (en) * 2013-11-25 2014-03-26 上海斐讯数据通信技术有限公司 Method for ensuring safety and success of updating of line-card software in distributed OLT system
US20140270773A1 (en) * 2013-03-12 2014-09-18 Broadcom Corporation Flashless optical network unit
CN104270688A (en) * 2014-10-31 2015-01-07 上海斐讯数据通信技术有限公司 System and method for upgrading ONUs (optical network units) on EPON (Ethernet passive optical network) in batch
CN104375844A (en) * 2013-08-12 2015-02-25 中兴通讯股份有限公司 Firmware upgrading method and device
CN105429790A (en) * 2015-11-04 2016-03-23 上海斐讯数据通信技术有限公司 ONU (Optical Network Unit) upgrading method and system and optical network system
CN105703945A (en) * 2016-01-08 2016-06-22 烽火通信科技股份有限公司 Optical network unit (ONU) upgrading method
CN106412730A (en) * 2016-09-09 2017-02-15 武汉长光科技有限公司 Method for carrying out remote batch upgrading on ONU (Optical Network Unit) system software in Boot environment
CN107995033A (en) * 2017-11-30 2018-05-04 深圳市飞鸿光电子有限公司 A kind of ONU configuration files upgrade method and device
CN108345466A (en) * 2018-05-09 2018-07-31 烽火通信科技股份有限公司 A kind of ONU upgrade methods and system
CN108491217A (en) * 2018-03-06 2018-09-04 青岛海信宽带多媒体技术有限公司 A kind of upgrade method and equipment of configuration file

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104810A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Method and system for upgrading software versions of passive optical network unit in batch
US20120251113A1 (en) * 2011-03-28 2012-10-04 Zte Portugal-Projectos De Telecomunicações Unipessoal Lda Seamless configuration update for optical network unit in ethernet passive optical network
CN102571462A (en) * 2012-04-06 2012-07-11 烽火通信科技股份有限公司 Self-protecting method for long-distance upgrading of optical network unit
CN103108262A (en) * 2013-03-07 2013-05-15 烽火通信科技股份有限公司 Method for upgrading configuration file of optical network unit in GPON system
US20140270773A1 (en) * 2013-03-12 2014-09-18 Broadcom Corporation Flashless optical network unit
CN103384208A (en) * 2013-05-23 2013-11-06 上海斐讯数据通信技术有限公司 System and method for upgrading ONU equipment in EPON system
CN104375844A (en) * 2013-08-12 2015-02-25 中兴通讯股份有限公司 Firmware upgrading method and device
CN103677902A (en) * 2013-11-25 2014-03-26 上海斐讯数据通信技术有限公司 Method for ensuring safety and success of updating of line-card software in distributed OLT system
CN104270688A (en) * 2014-10-31 2015-01-07 上海斐讯数据通信技术有限公司 System and method for upgrading ONUs (optical network units) on EPON (Ethernet passive optical network) in batch
CN105429790A (en) * 2015-11-04 2016-03-23 上海斐讯数据通信技术有限公司 ONU (Optical Network Unit) upgrading method and system and optical network system
CN105703945A (en) * 2016-01-08 2016-06-22 烽火通信科技股份有限公司 Optical network unit (ONU) upgrading method
CN106412730A (en) * 2016-09-09 2017-02-15 武汉长光科技有限公司 Method for carrying out remote batch upgrading on ONU (Optical Network Unit) system software in Boot environment
CN107995033A (en) * 2017-11-30 2018-05-04 深圳市飞鸿光电子有限公司 A kind of ONU configuration files upgrade method and device
CN108491217A (en) * 2018-03-06 2018-09-04 青岛海信宽带多媒体技术有限公司 A kind of upgrade method and equipment of configuration file
CN108345466A (en) * 2018-05-09 2018-07-31 烽火通信科技股份有限公司 A kind of ONU upgrade methods and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752154A (en) * 2019-10-29 2021-05-04 青岛海尔多媒体有限公司 Software upgrading method and device and smart television
CN112306511A (en) * 2020-11-04 2021-02-02 深圳市友华软件科技有限公司 Multicast upgrading method and device

Also Published As

Publication number Publication date
CN109597639B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN106095480B (en) A kind of method and device of optical module firmware upgrading
CN102710814B (en) The control method of virtual machine IP address and device
CN104572229A (en) Firmware upgrade method and firmware upgrade device for embedded system
CN104461611A (en) Method for refreshing node BIOSes of RACK cabinet in batches
CN103518191A (en) Upgrade method, intelligent terminal and upgrade system
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN108491217A (en) A kind of upgrade method and equipment of configuration file
CN101216789A (en) Data update method, device and system
CN105867962A (en) System upgrading method and device
US20150370653A1 (en) Replacement of a corrupt driver variable record
CN109597639A (en) A kind of method for upgrading software, device, equipment and medium
US8032788B2 (en) System and method for managing the restarting of automatic control equipment
CN112083972B (en) BMC system configuration method, device, equipment and readable storage medium
CN104239091A (en) File cleaning method and device and terminal
CN111045712A (en) Single system upgrading method and system with backup function
CN113835770A (en) Online replacement method and system for server management module
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
CN107995033B (en) ONU configuration file upgrading method and device
CN107066361A (en) The method and apparatus that a kind of utilization BMC disables corrupted internal memory
CN103336698A (en) Wifi equipment software upgrading method, wifi equipment and system
CN106843892A (en) A kind of method and device of rewriting Flash
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN110716733A (en) ONT product software mutual upgrading method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant