Method, device and readable storage medium for upgrading passive optical network equipment

By detecting the broadcast information of the Dynamic Host Configuration Protocol (DHCP) batch upgrade server when the optical network terminal is powered on, and generating a unique temporary IP for software upgrade, the problem of low efficiency of multicast upgrade of optical network terminals is solved, and automated upgrade and accuracy of optical network terminals are realized.

CN116528086BActive Publication Date: 2026-04-28SHENZHEN HUAXUN OPTICAL COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN HUAXUN OPTICAL COMM CO LTD
Filing Date
2023-04-27
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

In existing technologies, the multicast upgrade method for optical network terminals has low upgrade efficiency and cannot accurately determine whether each optical network terminal has been successfully upgraded.

Method used

By detecting the broadcast information of the Dynamic Host Configuration Protocol (DHCP) batch upgrade server when the optical network terminal is powered on, a unique temporary IP is generated, and software upgrade operations are performed based on this IP, including device information broadcasting, software version acquisition, temporary IP generation, and downloading and verifying upgrade files.

Benefits of technology

It enables automatic upgrades of optical network terminals, accurately determines upgrade success rate and efficiency, and improves the accuracy and efficiency of system software upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116528086B_ABST
    Figure CN116528086B_ABST
Patent Text Reader

Abstract

The application discloses an upgrading method and device of a passive optical network equipment and a readable storage medium, wherein the method comprises the following steps: a terminal broadcasts equipment information of the terminal in a local area network; when the equipment information is detected, a batch upgrading server acquires a latest software version; the batch upgrading server generates a unique temporary IP based on the equipment information and the latest software version; the batch upgrading server broadcasts second information; the terminal acquires the unique temporary IP based on the second information and performs a software upgrading operation based on the unique temporary IP. According to the application, the software of the terminal is upgraded according to the unique temporary IP corresponding to the equipment information of each terminal and the latest software version, so that the automatic upgrading of the terminal can be realized, and whether the terminal is successfully upgraded can be accurately determined through the active upgrading of the terminal, thereby improving the accuracy and efficiency of the system software upgrading of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to an upgrade method, apparatus, and readable storage medium for a passive optical network device. Background Technology

[0002] Currently, fiber-to-the-home (FTTH) is becoming increasingly widespread and has become the mainstream mode for operators to build access networks. Consequently, the number of optical network terminal equipment (ONTs) in optical access networks is increasing significantly. In practical applications, system software upgrades are a common function of ONTs. By upgrading the system software of ONTs, the needs of different operators or even different needs of the same operator can be met. Furthermore, the functionality of the ONT system software can be continuously improved to adapt to the evolving business and application needs of operators.

[0003] Currently, the system software of optical network terminals is generally upgraded in batches through multicast upgrade under boot. Since the multicast stream used in the multicast upgrade method is unidirectional, it is impossible to effectively manage the upgraded optical network terminals, and thus it is impossible to accurately determine whether each optical network terminal has been upgraded successfully, resulting in low upgrade efficiency of optical network terminals.

[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this invention is to provide a method, apparatus, and readable storage medium for upgrading passive optical network devices, aiming to solve the technical problem of low upgrade efficiency in the multicast upgrade method of optical network terminals in the prior art.

[0006] To achieve the above objectives, the present invention provides an upgrade method for a passive optical network (PON) device, applied to the optical network terminal of a PON device. The upgrade method for the PON device includes the following steps:

[0007] When the optical network terminal is powered on, the optical network terminal determines whether it detects the first broadcast information corresponding to the Dynamic Host Configuration Protocol (DMP) batch upgrade server within a preset time period after powering on, wherein the batch upgrade server broadcasts the first broadcast information in the local area network corresponding to the optical network terminal at regular intervals.

[0008] When the first broadcast information corresponding to the batch upgrade server is detected, the optical network terminal broadcasts its device information in the local area network.

[0009] When the device information is detected, the batch upgrade server obtains the latest version of the software corresponding to the device information;

[0010] The batch upgrade server determines the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software, and generates a unique temporary IP based on the first preset field data and the second preset field data.

[0011] The batch upgrade server broadcasts the second broadcast information corresponding to the unique temporary IP in the local area network;

[0012] Upon receiving the second broadcast information, the optical network terminal obtains the unique temporary IP based on the second broadcast information and performs a software upgrade operation based on the unique temporary IP.

[0013] Further, the step of the batch upgrade server determining the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software, and generating a unique temporary IP based on the first preset field data and the second preset field data includes:

[0014] The batch upgrade server determines the first preset field data based on the device information and the second preset field data based on the latest version of the software;

[0015] The batch upgrade server determines the unique temporary IP based on the first preset field data and the second preset field data.

[0016] Further, the step of the batch upgrade server determining the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software, and generating a unique temporary IP based on the first preset field data and the second preset field data includes:

[0017] The batch upgrade server determines the first preset field data based on device information and the latest version of the software using a hash algorithm.

[0018] The batch upgrade server determines the second preset field data based on the latest version of the software using a hash algorithm;

[0019] The batch upgrade server determines the unique temporary IP based on the first preset field data and the second preset field data.

[0020] Furthermore, the step of performing the software upgrade operation based on the unique temporary IP includes:

[0021] The optical network terminal obtains the device information and the latest version of the software corresponding to the unique temporary IP;

[0022] The optical network terminal determines whether its own device information matches the device information;

[0023] If a match is found, the optical network terminal determines whether its software version is less than the latest software version.

[0024] If the version number is less than the latest version of the software, the optical network terminal will perform a software upgrade based on the unique temporary IP address.

[0025] Furthermore, the step of performing the software upgrade operation based on the unique temporary IP includes:

[0026] The optical network terminal sends an upgrade file acquisition request to the batch upgrade server based on the unique temporary IP address;

[0027] The batch upgrade server obtains each target sub-upgrade file of the upgrade file corresponding to the acquisition request, and broadcasts each target sub-upgrade file through the local area network based on the unique temporary IP;

[0028] The optical network terminal downloads each of the target sub-upgrade files in the local area network using the unique temporary IP address, and performs software upgrade operations based on each of the target sub-upgrade files.

[0029] Furthermore, the step of the batch upgrade server obtaining each target sub-upgrade file of the upgrade file corresponding to the acquisition request includes:

[0030] The batch upgrade server divides the upgrade file to obtain sub-upgrade files of different data sizes;

[0031] The batch upgrade server obtains the first hash value corresponding to the upgrade file based on the data size of the upgrade file and the unique temporary IP.

[0032] The batch upgrade server obtains the second hash value corresponding to each of the sub-upgrade files based on the data size of each sub-upgrade file and the unique temporary IP.

[0033] The batch upgrade server determines the target sub-upgrade file corresponding to each sub-upgrade file based on the first hash value and the second hash value.

[0034] Furthermore, the step of performing the software upgrade operation based on each of the target sub-upgrade files includes:

[0035] The optical network terminal downloads each of the target sub-upgrade files on the local area network using the unique temporary IP address;

[0036] The optical network terminal verifies the integrity of the downloaded target sub-upgrade file;

[0037] When the target sub-upgrade file passes the integrity verification, the optical network terminal determines the target upgrade file based on each of the target sub-upgrade files, and performs a software upgrade operation based on the target upgrade file.

[0038] Furthermore, the step of the optical network terminal verifying the integrity of the downloaded target sub-upgrade file includes:

[0039] The optical network terminal obtains each of the sub-upgrade files corresponding to each target sub-upgrade file, the first hash value, and the second hash value;

[0040] The optical network terminal performs integrity verification on each of the sub-upgrade files based on the second hash value;

[0041] When each of the sub-upgrade files passes integrity verification, the optical network terminal determines the target upgrade file based on each of the sub-upgrade files, and performs integrity verification on the target upgrade file based on the first hash value.

[0042] In addition, to achieve the above objectives, the present invention also provides an upgrade apparatus for a passive optical network device, the upgrade apparatus for a passive optical network device comprising: a memory, a processor, and an upgrade program for the passive optical network device stored in the memory and executable on the processor, wherein when the upgrade program for the passive optical network device is executed by the processor, the steps of the aforementioned upgrade method for the passive optical network device are implemented.

[0043] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing an upgrade program for a passive optical network device, wherein the upgrade program for the passive optical network device, when executed by a processor, implements the steps of the aforementioned upgrade method for a passive optical network device.

[0044] This invention involves the optical network terminal determining, upon powering on, whether it detects a first broadcast message corresponding to a Dynamic Host Configuration Protocol (DHCP) batch upgrade server within a preset time period after powering on. The batch upgrade server periodically broadcasts the first broadcast message within the local area network (LAN) corresponding to the optical network terminal. Upon detecting the first broadcast message from the batch upgrade server, the optical network terminal broadcasts its device information within the LAN. When the device information is detected, the batch upgrade server obtains the latest software version corresponding to the device information. Then, based on the device information and the latest software version, the batch upgrade server determines a first preset field data and a second preset field data corresponding to a temporary IP address. The system performs a software upgrade by processing a segment of data and generating a unique temporary IP based on the first preset field data and the second preset field data. Then, the batch upgrade server broadcasts a second broadcast message corresponding to the unique temporary IP in the local area network. Finally, upon receiving the second broadcast message, the optical network terminal obtains the unique temporary IP based on the second broadcast message and performs a software upgrade operation based on the unique temporary IP. By performing software upgrades on the optical network terminals according to the device information of each optical network terminal and the unique temporary IP corresponding to the latest version of the software, automatic upgrades of the optical network terminals can be achieved. Furthermore, by actively upgrading the optical network terminals, it is possible to accurately determine whether the upgrade of the optical network terminals has been successful, thereby improving the accuracy and efficiency of system software upgrades for the optical network terminals. Attached Figure Description

[0045] Figure 1 This is a schematic diagram of the structure of the upgrade device for a passive optical network device in the hardware operating environment involved in the embodiments of the present invention;

[0046] Figure 2 This is a flowchart illustrating the first embodiment of the upgrade method for the passive optical network device of the present invention.

[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0048] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0049] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of an upgrade device for a passive optical network device in the hardware operating environment involved in the embodiments of the present invention.

[0050] The upgrade device for the passive optical network device in this embodiment of the invention can be a PC, or a terminal device such as a smartphone or tablet.

[0051] like Figure 1 As shown, the upgrade device for this passive optical network (PON) device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0052] Optionally, the upgrade device for the passive optical network (PON) equipment may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, WiFi module, and so on. Of course, the upgrade device for the PON equipment may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, which will not be elaborated upon here.

[0053] Those skilled in the art will understand that Figure 1 The terminal structure shown does not constitute a limitation on the upgrade device for passive optical network equipment, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0054] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an upgrade program for a passive optical network device.

[0055] exist Figure 1 In the upgrade device for the passive optical network device shown, the network interface 1004 is mainly used to connect to the backend server and communicate with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate with the client; and the processor 1001 can be used to call the upgrade program for the passive optical network device stored in the memory 1005.

[0056] In this embodiment, the passive optical network device upgrade apparatus includes: a memory 1005, a processor 1001, and a passive optical network device upgrade program stored in the memory 1005 and executable on the processor 1001. When the processor 1001 calls the passive optical network device upgrade program stored in the memory 1005, it executes the steps of the passive optical network device upgrade method in the following embodiments.

[0057] This invention also provides a method for upgrading a passive optical network device, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the upgrade method for the passive optical network device of the present invention.

[0058] In this embodiment, the upgrade method of the passive optical network device is applied to the optical network terminal of the passive optical network device. The passive optical network device includes an optical line terminal and multiple optical network terminals, and the optical line terminal is communicatively connected to each optical network terminal.

[0059] The upgrade methods for this passive optical network device include:

[0060] Step S101: When the optical network terminal is powered on, the optical network terminal determines whether it detects the first broadcast information corresponding to the Dynamic Host Configuration Protocol (DMP) batch upgrade server within a preset time period after power-on, wherein the batch upgrade server broadcasts the first broadcast information in the local area network corresponding to the optical network terminal at regular intervals.

[0061] In this embodiment, a batch upgrade server is pre-configured in the network corresponding to the passive optical network device (PON device). This batch upgrade server has the function of a DHCP (Dynamic Host Configuration Protocol) server. The batch upgrade server can broadcast a first broadcast message in the local area network corresponding to the PON device in real time or at regular intervals, and the time interval between broadcasts of the first broadcast message is less than the preset duration. Alternatively, the batch upgrade server can obtain the operating status information of the optical network terminals in the PON device in real time through the optical line terminal. When it is determined that there are powered-on and running optical network terminals in the PON device based on the operating status information, the batch upgrade server broadcasts the first broadcast message in the network corresponding to the PON device. The preset duration can be reasonably set, for example, it can be set to 1 minute.

[0062] In this embodiment, when the optical network terminal is powered on, the optical network terminal starts the detection program corresponding to the batch upgrade server to detect whether there is a batch upgrade server within a preset time after power-on. Specifically, the optical network terminal determines whether the first broadcast information corresponding to the Dynamic Host Configuration Protocol (DMP) batch upgrade server is detected within the preset time after power-on, that is, whether the optical network terminal can receive the first broadcast information broadcast by the batch upgrade server through the local area network corresponding to the passive optical network device. The optical network terminal includes multiple units.

[0063] It should be noted that passive optical network devices can select the number of optical network terminals that need to be powered on and running based on service requirements. If an optical network terminal does not detect the first broadcast information corresponding to the Dynamic Host Configuration Protocol (DHCP) batch upgrade server within a preset time after powering on, the optical network terminal will disable the detection program corresponding to the batch upgrade server to facilitate service processing.

[0064] Step S102: When the first broadcast information corresponding to the batch upgrade server is detected, the optical network terminal broadcasts the device information of the optical network terminal in the local area network.

[0065] In this embodiment, when the first broadcast information broadcast by the batch upgrade server is detected, the optical network terminal determines that there is a batch upgrade server in the local area network corresponding to the current passive optical network device, that is, the optical network terminal can detect the batch upgrade server. At this time, the optical network terminal obtains its own device information and broadcasts the device information of the optical network terminal in the local area network. The device information is the identity information of the optical network terminal, and each optical network terminal corresponds to a unique device information.

[0066] Step S103: When the device information is detected, the batch upgrade server obtains the latest version of the software corresponding to the device information;

[0067] In this embodiment, when an optical network terminal broadcasts device information through a local area network, the batch upgrade server can obtain the device information of the optical network terminal from the local area network. Then, the batch upgrade server obtains the latest version of the software corresponding to the device information. Specifically, the batch upgrade server stores the latest version of the software and upgrade files corresponding to each optical network terminal. The batch upgrade server can query the latest version of the software corresponding to the optical network terminal through the device information.

[0068] In step S104, the batch upgrade server determines the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software, and generates a unique temporary IP based on the first preset field data and the second preset field data.

[0069] In this embodiment, when the batch upgrade server obtains the latest version of the software, the batch upgrade server determines the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software. For example, the batch upgrade server can determine the first preset field data based on the device information and determine the second preset field data based on the latest version of the software. The first preset field and the second preset field are different fields in the temporary IP address. For example, the temporary IP is 192.168.x1.x2, where the field of x1 is the first preset field and the field of x2 is the second preset field.

[0070] Next, the batch upgrade server generates a unique temporary IP based on the first preset field data and the second preset field data. Specifically, the batch upgrade server can fill the first preset field data into the first preset field of the temporary IP and fill the second preset field data into the second preset field of the temporary IP to obtain a unique temporary IP.

[0071] Step S105: The batch upgrade server broadcasts the second broadcast information corresponding to the unique temporary IP in the local area network;

[0072] In this embodiment, after obtaining the unique temporary IP, the batch upgrade server broadcasts the second broadcast information corresponding to the unique temporary IP in the local area network so that each optical network terminal can receive the second broadcast information in the local area network.

[0073] In step S106, upon receiving the second broadcast information, the optical network terminal obtains the unique temporary IP based on the second broadcast information and performs a software upgrade operation based on the unique temporary IP.

[0074] In this embodiment, after broadcasting device information, the optical network terminal can monitor broadcast information in the local area network in real time. If the second broadcast information is detected, the optical network terminal obtains the second broadcast information and the unique temporary IP carried in the second broadcast information. After obtaining the unique temporary IP, the optical network terminal performs a software upgrade operation based on the unique temporary IP. Specifically, the batch upgrade server can send broadcast information of the upgrade file corresponding to the optical network terminal based on the unique temporary IP. For each optical network terminal, the optical network terminal receives the corresponding upgrade file through the broadcast information and runs the upgrade file to realize the software upgrade of the optical network terminal. Furthermore, when the optical network terminal upgrade is completed, each optical network terminal can send upgrade completion information back to the batch upgrade server based on the unique temporary IP.

[0075] Furthermore, in one embodiment, the optical network terminal is equipped with an LED indicator, and the upgrade method for the passive optical network device further includes:

[0076] Step a, during the process of the optical network terminal performing a software upgrade based on the unique temporary IP, the optical network terminal controls the LED indicator to flash according to a first preset flashing mode;

[0077] Step b: When the optical network terminal software upgrade is successful, the optical network terminal controls the LED indicator to flash according to the second preset flashing mode;

[0078] Step c: When the optical network terminal software upgrade fails, the optical network terminal controls the LED indicator to blink according to the third preset blinking mode.

[0079] In this embodiment, the optical network terminal is equipped with one or more LED indicator lights. During the software upgrade operation based on a unique temporary IP address, the optical network terminal controls the LED indicator lights to flash according to a first preset flashing pattern to indicate to the user that the optical network terminal is currently undergoing a software upgrade. When the optical network terminal software upgrade is successful, the optical network terminal controls the LED indicator lights to flash according to a second preset flashing pattern to indicate to the user that the optical network terminal has completed the software upgrade. When the optical network terminal software upgrade fails, the optical network terminal controls the LED indicator lights to flash according to a third preset flashing pattern to indicate to the user that the software upgrade of the optical network terminal has failed, so that the user can upgrade the optical network terminal again (e.g., restart the optical network terminal). By using different flashing patterns of the LED indicator lights, the current status of the optical network terminal is accurately indicated to the user.

[0080] Furthermore, in another embodiment, after step S103, the upgrade method for the passive optical network device further includes:

[0081] Step d: When the optical network terminal software upgrade is successful, the optical network terminal sends its device information, software version information, and upgrade time information to the batch upgrade server, so that the batch upgrade server can associate and store the device information, software version information, and upgrade time information.

[0082] In this embodiment, when the optical network terminal software upgrade is successful, the optical network terminal sends its device information (terminal information), software version information, and upgrade time information to the batch upgrade server, so that the batch upgrade server can associate and store the device information, software version information, and upgrade time information, making it convenient to query the software information of each optical network terminal through the batch upgrade server.

[0083] The passive optical network (PON) device upgrade method proposed in this embodiment involves the following steps: When the optical network terminal is powered on, it determines whether it detects a first broadcast message corresponding to a Dynamic Host Configuration Protocol (DMP) batch upgrade server within a preset time period after power-on. The batch upgrade server periodically broadcasts the first broadcast message in the local area network (LAN) corresponding to the optical network terminal. Then, upon detecting the first broadcast message corresponding to the batch upgrade server, the optical network terminal broadcasts its device information in the LAN. Upon detecting the device information, the batch upgrade server obtains the latest software version corresponding to the device information. Finally, based on the device information and the latest software version, the batch upgrade server determines a first preset field corresponding to the temporary IP address. The system upgrade server generates a unique temporary IP address based on the first preset field data and the second preset field data. Then, the batch upgrade server broadcasts the second broadcast information corresponding to the unique temporary IP address in the local area network. Finally, upon receiving the second broadcast information, the optical network terminal obtains the unique temporary IP address based on the second broadcast information and performs a software upgrade operation based on the unique temporary IP address. By performing software upgrades on optical network terminals according to the device information of each optical network terminal and the unique temporary IP address corresponding to the latest version of the software, automatic upgrades of optical network terminals can be achieved. Furthermore, by actively upgrading optical network terminals, it is possible to accurately determine whether the upgrade of optical network terminals has been successful, thereby improving the accuracy and efficiency of system software upgrades for optical network terminals.

[0084] Based on the first embodiment, a second embodiment of the upgrade method for the passive optical network device of the present invention is proposed. In this embodiment, step S104 includes:

[0085] Step S201: The batch upgrade server determines the first preset field data based on the device information and determines the second preset field data based on the latest version of the software.

[0086] In step S202, the batch upgrade server determines the unique temporary IP based on the first preset field data and the second preset field data.

[0087] In this embodiment, after obtaining the latest version of the software and the device information of the optical network terminal, the batch upgrade server determines the first preset field data based on the device information and the second preset field data based on the latest version of the software. The first preset field and the second preset field are different fields in the temporary IP address. For example, the temporary IP is 192.168.x1.x2, where the field of x1 is the first preset field and the field of x2 is the second preset field.

[0088] Specifically, the batch upgrade server can first obtain the device code corresponding to the device information and the software code corresponding to the latest version of the software. For example, the device information and the latest version of the software can be encoded separately using an encoding algorithm so that the device code and the software code are within the range of field x1 or field x2. The device code is used as the first preset field data and the software code is used as the second preset field data.

[0089] Next, the batch upgrade server generates a unique temporary IP based on the first preset field data and the second preset field data. Specifically, the batch upgrade server can fill the first preset field data into the first preset field of the temporary IP and fill the second preset field data into the second preset field of the temporary IP to obtain a unique temporary IP.

[0090] The passive optical network (PON) device upgrade method proposed in this embodiment involves a batch upgrade server determining the first preset field data based on the device information and the second preset field data based on the latest version of the software. Then, the batch upgrade server determines the unique temporary IP based on the first and second preset field data. This method accurately obtains a unique temporary IP matching the optical network terminal using the latest version of the software and the device information, facilitating accurate upgrades of the optical network terminal using this unique temporary IP and further improving the accuracy and efficiency of system software upgrades for the optical network terminal.

[0091] Based on the first embodiment, a third embodiment of the upgrade method for the passive optical network device of the present invention is proposed. In this embodiment, step S104 includes:

[0092] Step S301: The batch upgrade server determines the first preset field data based on device information and the latest version of the software using a hash algorithm.

[0093] Step S302: The batch upgrade server determines the second preset field data based on the latest version of the software using a hash algorithm;

[0094] Step S303: The batch upgrade server determines the unique temporary IP based on the first preset field data and the second preset field data.

[0095] In this embodiment, after obtaining the latest version of the software and the device information of the optical network terminal, the batch upgrade server determines the first preset field data based on the device information and the latest version of the software using a hash algorithm. Specifically, the batch upgrade server first converts the device information and the latest version of the software into input data for the hash algorithm and inputs them into the hash algorithm. The first hash value is calculated by the hash algorithm, and the first preset field data is determined based on the first hash value. For example, the first preset number of digits in the first hash value is used as the first preset field data.

[0096] Next, the batch upgrade server determines the second preset field data based on the latest version of the software using a hash algorithm. Specifically, the batch upgrade server first converts the latest version of the software into input data for the hash algorithm, calculates the second hash value using the hash algorithm, and determines the second preset field data based on the second hash value. For example, the first preset digits in the second hash value are used as the second preset field data.

[0097] Then, the batch upgrade server generates a unique temporary IP based on the first preset field data and the second preset field data. Specifically, the batch upgrade server can fill the first preset field data into the first preset field of the temporary IP and fill the second preset field data into the second preset field of the temporary IP to obtain a unique temporary IP.

[0098] The passive optical network (PON) device upgrade method proposed in this embodiment involves a batch upgrade server determining the first preset field data based on device information and the latest software version using a hash algorithm. Then, the batch upgrade server determines the second preset field data based on the latest software version using a hash algorithm. Finally, the batch upgrade server determines the unique temporary IP based on the first and second preset field data. This method accurately obtains a unique temporary IP matching the optical network terminal using the latest software version and device information, facilitating accurate upgrades of the optical network terminal using this unique temporary IP and further improving the accuracy and efficiency of system software upgrades for the optical network terminal.

[0099] Based on the first embodiment, a fourth embodiment of the upgrade method for the passive optical network device of the present invention is proposed. In this embodiment, step S106 includes:

[0100] Step S401: The optical network terminal obtains the device information and the latest version of the software corresponding to the unique temporary IP.

[0101] Step S402: The optical network terminal determines whether its own device information matches the device information.

[0102] Step S403: If a match is found, the optical network terminal determines whether its software version is less than the latest software version.

[0103] Step S404: If the version number is less than the latest version of the software, the optical network terminal performs a software upgrade operation based on the unique temporary IP address.

[0104] In this embodiment, when the unique temporary IP carried by the second broadcast information is obtained, the optical network terminal obtains the device information and the latest version of the software corresponding to the unique temporary IP. Specifically, the optical network terminal obtains the first preset field data and the second preset field data in the unique temporary IP, and obtains the device information and the latest version of the software corresponding to the unique temporary IP based on the first preset field data and the second preset field data respectively.

[0105] Next, the optical network terminal determines whether its own device information matches the device information. If they match, the optical network terminal determines whether its own software version is lower than the latest software version. If it is lower than the latest software version, the optical network terminal performs a software upgrade operation based on the unique temporary IP.

[0106] The passive optical network (PON) device upgrade method proposed in this embodiment involves the optical network terminal obtaining the device information and the latest software version corresponding to the unique temporary IP. The optical network terminal then determines whether its own device information matches the device information provided. If they match, the optical network terminal determines whether its own software version is lower than the latest software version. If it is lower, the optical network terminal performs a software upgrade based on the unique temporary IP. By verifying the device information and the latest software version in the unique temporary IP, the accuracy of the software upgrade performed by the optical network terminal is further improved.

[0107] Based on the above embodiments, a fifth embodiment of the upgrade method for the passive optical network device of the present invention is proposed, wherein step S106 includes:

[0108] Step S501: The optical network terminal sends an upgrade file acquisition request to the batch upgrade server based on the unique temporary IP address;

[0109] Step S502: The batch upgrade server obtains each target sub-upgrade file of the upgrade file corresponding to the acquisition request, and broadcasts each target sub-upgrade file through the local area network based on the unique temporary IP.

[0110] In step S503, the optical network terminal downloads each of the target sub-upgrade files in the local area network using the unique temporary IP, and performs a software upgrade operation based on each of the target sub-upgrade files.

[0111] In this embodiment, after obtaining the unique temporary IP, the optical network terminal sends an upgrade file acquisition request to the batch upgrade server based on the unique temporary IP.

[0112] When the batch upgrade server receives the acquisition request from the optical network terminal, the batch upgrade server acquires each target sub-upgrade file of the upgrade file corresponding to the acquisition request, and broadcasts each target sub-upgrade file through the local area network based on the unique temporary IP. Specifically, the batch upgrade server divides the upgrade file to obtain sub-upgrade files of different data sizes, and determines each target sub-upgrade file based on each sub-upgrade file.

[0113] Then, the optical network terminal downloads each of the target sub-upgrade files in the local area network using the unique temporary IP, and performs software upgrade operations based on each of the target sub-upgrade files.

[0114] The passive optical network (PON) device upgrade method proposed in this embodiment involves the optical network terminal sending an upgrade file retrieval request to the batch upgrade server based on the unique temporary IP address. The batch upgrade server then retrieves each target sub-upgrade file corresponding to the retrieval request and broadcasts these target sub-upgrade files via the local area network (LAN) based on the unique temporary IP address. Subsequently, the optical network terminal downloads each target sub-upgrade file from the LAN using the unique temporary IP address and performs a software upgrade operation based on these files. This method enables accurate retrieval of the target sub-upgrade file for the current optical network terminal when multiple optical network terminals are simultaneously undergoing software upgrades, thereby improving the accuracy and efficiency of software upgrades.

[0115] Based on the fifth embodiment, a sixth embodiment of the upgrade method for the passive optical network device of the present invention is proposed. In this embodiment, step S502 includes:

[0116] Step S601: The batch upgrade server divides the upgrade file to obtain sub-upgrade files of different data sizes;

[0117] Step S602: The batch upgrade server obtains the first hash value corresponding to the upgrade file based on the data size of the upgrade file and the unique temporary IP.

[0118] Step S603: The batch upgrade server obtains the second hash value corresponding to each of the sub-upgrade files based on the data size of each sub-upgrade file and the unique temporary IP.

[0119] In step S604, the batch upgrade server determines the target sub-upgrade file corresponding to each of the sub-upgrade files based on the first hash value and the second hash value.

[0120] In this embodiment, the batch upgrade server obtains the upgrade file corresponding to the latest version of the software and divides the upgrade file to obtain sub-upgrade files of different data sizes.

[0121] Next, the batch upgrade server obtains the first hash value corresponding to the upgrade file based on the data size of the upgrade file and the unique temporary IP. Specifically, the batch upgrade server converts the data size of the upgrade file and the unique temporary IP into input data for the hash algorithm and inputs it into the hash algorithm to obtain the first hash value. Simultaneously, the batch upgrade server obtains the second hash value corresponding to each sub-upgrade file based on the data size of each sub-upgrade file and the unique temporary IP. Specifically, the batch upgrade server converts the data size of each sub-upgrade file and the unique temporary IP into input data for the hash algorithm and inputs it into the hash algorithm to obtain the second hash value corresponding to each sub-upgrade file. That is, for each sub-upgrade file, the data size of the sub-upgrade file and the unique temporary IP are converted into input data for the hash algorithm and input into the hash algorithm to obtain the second hash value corresponding to that sub-upgrade file.

[0122] Then, the batch upgrade server determines the target sub-upgrade file corresponding to each of the sub-upgrade files based on the first hash value and the second hash value. Specifically, for each sub-upgrade file, the batch upgrade server fills the first hash value and the second hash value corresponding to the sub-upgrade file at a preset position in the sub-upgrade file to obtain the target sub-upgrade file corresponding to the sub-upgrade file. For example, the first hash value and the second hash value corresponding to the sub-upgrade file are filled at the beginning or end of the sub-upgrade file.

[0123] It should be noted that, in one possible implementation, after step S603, the method further includes: for each sub-upgrade file, using the sum or average of the first hash value and the second hash value as the encryption key, or obtaining the average between the first hash value and the second hash value, querying the preset key based on this average value to obtain the key corresponding to the average value, i.e., the encryption key, and encrypting the sub-upgrade file according to the encryption key to obtain the target sub-upgrade file. In other words, each sub-upgrade file corresponds to an independent encryption key, thereby improving the security of the target sub-upgrade file transmission.

[0124] The passive optical network (PON) device upgrade method proposed in this embodiment involves dividing the upgrade file into sub-upgrade files of different sizes using a batch upgrade server. The batch upgrade server then obtains a first hash value corresponding to each upgrade file based on its data size and the unique temporary IP address. Next, the batch upgrade server obtains a second hash value corresponding to each sub-upgrade file based on its data size and the unique temporary IP address. Finally, the batch upgrade server determines the target sub-upgrade file corresponding to each sub-upgrade file based on the first and second hash values. By dividing the upgrade file into multiple sub-upgrade files, the transmission efficiency of the upgrade file is improved, further enhancing the efficiency of software upgrades for optical network terminals.

[0125] Based on the sixth embodiment, a seventh embodiment of the upgrade method for the passive optical network device of the present invention is proposed. In this embodiment, step S503 includes:

[0126] Step S701: The optical network terminal downloads each of the target sub-upgrade files in the local area network using the unique temporary IP address;

[0127] Step S702: The optical network terminal performs integrity verification on the downloaded target sub-upgrade file;

[0128] In step S703, when the target sub-upgrade file passes the integrity verification, the optical network terminal determines the target upgrade file based on each of the target sub-upgrade files and performs a software upgrade operation based on the target upgrade file.

[0129] In this embodiment, when the batch upgrade server splits the upgrade file to obtain multiple target sub-upgrade files, the optical network terminal downloads each of the target sub-upgrade files in the local area network through the unique temporary IP.

[0130] In this embodiment, when the sub-upgrade file download is complete, the optical network terminal performs integrity verification on the downloaded target sub-upgrade file. Specifically, the total quantity and corresponding number are added to each target sub-upgrade file. The optical network terminal determines whether the number of target sub-upgrade files currently received is the same as the total quantity. If they are the same, it determines whether the number of the received target sub-upgrade file is the same as the number corresponding to the total quantity. If they are the same, the downloaded target sub-upgrade file passes the integrity verification. Otherwise, based on the number of the received target sub-upgrade file and the number corresponding to the total quantity, it determines the number of the target sub-upgrade file that has not been downloaded, that is, the number among the numbers corresponding to the total quantity that is different from the number of the received sub-upgrade file. Then, based on the number of the target sub-upgrade file that has not been downloaded, a retransmission request is sent to the batch upgrade server so that the batch upgrade server retransmits the target sub-upgrade file corresponding to the number of the target sub-upgrade file that has not been downloaded.

[0131] Next, when the downloaded target sub-upgrade file passes the integrity verification, the optical network terminal determines the target upgrade file based on each of the target sub-upgrade files, and performs a software upgrade operation based on the target upgrade file.

[0132] The passive optical network (PON) device upgrade method proposed in this embodiment involves the optical network terminal downloading each target sub-upgrade file from the local area network using the unique temporary IP address. In step S702, the optical network terminal verifies the integrity of the downloaded target sub-upgrade files. Then, in step S703, when the target sub-upgrade files pass the integrity verification, the optical network terminal determines the target upgrade file based on each target sub-upgrade file and performs a software upgrade operation based on the target upgrade file. By ensuring the integrity of the upgrade files, the accuracy and efficiency of the optical network terminal's software upgrade are further improved.

[0133] Based on the seventh embodiment, an eighth embodiment of the upgrade method for the passive optical network device of the present invention is proposed. In this embodiment, step S702 includes:

[0134] Step S801: The optical network terminal obtains each of the sub-upgrade files corresponding to each target sub-upgrade file, the first hash value, and the second hash value;

[0135] Step S802: The optical network terminal performs integrity verification on each of the sub-upgrade files based on the second hash value;

[0136] In step S803, when each of the sub-upgrade files passes the integrity verification, the optical network terminal determines the target upgrade file based on each of the sub-upgrade files, and performs integrity verification on the target upgrade file based on the first hash value.

[0137] In this embodiment, when each target sub-upgrade file is obtained, the optical network terminal obtains each sub-upgrade file corresponding to each target sub-upgrade file, the first hash value, and the second hash value.

[0138] Next, the optical network terminal performs integrity verification on each of the sub-upgrade files based on the second hash value. Specifically, the batch upgrade server converts the data size and unique temporary IP of each sub-upgrade file into input data for the hash algorithm and inputs it into the hash algorithm to obtain the second hash verification value corresponding to each sub-upgrade file. Then, each second hash verification value is compared with the corresponding second hash value. If the second hash verification value is the same as the corresponding second hash value, it is determined that each sub-upgrade file has passed the integrity verification.

[0139] When each of the sub-upgrade files passes integrity verification, the optical network terminal determines the target upgrade file based on each of the sub-upgrade files, and performs integrity verification on the target upgrade file based on the first hash value. Specifically, the batch upgrade server converts the data size of the target upgrade file and the unique temporary IP into input data for the hash algorithm, and inputs it into the hash algorithm to obtain the first hash verification value. Then, the first hash value is compared with the first hash verification value. If the first hash verification value is the same as the first hash value, it is determined that the target upgrade file has passed integrity verification, and then the target sub-upgrade file has passed integrity verification.

[0140] The passive optical network (PON) device upgrade method proposed in this embodiment involves the optical network terminal acquiring each sub-upgrade file corresponding to each target sub-upgrade file, a first hash value, and a second hash value. Then, the optical network terminal performs integrity verification on each sub-upgrade file based on the second hash value. After each sub-upgrade file passes integrity verification, the optical network terminal determines the target upgrade file based on each sub-upgrade file and performs integrity verification on the target upgrade file based on the first hash value. By ensuring the integrity of the upgrade file, the accuracy and efficiency of software upgrades performed by the optical network terminal are further improved.

[0141] Furthermore, this embodiment of the invention also proposes a computer-readable storage medium storing an upgrade program for a passive optical network device. When the upgrade program for the passive optical network device is executed by a processor, it implements the steps of the upgrade method for the passive optical network device as described above.

[0142] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0143] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0145] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A method for upgrading a passive optical network device, characterized in that, An optical network terminal applied to a passive optical network device, wherein the upgrade method for the passive optical network device includes the following steps: When the optical network terminal is powered on, the optical network terminal determines whether it detects the first broadcast information corresponding to the Dynamic Host Configuration Protocol (DMP) batch upgrade server within a preset time period after powering on, wherein the batch upgrade server broadcasts the first broadcast information in the local area network corresponding to the optical network terminal at regular intervals. When the first broadcast information corresponding to the batch upgrade server is detected, the optical network terminal broadcasts its device information in the local area network. When the device information is detected, the batch upgrade server obtains the latest version of the software corresponding to the device information; The batch upgrade server determines the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest software version, and generates a unique temporary IP based on the first preset field data and the second preset field data. The batch upgrade server encodes the device information and the latest software version using an encoding algorithm, ensuring that the device code corresponding to the device information and the software code corresponding to the latest software version are within the preset field range. The device code is used as the first preset field data, and the software code is used as the second preset field data. The batch upgrade server fills the first preset field data into the first preset field of the temporary IP and fills the second preset field data into the second preset field of the temporary IP to obtain a unique temporary IP. The batch upgrade server broadcasts the second broadcast information corresponding to the unique temporary IP in the local area network; Upon receiving the second broadcast information, the optical network terminal obtains the unique temporary IP based on the second broadcast information and performs a software upgrade operation based on the unique temporary IP. Specifically, the optical network terminal sends an upgrade file retrieval request to the batch upgrade server based on the unique temporary IP. The batch upgrade server retrieves each target sub-upgrade file corresponding to the retrieval request and broadcasts each target sub-upgrade file via the local area network based on the unique temporary IP. The optical network terminal downloads each target sub-upgrade file from the local area network via the unique temporary IP and performs a software upgrade operation based on each target sub-upgrade file. The batch upgrade server divides the upgrade file to obtain sub-upgrade files of different sizes; the batch upgrade server obtains a first hash value corresponding to the upgrade file based on the data size of the upgrade file and the unique temporary IP; the batch upgrade server obtains a second hash value corresponding to each sub-upgrade file based on the data size of each sub-upgrade file and the unique temporary IP; the batch upgrade server determines the target sub-upgrade file corresponding to each sub-upgrade file based on the first hash value and the second hash value.

2. The upgrade method for a passive optical network device as described in claim 1, characterized in that, The steps of the batch upgrade server determining the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software, and generating a unique temporary IP based on the first preset field data and the second preset field data include: The batch upgrade server determines the first preset field data based on the device information and the second preset field data based on the latest version of the software; The batch upgrade server determines the unique temporary IP based on the first preset field data and the second preset field data.

3. The upgrade method for a passive optical network device as described in claim 1, characterized in that, The steps of the batch upgrade server determining the first preset field data and the second preset field data corresponding to the temporary IP based on the device information and the latest version of the software, and generating a unique temporary IP based on the first preset field data and the second preset field data include: The batch upgrade server determines the first preset field data based on device information and the latest version of the software using a hash algorithm. The batch upgrade server determines the second preset field data based on the latest version of the software using a hash algorithm; The batch upgrade server determines the unique temporary IP based on the first preset field data and the second preset field data.

4. The upgrade method for a passive optical network device as described in claim 1, characterized in that, The steps for performing the software upgrade operation based on the unique temporary IP include: The optical network terminal obtains the device information and the latest version of the software corresponding to the unique temporary IP; The optical network terminal determines whether its own device information matches the device information; If a match is found, the optical network terminal determines whether its software version is less than the latest software version. If the version number is less than the latest version of the software, the optical network terminal will perform a software upgrade based on the unique temporary IP address.

5. The upgrade method for a passive optical network device as described in claim 1, characterized in that, The steps for performing the software upgrade operation based on each of the target sub-upgrade files include: The optical network terminal downloads each of the target sub-upgrade files on the local area network using the unique temporary IP address; The optical network terminal verifies the integrity of the downloaded target sub-upgrade file; When the target sub-upgrade file passes the integrity verification, the optical network terminal determines the target upgrade file based on each of the target sub-upgrade files, and performs a software upgrade operation based on the target upgrade file.

6. The upgrade method for a passive optical network device as described in claim 5, characterized in that, The steps for the optical network terminal to verify the integrity of the downloaded target sub-upgrade file include: The optical network terminal obtains each of the sub-upgrade files corresponding to each target sub-upgrade file, the first hash value, and the second hash value; The optical network terminal performs integrity verification on each of the sub-upgrade files based on the second hash value; When each of the sub-upgrade files passes integrity verification, the optical network terminal determines the target upgrade file based on each of the sub-upgrade files, and performs integrity verification on the target upgrade file based on the first hash value.

7. An upgrade device for a passive optical network (PON) device, characterized in that, The upgrade apparatus for the passive optical network device includes: a memory, a processor, and an upgrade program for the passive optical network device stored in the memory and executable on the processor. When the upgrade program for the passive optical network device is executed by the processor, it implements the steps of the upgrade method for the passive optical network device as described in any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an upgrade program for a passive optical network device, which, when executed by a processor, implements the steps of the upgrade method for a passive optical network device as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Upgrading method of passive optical network equipment, equipment and readable storage medium

    CN114697216A

  • Upgrading method and device of passive optical network equipment and readable storage medium

    CN114760203A