CN113904718B - Optical module detection method, terminal equipment and computer readable storage medium - Google Patents

Optical module detection method, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN113904718B
CN113904718B CN202111497699.3A CN202111497699A CN113904718B CN 113904718 B CN113904718 B CN 113904718B CN 202111497699 A CN202111497699 A CN 202111497699A CN 113904718 B CN113904718 B CN 113904718B
Authority
CN
China
Prior art keywords
parameter
optical module
cloud server
dynamic
analysis result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111497699.3A
Other languages
Chinese (zh)
Other versions
CN113904718A (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 Rapid Innovation Technology Co ltd
Original Assignee
Shenzhen Rapid Innovation Technology 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 Rapid Innovation Technology Co ltd filed Critical Shenzhen Rapid Innovation Technology Co ltd
Priority to CN202111497699.3A priority Critical patent/CN113904718B/en
Publication of CN113904718A publication Critical patent/CN113904718A/en
Application granted granted Critical
Publication of CN113904718B publication Critical patent/CN113904718B/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/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0793Network aspects, e.g. central monitoring of transmission parameters
    • 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/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application is applicable to the technical field of communication, and provides an optical module detection method, terminal equipment and a computer readable storage medium, which are applied to a detection device and comprise the following steps: after an optical module is connected to the switch, monitoring a data viewing request of a cloud server matched with the detection device; when the data viewing request is monitored, acquiring a static parameter and a first dynamic parameter of the optical module through the switch; generating a first data analysis result according to the static parameter and the first dynamic parameter; and feeding back the first data analysis result to the cloud server so that a user can obtain the data analysis result from the cloud server through a client. By the method, the running state of the optical module can be monitored in real time, and the data transmission quality is further ensured.

Description

Optical module detection method, terminal equipment and computer readable storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to an optical module detection method, a terminal device, and a computer-readable storage medium.
Background
With the advent of the 5G data age, users have made higher demands on data transmission quality and speed. The optical module is a key photoelectric conversion device for data transmission, and comprises a photoelectronic device, a functional circuit, an optical interface and the like, wherein the photoelectronic device comprises a transmitting end and a receiving end. The optical module has the functions that an electric signal is converted into an optical signal through a sending end in the optoelectronic device, and the optical signal is converted into the electric signal through a receiving end after the optical signal is transmitted through an optical fiber. The influence of the performance of the optical module on the data transmission quality is particularly important.
In the prior art, the optical module is usually detected offline, and the mode cannot monitor the operation parameters of the optical module in real time and cannot grasp the operation state of the optical module in time. When the optical module breaks down, the fault cannot be found in time, so that the optical module cannot be replaced in time, and the data transmission quality is further reduced.
Disclosure of Invention
The embodiment of the application provides an optical module detection method, terminal equipment and a computer readable storage medium, which can monitor the running state of an optical module in real time and further ensure the data transmission quality.
In a first aspect, an embodiment of the present application provides an optical module detection method, which is applied to a detection apparatus, and the method includes:
after an optical module is connected to the switch, monitoring a data viewing request of a cloud server matched with the detection device;
when the data viewing request is monitored, acquiring a static parameter and a first dynamic parameter of the optical module through the switch;
generating a first data analysis result according to the static parameter and the first dynamic parameter;
and feeding back the first data analysis result to the cloud server so that a user can obtain the data analysis result from the cloud server through a client.
In the embodiment of the application, the static parameters and the dynamic parameters of the optical module are acquired in real time through the switch, and further, data analysis results can be generated in real time according to the static parameters and the dynamic parameters and sent to the cloud server; therefore, a user can acquire a data analysis result from the cloud server through the client to master the running state of the optical module in real time. In addition, due to the fact that the data analysis result is uploaded to the cloud server, even if the client, the switch and the detection system are in different networks, a user can master the running state of the optical module in real time, and user experience is improved.
In a possible implementation manner of the first aspect, the static parameter includes a preset threshold, and the preset threshold represents a value range of the dynamic parameter;
the first dynamic parameters comprise dynamic parameters corresponding to each time from a first time to a second time, wherein the first time is the time when the optical module is accessed to the switch, and the second time is the time when the data viewing request is monitored;
generating a first data analysis result according to the static parameter and the first dynamic parameter includes:
judging whether the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold value or not;
if the first dynamic parameter has a dynamic parameter which does not meet the preset threshold, generating alarm information, wherein the alarm information is the first data analysis result;
and if the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold, generating a data change curve according to the first dynamic parameter, wherein the data change curve is the first data analysis result.
In a possible implementation manner of the first aspect, if there is a dynamic parameter that does not satisfy the preset threshold in the first dynamic parameter, generating alarm information includes:
and generating the alarm information according to a target parameter, the preset threshold and a moment corresponding to the target parameter, wherein the target parameter is a dynamic parameter which does not meet the preset threshold in the first dynamic parameter.
In a possible implementation manner of the first aspect, the generating the alarm information according to a target parameter, the preset threshold, and a time corresponding to the target parameter includes:
calculating a parameter difference value between the target parameter and the preset threshold value;
acquiring a first numerical value interval to which the parameter difference value belongs;
acquiring an alarm level corresponding to the first numerical value interval;
and generating the alarm information according to the alarm level and the time corresponding to the target parameter.
In a possible implementation manner of the first aspect, after the alarm information is generated according to the alarm level and the time corresponding to the target parameter, the method further includes:
counting the ratio of the number of moments at a target moment to the total number of moments, wherein the target moment is the moment corresponding to the target parameter when the alarm level reaches a preset level, and the total number of moments is the total number of moments included from the first moment to the second moment;
and if the ratio reaches a preset ratio, sending module replacement information to the cloud server, wherein the module replacement information is used for indicating a user to replace the optical module.
In a possible implementation manner of the first aspect, before monitoring a data viewing request of a cloud server matched with the detection apparatus, the method further includes:
acquiring a communication address of the cloud server;
and establishing communication connection with the cloud server according to the communication address of the cloud server.
In a possible implementation manner of the first aspect, after the optical module accesses the switch, the method further includes:
acquiring a second dynamic parameter of the optical module through the switch at preset time intervals;
generating a second data analysis result according to the static parameter and the second dynamic parameter;
and sending the second data analysis result to the cloud server.
In a possible implementation manner of the first aspect, after the data viewing request is monitored, the method further includes, after the static parameter and the first dynamic parameter of the optical module are acquired by the switch, the method further includes:
and sending the static parameter and the first dynamic parameter to the cloud server to instruct the cloud server to generate a third data analysis result according to the static parameter and the first dynamic parameter.
In a second aspect, an embodiment of the present application provides an optical module detecting apparatus, including:
the request monitoring unit is used for monitoring a data viewing request of the cloud server matched with the detection device after the optical module is connected to the switch;
the parameter acquisition unit is used for acquiring the static parameters and the first dynamic parameters of the optical module through the switch when the data viewing request is monitored;
the first generation unit is used for generating a first data analysis result according to the static parameters and the first dynamic parameters;
and the result sending unit is used for feeding back the first data analysis result to the cloud server so that a user can obtain the data analysis result from the cloud server through a client.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the light module detection method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, and the embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program is executed by a processor, and is configured to implement the light module detection method according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when running on a terminal device, causes the terminal device to execute the optical module detection method described in any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic view of a detection system provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a light module detection method provided in an embodiment of the present application;
FIG. 3 is a block diagram of a detection apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when.. or" upon "or" in response to a determination "or" in response to a detection ".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise.
Referring to fig. 1, a schematic diagram of a detection system provided in an embodiment of the present application is shown. As shown in fig. 1, the detection system may include a detection apparatus 11, a switch 12, a cloud server 13, and a client 14.
In an application scenario, the detection device is an independent terminal device, and is in communication connection with the switch and the cloud server respectively, and the cloud server is in communication connection with the client. In the detection process, the optical module is inserted into the switch, and the switch acquires the parameters of the optical module and sends the parameters to the detection device; the detection device generates a data analysis result according to the received parameters and sends the data analysis result to the cloud server; and the user acquires a data analysis result from the cloud server through the client. Fig. 1 shows only a schematic diagram of the detection system in this application scenario.
In another application scenario, the detection device may be a virtual device, and may be installed in a switch. For example, the detecting means is a program for detecting the performance of the optical module, installed in a switch, and the switch executes the program. In the detection process, the optical module is inserted into the switch, the processor of the switch acquires the parameters of the optical module, then the program is operated to generate a data analysis result according to the acquired parameters, and the data analysis result is sent to the cloud server; and the user acquires a data analysis result from the cloud server through the client. Of course, the program may be installed in another terminal device and executed by the other terminal device.
Fig. 2 is a schematic flowchart of a light module detection method provided in the embodiment of the present application. When the detection device is an independent terminal device, the following main execution body of the optical module detection method is the detection device; when the detection device is a virtual device, the following optical module detection method is executed mainly by a device (such as the processor of the switch described above) to which the detection device is attached. By way of example and not limitation, the method may include the steps of:
and S201, after the optical module is connected to the switch, monitoring a data viewing request of a cloud server matched with the detection device.
In the embodiment of the application, the detection device is matched with the cloud server, that is, the detection device and the cloud server are in communication connection.
In one embodiment, prior to monitoring the data viewing request, the method further comprises:
acquiring a communication address of a cloud server; and establishing communication connection with the cloud server according to the communication address of the cloud server.
In one application scenario, when the detection device is a program, the program is injected into the switch. In the program initialization stage, the communication address of the cloud server is configured into a program as a program parameter.
S202, when a data viewing request is monitored, the static parameters and the first dynamic parameters of the optical module are obtained through the switch.
In the embodiment of the present application, the static parameter refers to a parameter that does not change with time, and includes, for example, a model number of an optical module, manufacturer information, a serial number, a production date, a software version, a transmission distance, a transmission rate, a wavelength, a transmission type, a compatible mode, a temperature range, a voltage range, a current range, a transmission power range, a reception power range, and the like. Dynamic parameters refer to parameters that may change over time, including, for example, temperature, voltage, current, transmit power, and receive power.
In the embodiment of the application, the dynamic parameters are not acquired by using the conventional CLI instruction of the switch, but acquired by calling the kernel of the underlying system of the switch through a custom function. By the method, the monitoring processes of data and the like only need to occupy smaller switch resources, and the network performance is not affected.
In addition, in this manner, the frequency of monitoring of dynamic parameters may be controlled, for example, by setting a timer in the program and executing a custom function each time the timer reaches a timed event. The longer the timing time, the lower the monitoring frequency, and correspondingly, the smaller the required data processing amount; conversely, the shorter the timing time, the higher the monitoring frequency and, correspondingly, the greater the amount of data processing required. The timing time can be set according to actual needs.
Of course, the timing time may also be set separately for different types of dynamic parameters. For example: for the temperature of the optical module, the monitoring frequency can be lower; the monitoring frequency may be higher for both transmit power and receive power.
S203, generating a first data analysis result according to the static parameters and the first dynamic parameters.
In the embodiment of the present application, the static parameter includes a preset threshold, and the preset threshold represents a value range of the dynamic parameter. Temperature range, voltage range, current range, transmit power range, and receive power range as described in S202. The first dynamic parameters comprise dynamic parameters corresponding to each time from a first time to a second time, wherein the first time is the time when the optical module is accessed to the switch, and the second time is the time when the data viewing request is monitored. In other words, when the optical module is inserted into the switch, the monitoring of the dynamic parameters of the optical module is maintained, and when a data viewing request is received, a data analysis result is generated from the currently monitored dynamic data.
It should be noted that, when a data viewing request of the cloud server is monitored again, in order to reduce data processing amount, a third data analysis result may be generated according to the static parameters and a third dynamic parameter, where the third dynamic parameter includes a dynamic parameter corresponding to each of the third time to a fourth time, the third time is a time when the data viewing request is monitored last time, and the fourth time is a time when the data viewing request is monitored this time. Optionally, the third data analysis result may be sent to the cloud server, or the third data analysis result and the first data analysis result may be merged into a fourth data analysis result, and the fourth data analysis result is sent to the cloud server.
In one embodiment, S203 may include:
judging whether the dynamic parameter at each moment in the first dynamic parameter meets a preset threshold value or not;
if the first dynamic parameters have dynamic parameters which do not meet the preset threshold value, generating alarm information, wherein the alarm information is the first data analysis result;
and if the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold, generating a data change curve according to the first dynamic parameter, wherein the data change curve is a first data analysis result.
As described in S202, the dynamic parameters may include various types of parameters, and correspondingly, the static parameters may also include preset thresholds of various types of parameters. Therefore, in the embodiment of the present application, determining whether the dynamic parameter at each time in the first dynamic parameter meets the preset threshold refers to determining whether each dynamic parameter at each time in the first dynamic parameter meets the preset threshold corresponding to each dynamic parameter.
For example: it is assumed that the first dynamic parameters include the 1 st to 3 rd dynamic parameters, which in turn include the transmission power and the reception power. Judging whether the transmitting power of the 1 st s meets a transmitting power range or not and whether the receiving power meets a receiving power range or not; judging whether the transmitting power of the 2s meets a transmitting power range or not and whether the receiving power meets a receiving power range or not; and judging whether the transmitting power of the 3s meets the transmitting power range or not and whether the receiving power meets the receiving power range or not.
Optionally, the step of generating the alarm information may include:
and generating alarm information according to the target parameters, the preset threshold and the time corresponding to the target parameters, wherein the target parameters are dynamic parameters which do not meet the preset threshold in the first dynamic parameters.
Continuing with the above example, assuming that the reception power of the 2s does not satisfy the reception power range and the transmission power of the 3s does not satisfy the transmission power range, the target parameters are the reception power of the 2s and the transmission power of the 3s, and the time corresponding to the target parameters are the 2s and the 3s, respectively.
Further, the step of generating alarm information may further include:
calculating a parameter difference value between the target parameter and a preset threshold value; acquiring a first numerical value interval to which the parameter difference value belongs; acquiring an alarm level corresponding to the first numerical value interval; and generating alarm information according to the alarm level and the time corresponding to the target parameter.
In the embodiment of the present application, the alarm levels and the numerical value intervals corresponding to the alarm levels may be divided in advance. For example: for the temperature, a first level was set from-3 degrees to 73 degrees, and a second level was set below-10 degrees and above 80 degrees. The alarm information corresponding to the two levels is different. For example, the first level may be used for prompting that the corresponding alarm information is "attentive temperature"; the second level is warning, and corresponding warning information is 'temperature seriously exceeds the standard'. Of course, the above is merely an example, and the alarm level and the alarm information are not particularly limited. The alarm information may be information such as symbols, letters, or numbers that can indicate different meanings.
Optionally, after generating the alarm information, the method may further include:
counting the ratio of the number of moments of the target moment to the total number of moments, wherein the target moment is the moment corresponding to the target parameter of which the alarm level reaches a preset level, and the total number of moments is the total number of moments included from the first moment to the second moment; and if the ratio reaches a preset ratio, sending module replacement information to the cloud server, wherein the module replacement information is used for indicating a user to replace the optical module.
Illustratively, the total number of time instants is 10, that is, 10 monitoring time instants are included in total from the first time instant to the second time instant. The number of the target time to the time is 6, namely, the dynamic parameters corresponding to the 6 monitoring times exceed the preset threshold value and the alarm level reaches the preset level. The ratio was 6/10= 0.6. And if the preset ratio is 0.5 and 0.6 is greater than 0.5, sending the module replacement information to the cloud server.
In an embodiment, the number of times of the target time corresponding to each type of dynamic parameter may be counted, and accordingly, the replacement module information includes replacement information corresponding to each type of dynamic parameter. For example, assuming that the first dynamic data includes dynamic parameters from each time point 1s to 10s, the total number of time points is 10. Wherein, the temperatures from the 5 th to the 10 th are seriously out of limit, the receiving powers from the 5 th to the 8 th are seriously out of limit, and the target time is the 5 th to the 10 th, which are 6 target times. The ratio of the number of times of the target time corresponding to the calculated temperature to the total number of times is 6/10=0.6, and the ratio of the number of times of the target time corresponding to the received power to the total number of times is 4/10= 0.4. If the predetermined ratio is 0.5, the ratio corresponding to the temperature exceeds the predetermined ratio, and the ratio corresponding to the received power does not exceed the predetermined ratio. Temperature submodule replacement information may be sent to the server to indicate that a temperature submodule in the optical module needs to be replaced.
And S204, feeding back the first data analysis result to the cloud server so that the user can obtain the data analysis result from the cloud server through the client.
In practical application, the cloud server can be deployed on the internet and can also be deployed privately according to user requirements.
In the embodiment of the application, the static parameters and the dynamic parameters of the optical module are acquired in real time through the switch, and further, data analysis results can be generated in real time according to the static parameters and the dynamic parameters and sent to the cloud server; therefore, a user can acquire a data analysis result from the cloud server through the client to master the running state of the optical module in real time. In addition, due to the fact that the data analysis result is uploaded to the cloud server, even if the client, the switch and the detection system are in different networks, a user can master the running state of the optical module in real time, and user experience is improved.
In the above S201-S204, an implementation manner is described in which the detection device passively sends the data analysis result to the cloud server, that is, when the cloud server sends a data viewing request, the detection device generates the data analysis result and sends the data analysis result to the cloud server. In one embodiment, the detection device may also actively report the data analysis result. Specifically, after the optical module accesses the switch, the method further includes:
acquiring a second dynamic parameter of the optical module through the switch at preset time intervals; generating a second data analysis result according to the static parameters and the second dynamic parameters; and sending the second data analysis result to the cloud server.
In this embodiment, the step of generating the second data analysis result according to the static parameter and the second dynamic parameter is the same as that in S203, which may specifically refer to the example in S203, and is not described herein again.
In an application scenario, a user sends a data viewing request to a cloud server through a client, the cloud server forwards the data viewing request to a detection device, and the detection device monitors the data viewing request and executes steps S201 to S204. In another application scenario, the cloud server sends a data viewing request to the detection device at preset intervals, and the detection device executes steps S201 to S204 each time it monitors the data viewing request; when a user obtains data analysis results from the cloud server through the client, the cloud server sends all the currently obtained data analysis results to the client.
In one embodiment, in S202, after monitoring the data viewing request and acquiring the static parameter and the first dynamic parameter of the optical module through the switch, the method further includes:
and sending the static parameters and the first dynamic parameters to the cloud server to instruct the cloud server to generate a third data analysis result according to the static parameters and the first dynamic parameters.
In the implementation of the application, the detection device is used for acquiring parameters of the optical module from the switch and sending the acquired parameters to the cloud server; and the cloud server generates a third data analysis result according to the received parameters. In this case, the data processing amount of the detection device is small, and the data processing amount of the cloud server is large. In practical application, whether the data analysis result is generated by the detection device or the data analysis result is generated by the cloud server can be selected according to actual needs. Of course, the detection device and the cloud server may generate data analysis results respectively, then compare the two data analysis results, and send the two data analysis results to the client if the two data analysis results are consistent.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 3 is a block diagram of a detection apparatus according to an embodiment of the present application, which corresponds to the optical module detection method described in the foregoing embodiment, and only the relevant parts of the embodiment of the present application are shown for convenience of description.
Referring to fig. 3, the apparatus includes:
and the request monitoring unit 31 is configured to monitor a data viewing request of the cloud server matched with the detection device after the optical module is connected to the switch.
And a parameter obtaining unit 32, configured to obtain, through the switch, a static parameter and a first dynamic parameter of the optical module when the data viewing request is monitored.
The first generating unit 33 is configured to generate a first data analysis result according to the static parameter and the first dynamic parameter.
A result sending unit 34, configured to feed back the first data analysis result to the cloud server, so that a user obtains the data analysis result from the cloud server through a client.
Optionally, the static parameter includes a preset threshold, and the preset threshold represents a value range of the dynamic parameter; the first dynamic parameter includes a dynamic parameter corresponding to each time from a first time to a second time, the first time is a time when the optical module is accessed to the switch, and the second time is a time when the data viewing request is monitored.
Correspondingly, the first generating unit 33 is further configured to:
judging whether the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold value or not;
if the first dynamic parameter has a dynamic parameter which does not meet the preset threshold, generating alarm information, wherein the alarm information is the first data analysis result;
and if the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold, generating a data change curve according to the first dynamic parameter, wherein the data change curve is the first data analysis result.
Optionally, the first generating unit 33 is further configured to:
and generating the alarm information according to a target parameter, the preset threshold and a moment corresponding to the target parameter, wherein the target parameter is a dynamic parameter which does not meet the preset threshold in the first dynamic parameter.
Optionally, the first generating unit 33 is further configured to:
calculating a parameter difference value between the target parameter and the preset threshold value; acquiring a first numerical value interval to which the parameter difference value belongs; acquiring an alarm level corresponding to the first numerical value interval; and generating the alarm information according to the alarm level and the time corresponding to the target parameter.
Optionally, the apparatus 3 further comprises:
a replacement prompting unit 35, configured to count a ratio of a number of times of a target time to a total number of times after generating the alarm information according to the alarm level and the time corresponding to the target parameter, where the target time is a time corresponding to the target parameter when the alarm level reaches a preset level, and the total number of times is a total number of times included in the second time from the first time; and if the ratio reaches a preset ratio, sending module replacement information to the cloud server, wherein the module replacement information is used for indicating a user to replace the optical module.
Optionally, the apparatus 3 further comprises:
the communication connection unit 36 is configured to acquire a communication address of the cloud server before monitoring a data viewing request of the cloud server matched with the detection device; and establishing communication connection with the cloud server according to the communication address of the cloud server.
Optionally, the apparatus 3 further comprises:
a second generating unit 37, configured to obtain, by an optical module, a second dynamic parameter of the optical module at preset time intervals after the optical module accesses to a switch; generating a second data analysis result according to the static parameter and the second dynamic parameter; and sending the second data analysis result to the cloud server.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
The optical module detection apparatus shown in fig. 3 may be a software unit, a hardware unit, or a combination of software and hardware unit built in the existing terminal device, may be integrated into the terminal device as an independent pendant, or may exist as an independent terminal device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 4 of this embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, wherein the processor 40 executes the computer program 42 to implement the steps in any of the various light module detection method embodiments described above.
The terminal device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The terminal device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that fig. 4 is merely an example of the terminal device 4, and does not constitute a limitation of the terminal device 4, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 40 may be a Central Processing Unit (CPU), and the Processor 40 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may in some embodiments be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. In other embodiments, the memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The memory 41 may also be used to temporarily store data that has been output or is to be output.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a terminal device, enables the terminal device to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer Memory, Read-Only Memory (ROM), Random-Access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A method for detecting a light module is applied to a detection device, and comprises the following steps:
after an optical module is connected to the switch, monitoring a data viewing request of a cloud server matched with the detection device;
when the data viewing request is monitored, acquiring a static parameter and a first dynamic parameter of the optical module through the switch;
generating a first data analysis result according to the static parameter and the first dynamic parameter;
feeding back the first data analysis result to the cloud server so that a user can obtain the data analysis result from the cloud server through a client;
the static parameters comprise preset thresholds, and the preset thresholds represent the value ranges of the dynamic parameters;
the first dynamic parameters comprise dynamic parameters corresponding to each time from a first time to a second time, wherein the first time is the time when the optical module is accessed to the switch, and the second time is the time when the data viewing request is monitored;
generating a first data analysis result according to the static parameter and the first dynamic parameter includes:
judging whether the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold value or not;
if the first dynamic parameter has a dynamic parameter which does not meet the preset threshold, generating alarm information, wherein the alarm information is the first data analysis result;
if the dynamic parameter at each moment in the first dynamic parameter meets the preset threshold, generating a data change curve according to the first dynamic parameter, wherein the data change curve is the first data analysis result;
and calling the switch bottom system kernel to acquire the first dynamic parameter through a custom function.
2. The optical module detection method according to claim 1, wherein if there is a dynamic parameter that does not satisfy the preset threshold in the first dynamic parameter, generating an alarm message includes:
and generating the alarm information according to a target parameter, the preset threshold and a moment corresponding to the target parameter, wherein the target parameter is a dynamic parameter which does not meet the preset threshold in the first dynamic parameter.
3. The optical module detection method according to claim 2, wherein the generating the alarm information according to the target parameter, the preset threshold, and the time corresponding to the target parameter includes:
calculating a parameter difference value between the target parameter and the preset threshold value;
acquiring a first numerical value interval to which the parameter difference value belongs;
acquiring an alarm level corresponding to the first numerical value interval;
and generating the alarm information according to the alarm level and the time corresponding to the target parameter.
4. A light module detection method as claimed in claim 3, characterized in that after generating the alarm information according to the alarm level and the time corresponding to the target parameter, the method further comprises:
counting the ratio of the number of moments at a target moment to the total number of moments, wherein the target moment is the moment corresponding to the target parameter when the alarm level reaches a preset level, and the total number of moments is the total number of moments included from the first moment to the second moment;
and if the ratio reaches a preset ratio, sending module replacement information to the cloud server, wherein the module replacement information is used for indicating a user to replace the optical module.
5. The light module detection method of claim 1, wherein prior to monitoring a data view request of a cloud server matched to the detection device, the method further comprises:
acquiring a communication address of the cloud server;
and establishing communication connection with the cloud server according to the communication address of the cloud server.
6. The optical module detection method of claim 1, wherein after an optical module accesses a switch, the method further comprises:
acquiring a second dynamic parameter of the optical module through the switch at preset time intervals;
generating a second data analysis result according to the static parameter and the second dynamic parameter;
and sending the second data analysis result to the cloud server.
7. The optical module detection method of claim 1, wherein after the data view request is monitored, the static parameters and the first dynamic parameters of the optical module are acquired by the switch, the method further comprising:
and sending the static parameter and the first dynamic parameter to the cloud server to instruct the cloud server to generate a third data analysis result according to the static parameter and the first dynamic parameter.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111497699.3A 2021-12-09 2021-12-09 Optical module detection method, terminal equipment and computer readable storage medium Active CN113904718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111497699.3A CN113904718B (en) 2021-12-09 2021-12-09 Optical module detection method, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111497699.3A CN113904718B (en) 2021-12-09 2021-12-09 Optical module detection method, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113904718A CN113904718A (en) 2022-01-07
CN113904718B true CN113904718B (en) 2022-04-01

Family

ID=79025648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111497699.3A Active CN113904718B (en) 2021-12-09 2021-12-09 Optical module detection method, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113904718B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359959A (en) * 2008-09-17 2009-02-04 中兴通讯股份有限公司 Information acquisition method for fault locating analysis
WO2015081686A1 (en) * 2013-12-06 2015-06-11 中兴通讯股份有限公司 Method and apparatus for reading optical module information using software
WO2016062154A1 (en) * 2014-10-21 2016-04-28 中兴通讯股份有限公司 Information acquisition method and device, and communication system
WO2021032292A1 (en) * 2019-08-20 2021-02-25 Telefonaktiebolaget Lm Ericsson (Publ) Fault classification

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547127A (en) * 2016-06-29 2018-01-05 中兴通讯股份有限公司 A kind of failure information obtaining method and device
CN111131936B (en) * 2019-12-28 2022-07-08 苏州浪潮智能科技有限公司 Optical module monitoring method, monitoring device, switch and storage medium
CN112187514A (en) * 2020-09-02 2021-01-05 上海御威通信科技有限公司 Intelligent operation and maintenance system, method and terminal for data center network equipment
CN113258995A (en) * 2020-09-27 2021-08-13 中兴通讯股份有限公司 Fault prediction method, device and computer readable storage medium
CN113326294A (en) * 2021-04-20 2021-08-31 深圳市源拓光电技术有限公司 Optical module reliability monitoring method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359959A (en) * 2008-09-17 2009-02-04 中兴通讯股份有限公司 Information acquisition method for fault locating analysis
WO2015081686A1 (en) * 2013-12-06 2015-06-11 中兴通讯股份有限公司 Method and apparatus for reading optical module information using software
WO2016062154A1 (en) * 2014-10-21 2016-04-28 中兴通讯股份有限公司 Information acquisition method and device, and communication system
WO2021032292A1 (en) * 2019-08-20 2021-02-25 Telefonaktiebolaget Lm Ericsson (Publ) Fault classification

Also Published As

Publication number Publication date
CN113904718A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
CN110266480B (en) Data transmission method, device and storage medium
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
WO2015124030A1 (en) Wireless energy transmission method and device
CN111159269B (en) Data processing method, device and system
CN107493486B (en) Method, system and terminal equipment for video playing termination
CN104427118B (en) Method for recommending contents and mobile terminal
CN113904718B (en) Optical module detection method, terminal equipment and computer readable storage medium
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN111200653B (en) Multi-platform communication method, multi-platform communication device and intermediate server
CN109586788B (en) Monitoring system fault diagnosis method and device, computer equipment and storage medium
KR20200108348A (en) Data transfer
JP7230216B2 (en) How to determine the shared service index based on the communication certificate sharing service
CN111064976A (en) Method for sending live broadcast information and server
CN112615659B (en) Data channel switching method and Beidou multichannel antenna
CN109191701B (en) Power metering method, system and server
CN112637151A (en) Data message transmission method, terminal device, server and storage medium
CN107872495B (en) Information processing method and terminal equipment
CN111127706A (en) Intelligent lock control method, intelligent lock, cloud server and computing equipment
CN114726701B (en) Frequency offset estimation method and device
CN113055996B (en) Clock drift monitoring method, device, terminal, server and storage medium
CN113286116B (en) Information prompting method and device for monitoring security management and cloud server
CN108881496B (en) Download management method of application program, telephone watch and mobile phone terminal
CN116318686B (en) Data encryption transmission method and device, electronic equipment and storage medium
CN115226152B (en) Communication method, system, electronic equipment and storage medium of satellite network

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