ONU gateway fault diagnosis method and device based on PON network, equipment and medium
By using the ONU gateway to autonomously diagnose and broadcast the cause of faults, the problem of on-site troubleshooting of ONU gateway voice call faults was solved, improving fault handling efficiency and user experience, and reducing operation and maintenance costs.
Patent Information
- Application Number
- CN202511507154.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-21
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, ONU gateway voice call failures require on-site troubleshooting by maintenance personnel, which consumes a lot of manpower and time. Furthermore, remote troubleshooting makes it difficult to obtain information about the physical layer status of the device and the user's on-site environment, resulting in untimely fault location.
This paper provides a fault diagnosis method for ONU gateways based on PON networks. By inputting fault diagnosis commands through a voice terminal, the ONU gateway can autonomously diagnose and broadcast the cause of the fault. The method includes fault recording, audio acquisition and broadcasting modules, and supports voice guidance for multiple input methods and fault solutions.
It enables rapid fault handling, reduces operation and maintenance costs, improves users' perception of the reliability of voice call services, and reduces the need for operation and maintenance personnel to conduct on-site troubleshooting.
Smart Images

Figure CN121509851A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer network technology, and in particular to a method for diagnosing ONU gateway faults based on a PON network, an ONU gateway fault diagnosis device, a computer device, and a computer-readable storage medium. Background Technology
[0002] Passive Optical Network (PON) is a telecommunications network that transmits data over optical fiber lines. It is a key technology supporting network access technologies such as Fiber to the Room (FTTR) and Fiber to the Room-Business (FTTR-B). FTTR / FTTR-B extends optical fiber to each room, installing fiber optic terminal equipment in each room to convert optical signals into electrical signals. Optical Network Unit (ONU) gateways, as key user-side devices in fiber optic access networks, are widely used in homes, enterprises, and other scenarios, undertaking core functions such as data transmission and voice calls. In practical applications, ONU gateway voice call functions frequently malfunction, requiring on-site troubleshooting by maintenance personnel, consuming significant manpower and time costs. Summary of the Invention
[0003] This invention provides a method, device, computer equipment, and computer-readable storage medium for diagnosing ONU gateway faults based on a PON network, which can improve fault handling efficiency, reduce operation and maintenance costs, and enhance users' perception of the reliability of voice call services.
[0004] In a first aspect, the present invention provides a fault diagnosis method for ONU gateways based on PON networks, comprising: If executing a call request from a voice terminal fails, determine the cause of the failure. Receive input fault diagnosis commands; According to the fault diagnosis instructions, obtain the first voice audio corresponding to the cause of the fault; The first audio message is sent to the voice terminal, and the first audio message is played by the voice terminal to indicate the cause of the fault.
[0005] Secondly, the ONU gateway fault diagnosis device based on a PON network provided by the present invention includes: The fault recording module is used to determine the cause of the failure when a call request from a voice terminal fails to be executed. The diagnostic trigger module is used to receive input fault diagnosis commands; The audio acquisition module is used to acquire the first voice audio corresponding to the cause of the fault according to the fault diagnosis command; The audio broadcast module is used to send a first audio message to the voice terminal, which is then played by the voice terminal to indicate the cause of the fault.
[0006] Optionally, in one embodiment, the fault recording module is used to determine the detection order for multiple candidate fault points; to perform fault detection on each candidate fault point in sequence according to the detection order until a candidate fault point that has failed is detected; and to determine the fault cause of the failure to execute the call request based on the candidate fault point that has failed.
[0007] Optionally, in one embodiment, the fault recording module is used to count the historical fault frequency of each candidate fault point and determine the detection order based on the magnitude relationship of the historical fault frequencies of each candidate fault point.
[0008] Optionally, in one embodiment, the diagnostic trigger module is configured to receive a fault diagnosis command input via a combination of keys on a voice terminal; or, receive a fault diagnosis command input via an independent key on a voice terminal; or, receive a fault diagnosis command remotely input from an external device.
[0009] Optionally, in one embodiment, the ONU gateway fault diagnosis device provided by the present invention further includes a fault outward transmission module, which is used to remotely send the fault cause to the external device when the fault diagnosis command is remotely input by the external device, and the fault cause is displayed by the external device.
[0010] Optionally, in one embodiment, the audio acquisition module is further configured to acquire a fault solution corresponding to the fault cause, and acquire a second voice audio corresponding to the fault solution; the audio broadcasting module is further configured to send the second voice audio to the voice terminal, and the second voice audio is played by the voice terminal to indicate the fault solution.
[0011] Optionally, in one embodiment, the diagnostic triggering module is further configured to consider a fault diagnosis instruction as received if the number of failed call requests from the voice terminal within a preset time period reaches a threshold.
[0012] Thirdly, the computer device provided by the present invention 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, it implements the ONU gateway fault diagnosis method based on PON network provided by the present invention.
[0013] Fourthly, the computer-readable storage medium provided by the present invention stores a computer program, which, when executed by a processor, implements the ONU gateway fault diagnosis method based on a PON network provided by the present invention.
[0014] This invention provides a fault diagnosis solution for ONU gateways based on PON networks. When a call request from a voice terminal fails, the solution determines the cause of the failure; receives an input fault diagnosis command; obtains a first audio message corresponding to the fault cause based on the command; and sends the first audio message to the voice terminal for playback to indicate the fault cause. Therefore, users do not need to wait for on-site troubleshooting by maintenance personnel. They only need to input a fault diagnosis command to trigger the ONU gateway's self-diagnosis process, and can quickly learn the fault cause through voice broadcast. This significantly improves fault handling efficiency, reduces maintenance costs, and enhances users' perception of the reliability of voice call services. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating the ONU gateway fault diagnosis method based on a PON network provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of the ONU gateway fault diagnosis device based on a PON network provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0017] To make the technical problems solved, the technical solutions, and the beneficial effects of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0018] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0019] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0020] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."
[0021] Furthermore, in the description of this invention and the appended claims, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0022] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of the invention include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0023] In related technologies, after a voice failure occurs in the ONU gateway, the following methods are typically used for troubleshooting: 1. On-site maintenance troubleshooting solution: After a user discovers a voice malfunction, they report the fault to customer service. Maintenance personnel then bring professional equipment (such as laptops and network testers) to the user's site, connect to the ONU gateway's backend management interface, check the device logs, configuration parameters, and network connectivity, and gradually locate the cause of the fault.
[0024] 2. Remote Operation and Maintenance Troubleshooting Solution: After a user discovers a voice malfunction, they report the fault to customer service. Operation and maintenance personnel can then remotely log into the ONU gateway's backend management interface to check device logs, configuration parameters, and network connectivity to gradually pinpoint the cause of the malfunction.
[0025] 3. User self-check guidance plan: The operator provides a paper / electronic version of the "ONU voice fault troubleshooting guide" to guide users to make a preliminary judgment on the cause of the fault by observing the indicator lights of the ONU gateway (such as the flashing status of the WAN light and voice light), or manually log in to the ONU management interface (administrator account and password required) to view the basic parameters and make a preliminary judgment on the cause of the fault.
[0026] The above-mentioned maintenance and troubleshooting solutions have low response efficiency (usually taking several hours to a day) and are constrained by manpower scheduling and transportation factors, making it difficult to meet users' needs for immediate service. Although remote maintenance and troubleshooting solutions can shorten response time, if the maintenance platform is under high load or staff are busy, there will still be delays in troubleshooting. Moreover, some faults can only be accurately determined by combining the real-time status of the ONU gateway. Remote methods are difficult to obtain the physical layer status of the device and the user's on-site environment information, resulting in some faults not being located in a timely manner. User self-check guidance solutions rely on the user's technical level. Non-professional users cannot accurately judge the meaning of indicator lights or correctly log in to the management interface, which can easily lead to misjudgment or operation failure, affecting the efficiency of fault handling. In addition, the types of faults that can be covered are limited and cannot deal with complex or deep-seated fault scenarios.
[0027] To address the aforementioned problems, this invention provides a method, apparatus, computer device, and computer-readable storage medium for diagnosing ONU gateway faults based on a PON network. The method can be executed by the PON network-based ONU gateway fault diagnosis apparatus or by a computer device integrating the PON network-based ONU gateway fault diagnosis apparatus. If a call request from a voice terminal fails, the cause of the failure is determined; an input fault diagnosis instruction is received; a first voice audio corresponding to the fault cause is obtained according to the fault diagnosis instruction; and the first voice audio is sent to the voice terminal for playback to indicate the fault cause.
[0028] Please refer to Figure 1 This is a flowchart illustrating a fault diagnosis method for an ONU gateway based on a PON network disclosed in an embodiment of the present invention. Figure 1 As shown, the advantages of this ONU gateway fault diagnosis method based on PON network are as follows: In S110, if the execution of a call request from a voice terminal fails, the cause of the failure to execute the call request is determined.
[0029] An ONU gateway is a device that enables fiber optic user access. It is primarily used to connect fiber optic cables to homes or businesses, forming a fiber optic broadband access network and providing high-speed internet access. ONU gateways typically work in conjunction with Optical Line Terminals (OLTs). The former receives optical signals and converts them into electrical signals for user terminal equipment, while the latter transmits the data to the fiber optic backbone. ONU gateways support different fiber optic access protocols, such as EPON or GPON.
[0030] A voice terminal is a user terminal device that connects to an ONU gateway and is used to provide voice call services to users. For example, a voice terminal can be a landline telephone, also known as a fixed telephone or landline phone. It is a telephone that is fixed in a certain location and does not move. The most common form is a physical button-type landline phone.
[0031] In this embodiment of the invention, the voice terminal receives the target phone number input by the user through a configured number input component, and transmits the received target phone number as a call request to its connected ONU gateway. The ONU gateway requests the establishment of a communication link with the peer ONU gateway required to provide voice call services, enabling the voice terminal to conduct a voice call with the peer voice terminal corresponding to the target phone number. The presentation form of the number input component is not specifically limited here; for example, the voice terminal can provide a physical button-type number input component, a rotary dial-type number input component, a touchscreen-type number input component, and so on.
[0032] Correspondingly, after receiving a call request from a voice terminal, the ONU gateway parses the target phone number and attempts to execute a call operation corresponding to the target phone number according to the definition of the relevant voice call protocol, in order to establish a communication link between the voice terminal and the peer voice terminal indicated by the target phone number, thereby realizing real-time two-way communication between the two voice terminals.
[0033] If a communication link is successfully established between the voice terminal and the peer voice terminal, i.e., the call request is successfully executed, the ONU gateway can forward the voice data from both parties through this established communication link, achieving real-time transmission of call audio. If the call request fails, the ONU gateway will perform fault diagnosis according to the configured fault diagnosis strategy to determine the cause of the failure and record the determined fault cause in the fault data database for subsequent query and analysis. It should be noted that the causes of call request failure include, but are not limited to, WAN interface connection errors, telephone account registration failures, call authentication failures, codec negotiation failures, etc.
[0034] It should be noted that the configuration of the fault diagnosis strategy in this embodiment of the invention is not specifically limited, and can be flexibly set according to the actual network environment and operation and maintenance needs.
[0035] In S120, input fault diagnosis commands are received.
[0036] Fault diagnosis instructions refer to predefined trigger operations used to trigger the ONU gateway to obtain the cause of the fault for voice broadcasting. With user input as a constraint, they can be flexibly configured by those skilled in the art according to actual needs, and no specific restrictions are imposed here.
[0037] In this embodiment of the invention, after the ONU gateway fails to execute a call request from a voice terminal and determines the cause of the failure, it monitors whether it receives an input fault diagnosis instruction.
[0038] In S130, according to the fault diagnosis instruction, the first voice audio corresponding to the cause of the fault is obtained.
[0039] If a fault diagnosis command is received, the ONU gateway retrieves the fault cause record related to the failure of the call request from the fault data database, and obtains the corresponding voice audio according to the configured audio acquisition strategy, which is recorded as the first voice audio. The audio acquisition strategy can be flexibly configured according to actual needs, and no specific restrictions are imposed here.
[0040] For example, the audio acquisition strategy can be configured as follows: standard voice prompt audio corresponding to each fault cause is pre-generated and stored locally on the ONU gateway, and the ONU gateway directly retrieves the corresponding standard voice prompt audio according to the fault cause; Alternatively, the audio acquisition strategy can be configured as follows: the ONU gateway generates corresponding text information based on the cause of the fault, and calls the built-in speech synthesis engine to convert the text information into speech audio.
[0041] In S140, the first voice audio is sent to the voice terminal, and the first voice audio is played by the voice terminal to indicate the cause of the fault.
[0042] As described above, after obtaining the first voice audio corresponding to the cause of the fault, the ONU gateway sends the first voice audio to the voice terminal that initiated the call request, and the voice terminal plays the first voice audio to inform the user of the cause of the failure of the call request.
[0043] When sending the first voice audio to a voice terminal, the ONU gateway can determine the transmission method of the first voice audio based on the audio capabilities of the voice terminal. For example, if the voice terminal is a regular telephone that only supports analog audio signals, the ONU gateway can convert the first voice audio into an analog audio signal before sending it to the voice terminal; if the voice terminal supports digital audio signals, the ONU gateway can directly send the first voice audio in the form of a digital audio stream, thereby adapting to the audio capabilities of different types of voice terminals and ensuring the accurate transmission of fault cause reports.
[0044] Optionally, in one embodiment, determining the cause of the failure to execute the call request includes: Determine the detection order for multiple candidate fault points; According to the detection order, each candidate fault point is detected sequentially until a candidate fault point where a fault has occurred is detected. The cause of the failure to execute the call request is determined based on the candidate failure points where the failure occurred.
[0045] Among them, candidate failure points refer to pre-defined key nodes that may cause call request execution failures, including but not limited to the connection status of the WAN interface, the registration status of the telephone account, the call authentication status, the voice codec negotiation result, etc.
[0046] In this embodiment of the invention, when determining the cause of a failed call request, the ONU gateway first determines the detection order for multiple candidate fault points. This detection order can be pre-configured statically or dynamically adjusted in real time. Accordingly, after determining the detection order for multiple candidate fault points, the ONU gateway performs fault detection on each candidate fault point sequentially according to this order until a candidate fault point that has caused a fault is detected. Once a candidate fault point that has caused a fault is detected, the ONU gateway immediately terminates the subsequent detection process and takes this fault point as the cause of the failed call request. For example, when the detection order is WAN interface connection status, telephone account registration status, call authentication status, and voice codec negotiation result, if it is found in the second step that the telephone account is not registered, the subsequent detection is stopped, the cause of the fault is directly determined to be "telephone account not registered," and the corresponding first voice audio generation and playback process is triggered, improving fault location efficiency and user experience.
[0047] Among them, the fault detection methods for different candidate fault points can adopt corresponding detection mechanisms according to their characteristics.
[0048] For example, to detect the connection status of a WAN interface, the ONU gateway can detect whether the WAN interface has obtained a valid IP address, such as by detecting based on DHCP negotiation results, IP address lease period, etc., or by detecting by pinging the gateway address, public DNS server, etc. For detecting the registration status of telephone accounts, the ONU gateway can identify the SIP protocol interaction results between itself and the softswitch server, such as the response code of the REGISTER request. If the response code returned by the softswitch server is "401 Unauthorized" or "503 Service Unavailable", the telephone account registration is determined to have failed. Conversely, if the response code returned by the softswitch server is "200 OK", the telephone account registration is determined to have succeeded. For call authentication status detection, the ONU gateway can identify the SIP protocol interaction results between itself and the softswitch server, such as the response code of the INVITE request. If it receives "403 Forbidden", it determines that the call authentication has failed. Conversely, if the softswitch server returns a response code of "200 OK", it determines that the call authentication has succeeded. For detecting the voice codec negotiation results, the ONU gateway can parse the media negotiation information in the SIP Session Description Protocol (SDP) and compare the codec sets supported by both the calling and called parties. If there is no commonly supported codec format, the negotiation is deemed to have failed; if there is at least one commonly supported codec format, the negotiation is deemed to have succeeded.
[0049] Optionally, in one embodiment, determining the detection order for multiple candidate fault points includes: The historical fault frequency of each candidate fault point is statistically analyzed, and the detection order is determined based on the magnitude of the historical fault frequency of each candidate fault point.
[0050] In this embodiment of the invention, when determining the detection order for multiple candidate fault points, the ONU gateway first counts the historical fault frequency of each candidate fault point within a preset statistical period, and sorts all candidate fault points according to the magnitude relationship of the historical fault frequency of each candidate fault point. The sorting order can be ascending or descending, and no specific restriction is made here.
[0051] For example, each candidate fault point can be sorted in descending order of its historical fault frequency, thereby placing the candidate fault points with higher historical fault frequencies at the front of the detection sequence for priority detection. This allows for rapid identification of high-frequency fault sources, reduces overall diagnostic time, and improves troubleshooting efficiency.
[0052] Furthermore, dynamic weighting factors can be set according to the actual network environment to weight historical fault frequencies, and the detection priority of candidate fault points can be dynamically adjusted in conjunction with real-time network status parameters, making the detection order more consistent with the current operating environment. For example, assuming that the WAN interface has recently experienced frequent IP address acquisition failures, the ONU gateway will increase the detection priority of the WAN interface connection status. Even if its historical fault frequency is low, it can be detected earlier in the current diagnostic cycle, thereby discovering and handling potential network access-related problems more promptly, improving the accuracy of fault location and response speed.
[0053] The above method of determining the detection order by referring to the historical failure frequency of each candidate fault point effectively avoids blind detection and significantly improves the targeting and efficiency of fault diagnosis. Prioritization driven by historical data allows the ONU gateway to focus on high-probability fault points, shortening the average diagnosis time.
[0054] Optionally, in one embodiment, receiving an input fault diagnosis command includes: Receive fault diagnosis commands input via key combination on a voice terminal; Alternatively, it can receive fault diagnosis commands input via independent buttons on a voice terminal. Alternatively, it can receive fault diagnosis commands remotely input from external devices.
[0055] The embodiments of the present invention further provide a variety of optional input methods for fault diagnosis commands to adapt to the usage needs in different scenarios.
[0056] Among them, combination keys refer to the simultaneous or continuous pressing of two or more preset keys through the number input component (such as a numeric keypad) of the voice terminal to trigger fault diagnosis commands. For example, the user can press "*988#" in sequence to input fault diagnosis commands to the ONU gateway.
[0057] Dedicated buttons refer to physical or virtual buttons specifically designed for use on the voice terminal. Users can click these buttons to input fault diagnosis commands to the ONU gateway, improving operational convenience. For example, if the voice terminal has a "Fault Inquiry" button, users can press this button to input fault diagnosis commands to the ONU gateway.
[0058] Furthermore, remote input methods allow external devices to send fault diagnosis commands to the ONU gateway via applications, web management interfaces, or SMS messages, enabling flexible control across terminals and scenarios. For example, users can log in to the gateway management platform via a mobile app or computer and remotely send fault diagnosis commands to the ONU gateway to initiate the diagnostic process without having to be physically present at the equipment.
[0059] Optionally, in one embodiment, when the fault diagnosis command is remotely input by an external device, the ONU gateway fault diagnosis method further includes: The cause of the fault is sent remotely to an external device, and the cause of the fault is displayed on the external device.
[0060] Understandably, when fault diagnosis commands are remotely input from external devices, it indicates that the user may not be physically present at the equipment site. To ensure the user can promptly access the diagnostic results, the ONU gateway, upon receiving the remotely input fault diagnosis command, will also remotely send the cause of the failed call request to the external device, which will then display the cause of the fault to the user. The method by which the external device displays the cause of the fault is not limited; it can be through message push, interface pop-ups, SMS notifications, or email, etc., to ensure the user can obtain the cause of the fault in real time and intuitively.
[0061] For example, when a user remotely sends a fault diagnosis command to the ONU gateway via a mobile app, the ONU gateway extracts the fault cause record related to the failure of the call request from the fault database, and remotely sends the extracted fault cause to the user's mobile app, which is then presented in real time through a pop-up window or message notification, allowing the user to remotely know the fault cause.
[0062] Optionally, in one embodiment, the ONU gateway fault diagnosis method provided by the present invention further includes: Obtain the fault solution corresponding to the fault cause, and obtain the second voice audio corresponding to the fault solution; The second audio message is sent to the voice terminal, and the second audio message is played by the voice terminal to indicate the troubleshooting solution.
[0063] In this embodiment of the invention, in addition to providing users with voice broadcasts of the cause of the fault, the system also provides users with voice guidance on fault solutions, thereby guiding users to complete self-troubleshooting operations and improving problem-solving efficiency.
[0064] In this process, after receiving the input fault diagnosis command, the ONU gateway matches the corresponding fault solution from a preset solution library based on the fault cause, and obtains the corresponding voice audio for that fault solution, denoted as the second voice audio. The method for obtaining the second voice audio can be implemented in accordance with the method for obtaining the first voice audio in the above embodiments, and will not be elaborated here.
[0065] As described above, after obtaining the second voice audio corresponding to the fault solution, the ONU gateway sends the second voice audio to the voice terminal that initiated the call request. The voice terminal then plays the second voice audio, broadcasting the specific steps of the fault solution to the user and guiding the user to troubleshoot the problem independently.
[0066] It should be noted that the fault solutions in the above solution library can be pre-generated based on common fault causes and handling experience.
[0067] For example, regarding the WAN interface connection error, the solution could be: check if the connection between the ONU gateway and the fiber optic cable is loose, unplug and replug the fiber optic interface and confirm that the indicator light is flashing normally; if the problem persists, try restarting the ONU gateway. The corresponding second voice prompt for this solution could be: "Please check if the fiber optic cable connection is secure, unplug and replug it and observe the indicator light status, restart the device if necessary."
[0068] Regarding the issue of phone account registration failure, the solution is as follows: confirm that the account information is entered correctly, check the network connection status, and try registering again; if it still fails, contact your mobile operator to verify the account validity. The corresponding second voice message for this solution may be: "Please verify your phone account information, ensure a stable network connection, and try registering again. If the problem persists, please contact your mobile operator."
[0069] Regarding the call authentication failure, the solutions are as follows: check if the account and password are entered correctly, confirm that the SIP server address is configured correctly, and resubmit the authentication information; if it still fails, try restoring factory settings and reconfiguring. The corresponding second voice message for this solution may be: "Please check the account, password, and server configuration, correct them, and re-authenticate. If the problem persists, it is recommended to restore factory settings and reconfigure the device."
[0070] Regarding the failure of codec negotiation, the solution is as follows: confirm that the codec types supported by both the calling and called devices are consistent, check the SDP negotiation parameters in the SIP signaling, and manually adjust the codec priority; if the call still cannot be made, try switching to the default encoding mode. The corresponding second voice message for this solution could be: "Please confirm that the codec settings of both devices are compatible, adjust the encoding priority and try again, and switch to the default encoding mode if necessary."
[0071] Optionally, in one embodiment, the gateway fault diagnosis method provided by the present invention further includes: If the number of failed call requests from a voice terminal reaches a threshold within a preset time period, it is considered that a fault diagnosis instruction has been received.
[0072] This invention also provides a mechanism for automatically triggering fault reporting, eliminating the need for users to actively input fault diagnosis commands. This ensures that even users who are unaware of how to input fault diagnosis commands can still receive timely fault handling guidance.
[0073] The ONU gateway monitors the number of failed call requests in real time. If the number of failed call requests from the voice terminal reaches a threshold within a preset time period, it is considered as receiving a fault diagnosis instruction and automatically triggers the fault voice broadcast process. Please refer to the relevant description in the above embodiments for details, which will not be repeated here.
[0074] It should be noted that the embodiments of the present invention do not limit the specific values of the preset duration and number of calls threshold. They can be flexibly configured according to the actual network environment and user habits to balance the sensitivity of fault response and the probability of false triggering. For example, the preset duration can be set to 5 minutes and the number of calls threshold can be set to 3. When a user makes 3 consecutive failed calls through a voice terminal within 5 minutes, the ONU gateway will automatically trigger the fault voice broadcast process.
[0075] As can be seen from the above, the ONU gateway fault diagnosis scheme based on PON network provided by this invention determines the cause of the failure when a call request from a voice terminal fails; receives the input fault diagnosis command; obtains the first voice audio corresponding to the cause of the failure based on the fault diagnosis command; and sends the first voice audio to the voice terminal for playback to indicate the cause of the failure. Therefore, users do not need to wait for maintenance personnel to conduct on-site troubleshooting; they only need to input a fault diagnosis command to trigger the ONU gateway's self-diagnosis process, and can quickly learn the cause of the failure through voice broadcast, thereby significantly improving fault handling efficiency, reducing maintenance costs, and simultaneously enhancing users' perception of the reliability of voice call services.
[0076] To facilitate better implementation of the above-described ONU gateway fault diagnosis method based on a PON network, this embodiment of the invention also provides a corresponding ONU gateway fault diagnosis device based on a PON network. The meanings of the terms used are the same as in the above-described ONU gateway fault diagnosis method based on a PON network; for specific implementation details, please refer to the descriptions in the above method embodiments.
[0077] Please refer to Figure 2 The ONU gateway fault diagnosis device based on a PON network may include a fault recording module 210, a diagnosis triggering module 220, an audio acquisition module 230, and an audio playback module 240. Detailed descriptions of each functional module are as follows: The fault recording module 210 is used to determine the cause of the failure when the execution of a call request from a voice terminal fails. The diagnostic trigger module 220 is used to receive input fault diagnosis commands; The audio acquisition module 230 is used to acquire the first voice audio corresponding to the cause of the fault according to the fault diagnosis instruction; The audio broadcast module 240 is used to send a first voice audio to the voice terminal, and the first voice audio is played by the voice terminal to indicate the cause of the fault.
[0078] Optionally, in one embodiment, the fault recording module 210 is used to determine the detection order for multiple candidate fault points; to perform fault detection on each candidate fault point in sequence according to the detection order until a candidate fault point that has failed is detected; and to determine the fault cause of the failure to execute the call request based on the candidate fault point that has failed.
[0079] Optionally, in one embodiment, the fault recording module 210 is used to count the historical fault frequency of each candidate fault point and determine the detection order based on the magnitude relationship of the historical fault frequency of each candidate fault point.
[0080] Optionally, in one embodiment, the diagnostic trigger module 220 is configured to receive a fault diagnosis command input via a combination of keys on a voice terminal; or, receive a fault diagnosis command input via an independent key on a voice terminal; or, receive a fault diagnosis command remotely input from an external device.
[0081] Optionally, in one embodiment, the ONU gateway fault diagnosis device provided by the present invention further includes a fault outward transmission module, which is used to remotely send the fault cause to the external device when the fault diagnosis command is remotely input by the external device, and the fault cause is displayed by the external device.
[0082] Optionally, in one embodiment, the audio acquisition module 230 is further configured to acquire a fault solution corresponding to the fault cause, and acquire a second voice audio corresponding to the fault solution; the audio broadcasting module 240 is further configured to send the second voice audio to the voice terminal, and the second voice audio is played by the voice terminal to indicate the fault solution.
[0083] Optionally, in one embodiment, the diagnostic trigger module 220 is further configured to consider receiving a fault diagnosis instruction if the number of failed call requests from the voice terminal within a preset time period reaches a threshold.
[0084] Specific limitations regarding the ONU gateway fault diagnosis device based on PON networks can be found in the limitations of the ONU gateway fault diagnosis method based on PON networks mentioned above, and will not be repeated here. Each module in the aforementioned ONU gateway fault diagnosis device based on PON networks can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0085] In one embodiment, a computer device is provided, which may be an ONU gateway, and its internal structure diagram may be as follows: Figure 3 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and the database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The network interface connects to external wireless clients, providing wireless network access services to the connected wireless clients. When the computer program is executed by the processor, it implements the ONU gateway fault diagnosis method based on a PON network provided by this invention.
[0086] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the ONU gateway fault diagnosis method based on the PON network described in the above embodiment.
[0087] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the ONU gateway fault diagnosis method based on a PON network as described above.
[0088] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0089] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0090] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A fault diagnosis method for an ONU gateway based on a PON network, characterized in that, include: If the execution of a call request from a voice terminal fails, the cause of the failure to execute the call request is determined. Receive input fault diagnosis commands; According to the fault diagnosis instruction, obtain the first voice audio corresponding to the cause of the fault; The first audio message is sent to the voice terminal, and the first audio message is played by the voice terminal to indicate the cause of the fault.
2. The ONU gateway fault diagnosis method according to claim 1, characterized in that, The determination of the cause of failure in executing the call request includes: Determine the detection order for multiple candidate fault points; According to the detection order, each of the candidate fault points is detected sequentially until a candidate fault point that has caused a fault is detected. The cause of the failure to execute the call request is determined based on the candidate failure points where the failure occurred.
3. The ONU gateway fault diagnosis method according to claim 2, characterized in that, Determining the detection order for multiple candidate fault points includes: The historical fault frequency of each candidate fault point is statistically analyzed, and the detection order is determined based on the magnitude relationship of the historical fault frequencies of each candidate fault point.
4. The ONU gateway fault diagnosis method according to claim 1, characterized in that, The received fault diagnosis command includes: Receive fault diagnosis commands input via combination keys on the voice terminal; Alternatively, it can receive fault diagnosis commands input via independent buttons on the voice terminal; Alternatively, it can receive fault diagnosis commands remotely input from external devices.
5. The ONU gateway fault diagnosis method according to claim 4, characterized in that, When the fault diagnosis command is remotely input by the external device, the ONU gateway fault diagnosis method further includes: The cause of the fault is remotely sent to the external device, and the cause of the fault is displayed on the external device.
6. The ONU gateway fault diagnosis method according to claim 1, characterized in that, Also includes: Obtain the fault solution corresponding to the fault cause, and obtain the second voice audio corresponding to the fault solution; The second audio message is sent to the voice terminal, and the second audio message is played by the voice terminal to indicate the fault solution.
7. The ONU gateway fault diagnosis method according to claim 1, characterized in that, The method of receiving input fault diagnosis instructions also includes: If the number of failed call requests from the voice terminal within a preset time period reaches a threshold, it is considered that the fault diagnosis instruction has been received.
8. A fault diagnosis device for an ONU gateway based on a PON network, characterized in that, include: The fault recording module is used to determine the cause of the failure when a call request from a voice terminal fails to be executed. The diagnostic trigger module is used to receive input fault diagnosis commands; An audio acquisition module is used to acquire a first voice audio corresponding to the cause of the fault according to the fault diagnosis instruction; An audio broadcasting module is used to send the first voice audio to the voice terminal, and the first voice audio is played by the voice terminal to indicate the cause of the fault.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the ONU gateway fault diagnosis method based on any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the ONU gateway fault diagnosis method based on any one of claims 1 to 7.