CN112203170B - Upgrading method, device, medium and equipment of optical network unit - Google Patents

Upgrading method, device, medium and equipment of optical network unit Download PDF

Info

Publication number
CN112203170B
CN112203170B CN202011029801.2A CN202011029801A CN112203170B CN 112203170 B CN112203170 B CN 112203170B CN 202011029801 A CN202011029801 A CN 202011029801A CN 112203170 B CN112203170 B CN 112203170B
Authority
CN
China
Prior art keywords
upgrade
upgrading
onu
firmware
information
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
CN202011029801.2A
Other languages
Chinese (zh)
Other versions
CN112203170A (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.)
Sino Telecom Technology Co inc
Original Assignee
Sino Telecom Technology Co inc
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 Sino Telecom Technology Co inc filed Critical Sino Telecom Technology Co inc
Priority to CN202011029801.2A priority Critical patent/CN112203170B/en
Publication of CN112203170A publication Critical patent/CN112203170A/en
Application granted granted Critical
Publication of CN112203170B publication Critical patent/CN112203170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Abstract

The embodiment of the invention discloses upgrading of an optical network unit. The upgrading server is configured at the optical line terminal, and the upgrading request is sent to the upgrading server through the CURL instruction so as to upgrade the ONU, so that the phenomenon that the upgrading operation of the ONU in the prior art is complicated can be effectively improved, the manual maintenance cost is reduced, the compatibility of a GPON system is neglected, and the later maintenance cost is lower.

Description

Upgrading method, device, medium and equipment of optical network unit
Technical Field
The embodiments of the present invention relate to the field of communications, and for example, to a method, an apparatus, a medium, and a device for upgrading an optical network unit.
Background
Optical Network Units (ONUs) are used in an existing Network, and are usually used as a kind of Fiber To The Home (FTTH) terminal equipment. Sometimes, in the current network, the ONU needs to update the ONU firmware due to the upgrade of the functional service or the solution of the bug that has appeared.
In the prior art, the upgrading of the ONU usually comprises the steps that a user logs in an ONU IP address at home and utilizes a webpage to upgrade, but the method extremely consumes manpower and material resources, and the ONU is distributed and scattered and is difficult to execute; or, after the ONU firmware is uploaded to an Optical Line Terminal (OLT) through a File Transfer Protocol (File Transfer Protocol) or a simple File Transfer Protocol (TFTP), the OLT is upgraded through an Optical network unit Management Control Interface (ONU Management and Control Interface, OMCI), but the method uses different commands for different OLTs, which makes the operation troublesome and may cause compatibility problems between OLT manufacturers and ONUs.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a medium, and a device for upgrading an optical network unit, which can effectively improve the phenomenon of cumbersome operation for upgrading an ONU in the prior art.
In a first aspect, an embodiment of the present invention provides a method for upgrading an optical network unit, where the method includes:
configuring an upgrade server at an optical line terminal, wherein the upgrade server comprises upgrade version information and upgrade firmware information of an Optical Network Unit (ONU);
and sending an upgrade request to the upgrade server through a CURL instruction so as to upgrade the ONU.
Optionally, the upgrade version information includes: the ONU comprises an upgrade model, an upgrade software version number, an upgrade firmware name and a check code of the upgrade firmware.
Optionally, sending an upgrade request to the upgrade server through a CURL instruction to upgrade the ONU, including:
sending a downloading request of the upgrading version information of the ONU to the upgrading server through a CURL instruction;
if the current model of the ONU is consistent with the upgrade model in the upgrade version information and the current software version number of the ONU is not consistent with the upgrade software version number in the upgrade version information, downloading the upgrade firmware information;
and writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly.
Optionally, the verifying the firmware upgrading information includes;
calculating the MD5 value of the upgraded firmware information;
and if the MD5 value of the firmware upgrading information is the same as the check code of the firmware upgrading recorded by the upgrading version information, checking the firmware upgrading information correctly.
Optionally, the following operations are further included:
if any one of the following conditions is met, performing a sleep period of preset time, and after the sleep period is ended, sending an upgrade request to the upgrade server through a CURL instruction again to upgrade the ONU:
the current model of the ONU is inconsistent with the upgrading model in the upgrading version information;
the current software version number of the ONU is consistent with the upgrading software version number in the upgrading version information;
and the update firmware information is checked to be wrong.
In a second aspect, an embodiment of the present invention provides an upgrading apparatus for an optical network unit, where the apparatus includes:
the optical line terminal comprises a configuration module, a configuration module and a configuration module, wherein the configuration module is used for configuring an upgrading server at the optical line terminal, and the upgrading server comprises upgrading version information and upgrading firmware information of an Optical Network Unit (ONU);
and the upgrading module is used for sending an upgrading request to the upgrading server through a CURL instruction so as to upgrade the ONU.
Optionally, the upgrade version information includes: the ONU comprises an upgrade model, an upgrade software version number, an upgrade firmware name and a check code of the upgrade firmware.
Optionally, the upgrade module is configured to:
sending a downloading request of the upgrading version information of the ONU to the upgrading server through a CURL instruction;
if the current model of the ONU is consistent with the upgrade model in the upgrade version information and the current software version number of the ONU is not consistent with the upgrade software version number in the upgrade version information, downloading the upgrade firmware information;
and writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly.
Optionally, the upgrade module is further configured to;
calculating the MD5 value of the upgraded firmware information;
and if the MD5 value of the firmware upgrading information is the same as the check code of the firmware upgrading recorded by the upgrading version information, checking the firmware upgrading information correctly.
Optionally, the upgrade module is further configured to;
if any one of the following conditions is met, performing a sleep period of preset time, and after the sleep period is ended, sending an upgrade request to the upgrade server through a CURL instruction again to upgrade the ONU:
the current model of the ONU is inconsistent with the upgrading model in the upgrading version information;
the current software version number of the ONU is consistent with the upgrading software version number in the upgrading version information;
and the updating firmware information is checked to be wrong.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for upgrading an optical network unit as described above.
In a fourth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for upgrading the optical network unit as described above.
The embodiment of the invention configures an upgrading server at an optical line terminal, wherein the upgrading server comprises upgrading version information and upgrading firmware information of an Optical Network Unit (ONU); sending an upgrade request to the upgrade server through a CURL instruction to upgrade the ONU, effectively improving the phenomenon of tedious ONU upgrade operation in the prior art, reducing the manual maintenance cost, neglecting the compatibility of a GPON system, and having lower later maintenance cost.
Drawings
Fig. 1 is a flowchart of an upgrading method of an optical network unit according to an embodiment of the present invention;
fig. 2 is a flowchart of an upgrading method for an optical network unit according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an upgrading apparatus of an optical network unit according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in greater detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Firstly, the implementation of the scheme can be based on the following premises:
the network module distinguishes a server side and a client side.
The application program is divided into the server and the client, but different from most application programs needing to divide the server and the client, the product does not want to separately set up a computer as the server because of cost control, free program starting, convenience and the like.
Therefore, after the program is started, the network module firstly analyzes the information recorded in the configuration file to judge whether the program is a server or not, if the program is the server, the program is the server and the client, and other computers are the clients.
And determining a network transmission communication protocol.
According to the network environment of the program, UDP is determined as an underlying network transmission communication protocol, but considering that the UDP protocol is an unreliable protocol, the problems of network data packet loss, no guarantee of the sequence and the like occur, and therefore the scheme of using UDP + KCP is selected to realize reliable UDP transmission. In addition, in the preparation stage of user login, TCP is used as a network transmission communication protocol, so that the reliability of user login is ensured.
Specifying parameter settings in the synchronization logic.
The parameters needed in the synchronization logic are specified so that the parameters set in advance can be conveniently used in the process of realizing the synchronization algorithm, and the specific steps are as follows: the method comprises the steps of determining the IP address of a server, the network port of the server, the IP address of a local client, the frame interval of the server, the frame interval of heartbeat packets, the time for the server to judge the overtime drop of the client, the time for the client to judge the overtime drop of the server and the frame rate multiple of the client.
A synchronization message data protocol is specified.
First, a message type needs to be specified, specifically: synchronous preparation, synchronous start, data tracking, synchronous exit, heartbeat package, and custom message. Then, message data needs to be specified, specifically: message type, player ID of message origin, player ID of message target, tracking data, ping value timestamp, custom message. Finally, an uplink protocol of data sent by the client to the server and a downlink protocol of data sent by the server to the client need to be specified, wherein the uplink protocol specifically comprises the following steps: session ID, message list, and the downlink protocol specifically includes frame ID and message list.
Example one
Fig. 1 is a flowchart of an upgrading method for an optical network unit according to an embodiment of the present invention, where the method may be executed by an upgrading apparatus for an optical network unit according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. The method specifically comprises the following steps:
and S110, configuring an upgrading server at the optical line terminal.
The upgrading server comprises upgrading version information and upgrading firmware information of an optical network unit ONU.
The upgrading server can be a server containing ONU upgrading files, and when the ONU has upgrading requirements, the upgrading server can be accessed to carry out upgrading. For example, the upgrade server may be an HTTP server. The ONU upgrade file may include two files, which are, respectively, the upgrade version information (version.txt) and the upgrade firmware information (firmware.bin) of the ONU.
Optionally, the upgrade version information includes: the ONU comprises an upgrade model, an upgrade software version number, an upgrade firmware name and a check code of the upgrade firmware.
The upgrade version information may include all information required by the ONU device to be upgraded by the user. The upgrading model of the ONU is the upgraded model of the ONU equipment, the upgrading software version number is the software version number of the ONU equipment after upgrading, the upgrading firmware name is the firmware name of the ONU equipment after upgrading, and the verification code of the upgrading firmware is the firmware verification code of the ONU equipment after upgrading.
And S120, sending an upgrading request to the upgrading server through a CURL instruction so as to upgrade the ONU.
CURL is an open source file transfer tool that works in command line mode using URL syntax. The CURL instruction may be an instruction required to use a CURL tool, which is an http command line tool. The upgrade request refers to request information sent by the ONU device that needs to upgrade the current version and the like.
Specifically, in the embodiment of the invention, an http server is built at the upper end of the OLT, and the ONU needs to be registered after being started after power-on so as to open the upgrading service. When the ONU has an upgrading requirement, sending an upgrading request to an upgrading server through a CURL instruction, and after receiving an upgrading request command sent by the ONU, the upgrading server sends upgrading information required by the ONU to upgrade.
The embodiment of the invention configures an upgrading server at an optical line terminal, wherein the upgrading server comprises upgrading version information and upgrading firmware information of an Optical Network Unit (ONU); the upgrade request is sent to the upgrade server through the CURL instruction to upgrade the ONU, the phenomenon that the ONU is complicated in upgrade operation in the prior art can be effectively improved, the manual maintenance cost is reduced, the compatibility of a GPON system is neglected, and the later maintenance cost is low.
Example two
Fig. 2 is a flowchart of an upgrading method for an optical network unit according to a second embodiment of the present invention, where, based on the foregoing embodiment, the embodiment of the present invention sends an upgrade request to the upgrade server through a CURL instruction to upgrade the ONU, and the upgrading method includes: sending a downloading request of the upgrading version information of the ONU to the upgrading server through a CURL instruction; if the current model of the ONU is consistent with the upgrade model in the upgrade version information and the current software version number of the ONU is not consistent with the upgrade software version number in the upgrade version information, downloading the upgrade firmware information; and writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly. The method specifically comprises the following steps:
s210, configuring an upgrading server at the optical line terminal.
S220, sending a downloading request of the upgrading version information of the ONU to the upgrading server through a CURL instruction, and reading the upgrading version information of the ONU.
Specifically, the embodiment of the invention sends a download request of the version.txt file to the http server by using the curl through the http server address configured at the OLT end so as to read the content of the version.txt file. If the http server responds successfully, the ONU receives a version. And if the response of the http server fails, the ONU enters a sleep period, and continues to send an upgrading request to the http server after the sleep period elapses. In this process, the sleep period of the ONU may be any time, for example, if the sleep period is 1min, the ONU continues to send the upgrade request to the http server after 1 min.
And S230, if the current model of the ONU is consistent with the upgrading model in the upgrading version information and the current software version number of the ONU is inconsistent with the upgrading software version number in the upgrading version information, downloading the upgrading firmware information.
And comparing the ONU model and the software version number of the version.txt with the current ONU model and the software version number, and downloading and upgrading firmware information firmware.bin through curl if the models are matched and the versions are inconsistent.
S240, writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly.
Optionally, the verification of the upgraded firmware information includes; calculating the MD5 value of the upgraded firmware information; if the MD5 value of the upgrade firmware information is the same as the check code of the upgrade firmware recorded by the upgrade version information, the check is correct.
Specifically, the MD5 value of the file is unique, and the verification of the MD5 value is used to ensure that the file is not modified during the transmission process. The embodiment of the application verifies that the firmware updating information firmware is transmitted correctly by checking the MD5 of the firmware updating information. And in addition, the firmware information firmware is written into the flash, and the ONU is restarted, so that the automatic upgrade of the ONU is completed.
Optionally, if any one of the following conditions is met, performing a sleep period of a preset time: the current model of the ONU is inconsistent with the upgrading model in the upgrading version information; the current software version number of the ONU is consistent with the upgrading software version number in the upgrading version information; and the update firmware information is checked to be wrong.
If the current model of the ONU is inconsistent with the upgrading model in the upgrading version information, indicating that the received version.txt sent by the http server does not belong to the same model as the current ONU; the current software version number of the ONU is consistent with the upgrading software version number in the upgrading version information, which indicates that the current ONU is the latest software version and does not need to be upgraded; and the update firmware information is checked to be wrong, which indicates that the firmware. Therefore, when any of the above situations occurs, the sleep period is required to be entered, and the upgrade request is sent to the http server again. In one embodiment, the setting of the sleep period may be the same or different after any of the above situations occur. For example, when the current model of the ONU is inconsistent with the upgrade model in the upgrade version information; or when the current software version number of the ONU is consistent with the upgrade software version number in the upgrade version information, the preset time can be set to be 1 minute, so that the sleep period is 1 minute; when the update firmware information is checked incorrectly, the preset time may be set to 1 hour, and thus the sleep period is 1 hour.
The embodiment of the invention sends the upgrading request to the http server, matches the files sent by the http server, and performs different operations under different matching results, thereby automatically completing the upgrading operation of the ONU equipment.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an upgrading apparatus of an optical network unit according to an embodiment of the present invention, where the apparatus specifically includes: a configuration module 310 and an upgrade module 320.
A configuration module 310, configured to configure an upgrade server at an optical line terminal, where the upgrade server includes upgrade version information and upgrade firmware information of an optical network unit ONU;
and the upgrading module 320 is configured to send an upgrading request to the upgrading server through a CURL instruction to upgrade the ONU.
Optionally, the upgrade version information includes: the ONU comprises an upgrade model, an upgrade software version number, an upgrade firmware name and a check code of the upgrade firmware.
Optionally, the upgrade module 320 is configured to:
sending a downloading request of the upgrading version information of the ONU to the upgrading server through a CURL instruction;
if the current model of the ONU is consistent with the upgrade model in the upgrade version information and the current software version number of the ONU is not consistent with the upgrade software version number in the upgrade version information, downloading the upgrade firmware information;
and writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly.
Optionally, the upgrade module 320 is further configured to;
calculating the MD5 value of the upgraded firmware information;
and if the MD5 value of the firmware upgrading information is the same as the check code of the firmware upgrading recorded by the upgrading version information, checking the firmware upgrading information correctly.
Optionally, the upgrade module 320 is further configured to;
if any one of the following conditions is met, performing a sleep period of preset time, and after the sleep period is ended, sending an upgrade request to the upgrade server through a CURL instruction again to upgrade the ONU:
the current model of the ONU is inconsistent with the upgrading model in the upgrading version information;
the current software version number of the ONU is consistent with the upgrading software version number in the upgrading version information;
and the update firmware information is checked to be wrong.
The embodiment of the invention configures an upgrading server at an optical line terminal, wherein the upgrading server comprises upgrading version information and upgrading firmware information of an Optical Network Unit (ONU); sending an upgrade request to the upgrade server through a CURL instruction to upgrade the ONU, effectively improving the phenomenon of tedious ONU upgrade operation in the prior art, reducing the manual maintenance cost, neglecting the compatibility of a GPON system, and having lower later maintenance cost.
Example four
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform:
configuring an upgrade server at an optical line terminal, wherein the upgrade server comprises upgrade version information and upgrade firmware information of an Optical Network Unit (ONU);
and sending an upgrading request to the upgrading server through a CURL instruction so as to upgrade the ONU.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage media" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the synchronous operation of online multi-channel data as described above, and may also perform related operations in the method for upgrading an optical network unit provided in any embodiment of the present application.
EXAMPLE five
The embodiment of the application provides electronic equipment, and the electronic equipment can be integrated with a multi-channel data synchronization device provided by the embodiment of the application. Fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application. As shown in fig. 4, the present embodiment provides an electronic device 400, which includes: one or more processors 420; a storage device 410 to store one or more programs that, when executed by the one or more processors 420, cause the one or more processors 420 to implement
As shown in fig. 4, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processors 420 in the electronic device may be one or more, and one processor 420 is taken as an example in fig. 4; the processor 420, the storage device 410, the input device 430, and the output device 440 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 450 in fig. 4.
The storage device 410 is a computer-readable storage medium, and can be used to store a software program, a computer executable program, and program instructions corresponding to a module unit, such as the upgrading method of the optical network unit in the embodiment of the present application.
The storage device 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, 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. Further, the storage 410 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, storage 410 may further include memory located remotely from processor 420, which may be connected via 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 means 430 may be used to receive input numerals, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display screen, speakers, etc.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be 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 for upgrading an optical network unit is applied to a GPON system and comprises the following steps:
configuring an upgrade server at an optical line terminal, wherein the upgrade server comprises upgrade version information and upgrade firmware information of an Optical Network Unit (ONU); the upgrading server is an HTTP server;
sending an upgrade request to the upgrade server through a CURL instruction to upgrade the ONU; the method specifically comprises the following steps:
sending a downloading request of the upgrading version information of the ONU to the upgrading server through a CURL instruction and reading the upgrading version information of the ONU;
if the current model of the ONU is consistent with the upgrade model in the upgrade version information and the current software version number of the ONU is not consistent with the upgrade software version number in the upgrade version information, downloading the upgrade firmware information;
and writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly.
2. The method of claim 1, wherein the upgrade version information comprises: the ONU comprises an upgrade model, an upgrade software version number, an upgrade firmware name and a check code of the upgrade firmware.
3. The method of claim 1, wherein the verification of the upgraded firmware information comprises;
calculating the MD5 value of the upgraded firmware information;
if the MD5 value of the upgrade firmware information is the same as the check code of the upgrade firmware recorded by the upgrade version information, the check is correct.
4. The method of claim 1, further comprising the operations of:
if any one of the following conditions is met, performing a sleep period of preset time, and after the sleep period is ended, sending an upgrade request to the upgrade server through a CURL instruction again to upgrade the ONU:
the current model of the ONU is inconsistent with the upgrading model in the upgrading version information;
the current software version number of the ONU is consistent with the upgrading software version number in the upgrading version information;
and the updating firmware information is checked to be wrong.
5. An upgrade apparatus of an optical network unit, comprising: the method is applied to a GPON system,
the optical line terminal comprises a configuration module, a configuration module and a configuration module, wherein the configuration module is used for configuring an upgrading server at the optical line terminal, and the upgrading server comprises upgrading version information and upgrading firmware information of an Optical Network Unit (ONU); the upgrading server is an HTTP server;
the upgrading module is used for sending an upgrading request to the upgrading server through a CURL instruction so as to upgrade the ONU, and is set to send a downloading request of upgrading version information of the ONU to the upgrading server through the CURL instruction and read the upgrading version information of the ONU;
if the current model of the ONU is consistent with the upgrade model in the upgrade version information and the current software version number of the ONU is not consistent with the upgrade software version number in the upgrade version information, downloading the upgrade firmware information;
and writing the firmware into a flash to finish the upgrading of the ONU under the condition that the upgrading firmware information is verified correctly.
6. The apparatus of claim 5, wherein the upgrade version information comprises: the ONU comprises an upgrade model, an upgrade software version number, an upgrade firmware name and a check code of the upgrade firmware.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method for upgrading an optical network unit according to any of claims 1-4.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for upgrading an optical network unit according to any of claims 1-4 when executing the computer program.
CN202011029801.2A 2020-09-27 2020-09-27 Upgrading method, device, medium and equipment of optical network unit Active CN112203170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011029801.2A CN112203170B (en) 2020-09-27 2020-09-27 Upgrading method, device, medium and equipment of optical network unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011029801.2A CN112203170B (en) 2020-09-27 2020-09-27 Upgrading method, device, medium and equipment of optical network unit

Publications (2)

Publication Number Publication Date
CN112203170A CN112203170A (en) 2021-01-08
CN112203170B true CN112203170B (en) 2022-10-11

Family

ID=74007521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011029801.2A Active CN112203170B (en) 2020-09-27 2020-09-27 Upgrading method, device, medium and equipment of optical network unit

Country Status (1)

Country Link
CN (1) CN112203170B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995806A (en) * 2021-02-07 2021-06-18 博为科技有限公司 Method, device, system and storage medium for upgrading optical network unit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100385862C (en) * 2005-12-25 2008-04-30 华为技术有限公司 Method for edition upgrading of optical network unit ONU
CN102118258A (en) * 2009-12-31 2011-07-06 中兴通讯股份有限公司 Protective method and protective system for abnormal situation in upgrading of gigabit passive optical network terminal
CN101950253B (en) * 2010-08-12 2013-03-13 深圳市共进电子股份有限公司 Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface
CA2773027C (en) * 2011-03-28 2017-06-20 Zte Corporation Seamless configuration update for optical network unit in ethernet passive optical network
CN103209362B (en) * 2013-04-12 2016-05-04 深圳市共进电子股份有限公司 A kind of method of upgrading between many equipment between passive optical network equipment
CN105993147B (en) * 2014-07-23 2019-03-05 华为技术有限公司 A kind of terminal staging method and relevant device
CN104320281A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Optical network unit (ONU) version upgrading method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112203170A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN109460245B (en) Remote upgrading method for embedded system
CN107566226B (en) Method, device and system for controlling smart home
KR100442884B1 (en) Method for updating firmware
WO2017161947A1 (en) Multi-system ota upgrade method and multi-system device
CN112953775B (en) Vehicle machine upgrading system and method
US20120117557A1 (en) Method and system for upgrading wireless data card
CN107066300B (en) Firmware upgrading method of storage device and storage device
US20150347153A1 (en) System management controller and method of configuration file backup and recovery
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
CN112203170B (en) Upgrading method, device, medium and equipment of optical network unit
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN111078266A (en) Client processing method and device for low-coupling incremental upgrading of voice software and server processing method
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
US8150947B2 (en) Techniques for performing operating system installation on a headless device
CN109189419B (en) System upgrading method, device and system, server and client
WO2023226670A1 (en) Esim firmware upgrade method and apparatus, and device and medium
WO2015154578A1 (en) Remote upgrade method, device and system of boot program of single board
CN102622254A (en) Method and system for processing television outage
CN100464520C (en) Method and system for realizing distributed data loading
CN110764806A (en) TWS earphone and upgrading method and device thereof
KR100524588B1 (en) succeeding method of data in mobile
CN105704707A (en) Slave equipment and air upgrading method thereof
CN109347937B (en) Intelligent remote upgrading method applied to video monitoring equipment
CN114443097A (en) Single-chip microcomputer firmware upgrading method used in conference unit

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