CN109597639B - Software upgrading method, device, equipment and medium - Google Patents

Software upgrading method, device, equipment and medium Download PDF

Info

Publication number
CN109597639B
CN109597639B CN201811472581.3A CN201811472581A CN109597639B CN 109597639 B CN109597639 B CN 109597639B CN 201811472581 A CN201811472581 A CN 201811472581A CN 109597639 B CN109597639 B CN 109597639B
Authority
CN
China
Prior art keywords
onu
current
upgrading
software
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.)
Active
Application number
CN201811472581.3A
Other languages
Chinese (zh)
Other versions
CN109597639A (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

Images

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

Abstract

The embodiment of the invention discloses a software upgrading method, a device, equipment and a medium, wherein the method comprises the following steps: judging whether an instruction for upgrading software of each current ONU is received or not, and if so, backing up inherent key parameters of each current ONU to respective memory; erasing all the flash of each current ONU; upgrading the software of each current ONU based on the upgrade file, and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU; the upgrade file is obtained based on a multicast mode, and the number of the current ONUs is at least two. By adopting the technical scheme, the software upgrading efficiency of different partitions is improved, and the inherent key parameters of the ONU are automatically reserved before upgrading.

Description

Software upgrading method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of ONU (Optical Network Unit) terminals, in particular to a software upgrading method, a device, equipment and a medium.
Background
The high-speed development of broadband services creates the requirement for the broadband acceleration of each operator. Telephone lines in the home have gradually been replaced by Optical fibers, and EPON (ETHERNET Passive Optical Network) is an important technology for realizing fiber to the home. EPONs are PON technologies based on ethernet, and provide multiple services over ethernet using a point-to-multipoint structure, passive optical fiber transmission. The EPON system is composed of an Optical Line Terminal (OLT), an Optical Network Unit (ONU), and an Optical Distribution Network (ODN).
In the actual operation and maintenance of the EPON system, the software of the ONU often needs to be updated. However, since the software partitions of ONUs of different operators are usually different, for example, the software of the ONU of the first operator is stored in the C partition, which has a space size of 50M; and the software of the ONU of the second operator is stored in the D partition, and the space size of the D partition is 100M, the software of the ONU of the first operator and the software of the ONU of the second operator need to be upgraded to the software of 100M, and the upgraded software of 100M is stored in the D partition of the ONU, so that the software of the ONU of the first operator and the software of the ONU of the second operator cannot be upgraded at the same time because the partition (C partition) where the original software of the ONU of the first operator is located is different from the original software partition (D partition) of the ONU of the second operator. Therefore, there is a problem that the software of ONUs of different operators cannot be upgraded in bulk. Unless all the flashes of each ONU are erased under the uboot environment, then the writing operation of a new software file is carried out; however, in this method, the intrinsic key parameters of each ONU are also erased at the same time, so the intrinsic key parameters of each ONU need to be rewritten, and since the intrinsic key parameters of different ONUs are different, the rewriting operation of the intrinsic key parameters can be performed only on one ONU at a time, so the software upgrading method is inefficient.
Disclosure of Invention
The embodiment of the invention provides a software upgrading method, a device, equipment and a medium, and the method improves the software upgrading efficiency of ONUs of different software partitions.
In a first aspect, an embodiment of the present invention provides a software upgrading method, where the method includes:
judging whether an instruction for upgrading software of each current ONU is received or not, if so, backing up the inherent key parameters of each current ONU to respective internal memories;
erasing all the flash of each current ONU;
upgrading the software of each current ONU based on the upgrade file, and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU;
the upgrade file is obtained based on a multicast mode, and the number of the current ONUs is at least two.
In a second aspect, an embodiment of the present invention provides a software upgrading apparatus, where the apparatus includes:
the judging module is used for judging whether an instruction for upgrading the software of each current ONU is received or not;
the backup module is used for backing up the inherent key parameters of each current ONU to respective memories when determining that the instruction for upgrading the software of each current ONU is received;
the erasing module is used for erasing all the flash of each current ONU;
the upgrading module is used for upgrading the software of each current ONU based on the upgrading file and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU;
the upgrade file is obtained based on a multicast mode, and the number of the current ONUs is at least two.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements a software upgrading method as described in the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present invention provide a storage medium containing computer-executable instructions which, when executed by a computer processor, implement a method of software upgrade as described in the first aspect above.
According to the software upgrading method provided by the embodiment of the invention, whether an instruction for upgrading software of each current ONU is received or not is judged, and if yes, inherent key parameters of each current ONU are backed up to respective memories; erasing all the flash of each current ONU; upgrading the software of each current ONU based on the upgrade file, and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU; the upgrading file is obtained based on a multicast mode, and the number of the current ONU is at least two, so that the inherent key parameters of the ONU are automatically backed up before software upgrading is realized, the inherent key parameters of the ONU do not need to be rewritten after the software upgrading, the efficiency of upgrading the software of the ONU is improved, and the software upgrading method is suitable for batch upgrading of the ONU software of different partitions.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a software upgrading method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a software upgrading method according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart of another software upgrading method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a software upgrading apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a schematic flowchart of a software upgrading method according to an embodiment of the present invention. The software upgrading method provided by the embodiment is suitable for upgrading the ONU software of different partitions, and can be executed by a software upgrading device. Wherein the means may be implemented by software and/or hardware, typically integrated in a terminal, more particularly, for example, in a server. Specifically, referring to fig. 1, the software upgrading method includes the following steps:
and step 110, judging whether an instruction for upgrading the software of each current ONU is received, and if so, executing step 120.
Specifically, the determining whether the instruction for upgrading the software of each current ONU is received includes:
matching the attribute information of the upgrade file with the attribute information of the existing files of each current ONU, if the matching fails, determining that an instruction for performing software upgrade on each current ONU is received, otherwise, determining that the instruction for performing software upgrade on each current ONU is not received; the attribute information includes: size information of the file and partition information where the file is located.
If the size of the upgrade file and the size and the partition of the upgrade file are the same as those of the existing files of the current ONUs, the matching is determined to be successful, otherwise, the matching is determined to be failed, and at the moment, the indication of software upgrade on the current ONUs is determined to be received. The technical scheme of the embodiment aims to solve the problem of software upgrading of the ONUs in different partitions, so that when the size of the upgrading file, the size of the partition where the upgrading file is located and the size of the existing file of each current ONU and the partition where the upgrading file is located are different, the indication of software upgrading of each current ONU is determined to be received.
And step 120, backing up the inherent key parameters of each current ONU to respective memories.
The inherent key parameters of each ONU specifically include: the MAC address, device ID and device model of each ONU. The process of backing up the intrinsic key parameters of each current ONU to the respective memory is essentially: and reading the inherent key parameters from the partition in which the inherent key parameters are stored in the flash to the memory.
And step 130, erasing all the flash of each current ONU.
And step 140, upgrading the software of each current ONU based on the upgrade file, and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU.
The upgrade file is obtained based on a multicast mode, and the number of the current ONUs is at least two. The multicast mode is specifically a mode in which the multicast server sends the upgrade file to a plurality of ONUs simultaneously. The method comprises the steps of upgrading software of each current ONU based on an upgrade file, specifically, writing the upgrade file into a flash of each ONU, wherein the flash of each ONU is completely erased, so that the upgrade file can be written into any position of the flash no matter which partition the original software file of each ONU is stored in, and simultaneously, in order to keep inherent key parameters of each ONU, after the upgrade file is written into the flash of the corresponding ONU, writing back the inherent key parameters backed up to the memory of each ONU. The partition information of the upgrade file is usually carried in the uboot matched with the upgrade file, so that the upgrade file can be written into the flash storage space corresponding to the partition information according to the partition information of the upgrade file carried in the uboot.
According to the software upgrading method provided by the embodiment, before all the flashes of each ONU are erased, the inherent key parameters of each ONU are backed up to the respective memory, and after the upgrade file is written in, the inherent key parameters backed up to the respective memory are written back to the flash of the corresponding ONU, so that the purpose of automatically retaining the inherent key parameters of the ONU when the ONU software of different partitions is upgraded is realized, the ONU can be upgraded in batch, one-to-one upgrading is not needed, and the upgrading efficiency of the software of different partitions is improved.
Example two
Fig. 2 is a schematic flowchart of a software upgrading method according to a second embodiment of the present invention. On the basis of the above embodiments, the present embodiment embodies the software upgrading process. Referring specifically to fig. 2, the method comprises the following steps:
step 210, judging whether an instruction for upgrading software of each current ONU is received, if so, executing step 220.
Step 220, backing up the intrinsic key parameters of each current ONU to respective memories.
Specifically, the intrinsic key parameters of each current ONU can be partitioned and backed up to respective memories through the uboot of each current ONU, so as to realize the backup of the intrinsic key parameters of each ONU. The intrinsic key parameter partition specifically refers to a file storing intrinsic key parameters. The intrinsic key parameters of each ONU can exist in many forms, such as files with various formats or special codes, and these intrinsic key parameters are usually encrypted, and uboot is only an underlying system initialization program, which does not have the capability of decrypting or parsing various files, so that the backup of the intrinsic key parameters can be realized directly by partitioning the intrinsic key parameters for backup.
And step 230, erasing all the flash of each current ONU.
And 240, programming the new uboot file to a first preset position of each current ONU flash.
And the new uboot file is obtained based on a multicast mode and comprises partition information where the inherent key parameters are located and partition information where the upgrade file is located. The first preset position may be set by an engineer.
Step 250, writing back the intrinsic key parameters backed up to each ONU memory to the spare location corresponding to the ONU flash.
For example, writing the intrinsic key parameter of the ONU memory No. 1 back to the spare position of the ONU flash, where the spare position refers to any position of the flash not occupied by the new uboot file, and is used to temporarily store the intrinsic key parameter of each ONU, and when writing the upgrade file into the flash is completed, further writing the intrinsic key parameter of each ONU into the flash position corresponding to the partition information where the intrinsic key parameter carried by the new uboot file is located. To complete the write-in operation of the upgrade file, the new uboot of each current ONU needs to be restarted, and therefore, in order to retain the inherent key parameters of each ONU, the inherent key parameters in the memory need to be written back to the spare location of the flash for temporary storage before restarting.
And step 260, restarting the uboot of each current ONU, and backing up the inherent key parameters in each current ONU flash to respective memories.
After the uboot of each current ONU is restarted, the inherent key parameters in the flash of each current ONU need to be backed up to respective memories again so as to vacate a flash space, so that the upgrade file is written into a specified position, and the specified position is specified by the uboot of each current ONU.
Step 270, storing the upgrade files to corresponding partitions of the current ONU flashes based on partition information where the upgrade files stored in the uboot of the current ONU are located; and writing back the intrinsic key parameters backed up to the memory of each ONU to the corresponding position of each ONU flash based on the partition information where the intrinsic key parameters stored in the uboot of each ONU are located.
According to the software upgrading method provided by the embodiment, when the write-in completion flag is detected, the inherent key parameters in each current ONU flash are backed up to the respective memory, the upgrade files are stored to the corresponding partition of each current ONU flash based on the partition information where the upgrade files stored in the uboot of each current ONU are located, and the inherent key parameters backed up to the memory of each ONU are written back to the corresponding position of each ONU flash based on the partition information where the inherent key parameters stored in the uboot of each current ONU are located.
On the basis of the above embodiment, referring to another flow diagram of a software upgrading method shown in fig. 3, the method includes:
step 310, each ONU is powered on.
Step 320, determining whether a multicast stream is received, if yes, executing step 330a, otherwise, executing step 330 b.
And if the ONU receives the multicast stream, the ONU is required to be subjected to software upgrading, otherwise, other normal work flows of the ONU are executed.
And step 330a, downloading the upgrade file.
And step 330b, executing other normal workflows.
And 340, judging whether a completion mark in each ONU flash is detected or not, if so, executing a step 350, and otherwise, executing a step 360.
If the completion mark in each ONU flash is detected, indicating that each current ONU meets the condition of upgrading the software of each different partition; if the completion mark in each ONU flash is not detected, the fact that each current ONU does not meet the condition for upgrading the software of each different partition is indicated, or the fact that the upgrading operation needs to be carried out on the software of the same partition of each current ONU is indicated. The completion flag is set when upgrading the uboot of each ONU.
Step 350, reading the intrinsic key parameter partition from the flash to the memory, saving the upgrade file to the partition corresponding to each current ONU flash, writing back the intrinsic key parameter backed up to the memory to the corresponding position of each ONU flash, deleting the completion flag in the flash, and continuing with step 390.
And step 360, carrying out upgrading operation.
Step 370, judging whether the upgrade is successful, if so, executing step 390, otherwise, executing step 380.
If the software of different partitions is upgraded, the determination result of step 370 is that the upgrade fails, and the upgrade cannot be successful because the size and partition information of the upgrade file are not matched with the size and partition information of the existing files of each ONU. And upgrading the software of different partitions, preferentially upgrading the uboot of each ONU, finishing upgrading the uboot as the initial address and the length of the new uboot are the same as those of the original uboot of each ONU, and the new uboot carries the partition information of the upgrade file.
Step 380, backing up the intrinsic key parameters of each ONU to respective memories, erasing all the flashes of each ONU, programming a new uboot to the flash of each ONU, writing back the intrinsic key parameters backed up to the respective memories to the flash, setting a completion flag in the flash, restarting each ONU, and returning to step 310.
Step 390, turn on the flashing light to prompt the upgrade to be completed.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a software upgrading apparatus according to a third embodiment of the present invention, and referring to fig. 4, the apparatus includes: a judging module 410, a backup module 420, an erasing module 430 and an upgrading module 440;
the determining module 410 is configured to determine whether an instruction for performing software upgrade on each current ONU is received; the backup module 420 is configured to backup the intrinsic key parameters of each current ONU to respective memories when determining that an instruction for software upgrade of each current ONU is received; an erasing module 430, configured to erase all flash of each current ONU; the upgrading module 440 is configured to upgrade software of each current ONU based on the upgrade file, and write back the intrinsic key parameters backed up to the memory of each ONU to the flash of the corresponding ONU; the upgrade file is obtained based on a multicast mode, and the number of the current ONUs is at least two.
Further, the determining module 410 is specifically configured to:
and matching the attribute information of the upgrade file with the attribute information of the existing files of the current ONUs, if the matching fails, determining that an instruction for performing software upgrade on the current ONUs is received, and otherwise, determining that the instruction for performing software upgrade on the current ONUs is not received. The attribute information includes: size information of the file and partition information where the file is located.
Further, the backup module 420 is specifically configured to:
and backing up the intrinsic key parameter partitions of the current ONUs to respective memories.
Further, the apparatus further comprises: the uboot upgrading module is used for programming a new uboot file to a first preset position of each current ONU flash before upgrading the software of each current ONU based on the upgrading file; writing back the intrinsic key parameters which are backed up to each ONU memory to the spare position of the corresponding ONU flash; writing a completion mark in a second preset position of each current ONU flash to mark that each current ONU meets the upgrading condition; and the new uboot file is obtained based on a multicast mode and comprises partition information where the inherent key parameters are located and partition information where the upgrade file is located.
Further, the upgrade module 440 includes:
the restarting unit is used for restarting the uboot of each current ONU;
the backup unit is used for backing up the inherent key parameters in each current ONU flash to respective memories;
the upgrading unit is used for storing the upgrading files to corresponding partitions of the current ONU flashes based on partition information where the upgrading files stored in the uboot of the current ONU are located;
and the write-back unit is used for writing back the intrinsic key parameters which are backed up to the memories of the ONUs to the corresponding positions of the flash of the ONUs based on the partition information where the intrinsic key parameters stored in the uboot of each ONU are located.
Further, the apparatus further comprises: and the deleting module is used for deleting the write-in completion mark stored in the second preset position of each current ONU flash after upgrading the software of each current ONU based on the upgrading file and simultaneously writing back the inherent key parameters backed up to each ONU memory to the corresponding ONU flash.
According to the software upgrading device provided by the embodiment, before all the flashes of each ONU are erased, the inherent key parameters of each ONU are backed up to the respective memory, and after the upgrade file is written in, the inherent key parameters backed up to the respective memory are written back to the flash of the corresponding ONU, so that the purpose of automatically retaining the inherent key parameters of the ONU when the ONU software of different partitions is upgraded is realized, the ONU can be upgraded in batch, one-to-one upgrading is not needed, and the upgrading efficiency of the software of different partitions is improved.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. As shown in fig. 5, the electronic apparatus includes: a processor 670, a memory 671, and a computer program stored on the memory 671 and operable on the processor 670; the number of the processors 670 may be one or more, and fig. 5 illustrates one processor 670 as an example; the processor 670, when executing said computer program, performs a method of software upgrade as described in the above embodiments. As shown in fig. 5, the electronic device may further include an input device 672 and an output device 673. The processor 670, memory 671, input device 672 and output device 673 may be connected by a bus or other means, such as by a bus connection in FIG. 5.
The memory 671 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a software upgrading method according to an embodiment of the present invention (e.g., the determining module 410, the backup module 420, the erasing module 430, and the upgrading module 440 in the software upgrading apparatus). The processor 670 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 671, so as to implement one of the software upgrading methods described above.
The memory 671 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, and an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory 671 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 671 may further include memory located remotely from the processor 670, which may be connected to electronic devices/storage media through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 672 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus. The output device 673 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a software upgrading method, including:
judging whether an instruction for upgrading software of each current ONU is received or not, and if so, backing up inherent key parameters of each current ONU to respective memory;
erasing all the flash of each current ONU;
upgrading the software of each current ONU based on the upgrade file, and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU;
the upgrade file is obtained based on a multicast mode, and the number of the current ONUs is at least two.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in a software upgrading method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a storage medium, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A method of upgrading software, the method comprising:
judging whether an instruction for upgrading software of each current ONU is received or not, and if so, backing up inherent key parameters of each current ONU to respective memory;
erasing all the flash of each current ONU;
upgrading the software of each current ONU based on the upgrade file, and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU;
the upgrading file is obtained based on a multicast mode, and the number of the current ONU is at least two;
before upgrading the software of each current ONU based on the upgrade file, the method further comprises the following steps:
burning and writing a new uboot file to a first preset position of each current ONU flash;
writing back the intrinsic key parameters which are backed up to each ONU memory to the spare position of the corresponding ONU flash;
the new uboot file is obtained based on a multicast mode and comprises partition information where the inherent key parameters are located and partition information where the upgrade file is located;
the upgrading of the software of each current ONU based on the upgrade file and the writing back of the intrinsic key parameters backed up to the memory of each ONU to the flash of the corresponding ONU comprises the following steps:
restarting uboot of each current ONU;
backing up inherent key parameters in each ONU flash to respective memories;
storing the upgrade files to corresponding partitions of the current ONU flash based on partition information where the upgrade files stored in uboot of the current ONU are located;
and writing the intrinsic key parameters backed up to the memories of the ONUs back to the corresponding positions of the flash of the ONUs based on the partition information where the intrinsic key parameters stored in the uboot of each ONU currently are located.
2. The method according to claim 1, wherein the determining whether the indication of the software upgrade for each current ONU is received comprises:
and matching the attribute information of the upgrade file with the attribute information of the existing files of the current ONUs, if the matching fails, determining that an instruction for performing software upgrade on the current ONUs is received, and otherwise, determining that the instruction for performing software upgrade on the current ONUs is not received.
3. The method of claim 2, wherein the attribute information comprises: size information of the file and partition information where the file is located.
4. The method according to claim 3, wherein the backing up the intrinsic key parameters of each current ONU to a respective memory comprises:
and backing up the intrinsic key parameter partitions of the current ONUs to respective memories.
5. A software upgrading apparatus, characterized in that the apparatus comprises:
the judging module is used for judging whether an instruction for upgrading the software of each current ONU is received or not;
the backup module is used for backing up the inherent key parameters of each current ONU to respective memories when determining that the instruction for upgrading the software of each current ONU is received;
the erasing module is used for erasing all the flash of each current ONU;
the upgrading module is used for upgrading the software of each current ONU based on the upgrading file and simultaneously writing back the inherent key parameters backed up to the memory of each ONU to the flash of the corresponding ONU;
the upgrading file is obtained based on a multicast mode, and the number of the current ONU is at least two;
the device further comprises: the uboot upgrading module is used for programming a new uboot file to a first preset position of each current ONU flash before upgrading the software of each current ONU based on the upgrading file; writing back the intrinsic key parameters which are backed up to each ONU memory to the spare position of the corresponding ONU flash; the new uboot file is obtained based on a multicast mode and comprises partition information where the inherent key parameters are located and partition information where the upgrade file is located;
the upgrade module includes:
the restarting unit is used for restarting the uboot of each current ONU;
the backup unit is used for backing up the inherent key parameters in each current ONU flash to respective memories;
the upgrading unit is used for storing the upgrading files to corresponding partitions of the current ONU flashes based on partition information where the upgrading files stored in the uboot of the current ONU are located;
and the write-back unit is used for writing back the intrinsic key parameters which are backed up to the memories of the ONUs to the corresponding positions of the flash of the ONUs based on the partition information where the intrinsic key parameters stored in the uboot of each ONU are located.
6. The apparatus of claim 5, wherein the determining module is specifically configured to:
and matching the attribute information of the upgrade file with the attribute information of the existing files of the current ONUs, if the matching fails, determining that an instruction for performing software upgrade on the current ONUs is received, and otherwise, determining that the instruction for performing software upgrade on the current ONUs is not received.
7. An electronic device comprising a first memory, a first processor and a computer program stored on the memory and executable on the first processor, wherein the first processor implements the software upgrade method as claimed in any one of claims 1 to 4 when executing the computer program.
8. A storage medium containing computer-executable instructions which, when executed by a computer processor, implement the software upgrade method as claimed in any one of claims 1-4.
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 CN109597639A (en) 2019-04-09
CN109597639B true 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)

Families Citing this family (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

Family Cites Families (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
US9674035B2 (en) * 2011-03-28 2017-06-06 Zte Corporation Seamless configuration update for optical network unit in ethernet passive optical network
CN102571462B (en) * 2012-04-06 2015-05-13 烽火通信科技股份有限公司 Self-protecting method for long-distance upgrading of optical network unit
CN103108262B (en) * 2013-03-07 2016-03-23 烽火通信科技股份有限公司 The method of optical network unit configuration file upgrading in GPON system
US9535680B2 (en) * 2013-03-12 2017-01-03 Broadcom Corporation Flashless optical network unit
CN103384208B (en) * 2013-05-23 2016-06-01 上海斐讯数据通信技术有限公司 The upgrade-system of the ONU equipment in EPON system and upgrade method
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
CN105703945B (en) * 2016-01-08 2019-04-16 烽火通信科技股份有限公司 A kind of method of ONU upgrading
CN106412730B (en) * 2016-09-09 2019-10-25 武汉长光科技有限公司 A kind of method of remote batch upgrading ONU system software under Boot environment
CN107995033B (en) * 2017-11-30 2021-11-19 深圳市飞鸿光电子有限公司 ONU configuration file upgrading method and device
CN108491217A (en) * 2018-03-06 2018-09-04 青岛海信宽带多媒体技术有限公司 A kind of upgrade method and equipment of configuration file
CN108345466B (en) * 2018-05-09 2021-06-04 烽火通信科技股份有限公司 ONU upgrading method and system

Also Published As

Publication number Publication date
CN109597639A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN102710814B (en) The control method of virtual machine IP address and device
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
US9710340B2 (en) Replacement of a corrupt driver variable record
CN109597639B (en) Software upgrading method, device, equipment and medium
CN103677902A (en) Method for ensuring safety and success of updating of line-card software in distributed OLT system
CN103064797A (en) Data processing method and virtual machine management platform
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN111045708A (en) Software upgrading method, electronic device and computer readable storage medium
CN114780080A (en) Micro front end integration method, device and monitoring method
CN106033322A (en) Method and device for data storage
CN105162667A (en) Method and device for configuration of virtual machine
CN107995033B (en) ONU configuration file upgrading method and device
CN103455750A (en) High-security verification method and high-security verification system for embedded devices
CN103984621B (en) log separation method and system
US11431795B2 (en) Method, apparatus and storage medium for resource configuration
JP2016170471A (en) Electronic control device
CN116991758A (en) Spatial layout updating method, device, equipment and medium
CN101631046B (en) Method and device of automatic upgrade of one board
CN109542841B (en) Method for creating data snapshot in cluster and terminal equipment
CN111381850A (en) BIOS firmware upgrading method, device, equipment and medium
CN112346771A (en) Upgrade file generation method and device
CN105740032A (en) Network device system upgrading method and device
CN113704177B (en) Storage method, system and related components of server firmware upgrade file
CN109725945A (en) A kind of mould group starting method, apparatus, equipment and storage medium
CN111769992B (en) Network data management method, cloud platform and storage medium

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