ONU (Optical Network Unit) fault prompting method based on single multicolor lamp and ONU equipment

By using a single multi-color light and module combination in the ONU device, matching the fault code to control the multi-color light prompts, it solves the problem that users find it difficult to intuitively judge the fault type of ONU device, and achieves fast and accurate fault judgment.

CN119520223APending Publication Date: 2025-02-25SHENZHEN RUIJIAN DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411494529.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

When existing ONU devices face multiple faults, it is difficult for users to intuitively judge the specific fault type through the prompt light, especially when they cannot log in to the background of the device.

Method used

A single multi-color lamp is used to combine the application layer monitoring module and the driver lighting module. By matching the multi-color lamp behavior corresponding to the fault code through the preset database, the color and number of flashes of the multi-color lamp are controlled to prompt the fault status.

Benefits of technology

It is realized that without increasing hardware costs, users can quickly and accurately determine the specific fault type of ONU device by observing the prompt behavior of multi-color lights.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520223A_ABST
    Figure CN119520223A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of fault monitoring, in particular to an ONU fault prompting method based on a single multicolor light and ONU equipment, the network state and the function state of the ONU equipment are diagnosed through an application layer monitoring module according to a first preset time period, and when it is determined that the ONU equipment has a fault, the fault type of the ONU equipment is determined, and the ONU equipment is prompted according to the fault type. And the control module is used for receiving the fault type and a target fault code corresponding to the fault type, sending the target fault code to the driving lighting module, and when the driving lighting module receives the target fault code, matching a first multi-color lamp behavior corresponding to the target fault code from a preset database, and controlling the multi-color lamp to prompt the fault state of the ONU equipment based on the first multi-color lamp behavior. According to the invention, when the OUN equipment has a plurality of faults, which fault exists in the ONU can still be visually judged through the prompt lamp.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of fault monitoring, and in particular to an ONU fault prompting method and ONU device based on a single multi-color lamp. Background Art

[0002] ONU (optical modem, a network access device) does not have a screen or display when it is put into use, unlike computers and mobile phones. When an ONU fails, you may need to access the device's web page or command line to find the cause, but if the web server or command line server fails, you cannot log in to the device to diagnose the ONU failure.

[0003] Existing network devices usually have indicator lights. For example, an optical modem has a LOS light, a PON light, an INTERNET light, and a LAN light. These indicator lights indicate the status of each function. For example, on means connected, and off means not connected. Users do not need to log in to the device background or cannot log in to the device background. They can simply judge the status of the device interface through the indicator lights. However, if the basic functions or common functions of the device fail, and there are many types of failures, users need to log in to the device background to make a judgment, and cannot simply make an intuitive judgment through the indicator lights. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the present invention provides an ONU fault prompt method and ONU device based on a single multi-color light. When faced with a variety of faults, it is still possible to intuitively determine which fault the ONU has through the prompt light.

[0005] A first aspect of the present application provides an ONU fault prompt method for a single multi-color lamp, which is applied to an ONU device, wherein the ONU device includes a multi-color lamp, an application layer monitoring module, and a driving lighting module, and the method includes: The application layer monitoring module diagnoses the network status and functional status of the ONU device according to a first preset time period; When it is determined that the ONU device has a fault, the application layer monitoring module determines the fault type of the ONU device and the target fault code corresponding to the fault type; The application layer monitoring module sends the target fault code to the driving lighting module; The driving lighting module matches a first multi-color lamp behavior corresponding to the target fault code from a preset database according to the received target fault code; The driving lighting module controls the multi-color lamp to prompt the fault status of the ONU device based on the behavior of the first multi-color lamp.

[0006] In an optional implementation, the driving lighting module controls the multi-color lamp to prompt the fault state of the ONU device based on the behavior of the first multi-color lamp, including: The driving lighting module determines the number of light colors and the number of light flashes of the multi-color lamp corresponding to the first multi-color lamp behavior; The driving lighting module controls the multi-color lamp to flash according to the target light color and the number of light flashes.

[0007] In an optional implementation, determining the target fault code corresponding to the fault type includes: The application layer monitoring module obtains the number of faults of the fault type; When the number of faults is greater than 1, the application layer monitoring module aggregates the fault codes to obtain an aggregated fault code; The application layer monitoring module determines the summary fault code as the target fault code.

[0008] In an optional embodiment, the method further comprises: When it is determined that the ONU device does not have a fault, the application layer monitoring module determines a no-fault code of the ONU device; The application layer monitoring module sends the fault-free code to the driving lighting module; The driving lighting module matches the second multi-color lamp behavior corresponding to the no fault code from a preset database; The driving lighting module controls the multi-color lamp to prompt the ONU device of a fault-free state based on the behavior of the second multi-color lamp.

[0009] In an optional embodiment, the fault code includes a first digit and a second digit, wherein the fault code includes the target fault code and the no-fault code, the first digit is the first number of flashes corresponding to the first light color in the multi-color light, and the second digit is the second number of flashes corresponding to the second light color in the multi-color light.

[0010] In an optional embodiment, the method further comprises: The driving lighting module uses a receiving fault code timer to count the received fault code; When it is determined that the fault code reception is completed, the driving lighting module clears the received fault code timer.

[0011] In an optional embodiment, the driving lighting module determines whether the fault code sent by the application layer monitoring module within the second preset time period is received within the second preset time period; When the fault code is not received within the second preset time period, the driving lighting module determines that an abnormality exists in the application layer monitoring module; The driving lighting module matches the third multi-color lamp behavior corresponding to the abnormality of the application layer monitoring module from the preset database; The driving lighting module controls the multi-color lamp to prompt the application layer monitoring module of a fault state based on the third multi-color lamp behavior.

[0012] A second aspect of the present application provides an ONU device, the ONU device comprising: a multi-color lamp, an application layer monitoring module and a driving lighting module; The application layer monitoring module is used to diagnose the network status and functional status of the ONU device according to a first preset time period; The application layer monitoring module is further used to determine the fault type of the ONU device and the target fault code corresponding to the fault type when it is determined that the ONU device has a fault; The application layer monitoring module is further used to send the target fault code to the driving lighting module; The driving lighting module is used to match the first multi-color lamp behavior corresponding to the target fault code from a preset database according to the received target fault code; The driving lighting module is also used to control the multi-color lamp to prompt the fault status of the ONU device based on the behavior of the first multi-color lamp.

[0013] In an optional embodiment, the ONU device further includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the ONU fault prompt method for the single multi-color lamp when executing the computer program.

[0014] A third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned ONU fault prompt method for a single multi-color lamp.

[0015] In summary, the ONU fault prompt method and ONU device based on a single multi-color lamp provided by the present application can perform a comprehensive diagnosis of the network status and functional status of the ONU device according to the first preset time period through the application layer monitoring module, and can regularly and automatically check whether the ONU device is operating normally without manual intervention. When the application layer monitoring module detects that the ONU device has a fault, it further determines the fault type of the fault. Once the fault type is determined, the application layer monitoring module determines that the fault type corresponds to the target fault code, and sends the target fault code to the driving lighting module. After receiving the target fault code, the driving lighting module will match it in the pre-database, match the first multi-color lamp behavior corresponding to the target fault code, and control the multi-color lamp to light up or flash according to the first multi-color lamp behavior, so as to intuitively prompt the user about the fault status of the ONU device, so as to achieve that when facing multiple faults in the ONU device, the user only needs to observe the prompt behavior of the multi-color lamp to quickly and accurately determine the specific fault type of the ONU device without increasing the hardware cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a structural schematic diagram of an ONU device shown in an embodiment of the present application; Figure 2 It is a flow chart of an ONU fault prompt method based on a single multi-color lamp shown in an embodiment of the present application; Figure 3 is another flow chart of an ONU fault prompt method based on a single multi-color lamp shown in an embodiment of the present application; Figure 4 This is a second structural diagram of an ONU device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0018] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by technicians in this field without creative work are all within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the formation of a better connection structure by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interchangeably without conflicting with each other.

[0019] Reference Figure 1The figure is a structural diagram of an ONU device shown in an embodiment of the present application.

[0020] The ONU device 1 may include a multi-color lamp 10, an application layer monitoring module 20 and a driving lighting module 30; The application layer monitoring module 20 is used to detect the network status and functional status of the ONU device 1. Specifically, the application layer monitoring module 20 can diagnose the ONU device 1 one by one according to the fault codes in the preset database according to a preset time period (a first preset time period, such as 5 seconds). When it is determined that the ONU device 1 has a fault, it can clarify which fault code is corresponding based on the preset database, and send the fault code to the driving lighting module 30. The preset database includes the fault type of the ONU device 1, the fault code corresponding to each fault type, and the multi-color lamp behavior corresponding to the multi-color lamp 10.

[0021] The driving lighting module 30 is used to match the multi-color light behavior of the multi-color light 10 corresponding to the fault code based on the preset database when receiving the fault code sent by the application layer monitoring module 20, and control the multi-color light 10 to be always on or flash according to the multi-color light behavior to prompt the fault status of the ONU device 1.

[0022] In some embodiments, a multi-color light can be added to the existing ONU as a fault light / prompt light, that is, the multi-color light 10, or any multi-color light on the existing ONU can be used as a fault light / prompt light, such as a LOS light, to be constantly lit or flashing according to the multi-color light behavior corresponding to the fault code. The multi-color light 10 includes a plurality of light colors, namely, a first light color (e.g., green light), a second light color (e.g., blue light) and a third light color (e.g., red light). Specifically, the driving lighting module 30 controls the lighting of the multi-color light 10 by means of GPIO, that is, the corresponding GPIO pull-up input and pull-down input of the multi-color light are turned on or off, and the flashing effect is achieved by the on-off frequency.

[0023] For example, assuming that the fault type of the ONU device 1 is a WAN side network fault, the fault code corresponding to the WAN side network fault is 11, and the multi-color light behavior corresponding to the fault code 11 is green 1 blue 1 green 1 blue 1 in a cycle, then when the driving lighting module 30 receives the fault code 11 sent by the application layer monitoring module 20, it controls the multi-color light 10 to flash green light once, then green light once, and then flash in a cycle.

[0024] Compared with the prior art, the present application sets a single multi-color light on the ONU device 1, and the multi-color light 10 can indicate different fault types through different combinations of red, green and blue colors and flashing times.

[0025] Reference Figure 2 As shown, it is a flowchart of an ONU fault prompt method based on a single multi-color lamp shown in an embodiment of the present application. The ONU fault prompt method based on a single multi-color lamp is applied to an ONU device. The ONU device includes a multi-color lamp, an application layer monitoring module and a driving lighting module. The ONU fault prompt method based on a single multi-color lamp may include the following steps.

[0026] S21, the application layer monitoring module diagnoses the network status and functional status of the ONU device according to a first preset time period.

[0027] In some embodiments, the ONU device can pre-customize the corresponding fault code and the multi-color light behavior corresponding to the fault code based on its fault type, and then store the fault type, fault code and corresponding multi-color light behavior in a preset database in a one-to-one correspondence. Among them, the fault type of the ONU device may include, but is not limited to: WAN side network failure, WEB service failure, CWMP remote management service failure, multicast proxy service failure, DNS proxy failure, etc. The WAN side network failure may also include no response from the PPPoE dial-up server, incorrect username or password, no response from the DHCP server, etc. The multi-color light includes multiple light colors, namely a first light color (e.g., green light), a second light color (e.g., blue light) and a third light color (e.g., red light).

[0028] In some embodiments, the fault code is a unique identifier used to distinguish different fault types. The fault code may include a first digit and a second digit, wherein the first digit represents the preceding value (which may also be described as a tens digit), and the second digit represents the following digit (which may also be described as a units digit). In addition, the first digit is the first number of flashes corresponding to the first light color in the multi-color lamp, and the second digit is the second number of flashes corresponding to the second light color in the multi-color lamp. For example, the fault code may be set to 11, 12, etc., and the fault code 11 may correspond to the first light color flashing once and the second light color flashing once, and the fault code 12 may correspond to the first light color flashing once and the second light color flashing twice, and so on.

[0029] It should be noted that in the embodiment of the present application, since a single multi-color lamp is used to correspond to different fault types of the ONU device through different light colors and different flashing times, in order to avoid too many flashes of a single light color causing the user to be unable to intuitively judge the fault type of the ONU device based on the multi-color lamp behavior of a single multi-color lamp, the multi-color lamp uses at most 2 light colors to represent a fault type, and the maximum value of the first digit and the second digit in the fault code is 5, that is, the same light color of the multi-color lamp flashes at most 5 times. For example, the multi-color lamp uses at most the first light color and the second light color to represent a fault type. When there are multiple faults in the OUN device, the third light color is used to separate each fault.

[0030] Exemplarily, the preset database may be set as:

[0031] Refer to Figure 3 , wherein a timer is built into the application layer monitoring module. In some embodiments, the OUN device can set a time period (i.e., a first preset time period, such as 5 seconds) in the timer of the application layer monitoring module. The first preset time period determines the fault monitoring frequency of the ONU device. When each first preset time period arrives, the application layer monitoring module collects the network status information and functional status information of the ONU device through the network interface or the local interface. Specifically, the application layer monitoring module can perform the network status and functional status of the ONU device one by one according to the sequence of fault codes in the preset database based on the first preset time period for diagnosis, that is, first diagnose whether the ONU device has a WAN side network fault according to fault code 11, and then diagnose whether the ONU device has a WEB service fault according to fault code 12, and so on, until all fault codes are diagnosed. If there is no fault in the ONU device, the application layer monitoring module sends a no fault code (e.g., 00) to the driving lighting module.

[0032] S22, when it is determined that the ONU device has a fault, the application layer monitoring module determines the fault type of the ONU device and a target fault code corresponding to the fault type.

[0033] In some embodiments, the application layer monitoring module diagnoses whether the ONU device has a fault one by one according to the fault code. When all fault codes are diagnosed, the application layer monitoring module determines whether the ONU device has a fault. When it is determined that the ONU device has a fault, the application layer monitoring module determines the corresponding fault type, matches the corresponding fault code in the preset database based on the fault type, and packages the fault code once and sends it to the driving lighting module.

[0034] In an optional implementation, determining the target fault code corresponding to the fault type includes: The application layer monitoring module obtains the number of faults of the fault type; When the number of faults is greater than 1, the application layer monitoring module aggregates the fault codes to obtain an aggregated fault code; The application layer monitoring module determines the summary fault code as the target fault code.

[0035] In some embodiments, when the application layer monitoring module diagnoses the network status and functional status of the ONU device one by one, each time a fault is detected in the ONU device, the fault type corresponding to the fault and the corresponding fault code are clarified, and the fault codes are counted. When the diagnosis is completed and it is determined that the ONU device has a fault, the application layer monitoring module can determine the number of faults of the fault type, or the number of faults of the fault code, that is, determine how many faults exist in the ONU device. When the number of faults is determined to be 1, the application layer monitoring module can directly determine the fault code of the fault type as the target fault code, and send the target fault code to the driving lighting module. When it is determined that the number of faults is greater than 1, that is, there are multiple faults in the ONU device, the application layer monitoring module can summarize the fault codes to obtain a summarized fault code, and determine the summarized fault code as the target fault code and send it to the driving lighting module. For example, assuming that the ONU device has only one fault, which is a WAN side network fault, and the fault code corresponding to the WAN side network fault is 11, then the fault code 11 is determined as the target fault code; assuming that the ONU device has two faults, which are a WAN side network fault and a WEB service fault, and the fault code corresponding to the WAN side network fault is 11, and the fault code corresponding to the WEB service fault is 12, then the summary fault code is (11, 12), and the fault code (11, 12) is determined as the target fault code.

[0036] S23, the application layer monitoring module sends the target fault code to the driving lighting module.

[0037] When the application layer monitoring module determines that the ONU device has a fault and determines the corresponding target fault code, the target fault code can be sent to the driving lighting module. In some embodiments, the ONU device can build a communication protocol between the application layer monitoring module and the lighting driving module for transmitting the fault code, so the application layer monitoring module can select a suitable communication channel (such as network, serial port, etc.) according to the communication protocol to encapsulate the target fault code into a message and send it to the driving lighting module.

[0038] S24, the driving lighting module matches a first multi-color lamp behavior corresponding to the target fault code from a preset database according to the received target fault code.

[0039] When the driving lighting module receives the information sent by the application layer monitoring module, it parses the target fault code and then searches the preset database for a multi-color light behavior (called the first multi-color light behavior) that matches the target fault code. If a match is found, the corresponding multi-color light behavior information is extracted.

[0040] S25, the driving lighting module controls the multi-color lamp to prompt the fault status of the ONU device based on the behavior of the first multi-color lamp.

[0041] Among them, the driving lighting module needs to be connected to the multi-color lamp through a hardware interface (such as GPIO). When the first multi-color lamp behavior corresponding to the target fault code is matched, the driving lighting module can control the light color, flashing frequency, etc. of the multi-color lamp to intuitively indicate the fault status of the ONU device.

[0042] In an optional implementation, the driving lighting module controls the multi-color lamp to prompt the fault state of the ONU device based on the behavior of the first multi-color lamp, including: The driving lighting module determines the number of light colors and the number of light flashes of the multi-color lamp corresponding to the first multi-color lamp behavior; The driving lighting module controls the multi-color lamp to flash according to the target light color and the number of light flashes.

[0043] In some embodiments, the lighting driving module first determines which light colors the first multi-color light behavior includes based on a preset database, that is, determines the number of light colors of the multi-color light, and also needs to determine the flashing frequency corresponding to each light color, that is, determines the number of light flashes of the multi-color light. In addition, it is also necessary to determine the time interval between each flash of the multi-color light, which can be set to 0.5 seconds, for example.

[0044] After determining the number of light colors and the number of light flashes that need to flash in the multi-color light, the driving lighting module can drive the multi-color light to flash through the GPIO mode to prompt the user of the fault status of the ONU device, that is, to inform the user which kind of fault exists in the ONU device. For example, assuming that the fault type of the ONU is a DNS proxy fault, the fault code corresponding to the DNS proxy fault is 15, and the multi-color light behavior corresponding to the fault code 15 is green flash 1 and blue flash 5, that is, the number of light colors is green and blue, and the number of light flashes is green light flashing 1 time and blue light flashing 5 times. When driving the multi-color light to flash, the driving lighting module first controls the light color of the multi-color light to green light, and controls the multi-color light to flash once under green light, and then changes the light color of the multi-color light from green light to blue light, and controls the multi-color light to flash 5 times under blue light.

[0045] In an optional embodiment, the method further comprises: When it is determined that the ONU device does not have a fault, the application layer monitoring module determines a no-fault code of the ONU device; The application layer monitoring module sends the fault-free code to the driving lighting module; The driving lighting module matches the second multi-color lamp behavior corresponding to the no fault code from a preset database; The driving lighting module controls the multi-color lamp to prompt the ONU device of a fault-free state based on the behavior of the second multi-color lamp.

[0046] In some embodiments, after the application layer monitoring module completes step S21, if it determines that there is no fault in the ONU device, it can assign a no-fault code (for example, 00) to the ONU device, and send the no-fault code to the driving lighting module according to the same embodiment as step S23, then the driving lighting module can match the corresponding multi-color light behavior from the preset database based on the no-fault code, which is called the second multi-color light behavior. Next, the driving lighting module can determine the number of light colors and the number of light flashes corresponding to the second multi-color light behavior. After determining the number of light colors and the number of light flashes that need to flash in the multi-color light, the driving lighting module can drive the multi-color light to flash through the GPIO mode to prompt the user of the no-fault state of the ONU device. Exemplarily, assuming that the no-fault code is 00 and the corresponding multi-color light behavior is that the green light is always on, the number of light colors is green light, and the number of light flashes is 0, then the driving lighting module can drive the multi-color light to keep the green light all the time and not flash through the GPIO mode.

[0047] In an optional embodiment, the method further comprises: The driving lighting module uses a receiving fault code timer to count the received fault code; When it is determined that the fault code reception is completed, the driving lighting module clears the received fault code timer.

[0048] Wherein, the driving lighting module has a built-in fault code timer. Figure 3In some embodiments, when the driving lighting module receives the fault code sent by the application layer monitoring module, it determines the number of faulty parts contained in the fault code and uses the fault code timer to count the fault code. That is, when the driving lighting module parses the information sent by the application layer monitoring module, each time a fault code is parsed, the fault code timer increases the count, for example, by +1. Since the application layer monitoring module diagnoses the ONU device according to the first preset time period, when there is no abnormality in the application layer monitoring module, the driving lighting module should be able to receive the fault code sent by the application layer monitoring module every first preset time period. When the application layer monitoring module sends a fault code to the driving lighting module every first preset time period, that is, after the driving lighting module receives the fault code in each first preset time period, the count in the fault code timer can be cleared to 0.

[0049] Through the above optional implementation, the built-in fault code timer is used in the driving lighting module to achieve accurate counting of received fault codes. When the fault code is received, the timer is reset to facilitate the next round of counting, which improves the accuracy of fault processing, ensures real-time feedback of the OUN device status, optimizes resource usage, and enhances the reliability and stability of the OUN device.

[0050] In an optional embodiment, the method further comprises: The driving lighting module determines whether the fault code sent by the application layer monitoring module within the second preset time period is received within the second preset time period; When the fault code is not received within the second preset time period, the driving lighting module determines that an abnormality exists in the application layer monitoring module; The driving lighting module matches the third multi-color lamp behavior corresponding to the abnormality of the application layer monitoring module from the preset database; The driving lighting module controls the multi-color lamp to prompt the application layer monitoring module of a fault state based on the third multi-color lamp behavior.

[0051] Refer to Figure 3, wherein the driving lighting module has a built-in timer, and the time period of the timer is set to a second preset time period, such as 15 seconds, to detect whether the application layer monitoring module sends a fault code within the second preset time period. In some embodiments, the driving lighting module starts to monitor whether the fault code from the application layer monitoring module is received within the second preset time period. If the fault code is not received within the second preset time period, the driving lighting module determines that there is an abnormality in the application layer monitoring module. Once it is determined that there is an abnormality in the application layer monitoring module, the driving lighting module can access the preset database, match the fault code corresponding to the abnormality of the application layer monitoring module, and the corresponding multi-color lamp behavior (called the third multi-color lamp behavior) from the preset database, and then the driving lighting module can control the multi-color lamp to flash, change color, etc. accordingly based on the third multi-color lamp behavior to prompt the fault state of the application layer monitoring module. Exemplarily, assuming that the multi-color lamp behavior corresponding to the abnormality of the application layer monitoring module is that the red light is always on, the driving lighting module can control the light color of the multi-color lamp to remain red light and not flash.

[0052] Through the above optional implementation, the fault code sending status of the application layer monitoring module is monitored by a built-in timer. If the fault code is not received within the specified time, the application layer monitoring module is judged to be abnormal, and the multi-color light is controlled to indicate the fault with a specific behavior (such as a red light that is always on), thereby improving the fault detection capability and response speed of the OUN device, and enhancing the reliability and user experience of the OUN device.

[0053] In order to facilitate understanding of the inventive concept of the present application, an example is given below to describe the practical application of the embodiment of the present application. Assuming that there is a fault in the OUN device, such as a network fault on the WAN side, green 1 blue 1 green 1 blue 1 can be used to cycle to indicate fault code 11, that is, the multi-color light flashes green once, blue once, green once, blue once,..., green once, blue once, that is, green and blue flash alternately once. Assuming that there are multiple faults in the OUN device, a red light can be used to separate each fault. Assuming that there are two faults in the OUN device, such as a WAN side network fault and a WEB service fault, green 1 blue 1 red 1 green 1 blue 2 red 1 green 1 blue 1 red 1 green 1 blue 2 can be used to cycle to indicate fault codes 11 and 12, that is, the green light flashes once, the blue light flashes once, the red light flashes once, the green light flashes once, the blue light flashes twice, ..., the green light flashes once, the blue light flashes once, the red light flashes once, the green light flashes once, and the blue light flashes twice.

[0054] See also Figure 4FIG. 1 is a schematic diagram of the structure of an OUN device according to an embodiment of the present application. In a preferred embodiment of the present application, the OUN device 1 includes a memory 11 , at least one processor 12 and at least one communication bus 13 .

[0055] Those skilled in the art should understand that Figure 4 The structure of the OUN device 1 shown does not constitute a limitation of the embodiments of the present application. The OUN device 1 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components.

[0056] In the above embodiments provided in the present application, it should be understood that the disclosed methods, computer-readable storage media, and OUN devices can be implemented in other ways. The mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices, components, or modules, which can be electrical, mechanical, or other forms.

[0057] The components described as separate components may or may not be physically separated, and the components shown as components may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0058] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0059] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0060] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0061] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. An ONU fault prompt method based on a single multi-color lamp, characterized in that: Applied to an ONU device, the ONU device includes a multi-color lamp, an application layer monitoring module and a driving lighting module, and the method includes: The application layer monitoring module diagnoses the network status and functional status of the ONU device according to a first preset time period; When it is determined that the ONU device has a fault, the application layer monitoring module determines the fault type of the ONU device and the target fault code corresponding to the fault type; The application layer monitoring module sends the target fault code to the driving lighting module; The driving lighting module matches a first multi-color lamp behavior corresponding to the target fault code from a preset database according to the received target fault code; The driving lighting module controls the multi-color lamp to prompt the fault status of the ONU device based on the behavior of the first multi-color lamp.

2. The ONU fault prompt method based on a single multi-color lamp according to claim 1, characterized in that: The driving lighting module controls the multi-color lamp to prompt the fault state of the ONU device based on the behavior of the first multi-color lamp, including: The driving lighting module determines the number of light colors and the number of light flashes of the multi-color lamp corresponding to the first multi-color lamp behavior; The driving lighting module controls the multi-color lamp to flash according to the target light color and the number of light flashes.

3. The ONU fault prompting method based on a single multi-color lamp according to claim 1, characterized in that: Determining the target fault code corresponding to the fault type includes: The application layer monitoring module obtains the number of faults of the fault type; When the number of faults is greater than 1, the application layer monitoring module aggregates the fault codes to obtain an aggregated fault code; The application layer monitoring module determines the summary fault code as the target fault code.

4. The ONU fault prompting method based on a single multi-color lamp according to claim 1, characterized in that: The method further comprises: When it is determined that the ONU device does not have a fault, the application layer monitoring module determines a no-fault code of the ONU device; The application layer monitoring module sends the fault-free code to the driving lighting module; The driving lighting module matches the second multi-color lamp behavior corresponding to the no fault code from a preset database; The driving lighting module controls the multi-color lamp to prompt the ONU device of a fault-free state based on the behavior of the second multi-color lamp.

5. The ONU fault prompt method based on a single multi-color lamp according to claim 4, characterized in that: The fault code includes a first digit and a second digit, wherein the fault code includes the target fault code and the no-fault code, the first digit is the first number of flashes corresponding to the first light color in the multi-color lamp, and the second digit is the second number of flashes corresponding to the second light color in the multi-color lamp.

6. The ONU fault prompting method based on a single multi-color lamp according to claim 5, characterized in that: The method further comprises: The driving lighting module uses a receiving fault code timer to count the received fault code; When it is determined that the fault code reception is completed, the driving lighting module clears the received fault code timer.

7. The ONU fault prompting method based on a single multi-color lamp according to claim 5, characterized in that: The method further comprises: The driving lighting module determines whether the fault code sent by the application layer monitoring module within the second preset time period is received within the second preset time period; When the fault code is not received within the second preset time period, the driving lighting module determines that an abnormality exists in the application layer monitoring module; The driving lighting module matches the third multi-color lamp behavior corresponding to the abnormality of the application layer monitoring module from the preset database; The driving lighting module controls the multi-color lamp to prompt the application layer monitoring module of a fault state based on the third multi-color lamp behavior.

8. An ONU device, characterized in that: The ONU device includes: a multi-color lamp, an application layer monitoring module and a driving lighting module; The application layer monitoring module is used to diagnose the network status and functional status of the ONU device according to a first preset time period; The application layer monitoring module is further used to determine the fault type of the ONU device and the target fault code corresponding to the fault type when it is determined that the ONU device has a fault; The application layer monitoring module is further used to send the target fault code to the driving lighting module; The driving lighting module is used to match the first multi-color lamp behavior corresponding to the target fault code from a preset database according to the received target fault code; The driving lighting module is also used to control the multi-color lamp to prompt the fault status of the ONU device based on the behavior of the first multi-color lamp.

9. The ONU device according to claim 8, characterized in that: The ONU device also includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the ONU fault prompt method based on a single multi-color lamp according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the ONU fault prompt method based on a single multi-color lamp according to any one of claims 1 to 7 are implemented.