CN114884857B - Signal quality detection method and device and computer readable storage medium - Google Patents

Signal quality detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN114884857B
CN114884857B CN202210818037.XA CN202210818037A CN114884857B CN 114884857 B CN114884857 B CN 114884857B CN 202210818037 A CN202210818037 A CN 202210818037A CN 114884857 B CN114884857 B CN 114884857B
Authority
CN
China
Prior art keywords
signal
communication
communication signal
characteristic
preset
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
CN202210818037.XA
Other languages
Chinese (zh)
Other versions
CN114884857A (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.)
CRRC Industry Institute Co Ltd
Original Assignee
CRRC Industry Institute 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 CRRC Industry Institute Co Ltd filed Critical CRRC Industry Institute Co Ltd
Priority to CN202210818037.XA priority Critical patent/CN114884857B/en
Publication of CN114884857A publication Critical patent/CN114884857A/en
Application granted granted Critical
Publication of CN114884857B publication Critical patent/CN114884857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/30Signalling arrangements; Manipulation of signalling currents
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a device for detecting signal quality and a computer readable storage medium, which relate to the field of signal detection.

Description

Signal quality detection method and device and computer readable storage medium
Technical Field
The present invention relates to the field of signal detection, and in particular, to a method and an apparatus for detecting signal quality, and a computer-readable storage medium.
Background
The devices on the train are usually connected through various field buses to realize data communication between the devices, in the process of transmitting communication signals, the quality of the communication signals may be lowered due to interference or line abrasion, and when the quality of the communication signals is too low, communication faults may occur, which affect the normal operation of the devices. In the prior art, when detecting the quality of a communication signal, the detection is usually performed by judging whether a device can normally operate, and when a communication fault occurs in a device, it can be determined that the quality of the communication signal received by the device is too low, and the communication signal quality can not be found to become low in time.
Disclosure of Invention
The invention aims to provide a method and a device for detecting signal quality and a computer readable storage medium, which can determine the signal quality of each communication signal in real time, can find that the quality of the communication signal is low in time and avoid communication faults of equipment.
In order to solve the above technical problem, the present invention provides a method for detecting signal quality, including:
when the communication signal is detected to exist in the field bus, acquiring signal characteristics of the communication signal, wherein the signal characteristics comprise one or more combinations of signal amplitude, noise amplitude, signal frequency characteristics and signal edge characteristics;
determining a current signal quality of the communication signal based on the signal characteristic.
Preferably, when the signal characteristic includes the signal amplitude, acquiring the signal characteristic of the communication signal includes:
s21: determining the moment when the communication signal exists in the field bus as the current moment;
s22: judging whether the current time is before a first preset end time or not; if yes, entering S23; if not, the step S26 is entered;
s23: judging whether the voltage value of the communication signal at the current moment is greater than a first preset voltage value or not; if yes, entering S24; if not, entering S25;
s24: storing the voltage value at the current moment, and entering S25;
s25: taking the moment when the current moment passes a first preset time period as a new current moment, and returning to S22;
s26: all of the stored voltage values are used together as a signal characteristic of the communication signal.
Preferably, when the signal characteristic includes the noise amplitude, acquiring the signal characteristic of the communication signal includes:
s31: determining the moment when the communication signal exists in the field bus as the current moment;
s32: judging whether the current time is before a second preset ending time or not; if yes, entering S33; if not, entering S36;
s33: judging whether the voltage value of the communication signal at the current moment is smaller than a second preset voltage value or not; if yes, entering S34; if not, entering S35;
s34: storing the voltage value at the current moment, and entering S35;
s35: taking the moment when the current moment passes a second preset time period as a new current moment, and returning to the step S32;
s36: determining an average voltage value between all of the stored voltage values and using the average voltage value as a signal characteristic of the communication signal.
Preferably, when the signal characteristic includes the signal frequency characteristic, acquiring the signal characteristic of the communication signal includes:
acquiring the frequency of the communication signal for N times in a third preset time period, wherein N is an integer not less than 2;
obtaining frequency information obtained by performing FFT algorithm and normalization on the N frequencies;
and using the frequency information as the signal characteristic of the communication signal.
Preferably, when the signal characteristic includes the signal edge characteristic, acquiring the signal characteristic of the communication signal includes:
acquiring M periods of the communication signals, wherein M is a positive integer;
determining an average wave peak value of the communication signal according to the wave peak value of each period of the communication signal;
determining an average valley value of the communication signal according to the valley value of each period of the communication signal;
determining a time required for the communication signal to reach a second preset percentage of the average trough values from a first preset percentage of the average trough values;
the time is taken as a signal characteristic of the communication signal.
Preferably, determining the current signal quality of the communication signal based on the signal characteristics comprises:
determining a ratio between the signal characteristic and a preset signal characteristic;
determining a current signal quality of the communication signal based on the ratio.
Preferably, after determining the current signal quality of the communication signal according to the signal characteristics, the method further includes:
judging whether the current signal quality is less than a preset signal quality;
if so, generating an alarm signal and sending the alarm signal to a prompt module so that the prompt module can send a prompt.
Preferably, when there are a plurality of lines in the fieldbus, before acquiring the signal characteristics of the communication signal, the method further includes:
selecting a designated route in the field bus as a detection route according to a user instruction;
and entering a step of acquiring the signal characteristics of the communication signal when the communication signal is detected to exist in the detection route.
The present invention also provides a signal quality detection apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for detecting signal quality as described above when executing the computer program.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of detecting signal quality as described above.
The invention provides a method and a device for detecting signal quality and a computer readable storage medium, which relate to the field of signal detection, and are characterized in that when a communication signal is detected in a field bus, the signal characteristics of the communication signal are acquired, the signal characteristics comprise one or more combinations of signal amplitude, noise amplitude, signal frequency characteristic and signal edge characteristic of the communication signal, the current signal quality of the communication signal is determined according to the signal characteristics, and the signal quality of the communication signal is determined when the communication signal is detected, so that the signal quality of each communication signal can be determined in real time, the communication signal quality is timely found to be low, and the communication fault of equipment is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a signal quality detection method provided in the present application;
fig. 2 is a flowchart of a method for acquiring signal characteristics provided in the present application;
FIG. 3 is a schematic view of an acquisition site provided herein;
fig. 4 is a flow chart of another signal quality detection method provided by the present application;
fig. 5 is a schematic structural diagram of a selector switch provided in the present application;
fig. 6 is a schematic structural diagram of a signal quality detection apparatus provided in the present application.
Detailed Description
The core of the invention is to provide a method and a device for detecting signal quality and a computer readable storage medium, which can determine the signal quality of each communication signal in real time, can find that the quality of the communication signal is low in time, and avoid communication faults of equipment.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a signal quality detection method provided in the present application, including:
s1: when the communication signal is detected to exist in the field bus, acquiring signal characteristics of the communication signal, wherein the signal characteristics comprise one or more combinations of signal amplitude, noise amplitude, signal frequency characteristics and signal edge characteristics;
when communicating with other devices, the devices on the Train usually send their own communication signals to other devices through a fieldbus so as to establish a communication relationship between the devices themselves and other devices, where the fieldbus includes buses such as RS485, CAN (Controller Area Network), TRDP (Train real time Data Protocol) and NET. When the communication signal quality becomes low, the communication signal may be abnormal, so that other devices cannot receive the communication signal or receive the abnormal communication signal, and finally communication failure may occur. In the prior art, when the signal quality of the communication signal is determined, it can only be passively sensed that the signal quality of the communication signal is too low, and specifically, when a communication fault occurs in a device on a train, it can only be determined that the quality of the communication signal is too low in the prior art.
In order to solve the above technical problem, in the present application, a communication signal in a fieldbus is detected in real time, and specifically, since a fieldbus through which devices communicate with each other is determined, the fieldbus may be connected to the fieldbus in advance so as to perform detection, and when a device generates a communication signal and transmits the communication signal to another device through the fieldbus, a signal characteristic of the communication signal is obtained, wherein, considering that there is a correspondence relationship between a signal amplitude, a noise amplitude, a frequency characteristic, and an edge characteristic of the communication signal, for example, the signal amplitude decreases with the decrease in the signal quality of the communication signal, the noise amplitude increases with the decrease in the signal quality of the communication signal, the actual frequency characteristic gradually deviates from a normal frequency characteristic with the decrease in the signal quality of the communication signal, and the actual edge characteristic also deviates from an edge characteristic in the case where the signal quality is high, based on which one or a combination of more of the signal amplitude, the noise amplitude, the signal frequency characteristic, and the signal edge characteristic of the communication signal is obtained, so as to subsequently determine the current signal quality of the communication signal.
S2: the current signal quality of the communication signal is determined based on the signal characteristic.
Before determining the current signal quality of a communication signal according to the signal characteristics, the signal quality of the communication signal under a normal condition may be predetermined, please refer to fig. 2, and fig. 2 is a flowchart of a method for acquiring signal characteristics provided by the present application, specifically, a normal device and a normal field bus may be used for testing, the types and types of the normal device and the normal field bus are consistent with the field bus and the device corresponding to the communication signal to be detected, and the signal characteristics of the communication signal when the normal device sends the same communication signal through the normal field bus are collected. In addition, it is also necessary to collect all the complete signal characteristics of the communication signal, and then determine the signal quality range of the communication signal by using the complete signal characteristics, so that in actual use, the signal quality of the actual communication signal can be determined according to the signal quality range of the communication signal obtained by the test and the signal characteristics of the actual communication signal, for example, the signal quality of the communication signal can be divided into at least high signal quality and low signal quality.
In addition, when collecting communication signals, a collection resistor can be arranged at a collection point of the communication signals to collect accurate communication signals, please refer to fig. 3, fig. 3 is a schematic structural diagram of the collection point provided by the present application, a resistor with a resistance value of 1M Ω can be selected as the collection resistor, one end of the resistor is grounded, and the other end of the resistor is connected with the field bus and the processor respectively.
In summary, when a communication signal is detected to exist in the fieldbus, the signal characteristics of the communication signal are obtained, the signal characteristics comprise one or more of signal amplitude, noise amplitude, signal frequency characteristics and signal edge characteristics of the communication signal, the current signal quality of the communication signal is determined according to the signal characteristics, and since the signal quality of the communication signal is determined when the communication signal is detected, the signal quality of each communication signal can be determined in real time, the communication signal quality is found to become low in time, and a communication fault of a device is avoided.
On the basis of the above-described embodiment:
as a preferred embodiment, when the signal characteristic comprises a signal amplitude, acquiring a signal characteristic of the communication signal comprises:
s21: determining the moment when the communication signal exists in the field bus as the current moment;
s22: judging whether the current time is before a first preset end time or not; if yes, entering S23; if not, the step S26 is entered;
s23: judging whether the voltage value of the communication signal at the current moment is greater than a first preset voltage value or not; if yes, entering S24; if not, entering S25;
s24: storing the voltage value at the current moment, and entering S25;
s25: taking the moment when the current moment passes through the first preset time period as a new current moment, and returning to the S22;
s26: all stored voltage values are taken together as a signal characteristic of the communication signal.
In order to obtain the signal characteristics of the communication signal, in the present application, it is considered that a noise amplitude and an interference signal may exist in the communication signal, and the amplitudes of the signals are usually small, so a first preset voltage value may be set in advance according to a normal signal amplitude of the communication signal, when the acquired voltage value is greater than the first preset voltage value, the acquired voltage value is a voltage value of the communication signal, and when the acquired voltage value is less than the first preset voltage value, the acquired voltage value may be a voltage value of the noise signal.
When the first preset voltage value is set in advance according to the normal signal amplitude of the communication signal, all detected voltage values can be collected, so that the voltage values of the communication signal, the noise signal and other signals can be distinguished from all the voltage values, and the first preset voltage value can be set more accurately. In addition, when storing the voltage value, the voltage value may be stored in a peripheral storage unit such as an EMMC (Embedded multimedia Card), a FLASH Memory (FLASH Memory), or an SSD (Solid State Drive).
As a preferred embodiment, when the signal characteristic includes a noise amplitude, acquiring the signal characteristic of the communication signal includes:
s31: determining the moment when the communication signal exists in the field bus as the current moment;
s32: judging whether the current time is before a second preset ending time or not; if yes, entering S33; if not, entering S36;
s33: judging whether the voltage value of the communication signal at the current moment is smaller than a second preset voltage value or not; if yes, entering S34; if not, entering S35;
s34: storing the voltage value at the current moment, and entering S35;
s35: taking the moment when the current moment passes through a second preset time period as a new current moment, and returning to the step S32;
s36: an average voltage value between all stored voltage values is determined and used as a signal characteristic of the communication signal.
In order to obtain the signal characteristics of the communication signal, in the present application, it is considered that the communication signal may carry a noise signal during transmission, and the signal amplitude of the noise signal is usually small, so a second preset voltage value may be set according to the actual signal amplitude of the noise signal in advance, the communication signal and the noise signal are distinguished by the second preset voltage value, when the acquired voltage value is greater than the second preset voltage value, it is indicated that the acquired voltage value may be a voltage value of the communication signal itself rather than the noise signal carried by the communication signal, when the acquired voltage value is less than the second preset voltage value, it is indicated that the acquired voltage value is a voltage value of the noise signal, based on this, a plurality of voltage values may be acquired within a certain time, and the voltage value less than the second preset voltage value is stored, which is equivalent to retaining the voltage value of the noise signal and discarding the voltage values of other signals, when the current time after the time of acquiring the communication signal is after the second preset end time, an average value between the stored voltage values is determined, and the average value of the noise level of the acquired signal level is used as the final noise level of the communication signal within the communication time period.
As a preferred embodiment, when the signal characteristic includes a signal frequency characteristic, acquiring the signal characteristic of the communication signal includes:
acquiring the frequency of the communication signals for N times in a third preset time period, wherein N is an integer not less than 2;
obtaining frequency information obtained by performing FFT algorithm and normalization on the N frequencies;
the frequency information is used as a signal characteristic of the communication signal.
In order to accurately obtain the signal characteristics of the communication signal, in the present application, it is considered that when the frequency of the communication signal fluctuates for a short period and the frequency changes rapidly, the signal frequency characteristics in an abnormal state are obtained, and the signal frequency at this time is not the frequency of the communication signal in a normal operation condition. Based on this, the frequencies of a plurality of communication signals are acquired in a third preset time period, the third preset time period can be set according to the time length of short-term fluctuation of the frequencies, the time length of the third preset time period needs to be far longer than the time length of the short-term fluctuation so as to avoid the situation that the acquired frequencies are all the frequencies during the short-term fluctuation, after the frequencies are acquired for N times, all the frequencies are subjected to a Fast Fourier Transform (FFT) algorithm, and then normalization is performed so as to obtain frequency information containing all the frequency characteristics and numerical values and other contents of the communication signals, and the frequency information can accurately represent the frequency characteristics of the communication signals, so that the frequency information is used as the signal characteristics of the communication signals, and accurate signal characteristics can be obtained.
As a preferred embodiment, when the signal characteristic includes a signal edge characteristic, acquiring a signal characteristic of the communication signal includes:
acquiring communication signals of M periods, wherein M is a positive integer;
determining an average wave peak value of the communication signal according to the wave peak value of each period of the communication signal;
determining an average valley value of the communication signal according to the valley value of each period of the communication signal;
determining the time required for the communication signal to reach a second preset percentage of average wave crest values from the first preset percentage of average wave crest values to the second preset percentage of average wave trough values;
time is taken as a signal characteristic of the communication signal.
In order to obtain the signal characteristics of the communication signal, in the present application, it is considered that when the signal switching time of the communication signal is too fast, the signal period of the communication signal is too short, and the frequency rate of the communication signal is too fast, problems such as backflow, crosstalk, and reflection may occur, and these problems may affect the signal integrity of the communication signal itself, resulting in a reduction in the signal quality of the communication signal. Based on this, the time required for the communication signal to reach the average valley value of the second preset percentage from the average peak value of the first preset percentage can be determined, and since the time can represent the signal cycle, the frequency rate and the signal switching time of the communication signal, the shorter the time, the shorter the signal cycle, the faster the frequency rate and the signal switching time of the communication signal are, and meanwhile, the shorter the time, the more serious the problems of the backflow, crosstalk and reflection of the communication signal are, and the signal integrity of the communication signal can be represented, so that the signal quality of the communication signal can be indirectly determined. For example, when the first predetermined percentage and the second predetermined percentage are both 90%, the time is equivalent to a time from 10% of the signal peak to 90% of the signal peak, and the time is taken as the signal edge characteristic. Based on this, by determining the time required for the average peak value of the first preset percentage to reach the average valley value of the second preset percentage, the signal characteristics of the communication signal can be accurately acquired.
As a preferred embodiment, determining the current signal quality of the communication signal based on the signal characteristics comprises:
determining a ratio between the signal characteristic and a preset signal characteristic;
the current signal quality of the communication signal is determined from the ratio.
In order to determine the current signal quality of a communication signal, please refer to fig. 4 in the present application, and fig. 4 is a flowchart of another signal quality detection method provided in the present application, a normal device may be used in advance, and a normal field bus is used for testing, where models and parameters of the device and the field bus are the same as those of the device and the field bus in actual use, and when testing is performed, the device generates a communication signal consistent with that in actual use, and transmits the communication signal through the field bus, and then acquires various signal characteristics in the communication signal of the field bus, which are equivalent to acquiring signal characteristics of the device and the field bus in normal conditions as historical communication quality of the current device; when acquiring the signal characteristic, in order to accurately determine the signal quality of the communication signal according to the signal characteristic, it is necessary to acquire the complete signal characteristic of the communication signal, rather than acquiring the signal characteristic within a certain period of time, that is, in the case of ensuring that the device and the field bus are both intact or ideal, a preset signal characteristic of the communication signal is determined, so that in actual application, the actual signal quality of the communication signal is determined by comparing the actual signal characteristic with the preset signal characteristic.
In addition, in order to determine the signal quality of the communication signal more accurately, the signal quality of the communication signal sent by other equipment of the same type as the equipment can be acquired, so that the actual signal quality of the communication signal can be determined according to the signal quality of the communication signal of other equipment, the preset communication signal quality of the current equipment and the actual signal quality of the communication signal of the current equipment. When determining the actual signal quality of a communication signal, the signal quality may be determined through an AI (Artificial Intelligence), specifically, the neural network model may be used as an AI, and the signal quality of the device history and the signal quality of other devices may be sent to the AI in advance for learning, so that the AI knows the normal range of the signal quality of the current device, so as to determine the current signal quality of the current device, and further, when simultaneously detecting the signal qualities of multiple devices, after determining the current signal quality of each device, the AI may determine a device point that needs to be individually detected according to the current signal quality of each device, so that a worker may perform measures such as detecting or maintaining the device with lower signal quality.
As a preferred embodiment, after determining the current signal quality of the communication signal according to the signal characteristics, the method further comprises:
judging whether the current signal quality is less than the preset signal quality;
if yes, an alarm signal is generated and sent to the prompting module, so that the prompting module gives a prompt.
In order to enable a worker to timely determine that the signal quality of a communication signal becomes low, the method can set specific numerical values of preset signal quality according to the requirement for the signal quality of the communication signal in actual work in advance, after the current signal quality of the communication signal is determined, whether the current signal quality of the communication signal is smaller than the preset signal quality is judged, if the current signal quality of the communication signal is smaller than the preset signal quality, the signal quality of the communication signal cannot meet the requirement of the actual work, at the moment, an alarm signal is generated and sent to a prompt module, and the prompt module sends a prompt to enable the worker to timely determine that the signal quality of the communication signal becomes low.
As a preferred embodiment, when there are a plurality of lines in the fieldbus, before acquiring the signal characteristics of the communication signal, the method further includes:
selecting a designated route in the field bus as a detection route according to a user instruction;
and entering a step of acquiring the signal characteristics of the communication signal when the communication signal is detected to exist in the detection route.
In order to select a designated fieldbus for detection, in the present application, considering that there are usually multiple lines in the fieldbus, for example, there are at least 2 lines in the CAN bus, and when it is necessary to make a certain line in the fieldbus as a detection line, a selection switch may be provided, please refer to fig. 5, where fig. 5 is a schematic structural diagram of a selection switch provided in the present application, one end of the selection switch is connected to a processor, and the other end of the selection switch is provided with multiple switch contacts, each of which is connected to each line in the fieldbus, and the processor controls the on and off of the selection switch through a control bus, such as an IIC bus, and when the other end of the selection switch contacts a certain switch contact, the fieldbus corresponding to the switch contact is used as the detection line, and based on this, the designated fieldbus CAN be selected for detection by setting the selection switch and determining the designated switch contact.
In addition, the processor in this application may select a MIMX8MM6DVTLZAA processor, and the selection switch may select an ADG1608 switch, and specifically, different processors and selection switches may also be selected according to an actual working condition, which is not limited in this application.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a signal quality detection apparatus provided in the present application, including:
a memory 21 for storing a computer program;
a processor 22 for implementing the steps of the signal quality detection method as described above when executing the computer program.
For a detailed description of the apparatus for detecting signal quality provided in the present application, please refer to the embodiment of the method for detecting signal quality, which is not described herein again.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for detecting signal quality as described above.
For a detailed description of a computer-readable storage medium provided in the present application, please refer to the above embodiments of the signal quality detection method, which are not repeated herein.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A method for detecting signal quality, comprising:
when communication signals exist in a field bus, acquiring signal characteristics of the communication signals, wherein the signal characteristics comprise signal amplitude, noise amplitude, signal frequency characteristics and signal edge characteristics;
determining a current signal quality of the communication signal based on the signal characteristic;
when the signal characteristic comprises the signal amplitude, acquiring a signal characteristic of the communication signal, including:
s21: determining the moment when the communication signal exists in the field bus as the current moment;
s22: judging whether the current time is before a first preset ending time or not; if yes, entering S23; if not, entering S26;
s23: judging whether the voltage value of the communication signal at the current moment is greater than a first preset voltage value or not; if yes, entering S24; if not, entering S25;
s24: storing the voltage value at the current moment, and entering S25;
s25: taking the moment when the current moment passes a first preset time period as a new current moment, and returning to S22;
s26: all of the stored voltage values are used together as a signal characteristic of the communication signal;
when the signal characteristic comprises the noise amplitude, acquiring a signal characteristic of the communication signal, including:
s31: determining the moment when the communication signal exists in the field bus as the current moment;
s32: judging whether the current time is before a second preset ending time or not; if yes, entering S33; if not, entering S36;
s33: judging whether the voltage value of the communication signal at the current moment is smaller than a second preset voltage value or not; if yes, entering S34; if not, entering S35;
s34: storing the voltage value at the current moment, and entering S35;
s35: taking the moment when the current moment passes a second preset time period as a new current moment, and returning to the step S32;
s36: determining an average voltage value between all of the stored voltage values and using the average voltage value as a signal characteristic of the communication signal;
when the signal characteristic comprises the signal frequency characteristic, acquiring a signal characteristic of the communication signal, comprising:
acquiring the frequency of the communication signal for N times in a third preset time period, wherein N is an integer not less than 2;
obtaining frequency information obtained by performing FFT algorithm and normalization on the N frequencies;
using the frequency information as a signal characteristic of the communication signal;
when the signal characteristic comprises the signal edge characteristic, acquiring a signal characteristic of the communication signal, including:
acquiring M periods of the communication signals, wherein M is a positive integer;
determining an average wave peak value of the communication signal according to the wave peak value of each period of the communication signal;
determining an average valley value of the communication signal according to the valley value of each period of the communication signal;
determining a time required for the communication signal to reach a second preset percentage of the average trough values from a first preset percentage of the average trough values;
the time is taken as a signal characteristic of the communication signal.
2. The method for signal quality detection according to claim 1, wherein determining the current signal quality of the communication signal according to the signal characteristic comprises:
determining a ratio between the signal characteristic and a preset signal characteristic;
determining a current signal quality of the communication signal based on the ratio.
3. The method for detecting signal quality according to claim 1, further comprising, after determining the current signal quality of the communication signal based on the signal characteristic:
judging whether the current signal quality is less than a preset signal quality;
if so, generating an alarm signal and sending the alarm signal to a prompt module so that the prompt module can send a prompt.
4. The method for detecting signal quality according to any one of claims 1 to 3, wherein when a plurality of lines exist in the field bus, before acquiring the signal characteristic of the communication signal, the method further comprises:
selecting a designated route in the field bus as a detection route according to a user instruction;
and entering a step of acquiring the signal characteristics of the communication signal when the communication signal is detected to exist in the detection route.
5. An apparatus for detecting signal quality, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of signal quality detection according to any one of claims 1 to 4 when executing the computer program.
6. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for detecting signal quality according to any one of claims 1 to 4.
CN202210818037.XA 2022-07-13 2022-07-13 Signal quality detection method and device and computer readable storage medium Active CN114884857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210818037.XA CN114884857B (en) 2022-07-13 2022-07-13 Signal quality detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210818037.XA CN114884857B (en) 2022-07-13 2022-07-13 Signal quality detection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114884857A CN114884857A (en) 2022-08-09
CN114884857B true CN114884857B (en) 2022-10-25

Family

ID=82682953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210818037.XA Active CN114884857B (en) 2022-07-13 2022-07-13 Signal quality detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114884857B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101473210A (en) * 2004-07-27 2009-07-01 纳特维斯公司 System and method for collecting, storing, processing, transmitting and presenting very low amplitude signals
CN103348221A (en) * 2011-01-26 2013-10-09 Vega格里沙贝两合公司 Diagnosis of physical-layer bus parameters in filling level measuring device
CN113467413A (en) * 2021-06-16 2021-10-01 深圳市道通科技股份有限公司 Method, detection equipment and detection system for detecting automobile fault
CN114095271A (en) * 2021-11-30 2022-02-25 北京天融信网络安全技术有限公司 Communication bus detection method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009045386A1 (en) * 2009-10-06 2011-04-07 Endress + Hauser Process Solutions Ag Method for operating a fieldbus interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101473210A (en) * 2004-07-27 2009-07-01 纳特维斯公司 System and method for collecting, storing, processing, transmitting and presenting very low amplitude signals
CN103348221A (en) * 2011-01-26 2013-10-09 Vega格里沙贝两合公司 Diagnosis of physical-layer bus parameters in filling level measuring device
CN113467413A (en) * 2021-06-16 2021-10-01 深圳市道通科技股份有限公司 Method, detection equipment and detection system for detecting automobile fault
CN114095271A (en) * 2021-11-30 2022-02-25 北京天融信网络安全技术有限公司 Communication bus detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114884857A (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN104866632B (en) Fault data acquisition methods, device and the terminal of home appliance
CN104062967B (en) The method for diagnosing faults of start stop system and device
CN105223944A (en) The vehicle data acquisition equipment of a kind of adaptive OBD II interface and the multiple automobile bus of self-adaptation and diagnosing protocol
CN104579816A (en) Vehicle network health assessment
CN101170447A (en) Service failure diagnosis system based on active probe and its method
EP2346212A1 (en) Communication error monitoring system of power device based on ethernet and method thereof
CN104639368A (en) Method and device for processing faults of communications network equipment
CN104076233A (en) Ageing degree detecting method and device
CN1323336C (en) Dynamic detecting and ensuring method for equipment operating status data quality
CN103957551B (en) Communications status method for real-time monitoring in automatic weather station
CN114943321A (en) Fault prediction method, device and equipment for hard disk
CN114884857B (en) Signal quality detection method and device and computer readable storage medium
CN116014850A (en) Energy storage battery control optimization method and device and electronic equipment
CN115632706B (en) FC link management method, device, equipment and readable storage medium
CN108592312A (en) The method of inspection, the device and system of air-conditioner set wireless networking
CN116755024A (en) Method and device for testing electric energy meter communication interface and readable storage medium
CN111683012A (en) Information reporting method and device, electronic equipment and storage medium
CN114338451B (en) Controller local area network bus test system, method and storage medium
CN114690741A (en) Controller test system and method for vehicle, electronic device and readable storage medium
CN114660504A (en) Detection method and device for insulation monitoring loop, electronic equipment and storage medium
CN113934579B (en) Hardware detection method and equipment for short-distance single-signal transmission network
US6367028B1 (en) Self diagnosing communications bus and method of operating same
CN111551803A (en) Diagnosis method and device for charging pile
CN114338264A (en) Bus communication quality control method and system, air conditioning unit and electronic equipment
CN112887111B (en) Equipment fault detection method and device and computer 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