CN114095084B - Optical cable data display method, device, equipment and storage medium - Google Patents

Optical cable data display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114095084B
CN114095084B CN202210066594.0A CN202210066594A CN114095084B CN 114095084 B CN114095084 B CN 114095084B CN 202210066594 A CN202210066594 A CN 202210066594A CN 114095084 B CN114095084 B CN 114095084B
Authority
CN
China
Prior art keywords
optical cable
signal waveform
detection
displaying
mobile 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.)
Active
Application number
CN202210066594.0A
Other languages
Chinese (zh)
Other versions
CN114095084A (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.)
Qualsen International Technologies Co Ltd
Original Assignee
Qualsen International Technologies 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 Qualsen International Technologies Co Ltd filed Critical Qualsen International Technologies Co Ltd
Priority to CN202210066594.0A priority Critical patent/CN114095084B/en
Publication of CN114095084A publication Critical patent/CN114095084A/en
Application granted granted Critical
Publication of CN114095084B publication Critical patent/CN114095084B/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/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data

Landscapes

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

Abstract

The invention relates to the field of communication, and discloses a method, a device, equipment and a storage medium for displaying optical cable data, wherein the method comprises the following steps: sending a detection instruction for detecting an optical cable to each port of the optical cable detection equipment through the mobile terminal; acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result; and displaying the signal waveform diagram on a graphical interface of the mobile terminal. According to the method, binary stream data returned by the optical cable detection equipment are obtained through the MQTT transmission protocol, and then the binary stream data are analyzed on the mobile terminal and converted into signal waveforms, so that a user can check and measure relevant parameters of the optical cable on the mobile terminal, the use scene is expanded, and the convenience is improved.

Description

Optical cable data display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a device, and a storage medium for displaying optical cable data.
Background
The optical cable detection equipment is a measurement system developed based on a distributed optical cable sensing technology. The optical fiber cable sensing technology system is a comprehensive novel distributed optical cable sensing technology system which integrates various subjects such as optics, electronics, mechanical and digital signal processing and the like based on Rayleigh scattering effect and Optical Time Domain Reflection (OTDR) principle generated in the optical cable transmission process of optical signals. In the system, the optical cable is not only a device for transmitting the coal quality by optical signals, but also a device for sensing external information, so that the external sound wave information and the vibration information along the optical cable can be continuously and rapidly measured. However, the existing optical cable data display method is limited to the technical problem of checking at the PC end, and therefore an optical cable data display method is urgently needed.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the existing optical cable data display method is limited to PC end viewing.
The invention provides a method for displaying optical cable data in a first aspect, which comprises the following steps: sending a detection instruction for detecting an optical cable to each port of the optical cable detection equipment through the mobile terminal; acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result; and displaying the signal waveform diagram on a graphical interface of the mobile terminal.
Optionally, in a first implementation manner of the first aspect of the present invention, the sending, by the mobile terminal, a detection instruction for detecting an optical cable to each port of the optical cable detection device includes: responding to a first touch instruction aiming at the mobile terminal, and displaying port controls suitable for the first touch instruction in the graphical interface, wherein the port controls correspond to ports in the optical cable detection equipment one by one; responding to a second touch instruction aiming at the port control, and sending the detection instruction of the detection optical cable to the port based on the second touch instruction.
Optionally, in a second implementation manner of the first aspect of the present invention, the acquiring, based on the MQTT transmission protocol, binary stream data returned by the optical cable detection device based on the detection instruction includes: enabling the optical cable detection equipment to access a specified address through the MQTT transmission protocol; and after the mobile terminal is in handshake with the optical cable detection equipment based on the designated address, monitoring binary stream data returned by the optical cable detection equipment based on the detection instruction.
Optionally, in a third implementation manner of the first aspect of the present invention, the analyzing the binary stream data and generating a signal waveform diagram of the optical cable based on a result of the analyzing includes: analyzing the binary stream data by adopting a preset code conversion tool to obtain a coordinate array related to the optical cable; and constructing a coordinate system based on the transmitting frequency of the detection instruction, and substituting the coordinate system into the coordinate array to obtain a signal oscillogram of the optical cable.
Optionally, in a fourth implementation manner of the first aspect of the present invention, after the analyzing the binary stream data and generating a signal waveform diagram of the optical cable based on a result of the analyzing, the method further includes: judging whether the signal waveform diagram has more than one signal waveform; and if so, responding to a third touch instruction aiming at the signal waveform, and adjusting the corresponding signal waveform in the graphical interface based on the third touch instruction.
Optionally, in a fifth implementation manner of the first aspect of the present invention, if yes, adjusting, in the graphical interface, the corresponding signal waveform based on a third touch instruction in response to the third touch instruction for the signal waveform, includes: if yes, determining a port corresponding to a signal waveform based on the third touch instruction; screening a signal waveform corresponding to the port through the determined port; and adjusting the corresponding signal waveform flow data in the graphical interface based on the screening result.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the displaying the signal waveform diagram on the graphical interface of the mobile terminal, the method further includes: adjusting and recording the specific value of the unit length of the signal waveform diagram, so that the signal waveform diagram is completely displayed on the graphical interface; collecting coordinate points of wave crests in the signal oscillogram, wherein the coordinate points comprise coordinate values of a horizontal axis; and multiplying the coordinate value of the horizontal axis by the specific value of the unit length to obtain the length information of the optical cable, and displaying the length information on the signal oscillogram.
The second aspect of the present invention provides an optical cable data display device, including: the detection instruction sending module is used for sending a detection instruction of the detection optical cable to each port of the optical cable detection equipment through the mobile terminal; the flow data acquisition module is used for acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; the signal waveform generation module is used for analyzing the binary stream data and generating a signal waveform diagram of the optical cable based on the analysis result; and the signal waveform display module is used for displaying the signal waveform diagram on a graphical interface of the mobile terminal.
Optionally, in a first implementation manner of the second aspect of the present invention, the detection instruction sending module is specifically configured to: responding to a first touch instruction aiming at the mobile terminal, and displaying port controls suitable for the first touch instruction in the graphical interface, wherein the port controls correspond to ports in the optical cable detection equipment one by one; responding to a second touch instruction aiming at the port control, and sending the detection instruction of the detection optical cable to the port based on the second touch instruction.
Optionally, in a second implementation manner of the second aspect of the present invention, the stream data acquiring module is specifically configured to: enabling the optical cable detection equipment to access a specified address through the MQTT transmission protocol; and after the mobile terminal is in handshake with the optical cable detection equipment based on the designated address, monitoring binary stream data returned by the optical cable detection equipment based on the detection instruction.
Optionally, in a third implementation manner of the second aspect of the present invention, the signal waveform generating module is specifically configured to: analyzing the binary stream data by adopting a preset code conversion tool to obtain a coordinate array related to the optical cable; and constructing a coordinate system based on the transmitting frequency of the detection instruction, and substituting the coordinate system into the coordinate array to obtain a signal oscillogram of the optical cable.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the apparatus for displaying optical cable data further includes a signal waveform determining module, where the signal waveform determining module is specifically configured to: the signal waveform judging unit is used for judging whether the signal waveform chart has more than one signal waveform; and if so, responding to a third touch instruction aiming at the signal waveform, and adjusting the corresponding signal waveform in the graphical interface based on the third touch instruction.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the signal waveform adjusting unit is specifically configured to: if yes, determining a port corresponding to a signal waveform based on the third touch instruction; screening a signal waveform corresponding to the port through the determined port; and adjusting the corresponding signal waveform flow data in the graphical interface based on the screening result.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the optical cable data display apparatus further includes a length display module, where the length display module is specifically configured to: adjusting and recording the specific value of the unit length of the signal waveform diagram, so that the signal waveform diagram is completely displayed on the graphical interface; collecting coordinate points of wave crests in the signal oscillogram, wherein the coordinate points comprise coordinate values of a horizontal axis; and multiplying the coordinate value of the horizontal axis by the specific value of the unit length to obtain the length information of the optical cable, and displaying the length information on the signal oscillogram.
A third aspect of the present invention provides an optical cable data display apparatus, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the display device of the fiber optic cable data to perform the steps of the method for displaying the fiber optic cable data described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the above-described method for presenting fiber optic cable data.
In the technical scheme of the invention, a detection instruction for detecting the optical cable is sent to each port of the optical cable detection equipment through the mobile terminal; acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result; and displaying the signal waveform diagram on a graphical interface of the mobile terminal. According to the method, binary stream data returned by the optical cable detection equipment are obtained through the MQTT transmission protocol, and then the binary stream data are analyzed on the mobile terminal and converted into signal waveforms, so that a user can check and measure relevant parameters of the optical cable on the mobile terminal, the use scene is expanded, and the convenience is improved.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of a method for displaying optical cable data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second embodiment of a method for displaying cable data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a third embodiment of a method for displaying optical cable data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a fourth embodiment of a method for displaying optical cable data according to an embodiment of the present invention;
FIG. 5 is a schematic view of an embodiment of a device for displaying cable data according to an embodiment of the present invention;
FIG. 6 is a schematic view of another embodiment of a device for displaying cable data according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an embodiment of the device for displaying the optical cable data in the embodiment of the invention.
Detailed Description
In the technical scheme of the invention, a detection instruction for detecting the optical cable is sent to each port of the optical cable detection equipment through the mobile terminal; acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result; and displaying the signal waveform diagram on a graphical interface of the mobile terminal. According to the method, binary stream data returned by the optical cable detection equipment are obtained through the MQTT transmission protocol, and then the binary stream data are analyzed on the mobile terminal and converted into signal waveforms, so that a user can check and measure relevant parameters of the optical cable on the mobile terminal, the use scene is expanded, and the convenience is improved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a method for displaying optical cable data in the embodiment of the present invention includes:
101, sending a detection instruction of detecting an optical cable to each port of optical cable detection equipment through a mobile terminal;
in this embodiment, the mobile terminal sends a corresponding detection instruction based on the function selection button by acquiring the function selection button clicked by the user and displayed on the screen. The detection instruction is used for driving the optical cable detection device to realize a corresponding function, for example, by sending a detection instruction for detecting an optical cable, the optical cable detection device generates a detection optical signal with a certain frequency to the optical cable to be detected based on the instruction, and the optical cable returns an optical signal corresponding to the physical property of the optical cable based on a rayleigh scattering effect generated by the optical signal in the optical cable propagation process and an Optical Time Domain Reflectometry (OTDR) principle due to different physical properties of the optical cable.
102, acquiring binary stream data returned by the optical cable detection equipment based on a detection instruction based on an MQTT transmission protocol;
in this embodiment, MQTT (message queue telemetry transport) is a publish/subscribe paradigm based messaging protocol under the ISO standard (ISO/IEC PRF 20922). It works on the TCP/IP suite and is a publish/subscribe messaging protocol designed for remote devices with poor hardware performance and in poor network conditions. It has several main characteristics: providing one-to-many message publishing using a publish/subscribe message schema, decoupling applications; message transmission for load content shielding; providing a network connection using TCP/IP; there are three message publishing quality of service: small size transmission, small overhead (fixed length header is 2 bytes), and minimized protocol exchanges to reduce network traffic.
103, analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result;
in this embodiment, the streaming data needs to be processed incrementally, either by recording or sequentially according to a sliding time window, for a variety of analyses, including correlation, aggregation, screening, and sampling.
Specifically, the stream data has four characteristics: data arrive in real time; the data arrival sequence is independent and is not controlled by an application system; the data scale is large and the maximum value cannot be predicted; once the data is processed, it cannot be retrieved again for processing unless purposely saved, or it is expensive to retrieve the data again.
In this embodiment, information transmission is performed by using binary stream data, and the mobile terminal converts the binary stream data to obtain a signal waveform diagram.
And 104, displaying the signal waveform diagram on a graphical interface of the mobile terminal.
In this embodiment, the signal waveform diagram is developed by using Android Studio software and kotlin plug-in, and the generated APP is displayed on the mobile terminal, and can be freely changed for position monitoring and viewing relative to the PC terminal.
In this embodiment, a mobile terminal sends a detection instruction for detecting an optical cable to each port of an optical cable detection device; acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result; and displaying the signal waveform diagram on a graphical interface of the mobile terminal. According to the method, binary stream data returned by the optical cable detection equipment are obtained through the MQTT transmission protocol, and then the binary stream data are analyzed on the mobile terminal and converted into signal waveforms, so that a user can check and measure relevant parameters of the optical cable on the mobile terminal, the use scene is expanded, and the convenience is improved.
Referring to fig. 2, a second embodiment of the method for displaying optical cable data according to the embodiment of the present invention includes:
201, responding to a first touch instruction aiming at the mobile terminal, and displaying a port control applicable to the first touch instruction in a graphical interface;
in this embodiment, the mobile terminal responds to the first touch instruction clicked by the user, and provides a port through which the optical cable detection equipment can perform a detection experiment under the normal current function, so that the user can select the port.
Specifically, a first touch instruction clicked by a user is obtained, and a port capable of normally operating in the current optical cable detection equipment is displayed so that the user can select the port or the optical cable to be detected.
In another aspect, the touch instruction may be a different gesture touch command of clicking, sliding, dragging, responding.
202, responding to a second touch instruction aiming at the port control, and sending a detection instruction of the detection optical cable to the port based on the second touch instruction;
specifically, different port controls are selected by a user, and based on the selection of the user, including single selection, multiple selection and full selection, corresponding detection instructions are sent to drive corresponding ports in the optical cable detection equipment to work. The work means that the optical cable detection equipment emits a specific detection signal through the opposite port, and the detection signal can be refracted back to a corresponding reflected light signal after passing through the optical cable to be measured, wherein the reflected light signal contains physical information of the optical cable to be measured.
203, enabling the optical cable detection equipment to access a specified address through an MQTT transmission protocol;
in this embodiment, the optical cable detection device may set a designated address for the optical cable detection device in a production link, or randomly allocate an idle address to the networking link server according to the occupation condition in the current address pool, and perform information interconnection with the mobile terminal based on the address.
204, after the mobile terminal shakes hands with the optical cable detection equipment based on the designated address, monitoring binary stream data returned by the optical cable detection equipment based on the detection instruction;
in this embodiment, after the mobile terminal and the optical cable detection device successfully handshake at the designated address based on the MQTT transmission protocol, the optical cable detection device outputs binary stream data through photoelectric conversion according to the returned light signal in real time, and sends the binary stream data to the mobile terminal based on the designated address.
In the present embodiment, in a microprocessor system, the term Handshake (Handshake, also called Handshake) has the following meaning: in data communication, event sequences managed by hardware or software require mutual agreement on the states of the operation modes before information exchange is carried out; a process for establishing communication parameters between a receiving station and a transmitting station.
205, analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result;
and 206, displaying the signal waveform diagram on a graphical interface of the mobile terminal.
On the basis of the foregoing embodiment, the present embodiment describes in detail that, in response to a first touch instruction for the mobile terminal, a port control applicable to the first touch instruction is displayed in the graphical interface, where the port control corresponds to a port in the optical cable detection device one to one; and responding to a second touch instruction aiming at the port control, and sending the detection instruction of the detection optical cable to the port based on the second touch instruction. Compared with the traditional method, the method has the advantages that before the optical cable is measured, the mobile terminal needs to be connected with the optical cable measuring equipment for handshaking, information interconnection based on the MQTT protocol is realized, the corresponding port control is selected under the touch instruction, and the optical cable detecting equipment is remotely controlled and information is acquired.
Referring to fig. 3, a third embodiment of the method for displaying optical cable data according to the embodiment of the present invention includes:
301, sending a detection instruction of detecting an optical cable to each port of the optical cable detection equipment through the mobile terminal;
302, acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on the MQTT transmission protocol;
303, analyzing the binary stream data by adopting a preset code conversion tool to obtain a coordinate array related to the optical cable;
in this embodiment, since the binary stream data cannot be intuitively displayed to the user to know the specific physical information about the optical cable to be tested, a predetermined code conversion tool needs to be present to convert the binary stream data into a series of coordinate arrays with certain frequency intervals.
304, constructing a coordinate system based on the emission frequency of the detection instruction, and substituting the coordinate system into a coordinate array to obtain a signal oscillogram of the optical cable;
specifically, a coordinate system is constructed based on frequency and other related parameters, the coordinate system is substituted into the generated coordinate array and connected to generate one or more signal waveform diagrams, and a user can visually know physical information of the optical cable to be tested, including but not limited to length information, based on the signal waveform diagrams.
In this embodiment, after obtaining the binary stream data, unpacking the binary stream data according to a protocol for communicating with the device to obtain a frame number of the optical cable waveform, then combining the binary stream data to obtain a coordinate array in a json format of a non-fixed length, then marking the obtained coordinate array on an mpcart graphic page in a timer manner, and then seeing that a waveform changes at a speed of each second on the graphic interface. The x-axis coordinate corresponding to the highest point of the y-axis is the length of the optical cable.
305, displaying the signal waveform diagram on a graphical interface of the mobile terminal;
306, adjusting and recording the specific value of the unit length of the signal oscillogram, so that the signal oscillogram is completely displayed on a graphical interface;
in this embodiment, by adjusting the ratio of the unit lengths of the coordinate axes in the signal waveform diagram, for example, one unit length in the diagram can be adjusted to different ratios including, but not limited to, 1 meter, 10 meters, 100 meters, etc., and the signal waveform diagram is presented on the graphical interface according to different requirements and purposes.
307, collecting coordinate points of wave crests in the signal oscillogram;
specifically, the user may pop up physical information corresponding to a certain point in the signal waveform diagram by clicking the certain point.
On the other hand, a display mode of the signal waveform diagram may be preset, and when the signal waveform diagram is displayed on the graphical interface of the mobile terminal, the related information of the special points such as the peaks, the troughs, the zeros and the like in the signal waveform diagram is displayed at the points in advance.
308, multiplying the coordinate value of the horizontal axis by the specific value of the unit length to obtain the length information of the optical cable, and displaying the length information on the signal waveform diagram.
Specifically, a coordinate point selected by a user is obtained, and then length information of the optical cable is calculated based on the unit length ratio selected in the previous step.
On the other hand, a preset calculation formula can also be adopted, and when a user clicks a coordinate point corresponding to any position in the signal oscillogram, the display of the relevant information corresponding to the coordinate point can be realized.
On the basis of the previous embodiment, the embodiment describes in detail the adjustment and recording of the unit length ratio of the signal waveform diagram, so that the signal waveform diagram is completely displayed on the graphical interface; collecting coordinate points of wave crests in the signal oscillogram, wherein the coordinate points comprise coordinate values of a horizontal axis; and multiplying the coordinate value of the horizontal axis by the specific value of the unit length to obtain the length information of the optical cable, and displaying the length information on the signal waveform diagram. Compared with the traditional method, the method has the advantages that the user can visually and clearly know the length information of the optical cable to be detected at the mobile terminal by adjusting the unit length ratio of the signal oscillogram.
Referring to fig. 4, a fourth embodiment of the method for displaying optical cable data according to the embodiment of the present invention includes:
401, sending a detection instruction of detecting an optical cable to each port of the optical cable detection equipment through the mobile terminal;
402, acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on the MQTT transmission protocol;
403, analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result;
404, judging whether the signal waveform diagram has more than one signal waveform;
specifically, the binary stream data can be acquired at the mobile terminal, and when the binary stream data are subjected to coordinate conversion, the data received this time and the number of the data is determined to be N optical cables to be detected, and the judgment is performed.
405, if yes, determining a port corresponding to the signal waveform based on a third touch instruction;
in this embodiment, if the number of the optical cables measured this time is greater than one, the user needs to select a related option, that is, the mobile terminal obtains a related touch instruction selected by the user, and determines to select and process the port corresponding to the signal according to the touch instruction.
Specifically, a third touch instruction is acquired, and the information obtained by the corresponding port is selected based on a signal oscillogram, a coordinate array or binary stream data which is obtained by processing the third touch instruction.
406, screening a signal waveform corresponding to the port through the determined port;
in this embodiment, the screening action of this step is used to select the corresponding port and the corresponding signal waveform, and obtain the selected target of the user for the operation of the next step.
407, adjusting corresponding signal waveform flow data in the graphical interface based on the screening result;
in this embodiment, the adjustment method includes, but is not limited to, highlighting, switching display colors, pre-positioning, hiding, common displaying, single displaying, moving up and down, and the like, to adjust the display mode of the selected signal waveform.
Specifically, through various adjustment methods, the selected signal waveform can be displayed on a graphical interface according to specific requirements so as to be more conveniently checked by a user.
And 408, displaying the signal waveform diagram on a graphical interface of the mobile terminal.
On the basis of the foregoing embodiment, it is described in detail that if yes, the port corresponding to the signal waveform is determined based on the third touch instruction; screening a signal waveform corresponding to the port through the determined port; and adjusting the corresponding signal waveform in the graphical interface based on the screening result. By increasing the selection of the corresponding ports of the signal waveforms and further processing the corresponding signal waveforms, different display modes of a plurality of signal waveforms on the mobile terminal are realized, a user can understand the related information of the optical cable to be tested better, and the user satisfaction is improved.
With reference to fig. 5, the method for displaying optical cable data in the embodiment of the present invention is described above, and an embodiment of a device for displaying optical cable data in the embodiment of the present invention is described below, where:
a detection instruction sending module 501, configured to send a detection instruction of detecting an optical cable to each port of the optical cable detection device through the mobile terminal;
a stream data obtaining module 502, configured to obtain binary stream data returned by the optical cable detection device based on the detection instruction based on an MQTT transmission protocol;
a signal waveform generating module 503, configured to analyze the binary stream data and generate a signal waveform diagram of the optical cable based on a result of the analysis;
a signal waveform display module 504, configured to display the signal waveform diagram on a graphical interface of the mobile terminal.
In the embodiment of the invention, the optical cable data display device runs the optical cable data display method, and comprises the steps of sending a detection instruction of detecting an optical cable to each port of optical cable detection equipment through a mobile terminal; acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol; analyzing the binary stream data, and generating a signal waveform diagram of the optical cable based on the analysis result; and displaying the signal waveform diagram on a graphical interface of the mobile terminal. According to the method, binary stream data returned by the optical cable detection equipment are obtained through the MQTT transmission protocol, and then the binary stream data are analyzed on the mobile terminal and converted into signal waveforms, so that a user can check and measure relevant parameters of the optical cable on the mobile terminal, the use scene is expanded, and the convenience is improved.
Referring to fig. 6, a second embodiment of the device for displaying optical cable data according to the embodiment of the present invention includes:
a detection instruction sending module 501, configured to send a detection instruction of detecting an optical cable to each port of the optical cable detection device through the mobile terminal;
a stream data obtaining module 502, configured to obtain binary stream data returned by the optical cable detection device based on the detection instruction based on an MQTT transmission protocol;
a signal waveform generating module 503, configured to analyze the binary stream data and generate a signal waveform diagram of the optical cable based on a result of the analysis;
a signal waveform display module 504, configured to display the signal waveform diagram on a graphical interface of the mobile terminal.
In this embodiment, the detection instruction sending module 501 is specifically configured to:
responding to a first touch instruction aiming at the mobile terminal, and displaying port controls suitable for the first touch instruction in the graphical interface, wherein the port controls correspond to ports in the optical cable detection equipment one by one; responding to a second touch instruction aiming at the port control, and sending the detection instruction of the detection optical cable to the port based on the second touch instruction.
In this embodiment, the stream data acquiring module 502 is specifically configured to:
enabling the optical cable detection equipment to access a specified address through the MQTT transmission protocol; and after the mobile terminal is in handshake with the optical cable detection equipment based on the designated address, monitoring binary stream data returned by the optical cable detection equipment based on the detection instruction.
In this embodiment, the signal waveform generating module 503 is specifically configured to:
analyzing the binary stream data by adopting a preset code conversion tool to obtain a coordinate array related to the optical cable; and constructing a coordinate system based on the transmitting frequency of the detection instruction, and substituting the coordinate system into the coordinate array to obtain a signal oscillogram of the optical cable.
In this embodiment, the apparatus for displaying optical cable data further includes a signal waveform determining module 505, where the signal waveform determining module 505 is specifically configured to:
a signal waveform determination unit 5051 for determining whether or not there is more than one signal waveform in the signal waveform diagram; a signal waveform adjusting unit 5052, if yes, is configured to respond to a third touch instruction for the signal waveform, and adjust the corresponding signal waveform in the graphical interface based on the third touch instruction.
In this embodiment, the signal waveform adjusting unit 5052 is specifically configured to:
if yes, determining a port corresponding to a signal waveform based on the third touch instruction; screening a signal waveform corresponding to the port through the determined port; and adjusting the corresponding signal waveform flow data in the graphical interface based on the screening result.
In this embodiment, the apparatus for displaying optical cable data further includes a length display module 506, where the length display module 506 is specifically configured to:
adjusting and recording the specific value of the unit length of the signal waveform diagram, so that the signal waveform diagram is completely displayed on the graphical interface; collecting coordinate points of wave crests in the signal oscillogram, wherein the coordinate points comprise coordinate values of a horizontal axis; and multiplying the coordinate value of the horizontal axis by the specific value of the unit length to obtain the length information of the optical cable, and displaying the length information on the signal oscillogram.
On the basis of the previous embodiment, the specific functions of each module and the unit composition of partial modules are described in detail, a signal waveform judging module and a length display module are added through the newly added modules, the specific functions of the original modules are refined through the modules, the operation of the optical cable data display device is perfected, the reliability in operation is improved, the actual logic among all the steps is clarified, and the practicability of the device is improved.
Fig. 5 and 6 describe the device for displaying the optical cable data in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the device for displaying the optical cable data in the embodiment of the present invention in detail from the perspective of the hardware processing.
Fig. 7 is a schematic structural diagram of a cable data display device 700 according to an embodiment of the present invention, which may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 710 (e.g., one or more processors) and a memory 720, one or more storage media 730 (e.g., one or more mass storage devices) for storing applications 733 or data 732. Memory 720 and storage medium 730 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 730 may include one or more modules (not shown), each of which may include a sequence of instruction operations in the display device 700 for fiber optic cable data. Further, the processor 710 may be configured to communicate with the storage medium 730, and execute a series of instruction operations in the storage medium 730 on the display apparatus 700 for cable data to implement the steps of the display method for cable data described above.
The fiber optic cable data presentation apparatus 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input-output interfaces 760, and/or one or more operating systems 731 such as windowsServe, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the configuration of the fiber optic cable data display apparatus illustrated in fig. 7 is not intended to be limiting of the fiber optic cable data display apparatus provided herein and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, or a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the method for presenting fiber optic cable data.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
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, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for displaying optical cable data is characterized by comprising the following steps:
sending a detection instruction for detecting an optical cable to each port of the optical cable detection equipment through the mobile terminal;
acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol;
unpacking the binary stream data according to a protocol communicated with equipment, and converting and splicing the unpacked binary stream data by adopting a preset coding tool to obtain a json format coordinate array with a non-fixed length and a certain frequency interval;
constructing a coordinate system on an MPCart graph page based on frequency, y-axis parameters and x-axis parameters, and sending the coordinate array to the MPCart graph page at regular time to obtain a signal waveform diagram for displaying physical information of the optical cable, wherein the physical information comprises length information;
and displaying the signal waveform diagram on a graphical interface of the mobile terminal.
2. The method for displaying optical cable data according to claim 1, wherein the sending the detection instruction of the detection optical cable to each port of the optical cable detection device through the mobile terminal includes:
responding to a first touch instruction aiming at the mobile terminal, and displaying port controls suitable for the first touch instruction in the graphical interface, wherein the port controls correspond to ports in the optical cable detection equipment one by one;
responding to a second touch instruction aiming at the port control, and sending the detection instruction of the detection optical cable to the port based on the second touch instruction.
3. The method for displaying optical cable data according to claim 1, wherein the acquiring binary stream data returned by the optical cable detection device based on the detection instruction based on the MQTT transmission protocol includes:
enabling the optical cable detection equipment to access a specified address through the MQTT transmission protocol;
and after the mobile terminal is in handshake with the optical cable detection equipment based on the designated address, monitoring binary stream data returned by the optical cable detection equipment based on the detection instruction.
4. The method for displaying optical cable data according to claim 1, further comprising, after the analyzing the binary stream data and generating a signal waveform diagram of the optical cable based on the analysis result:
judging whether the signal waveform diagram has more than one signal waveform;
and if so, responding to a third touch instruction aiming at the signal waveform, and adjusting the corresponding signal waveform in the graphical interface based on the third touch instruction.
5. The method for displaying optical cable data according to claim 4, wherein if yes, adjusting the corresponding signal waveform in the graphical interface based on a third touch instruction in response to the third touch instruction for the signal waveform includes:
if yes, determining a port corresponding to a signal waveform based on the third touch instruction;
screening a signal waveform corresponding to the port through the determined port;
and adjusting the corresponding signal waveform in the graphical interface based on the screening result.
6. The method for displaying optical cable data according to claim 1, further comprising, after the displaying the signal waveform diagram on a graphical interface of the mobile terminal:
adjusting and recording the specific value of the unit length of the signal waveform diagram, so that the signal waveform diagram is completely displayed on the graphical interface;
collecting coordinate points of wave crests in the signal oscillogram, wherein the coordinate points comprise coordinate values of a horizontal axis;
and multiplying the coordinate value of the horizontal axis by the specific value of the unit length to obtain the length information of the optical cable, and displaying the length information on the signal oscillogram.
7. An optical cable data display device, comprising:
the detection instruction sending module is used for sending a detection instruction of the detection optical cable to each port of the optical cable detection equipment through the mobile terminal;
the flow data acquisition module is used for acquiring binary stream data returned by the optical cable detection equipment based on the detection instruction based on an MQTT transmission protocol;
the signal waveform generation module is used for unpacking the binary stream data according to a protocol communicated with equipment, and converting and splicing the unpacked binary stream data by adopting a preset coding tool to obtain a json format coordinate array with a non-fixed length and a certain frequency interval; constructing a coordinate system on an MPCart graph page based on frequency, y-axis parameters and x-axis parameters, and sending the coordinate array to the MPCart graph page at regular time to obtain a signal waveform diagram for displaying physical information of the optical cable, wherein the physical information comprises length information;
and the signal waveform display module is used for displaying the signal waveform diagram on a graphical interface of the mobile terminal.
8. A fiber optic cable data display apparatus, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the apparatus for presenting fiber optic cable data to perform the steps of the method for presenting fiber optic cable data according to any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for presenting optical cable data according to any one of claims 1 to 6.
CN202210066594.0A 2022-01-20 2022-01-20 Optical cable data display method, device, equipment and storage medium Active CN114095084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210066594.0A CN114095084B (en) 2022-01-20 2022-01-20 Optical cable data display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210066594.0A CN114095084B (en) 2022-01-20 2022-01-20 Optical cable data display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114095084A CN114095084A (en) 2022-02-25
CN114095084B true CN114095084B (en) 2022-04-22

Family

ID=80309088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210066594.0A Active CN114095084B (en) 2022-01-20 2022-01-20 Optical cable data display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114095084B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115189766B (en) * 2022-09-13 2022-12-13 高勘(广州)技术有限公司 Optical cable identification method, device, system and storage medium
CN116015429B (en) * 2022-12-27 2024-05-03 高勘(广州)技术有限公司 Access method, device, equipment and storage medium for optical cable detection data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013038615A (en) * 2011-08-08 2013-02-21 Haru Engineering Kk Tablet portable terminal, program for tablet portable terminal, and recording medium of program for tablet portable terminal
CN102946272A (en) * 2012-11-21 2013-02-27 博创科技股份有限公司 Separated type optical testing device based on commonly-used mobile intelligent terminal
CN113490082A (en) * 2021-07-02 2021-10-08 国网湖北省电力有限公司恩施供电公司 Optical cable nursing interface module
CN113872681A (en) * 2021-12-06 2021-12-31 高勘(广州)技术有限公司 Optical cable supervision method and system of mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761363B (en) * 2011-04-27 2016-03-30 华为海洋网络有限公司 A kind of optical time domain reflectometer signal detecting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013038615A (en) * 2011-08-08 2013-02-21 Haru Engineering Kk Tablet portable terminal, program for tablet portable terminal, and recording medium of program for tablet portable terminal
CN102946272A (en) * 2012-11-21 2013-02-27 博创科技股份有限公司 Separated type optical testing device based on commonly-used mobile intelligent terminal
CN113490082A (en) * 2021-07-02 2021-10-08 国网湖北省电力有限公司恩施供电公司 Optical cable nursing interface module
CN113872681A (en) * 2021-12-06 2021-12-31 高勘(广州)技术有限公司 Optical cable supervision method and system of mobile terminal and storage medium

Also Published As

Publication number Publication date
CN114095084A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN114095084B (en) Optical cable data display method, device, equipment and storage medium
JP6898968B2 (en) Methods and devices for determining response time
CN108141390B (en) Cloud-based system and method for managing messages regarding cable test equipment operation
CN108141385B (en) Cloud-based system and method for managing test configuration of cable test equipment
US9270477B2 (en) Method and apparatus of measuring and reporting data gap from within an analysis tool
CN102749539A (en) Fast electromagnetic compatibility test and diagnosis system with quantization electromagnetic interference
CN108322855B (en) Method and device for acquiring audio information
CN101105501A (en) Fan rotary speed test system and method
CN100481782C (en) Apparatus and method for checking performance of wireless data network
CN106803801B (en) System and method for applying aggregated cable test result data
WO2012020043A1 (en) Device and system for evaluating condition of skin, scalp and hair
US11740997B2 (en) Method and apparatus for debugging a device
KR20220008736A (en) Robustness determining method, device, electronic equipment and readable storage medium
KR101363045B1 (en) Testing device for Merging unit
Sahay et al. Environmental monitoring system using IoT and cloud service at real-time
CN116737483B (en) Assembly test interaction method, device, equipment and storage medium
CN104950812B (en) A kind of digital control system performance online method of testing and system based on motor simulation loading
CN111458662A (en) Wireless communication transformer winding deformation frequency response method detection and operation system and method
CN111141210B (en) System, method and electronic device for alarming
US7242210B2 (en) Method and apparatus for circuit board inspection capable of monitoring inspection signals by using a signal monitor incorporated in the apparatus
CN209214445U (en) Target-designator monitoring device and system
CN110633182A (en) System, method and apparatus for monitoring server stability
US20090296592A1 (en) Method and apparatus of measuring and reporting data gap from within an analysis tool
CN114422877A (en) System, method, device, equipment, medium and product for collecting temperature
CN110662244B (en) Data packet display method and device and readable storage medium

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Display method, device, equipment and storage medium of optical cable data

Effective date of registration: 20220628

Granted publication date: 20220422

Pledgee: Bank of China Limited Guangzhou Development Zone Branch

Pledgor: Gaokan (Guangzhou) Technology Co.,Ltd.

Registration number: Y2022980009299

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230731

Granted publication date: 20220422

Pledgee: Bank of China Limited Guangzhou Development Zone Branch

Pledgor: Gaokan (Guangzhou) Technology Co.,Ltd.

Registration number: Y2022980009299