CN114696894A - Testing method and device of passive optical network equipment and readable storage medium - Google Patents

Testing method and device of passive optical network equipment and readable storage medium Download PDF

Info

Publication number
CN114696894A
CN114696894A CN202210603476.9A CN202210603476A CN114696894A CN 114696894 A CN114696894 A CN 114696894A CN 202210603476 A CN202210603476 A CN 202210603476A CN 114696894 A CN114696894 A CN 114696894A
Authority
CN
China
Prior art keywords
information
optical network
abnormal
interface
network terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210603476.9A
Other languages
Chinese (zh)
Other versions
CN114696894B (en
Inventor
蔺菁
张莹
朱晋锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaxun Optical Communication Co ltd
Original Assignee
Shenzhen Huaxun Optical Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huaxun Optical Communication Co ltd filed Critical Shenzhen Huaxun Optical Communication Co ltd
Priority to CN202210603476.9A priority Critical patent/CN114696894B/en
Publication of CN114696894A publication Critical patent/CN114696894A/en
Application granted granted Critical
Publication of CN114696894B publication Critical patent/CN114696894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/073Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an out-of-service signal
    • H04B10/0731Testing or characterisation of optical devices, e.g. amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a testing method, a testing device and a readable storage medium of passive optical network equipment, wherein the method comprises the following steps: acquiring control switch information corresponding to a plurality of optical network terminals to be detected, and controlling the relay based on a UART interface so as to enable the optical network terminals to be detected to be electrified by controlling the conduction of the control switch; acquiring operation information of each optical network terminal to be detected, and determining whether abnormal information exists in each operation information; if the abnormal information exists, determining a target control switch and a target optical network terminal corresponding to the abnormal information; and controlling the relay based on the UART interface to disconnect the target control switch and send the abnormal detection information of the target optical network terminal to the target terminal. The invention can realize the batch test of the optical network terminal, and simultaneously can give consideration to the test of each interface of each optical network terminal in the test process, thereby improving the test efficiency of the optical network terminal.

Description

Testing method and device of passive optical network equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for testing a passive optical network device, and a readable storage medium.
Background
In broadband access networks of increasing size, most of the Local Area Networks (LANs) available are running on 100Mbit/s networks, and many large-scale commercial companies are transitioning to Gigabit Ethernet (GE). On the metro core network and the metro edge network, SONET/SDH/GE bandwidth capacity is very abundant, which causes a severe bandwidth bottleneck in the access network part. Compared with cable transmission, optical fiber transmission has the advantages of large capacity, small loss, strong electromagnetic interference resistance and the like, so that along with the gradual reduction of the cost of optical fiber transmission, the fiberization of an access network is an inevitable development trend. The access network segment representing the last kilometer part has the requirements of ultra-low cost, simple structure, convenient implementation and the like, which brings great challenges to the technical implementation. The optical fiber access network can be divided into a passive access mode and an active access mode, and a Passive Optical Network (PON) is an attractive access mode and is mainly characterized in that: low cost-significantly reducing the number of optical fibers, optical transceiver modules, central office terminals, initial investment can be amortized by multiple end users; the whole optical transmission channel is an optical fiber and a passive optical device, so that the electromagnetic interference and lightning influence can be effectively avoided, and the reliability of the system is improved; the Optical Distribution Network (ODN) module can be hung on the roadside, remote power supply and a machine room are not needed, and the operation and maintenance cost is reduced; the method is transparent to the service, and is convenient for system upgrading, management and new service introduction; large bandwidth and long transmission distance (up to 20 km). Therefore, the number of optical network terminal devices, such as optical network terminals, in the optical access network is increasing greatly.
In the related art, before an optical network terminal accesses a passive optical network, a stability test needs to be performed on the optical network terminal. The optical network terminal has more interfaces due to more functions realized by the optical network terminal. At present, when the stability of the optical network terminal is tested, each interface of each optical network terminal needs to be tested in sequence, which results in lower test efficiency of the optical network terminal.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for testing passive optical network equipment and a readable storage medium, and aims to solve the technical problem of low efficiency of stability testing of the conventional optical network terminal.
In order to achieve the above object, the present invention provides a testing method of passive optical network equipment, which is applied to a testing device of passive optical network equipment, wherein the testing device of passive optical network equipment is electrically connected with a relay through a UART interface, the relay is provided with a plurality of control switches, and each control switch is electrically connected with an optical network terminal of the passive optical network equipment; the testing method of the passive optical network equipment comprises the following steps:
acquiring control switch information corresponding to a plurality of optical network terminals to be detected, and controlling the relay based on the UART interface so as to electrify the optical network terminals to be detected by controlling the conduction of the control switches corresponding to the control switch information;
acquiring operation information of each optical network terminal to be detected, and determining whether abnormal information exists in each operation information;
if the abnormal information exists, determining a target control switch and a target optical network terminal corresponding to the abnormal information;
and controlling the relay based on the UART interface to disconnect the target control switch and send the abnormal detection information of the target optical network terminal to the target terminal.
Further, the operation information includes interface connection information, boot duration information, and memory usage rate information, and the step of determining whether the operation information includes abnormal information includes:
for the operation information of each optical network terminal to be detected, respectively determining whether the interface connection information is abnormal, whether the startup duration information is less than or equal to the preset startup duration, and whether the memory utilization rate information is less than or equal to the preset memory utilization rate;
if the interface connection information is abnormal, the starting-up time length information is larger than the preset starting-up time length and/or the memory utilization rate information is larger than the preset memory utilization rate, determining that abnormal information exists in the operation information, and taking the interface connection information, the starting-up time length information and/or the memory utilization rate information as the abnormal information.
Further, the operation information further includes network connection information and configuration information, and after the step of respectively determining whether the interface connection information is abnormal, whether the boot time information is less than or equal to a preset boot time, and whether the memory usage rate information is less than or equal to a preset memory usage rate, the method further includes:
if the interface connection information is abnormal, the starting-up time length information is less than or equal to the preset starting-up time length, and the memory utilization rate information is less than or equal to the preset memory utilization rate, determining whether the network connection information is abnormal and whether the configuration information is complete;
if the network connection information is abnormal and/or the configuration information is incomplete, determining that abnormal information exists in the operation information, and taking the network connection information and/or the configuration information as the abnormal information.
Further, the interface connection information includes internet access information, telephone connection information, and USB interface information, and the step of determining whether the interface connection information is abnormal includes:
determining whether the internet access information is abnormal, whether the telephone connection information is abnormal and whether the USB interface information is abnormal;
if the internet access information is abnormal, the telephone connection information is abnormal and/or the USB interface information is abnormal, determining that the interface connection information is abnormal;
and if the internet access information is normal, the telephone connection information is normal and the USB interface information is normal, determining that the interface connection information is normal.
Further, when the interface connection information includes telephone connection information, after the step of respectively determining whether the interface connection information is abnormal, whether the power-on duration information is less than or equal to a preset power-on duration, and whether the memory usage rate information is less than or equal to a preset memory usage rate, the method further includes:
determining whether telephone ringing information exists in the operation information;
if the running information does not contain telephone ringing information, determining that abnormal information exists in the running information, wherein the abnormal information comprises telephone ringing abnormal information.
Further, after the step of determining whether there is abnormal information in each of the operation information, the method further includes:
if the abnormal information does not exist, accumulating the first acquisition times of the operation information;
and if the first acquisition times do not reach the preset times, controlling the relay based on the UART interface to disconnect the target control switch, and returning to execute the step of controlling the relay based on the UART interface.
Further, after the step of accumulating the first acquisition times of the operation information if the abnormal information does not exist, the method further includes:
and if the first acquisition times reach preset times, controlling the relay based on the UART interface to disconnect the target control switch and send the detection result information of the optical network terminal to be detected passing detection to the target terminal.
Further, after the step of determining the target control switch and the target optical network terminal corresponding to the abnormal information if the abnormal information exists, the method for testing the passive optical network device further includes:
determining whether each optical network terminal to be detected has a qualified optical network terminal except the target optical network terminal;
if the qualified optical network terminal exists, accumulating the second acquisition times of the operation information corresponding to the qualified optical network terminal;
and if the second acquisition times do not reach the preset times, taking the qualified optical network terminal as an optical network terminal to be detected, returning to execute the steps of acquiring control switch information corresponding to a plurality of optical network terminals to be detected and controlling the relay based on the UART interface.
In addition, to achieve the above object, the present invention further provides a testing device for a passive optical network device, where the testing device for the passive optical network device includes: the testing method comprises a memory, a processor and a testing program of the passive optical network device, wherein the testing program of the passive optical network device is stored on the memory and can run on the processor, and the steps of the testing method of the passive optical network device are realized when the testing program of the passive optical network device is executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, where a test program of a passive optical network device is stored, and when the test program of the passive optical network device is executed by a processor, the steps of implementing the foregoing test method of the passive optical network device are implemented.
The method comprises the steps that the information of control switches corresponding to a plurality of optical network terminals to be detected is obtained, the relay is controlled on the basis of the UART interface, and the optical network terminals to be detected are powered on by controlling the conduction of the control switches corresponding to the information of the control switches; then acquiring the operation information of each optical network terminal to be detected, and determining whether abnormal information exists in each operation information; if the abnormal information exists, determining a target control switch and a target optical network terminal corresponding to the abnormal information; and then controlling the relay based on the UART interface to disconnect the target control switch and send the abnormal detection information of the target optical network terminal to the target terminal, so that the batch test of the optical network terminals can be realized, and simultaneously, the test of each interface of each optical network terminal can be considered in the test process, thereby improving the test efficiency of the optical network terminals.
Drawings
Fig. 1 is a schematic structural diagram of a testing device of a passive optical network device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a testing method of a passive optical network device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a testing device of a passive optical network device in a hardware operating environment according to an embodiment of the present invention.
The testing equipment of the passive optical network equipment can be a PC (personal computer), and can also be mobile terminal equipment such as a smart phone and a tablet personal computer.
As shown in fig. 1, the testing device of the passive optical network device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the testing device of the passive optical network device may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Of course, the testing device of the passive optical network device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and so on, which are not described herein again.
It will be appreciated by those skilled in the art that the termination structure shown in figure 1 does not constitute a limitation of the testing equipment of the passive optical network device and may comprise more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein a test program of an operating system, a network communication module, a user interface module, and a passive optical network device.
In the testing device of the passive optical network device shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke a test program of the passive optical network device stored in the memory 1005.
In this embodiment, the testing device of the passive optical network device includes: the testing method comprises a memory 1005, a processor 1001 and a testing program of the passive optical network device, wherein the testing program of the passive optical network device is stored in the memory 1005 and can be run on the processor 1001, and when the processor 1001 calls the testing program of the passive optical network device stored in the memory 1005, the steps of the testing method of the passive optical network device in the following embodiments are executed.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a testing method for a passive optical network device according to the present invention.
The testing method of the passive optical network equipment is applied to a testing device of the passive optical network equipment, the testing device of the passive optical network equipment is electrically connected with a relay through a Universal Asynchronous Receiver/Transmitter (UART) interface, the relay is provided with a plurality of control switches, and each control switch is respectively and electrically connected with an optical network terminal of the passive optical network equipment; the control switch controlled by the relay controls the plurality of optical network terminals to be powered on or powered off, so that the optical network terminals can perform batch stability test.
In this embodiment, the method for testing the passive optical network device includes:
step S101, acquiring control switch information corresponding to a plurality of optical network terminals to be detected, and controlling the relay based on the UART interface so as to electrify the optical network terminals to be detected by controlling the conduction of the control switches corresponding to the control switch information;
in this embodiment, the testing apparatus of the passive optical network device may be a PC, and before testing, each optical network terminal of the plurality of optical network terminals to be tested that need to be tested is connected to one control switch of the relay, so that the control switches of the relay correspond to the optical network terminals one to one, and the relay is electrically connected to the UART interface of the testing apparatus of the passive optical network device. After the one-to-one correspondence relationship between the control switches of the relays and the optical network terminals is established, the control switch information corresponding to each optical network terminal to be detected can be obtained, and then the control switches connected with each optical network terminal to be detected can be determined according to the control switch information, wherein the control switch information can be manually input by a tester, or an identification module of the optical network terminal can be arranged at each control switch, the optical network terminal currently connected with each control switch is determined through the identification module, and then the one-to-one correspondence relationship between the optical network terminal to be detected and the control switches can be accurately obtained through the identification module of the control switches, so that the control switch information corresponding to a plurality of optical network terminals to be detected can be obtained.
In this embodiment, the testing apparatus of the passive optical network device first obtains control switch information corresponding to a plurality of optical network terminals to be detected, and then controls the relay based on the UART interface to turn on the plurality of control switches corresponding to the control switch information, so that the plurality of optical network terminals to be detected are powered on.
Step S102, obtaining the operation information of each optical network terminal to be detected, and determining whether each operation information has abnormal information;
in this embodiment, after each optical network terminal to be detected is powered on and operated, each optical network terminal to be detected acquires operation information of each interface of the optical network terminal to be detected, and when the operation information of all the interfaces is acquired, the operation information is fed back to the testing device of the passive optical network device, and after the testing device of the passive optical network device acquires the operation information of the optical network terminal to be detected, whether abnormal information exists in the operation information is determined, that is, whether abnormal or faulty interface operation information exists in the interface operation information of the operation information of each optical network terminal to be detected.
Step S103, if the abnormal information exists, determining a target control switch and a target optical network terminal corresponding to the abnormal information.
In this embodiment, if there is abnormal information, the test device of the passive optical network device determines a target control switch and a target optical network terminal corresponding to the abnormal information, specifically, first determines a target optical network terminal corresponding to the abnormal information, for example, operation information of each optical network terminal to be detected carries a terminal identifier of the corresponding optical network terminal to be detected, when the abnormal information is determined, determines the target optical network terminal according to the terminal identifier corresponding to the operation information to which the abnormal information belongs, and then determines the target control switch based on a one-to-one correspondence relationship between the optical network terminal and the control switch, where the target control switch is a control switch electrically connected to the target optical network terminal in a relay.
And step S104, controlling the relay based on the UART interface to disconnect the target control switch and sending the abnormal detection information of the target optical network terminal to the target terminal.
In this embodiment, when the target control switch and the target optical network terminal are determined, the testing apparatus of the passive optical network device controls the relay based on the UART interface, specifically, the testing apparatus of the passive optical network device sends a disconnection instruction of the target control switch to the relay through the UART interface, and the relay disconnects the target control switch according to the disconnection instruction, so that the target control switch is disconnected, and further the target optical network terminal electrically connected to the target control switch is powered down.
In the testing method of the passive optical network device provided in this embodiment, the relay is controlled based on the UART interface by acquiring the control switch information corresponding to the plurality of optical network terminals to be detected, so that the optical network terminals to be detected are powered on by controlling the conduction of the control switches corresponding to the control switch information; then, acquiring operation information of each optical network terminal to be detected, and determining whether abnormal information exists in each operation information; if the abnormal information exists, determining a target control switch and a target optical network terminal corresponding to the abnormal information; and then controlling the relay based on the UART interface to disconnect the target control switch and send the abnormal detection information of the target optical network terminal to the target terminal, so that the batch test of the optical network terminals can be realized, and simultaneously, the test of each interface of each optical network terminal can be considered in the test process, thereby improving the test efficiency of the optical network terminals.
Based on the first embodiment, a second embodiment of the testing method for a passive optical network device according to the present invention is provided, in this embodiment, the operation information includes interface connection information, boot-up duration information, and memory usage rate information, and step S102 includes:
step S201, for the operation information of each optical network terminal to be detected, respectively determining whether the interface connection information is abnormal, whether the startup duration information is less than or equal to a preset startup duration, and whether the memory usage rate information is less than or equal to a preset memory usage rate;
step S202, if the interface connection information is abnormal, the starting-up time length information is greater than the preset starting-up time length and/or the memory utilization rate information is greater than the preset memory utilization rate, determining that abnormal information exists in the operation information, and taking the interface connection information, the starting-up time length information and/or the memory utilization rate information as the abnormal information.
In this embodiment, the operation information includes interface connection information, startup duration information, and memory usage information, and when determining abnormal information, the operation information of each optical network terminal to be detected is separately detected, and for the currently detected optical network terminal to be detected, whether the interface connection information of the optical network terminal to be detected is abnormal, whether the startup duration information of the optical network terminal to be detected is less than or equal to preset startup duration, and whether the memory usage information of the optical network terminal to be detected is less than or equal to preset memory usage. The preset startup duration and the preset memory usage rate can be reasonably set according to the normal optical network terminal.
Then, if the interface connection information is abnormal, the startup duration information is greater than the preset startup duration and/or the memory usage rate information is greater than the preset memory usage rate, determining that abnormal information exists in the operation information, namely any one or more of the interface connection information is abnormal, the startup duration information is greater than the preset startup duration and the memory usage rate information is greater than the preset memory usage rate, determining that abnormal information exists in the operation information, and using the interface connection information, the startup duration information and/or the memory usage rate information as the abnormal information, specifically, the interface connection information is abnormal to indicate that the current optical network terminal to be detected has an interface abnormality, the startup duration information is greater than the preset startup duration to indicate that the current optical network terminal to be detected has an abnormality, and the memory usage rate information is greater than the preset memory usage rate to indicate that the current optical network terminal to be detected has an abnormality, the abnormal information is one or more of interface connection information when the interface is abnormal, startup duration information when the startup duration is abnormal, and memory usage rate information when the memory is abnormal, for example, the abnormal information includes the interface connection information when the interface connection information is abnormal; the abnormal information of the starting-up time length information is larger than the preset starting-up time length and comprises the starting-up time length information; when the memory utilization rate information is greater than the preset memory utilization rate, the abnormal information comprises memory utilization rate information; the interface connection information is abnormal, and the starting-up time length information is greater than the preset starting-up time length, wherein the abnormal information comprises the interface connection information and the starting-up time length information; when the interface connection information is abnormal and the memory utilization rate information is greater than the preset memory utilization rate, the abnormal information comprises the interface connection information and the memory utilization rate information; the memory usage rate information is greater than the preset memory usage rate, the startup duration information is greater than the preset startup duration, and the abnormal information comprises the startup duration information and the memory usage rate information; when the interface connection information is abnormal, the starting-up time length information is greater than the preset starting-up time length and the memory utilization rate information is greater than the preset memory utilization rate, the abnormal information comprises the interface connection information, the starting-up time length information and the memory utilization rate information.
In the testing method of the passive optical network device provided in this embodiment, whether the interface connection information is abnormal, whether the startup duration information is less than or equal to a preset startup duration, and whether the memory usage rate information is less than or equal to a preset memory usage rate are respectively determined by referring to the operation information of each optical network terminal to be detected; and then if the interface connection information is abnormal, the starting-up time length information is greater than the preset starting-up time length and/or the memory utilization rate information is greater than the preset memory utilization rate, determining that abnormal information exists in the operation information, and taking the interface connection information, the starting-up time length information and/or the memory utilization rate information as the abnormal information, so that whether the optical network terminal to be detected is abnormal can be accurately determined according to the interface connection information, the starting-up time length information and the memory utilization rate information, accurate testing of each interface of the optical network terminal is realized, and the testing efficiency and the accuracy of the optical network terminal are improved.
Based on the second embodiment, a third embodiment of the testing method for a passive optical network device according to the present invention is provided, in this embodiment, the operation information further includes network connection information and configuration information, and after step S201, the testing method for a passive optical network device further includes:
step S301, if the interface connection information is abnormal, the startup duration information is less than or equal to a preset startup duration, and the memory utilization rate information is less than or equal to a preset memory utilization rate, determining whether the network connection information is abnormal and whether the configuration information is complete;
step S302, if the network connection information is abnormal and/or the configuration information is incomplete, determining that abnormal information exists in the operation information, and using the network connection information and/or the configuration information as the abnormal information.
In this embodiment, the operation information further includes network connection information and configuration information, and for each optical network terminal to be detected, if the interface connection information of the optical network terminal to be detected is abnormal, the startup duration information is less than or equal to a preset startup duration, and the memory usage rate information is less than or equal to a preset memory usage rate, it is determined again whether the network connection information of the optical network terminal to be detected is abnormal and whether the configuration information is complete, that is, it is determined whether the optical network terminal to be detected can access the network and whether a residual configuration item exists.
Then, if the network connection information is abnormal and/or the configuration information is incomplete, it is determined that abnormal information exists in the operation information, and the network connection information and/or the configuration information is used as the abnormal information, for example, when the network connection information is abnormal, the abnormal information includes the network connection information, when the configuration information is incomplete, the abnormal information includes the configuration information, and when the network connection information is abnormal and the configuration information is incomplete, the abnormal information includes the network connection information and the configuration information.
However, the design is not limited thereto, and in other embodiments, if the interface connection information is abnormal, the booting duration information is greater than a preset booting duration and/or the memory usage rate information is greater than a preset memory usage rate, it is determined whether the network connection information is abnormal and the configuration information is complete; if the network connection information is abnormal and/or the configuration information is incomplete, determining that abnormal information exists in the operation information, and taking the interface connection information, the starting-up time length information, the memory utilization rate information, the network connection information and/or the configuration information as the abnormal information.
In the testing method of the passive optical network device provided in this embodiment, if the interface connection information is abnormal, the startup duration information is less than or equal to the preset startup duration, and the memory usage rate information is less than or equal to the preset memory usage rate, it is determined whether the network connection information is abnormal and the configuration information is complete; and then if the network connection information is abnormal and/or the configuration information is incomplete, determining that abnormal information exists in the operation information, taking the network connection information and/or the configuration information as the abnormal information, and accurately determining whether the optical network terminal to be detected is abnormal according to the network connection information and the configuration information, so that the accurate test of the network interface and the configuration information of the optical network terminal is realized, and the test efficiency and the accuracy of the optical network terminal are improved.
Based on the second embodiment, a fourth embodiment of the testing method for passive optical network devices according to the present invention is provided, in this embodiment, the interface connection information includes network port information, telephone connection information, and USB interface information, and step S201 includes:
step S401, determining whether the internet access information is abnormal, the telephone connection information is abnormal and the USB interface information is abnormal;
step S402, if the internet access information is abnormal, the telephone connection information is abnormal and/or the USB interface information is abnormal, determining that the interface connection information is abnormal;
step S403, if the internet access information is normal, the telephone connection information is normal, and the USB interface information is normal, determining that the interface connection information is normal.
In this embodiment, the interface connection information includes network port information, phone connection information, and USB interface information, and when determining whether the interface connection information is abnormal, it determines whether the network port information is abnormal, whether the phone connection information is abnormal, and whether the USB interface information is abnormal, specifically, for each optical network terminal to be detected, it determines whether it can receive and send information through a network interface corresponding to the network port information, whether it can receive and send information through a USB interface corresponding to the USB interface information, and whether it can receive and send a call through a phone corresponding to the phone connection information.
Then, if the portal information is normal, the phone connection information is normal, and the USB interface information is normal, that is, it is determined based on the operation information that it can send and receive information through the network interface corresponding to the portal information, can send and receive information through the USB interface corresponding to the USB interface information, and can make and receive calls through the phone corresponding to the phone connection information, it is determined that the interface connection information is normal. If the network port information is abnormal, the telephone set connection information is abnormal and/or the USB interface information is abnormal, the interface connection information is determined to be abnormal, namely when any one or more of the network port information abnormality, the telephone set connection information abnormality and the USB interface information abnormality exists, the interface connection information is determined to be abnormal, namely, when at least one of the three conditions that the operation information determines that the operation information does not send and receive information through a network interface corresponding to the network port information, does not send and receive information through a USB interface corresponding to the USB interface information and does not receive and send information through a telephone set corresponding to the telephone set connection information exists, the interface connection information is determined to be abnormal, and the abnormal information comprises information corresponding to an interface (at least one of the network interface, the USB interface and the telephone set interface) which is currently abnormal in the operation information.
Further, in an embodiment, after step S201, when the interface connection information includes telephone connection information, the method for testing a passive optical network device further includes:
step a, determining whether telephone ringing information exists in the operation information;
and b, if the ringing information of the telephone does not exist in the running information, determining that abnormal information exists in the running information, wherein the abnormal information comprises the ringing abnormal information of the telephone.
In this embodiment, for each optical network terminal to be detected, the operation information further includes telephone ringing information, and it is determined whether the telephone can ring normally by determining that the telephone ringing information exists in the operation information. If the ringing information of the telephone does not exist in the operation information, the telephone cannot ring normally, and then the abnormal information exists in the operation information, wherein the abnormal information comprises the ringing abnormal information of the telephone, the telephone ringing information is used for accurately testing whether the telephone corresponding to each optical network terminal can ring normally, and the testing efficiency and the accuracy of the optical network terminal are further improved.
In the testing method of the passive optical network device provided in this embodiment, whether the information of the network port is abnormal, whether the information of the telephone connection is abnormal, and whether the information of the USB interface is abnormal are determined; then if the internet access information is abnormal, the telephone connection information is abnormal and/or the USB interface information is abnormal, determining that the interface connection information is abnormal; and then if the network port information is normal, the telephone set connection information is normal and the USB interface information is normal, determining that the interface connection information is normal, and accurately determining whether the interface connection information is abnormal according to the network port information, the telephone set connection information and the USB interface information, so that accurate testing of each interface is realized, and the testing efficiency and accuracy of the optical network terminal are further improved.
Based on the first embodiment, a fifth embodiment of the testing method of a passive optical network device according to the present invention is provided, in this embodiment, after step S102, the testing method of a passive optical network device further includes:
step S501, if the abnormal information does not exist, accumulating the first acquisition times of the operation information;
step S502, if the first obtaining times does not reach the preset times, the relay is controlled based on the UART interface so as to disconnect the target control switch, and the step of controlling the relay based on the UART interface is returned to be executed.
In this embodiment, if there is no abnormal information, that is, the operation information of each current optical network terminal to be detected is normal, the first obtaining times of the operation information is accumulated; and determining whether the first obtaining time reaches a preset time, wherein the preset time may be reasonably set, for example, the preset time is 3, 5, etc., and an initial value of the first obtaining time may be set to 0.
And then, if the first acquisition times do not reach the preset times, the testing device of the passive optical network equipment controls the relay based on the UART interface so as to disconnect the target control switch, specifically, the testing device of the passive optical network equipment sends a disconnection instruction of the target control switch to the relay through the UART interface, the relay disconnects the target control switch according to the disconnection instruction so as to disconnect the target control switch, and then a target optical network terminal electrically connected with the target control switch is powered off, and then the step of controlling the relay based on the UART interface is returned to be executed, so that multiple tests of each optical network terminal to be detected are realized, and the accuracy of stability tests of each optical network terminal is further ensured.
Further, in an embodiment, after step S501, the method for testing a passive optical network device further includes:
step S503, if the first obtaining times reaches a preset time, controlling the relay based on the UART interface to disconnect the target control switch, and sending the detection result information that the optical network terminal to be detected passes the detection to the target terminal.
In this embodiment, if the number of acquisition times reaches the preset number of times, the relay is controlled based on the UART interface so as to disconnect the target control switch, specifically, the testing apparatus of the passive optical network device sends a disconnection instruction of the target control switch to the relay through the UART interface, and the relay disconnects the target control switch according to the disconnection instruction, so that the target control switch is disconnected, and thus the target optical network terminal electrically connected to the target control switch is powered down. And then, sending the detection result information of the optical network terminal to be detected, which passes the detection, to the target terminal so as to determine that each optical network terminal passes the stability test when each optical network terminal passes the multiple tests and is normal, thereby further improving the accuracy of the optical network terminal in testing.
In the testing method of the passive optical network device provided in this embodiment, if the abnormal information does not exist, the first obtaining times of the operation information is accumulated; and then if the first acquisition times do not reach the preset times, controlling the relay based on the UART interface to disconnect the target control switch, and returning to execute the step of controlling the relay based on the UART interface to realize multiple tests of each optical network terminal to be detected, thereby ensuring the test accuracy of each optical network terminal.
Based on the foregoing embodiments, a sixth embodiment of the testing method of a passive optical network device according to the present invention is provided, in this embodiment, in step S103, the testing method of a passive optical network device further includes:
step S601, determining whether each optical network terminal to be detected has a qualified optical network terminal except the target optical network terminal;
step S602, if there is a qualified optical network terminal, accumulating a second acquisition frequency of the operation information corresponding to the qualified optical network terminal;
step S603, if the second obtaining times does not reach the preset times, using the qualified optical network terminal as an optical network terminal to be detected, and returning to execute the step of obtaining control switch information corresponding to a plurality of optical network terminals to be detected, and controlling the relay based on the UART interface.
In this embodiment, after the target optical network terminal is determined, it is determined whether each optical network terminal to be detected has a qualified optical network terminal other than the target optical network terminal, that is, the qualified optical network terminal is an optical network terminal that does not have abnormal information in the corresponding operation information during the test, that is, the qualified optical network terminal is an optical network terminal that exists in each optical network terminal to be detected currently and other than the target optical network terminal.
And if the qualified optical network terminals exist, accumulating the second acquisition times of the operation information corresponding to the qualified optical network terminals, namely accumulating the second acquisition times corresponding to each qualified optical network terminal respectively, and then determining whether the second acquisition times reach the preset times or not.
And if the second acquisition times do not reach the preset times, the qualified optical network terminal is used as an optical network terminal to be detected, control switch information corresponding to a plurality of optical network terminals to be detected is returned to be acquired, and the relay is controlled based on the UART interface, so that multiple tests of each optical network terminal to be detected are realized, and the test accuracy of each optical network terminal is further ensured.
It should be noted that, if the qualified optical network terminal includes a plurality of optical network terminals and different acquisition times exist in the second acquisition times, for each second acquisition time, it is respectively determined whether the second acquisition time reaches a preset time, if the second acquisition time does not reach the preset time, the optical network terminal corresponding to the second acquisition time in the qualified optical network terminal is used as an optical network terminal to be detected, and the step of executing to acquire control switch information corresponding to the plurality of optical network terminals to be detected is returned, and the relay is controlled based on the UART interface.
Further, in an embodiment, if the second obtaining time reaches a preset time, the relay is controlled based on the UART interface, so that the control switch corresponding to the qualified optical network terminal is turned off, and the detection result information of the qualified optical network terminal passing the detection is sent to the target terminal.
When each optical network terminal passes through the test for many times and is normal, each optical network terminal is determined to pass through the stability test, and the accuracy of the optical network terminal in testing is further improved.
In the testing method of the passive optical network device provided in this embodiment, whether each optical network terminal to be detected has a qualified optical network terminal other than the target optical network terminal is determined; if the qualified optical network terminal exists, accumulating second acquisition times of the operation information corresponding to the qualified optical network terminal; and if the second acquisition frequency does not reach the preset frequency, taking the qualified optical network terminal as an optical network terminal to be detected, returning to execute the step of acquiring control switch information corresponding to a plurality of optical network terminals to be detected, and controlling the relay based on the UART interface so as to determine that each optical network terminal passes the stability test when each optical network terminal passes multiple tests and is normal, thereby further improving the accuracy of the optical network terminal in testing.
In addition, an embodiment of the present invention further provides a testing device for a passive optical network device, where the testing device for the passive optical network device includes: memory, processor and test program of passive optical network device stored on the memory and operable on the processor, the test program of passive optical network device implementing the steps of the test method of passive optical network device as described above when executed by the processor
In addition, an embodiment of the present invention further provides a computer-readable storage medium, in which a test program of the passive optical network device is stored, and the test program of the passive optical network device, when executed by a processor, implements the steps of the test method of the passive optical network device described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. The testing method of the passive optical network equipment is characterized in that the testing method is applied to a testing device of the passive optical network equipment, the testing device of the passive optical network equipment is electrically connected with a relay through a UART interface, the relay is provided with a plurality of control switches, and each control switch is electrically connected with an optical network terminal of the passive optical network equipment; the testing method of the passive optical network equipment comprises the following steps:
acquiring control switch information corresponding to a plurality of optical network terminals to be detected, and controlling the relay based on the UART interface so as to electrify the optical network terminals to be detected by controlling the conduction of the control switches corresponding to the control switch information;
acquiring operation information of each optical network terminal to be detected, and determining whether abnormal information exists in each operation information;
if the abnormal information exists, determining a target control switch and a target optical network terminal corresponding to the abnormal information;
and controlling the relay based on the UART interface to disconnect the target control switch and send the abnormal detection information of the target optical network terminal to the target terminal.
2. The method for testing the passive optical network device according to claim 1, wherein the operation information includes interface connection information, boot time information, and memory usage rate information, and the step of determining whether the operation information includes abnormal information includes:
for the operation information of each optical network terminal to be detected, respectively determining whether the interface connection information is abnormal, whether the startup duration information is less than or equal to a preset startup duration, and whether the memory utilization rate information is less than or equal to a preset memory utilization rate;
if the interface connection information is abnormal, the starting-up time length information is greater than the preset starting-up time length and/or the memory utilization rate information is greater than the preset memory utilization rate, determining that abnormal information exists in the operation information, and taking the interface connection information, the starting-up time length information and/or the memory utilization rate information as the abnormal information.
3. The method for testing the passive optical network device according to claim 2, wherein the operation information further includes network connection information and configuration information, and after the steps of determining whether the interface connection information is abnormal, whether the startup duration information is less than or equal to a preset startup duration, and whether the memory usage rate information is less than or equal to a preset memory usage rate, respectively, the method further includes:
if the interface connection information is abnormal, the starting-up time length information is less than or equal to the preset starting-up time length, and the memory utilization rate information is less than or equal to the preset memory utilization rate, determining whether the network connection information is abnormal and whether the configuration information is complete;
if the network connection information is abnormal and/or the configuration information is incomplete, determining that abnormal information exists in the operation information, and taking the network connection information and/or the configuration information as the abnormal information.
4. The method for testing a passive optical network device according to claim 2, wherein the interface connection information includes network port information, telephone connection information, and USB interface information, and the step of determining whether the interface connection information is abnormal includes:
determining whether the internet access information is abnormal, whether the telephone connection information is abnormal and whether the USB interface information is abnormal;
if the internet access information is abnormal, the telephone connection information is abnormal and/or the USB interface information is abnormal, determining that the interface connection information is abnormal;
and if the internet access information is normal, the telephone connection information is normal and the USB interface information is normal, determining that the interface connection information is normal.
5. The method according to claim 4, wherein when the interface connection information includes phone connection information, after the steps of determining whether the interface connection information is abnormal, whether the startup duration information is less than or equal to a preset startup duration, and whether the memory usage rate information is less than or equal to a preset memory usage rate, respectively, the method further comprises:
determining whether telephone ringing information exists in the operation information;
if the running information does not contain telephone ringing information, determining that abnormal information exists in the running information, wherein the abnormal information comprises telephone ringing abnormal information.
6. The method for testing a passive optical network device according to claim 1, wherein after the step of determining whether there is abnormal information in each of the operation information, the method further comprises:
if the abnormal information does not exist, accumulating the first acquisition times of the operation information;
and if the first acquisition times do not reach the preset times, controlling the relay based on the UART interface to disconnect the target control switch, and returning to execute the step of controlling the relay based on the UART interface.
7. The method for testing a passive optical network device according to claim 6, wherein after the step of accumulating the first acquisition times of the operation information if the abnormal information does not exist, the method further comprises:
and if the first acquisition times reach preset times, controlling the relay based on the UART interface to disconnect the target control switch and send the detection result information of the optical network terminal to be detected passing detection to the target terminal.
8. The method for testing passive optical network device according to any of claims 1 to 7, wherein if the abnormal information exists, after the step of determining the target control switch and the target optical network terminal corresponding to the abnormal information, the method for testing passive optical network device further comprises:
determining whether each optical network terminal to be detected has a qualified optical network terminal except the target optical network terminal;
if the qualified optical network terminal exists, accumulating the second acquisition times of the operation information corresponding to the qualified optical network terminal;
and if the second acquisition times do not reach the preset times, taking the qualified optical network terminal as an optical network terminal to be detected, returning to execute the steps of acquiring control switch information corresponding to a plurality of optical network terminals to be detected and controlling the relay based on the UART interface.
9. A testing apparatus of a passive optical network device, the testing apparatus of the passive optical network device comprising: memory, a processor and a test program of a passive optical network device stored on the memory and executable on the processor, the test program of the passive optical network device implementing the steps of the method for testing a passive optical network device according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a test program of a passive optical network device, which when executed by a processor implements the steps of the method for testing a passive optical network device according to any one of claims 1 to 8.
CN202210603476.9A 2022-05-31 2022-05-31 Testing method and device of passive optical network equipment and readable storage medium Active CN114696894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210603476.9A CN114696894B (en) 2022-05-31 2022-05-31 Testing method and device of passive optical network equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210603476.9A CN114696894B (en) 2022-05-31 2022-05-31 Testing method and device of passive optical network equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114696894A true CN114696894A (en) 2022-07-01
CN114696894B CN114696894B (en) 2022-11-08

Family

ID=82131068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210603476.9A Active CN114696894B (en) 2022-05-31 2022-05-31 Testing method and device of passive optical network equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114696894B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110069955A1 (en) * 2007-09-21 2011-03-24 Nokia Siemens Networks Oy Failsafe optical splitter and method to isolate faults in a passive optical network
CN105375980A (en) * 2015-11-27 2016-03-02 上海斐讯数据通信技术有限公司 Device and method for detecting continuous light emission of multi-channel optical network unit
CN105790827A (en) * 2016-04-19 2016-07-20 深圳极智联合科技股份有限公司 Optical network terminal BOB calibration testing system and method thereof
CN107070546A (en) * 2017-03-22 2017-08-18 深圳市共进电子股份有限公司 A kind of method of testing of smooth transceiver module, apparatus and system
CN107220181A (en) * 2017-06-16 2017-09-29 瑞斯康达科技发展股份有限公司 A kind of abnormal process localization method, apparatus and system
CN109684146A (en) * 2018-12-28 2019-04-26 北京旷视科技有限公司 Upper and lower electric test method, device, system and processing equipment
CN109687905A (en) * 2019-01-24 2019-04-26 国网上海市电力公司 A kind of intelligent substation communication link abnormal state detection system
CN110519115A (en) * 2019-07-11 2019-11-29 深圳壹账通智能科技有限公司 Gateway interface test method, terminal device, storage medium and device
CN111124908A (en) * 2019-12-19 2020-05-08 广州品唯软件有限公司 Interface testing method and device and computer readable storage medium
CN112187354A (en) * 2020-09-29 2021-01-05 深圳市新龙鹏科技有限公司 Stability testing method and system based on multiple ONU (optical network Unit) devices
WO2021082670A1 (en) * 2019-10-28 2021-05-06 华为技术有限公司 Passive optical network detection method and apparatus, and system
CN113259349A (en) * 2021-05-12 2021-08-13 国家计算机网络与信息安全管理中心 Monitoring method and device for rail transit control network

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110069955A1 (en) * 2007-09-21 2011-03-24 Nokia Siemens Networks Oy Failsafe optical splitter and method to isolate faults in a passive optical network
CN105375980A (en) * 2015-11-27 2016-03-02 上海斐讯数据通信技术有限公司 Device and method for detecting continuous light emission of multi-channel optical network unit
CN105790827A (en) * 2016-04-19 2016-07-20 深圳极智联合科技股份有限公司 Optical network terminal BOB calibration testing system and method thereof
CN107070546A (en) * 2017-03-22 2017-08-18 深圳市共进电子股份有限公司 A kind of method of testing of smooth transceiver module, apparatus and system
CN107220181A (en) * 2017-06-16 2017-09-29 瑞斯康达科技发展股份有限公司 A kind of abnormal process localization method, apparatus and system
CN109684146A (en) * 2018-12-28 2019-04-26 北京旷视科技有限公司 Upper and lower electric test method, device, system and processing equipment
CN109687905A (en) * 2019-01-24 2019-04-26 国网上海市电力公司 A kind of intelligent substation communication link abnormal state detection system
CN110519115A (en) * 2019-07-11 2019-11-29 深圳壹账通智能科技有限公司 Gateway interface test method, terminal device, storage medium and device
WO2021082670A1 (en) * 2019-10-28 2021-05-06 华为技术有限公司 Passive optical network detection method and apparatus, and system
CN111124908A (en) * 2019-12-19 2020-05-08 广州品唯软件有限公司 Interface testing method and device and computer readable storage medium
CN112187354A (en) * 2020-09-29 2021-01-05 深圳市新龙鹏科技有限公司 Stability testing method and system based on multiple ONU (optical network Unit) devices
CN113259349A (en) * 2021-05-12 2021-08-13 国家计算机网络与信息安全管理中心 Monitoring method and device for rail transit control network

Also Published As

Publication number Publication date
CN114696894B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
US8483562B2 (en) Method and apparatus for integrating automated switching in a passive optical network
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN102821150B (en) Based on application management method and the Cloud Server of cloud service
CN107770279A (en) Remote upgrade method and system
CN108833172B (en) Network fault alarm processing method and device and network system
CN103516851A (en) Cloud testing platform system for wireless products
CN102111728A (en) Network connection management module and method of mobile terminal
CN114696894B (en) Testing method and device of passive optical network equipment and readable storage medium
US11088905B2 (en) Service bandwidth provisioning on passive optical networks
US20200274618A1 (en) Method, device and computer-readable storage medium implemented in optical network
CN112367499A (en) Server side for remote monitoring of electric power equipment and electric power data processing method of monitoring side
CN110099315B (en) Device for detecting resources in pon network
CN104125593A (en) Information processing method and electronic equipment
CN105634590A (en) Ether passive optical network optical path diagnosis method
CN115022116A (en) Radio remote communication system and control method thereof
CN105786534B (en) Information acquisition method and device
CN112667868B (en) Data detection method and device
CN103188654A (en) System and device for updating mobile phone states
CN110120880B (en) Component updating method and system
CN111585804A (en) Router automatic configuration system, router automatic configuration method and automatic test system
CN112399242A (en) Mobile network connection method, device, equipment and medium based on television
CN219420925U (en) On-off control device of network module and on-off control system of network module
US11967993B2 (en) Communication apparatus
CN112492575B (en) Execution path setting method and device, storage medium and mobile terminal
CN112260901B (en) Network damage instrument and use method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant