CN110928747B - Baud rate monitoring method and device for asynchronous serial bus - Google Patents
Baud rate monitoring method and device for asynchronous serial bus Download PDFInfo
- Publication number
- CN110928747B CN110928747B CN201911115901.4A CN201911115901A CN110928747B CN 110928747 B CN110928747 B CN 110928747B CN 201911115901 A CN201911115901 A CN 201911115901A CN 110928747 B CN110928747 B CN 110928747B
- Authority
- CN
- China
- Prior art keywords
- pulse width
- single pulse
- module
- normal distribution
- baud rate
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3447—Performance evaluation by modeling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/349—Performance evaluation by tracing or monitoring for interfaces, buses
Abstract
The invention belongs to the technical field of digital circuits, and particularly relates to a baud rate monitoring method and device of an asynchronous serial bus; the method and the device specifically comprise five parts, namely negative pulse width measurement, single pulse width screening, single pulse width storage FIFO, normal distribution model construction and behavior decision, wherein the negative pulse width measurement module measures the width of all negative pulses on a serial data line by using a frequency counting method; the single pulse width screening module screens out the pulse width information according to the configuration information and eliminates the multi-pulse width information; the single pulse width storage FIFO is used for storing single pulse width and providing an empty-full indication for the CPU; the normal distribution model building module builds a normal distribution model according to the single pulse width information; the behavior decision module provides a basis for testing and maintaining products according to the mean value and the variance of the normal distribution model.
Description
Technical Field
The invention belongs to the technical field of digital circuits, and particularly relates to a baud rate monitoring method suitable for an asynchronous serial communication bus.
Background
The invention is applied to the serial communication interface of a certain type of remote interface unit, and the remote interface unit is crosslinked with various airborne equipment through the serial communication interface. The first bit of the data format of the serial communication interface is usually a start bit, which indicates the start of a data segment, and analyzes serial data according to the baud rate, if the baud rates of the sending device and the receiving device are inconsistent, the serial data analysis will be inevitably caused, and whether the baud rate drifts is an important factor affecting the robustness of asynchronous serial bus communication. Therefore, the baud rate monitoring method is designed, and has important significance in early warning of the baud rate deviation condition.
Disclosure of Invention
The invention aims to:
a baud rate monitoring method of an asynchronous serial bus is provided, and is used for early warning about the baud rate deviation condition of the asynchronous serial bus.
The technical scheme of the invention is as follows:
a baud rate monitoring method of an asynchronous serial bus comprises the following steps:
step 1, measuring the negative pulse width;
step 2, screening single pulse width;
step 3, building a normal distribution model;
and 4, performing behavior decision.
Preferably, in the method for monitoring the baud rate of the asynchronous serial bus, in the step 2, the single pulse width screening specifically includes: and (3) comparing the negative pulse width information obtained by the step (1) with a high threshold and a low threshold of the single pulse width corresponding to the baud rate one by one, eliminating the width information which is not in the threshold range, and retaining the single pulse width information in the threshold range.
Preferably, in the method for monitoring the baud rate of an asynchronous serial bus, the step 3 normal distribution model construction specifically includes: and (3) screening the reserved monopulse width information according to the step (3), and calculating the mean value and variance of normal distribution.
Preferably, in the method for monitoring the baud rate of the asynchronous serial bus, the step 4 of the behavior decision specifically includes judging the fluctuation condition of the baud rate according to the mean and the variance calculated in the step 3, and feeding back.
On the other hand, the invention also provides a baud rate monitoring device of the asynchronous serial bus, which comprises a negative pulse width measuring module, a single pulse width screening module, a single pulse width storage module, a normal distribution model building module and a behavior decision module;
the negative pulse width measuring module measures the width of all negative pulses on the monitoring data line;
the single pulse width screening module compares all pulse width information with a high threshold and a low threshold of the single pulse width corresponding to the baud rate one by one, eliminates the single pulse width information which is not in the threshold range, and retains the single pulse width information in the threshold range;
the single pulse width storage module stores single pulse width information and generates storage space filling information;
the normal distribution model construction module is used for calculating the mean value and the variance of normal distribution according to the single pulse width information when the storage space of the single pulse width storage module is full;
and the behavior decision module provides feedback for testing and maintaining the product according to the mean value and the variance of the normal distribution model.
Preferably, in the baud rate monitoring device of an asynchronous serial bus, the negative pulse width measuring module, the single pulse width screening module and the single pulse width storage module are realized based on an FPGA; the normal distribution model construction module and the behavior decision module are realized based on a CPU.
Preferably, in the baud rate monitoring device of an asynchronous serial bus, the single pulse width storage module is a FIFO, and the depth of the FIFO may be configured by the CPU according to the need of normal distribution model construction.
Preferably, in the device for monitoring baud rate of an asynchronous serial bus, the high threshold and the low threshold in the single pulse width screening module may be configured by a CPU.
The beneficial effects are that:
the invention discloses a baud rate monitoring method of an asynchronous serial communication bus, which is used for monitoring the baud rate of the asynchronous serial communication bus in real time and carrying out early warning on the deviation condition of the baud rate of the asynchronous serial communication bus, thereby providing a basis for maintenance and test of products.
Drawings
Fig. 1 is a block diagram of a baud rate monitoring method of an asynchronous serial bus according to the present invention.
Detailed Description
The invention is further described below with reference to the drawings and detailed description.
Fig. 1 is a block diagram of a baud rate monitoring method of an asynchronous serial bus according to the present invention. Referring to fig. 1, the method is based on an fpga+cpu architecture implementation, and specifically includes five parts, namely, negative pulse width measurement, single pulse width screening, single pulse width storage FIFO, normal distribution model construction and behavior decision, where the negative pulse width measurement, single pulse width screening and single pulse width storage FIFO are implemented based on the FPGA, and are aimed at monitoring single pulses on a serial data line, measuring their width information, and storing them in the FIFO; the normal distribution model construction and the behavior decision are realized based on a CPU, and aims to construct a normal distribution model according to the single pulse width information, and conduct the behavior decision according to the model, so that a basis is provided for testing and maintenance of products.
Referring to fig. 1, taking an RS422 asynchronous serial bus as an example, the specific implementation steps are as follows:
step 1: the idle state of the serial data line of the RS422 is high level, so that negative pulses are all in a data section, the negative pulse width measuring module monitors the width of all negative pulses on the data line, and the higher the system clock frequency is, the more accurate the measured pulse width is;
step 2: the single pulse width screening module compares all pulse width information with a high threshold and a low threshold of the single pulse width corresponding to the baud rate one by one, eliminates the width information which is not in the threshold range, and can be configured by a CPU (central processing unit) in order to adapt to the monitoring requirements of various baud rates;
step 3: storing the screened single pulse width information in the FIFO, providing a full-empty indication signal of the FIFO for the CPU, and configuring the depth of the CPU according to the construction requirement of a normal distribution model;
step 4: when the full indication signal empty of the FIFO is high, the CPU reads the FIFO until the empty indication signal full of the FIFO is high, and the normal distribution model building module calculates the mean value and the variance of normal distribution according to the single pulse width information so as to represent the baud rate deviation condition of asynchronous bus communication;
step 5: the behavior decision module provides a basis for testing and maintaining products according to the mean value and the variance of the normal distribution model. When the variance is larger than the maximum allowable error of the baud rate, the serial communication interface is unreliable, and the product should be tested and maintained offline.
Claims (5)
1. The baud rate monitoring method of the asynchronous serial bus is characterized by comprising the following steps of:
step 1, measuring the negative pulse width;
step 2, screening single pulse width;
step 3, building a normal distribution model;
step 4, behavior decision;
in the step 2, the single pulse width screening specifically includes: comparing the negative pulse width information obtained in the step 1 with a high threshold and a low threshold of the single pulse width corresponding to the baud rate one by one, eliminating the single pulse width information which is not in the threshold range, and retaining the single pulse width information in the threshold range;
the step 3 of normal distribution model construction specifically comprises the following steps: screening the reserved monopulse width information according to the step 3, and calculating the mean value and variance of normal distribution;
the step 4 of the behavior decision specifically comprises the steps of judging the fluctuation condition of the baud rate according to the mean value and the variance calculated in the step 3 and feeding back.
2. The baud rate monitoring device of the asynchronous serial bus is characterized by comprising a negative pulse width measuring module, a single pulse width screening module, a single pulse width storage module, a normal distribution model building module and a behavior decision module;
the negative pulse width measuring module measures the width of all negative pulses on the monitoring data line;
the single pulse width screening module compares all negative pulse width information with a high threshold and a low threshold of the single pulse width corresponding to the baud rate one by one, eliminates the single pulse width information which is not in the threshold range, and retains the single pulse width information in the threshold range;
the single pulse width storage module stores single pulse width information and generates storage space filling information;
the normal distribution model construction module is used for calculating the mean value and the variance of normal distribution according to the single pulse width information when the storage space of the single pulse width storage module is full;
and the behavior decision module provides feedback for testing and maintaining the product according to the mean value and the variance of the normal distribution model.
3. The device for monitoring the baud rate of the asynchronous serial bus according to claim 2, wherein the negative pulse width measuring module, the single pulse width screening module and the single pulse width storage module are realized based on an FPGA; the normal distribution model construction module and the behavior decision module are realized based on a CPU.
4. The device for monitoring the baud rate of the asynchronous serial bus according to claim 2, wherein the single pulse width memory module is a FIFO, and the depth of the FIFO is configurable by the CPU according to the requirements of normal distribution model construction.
5. The device for monitoring baud rate of an asynchronous serial bus according to claim 2, wherein the high threshold and the low threshold in the single pulse width screening module are configurable by the CPU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911115901.4A CN110928747B (en) | 2019-11-14 | 2019-11-14 | Baud rate monitoring method and device for asynchronous serial bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911115901.4A CN110928747B (en) | 2019-11-14 | 2019-11-14 | Baud rate monitoring method and device for asynchronous serial bus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110928747A CN110928747A (en) | 2020-03-27 |
CN110928747B true CN110928747B (en) | 2023-06-30 |
Family
ID=69853917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911115901.4A Active CN110928747B (en) | 2019-11-14 | 2019-11-14 | Baud rate monitoring method and device for asynchronous serial bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110928747B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5426646A (en) * | 1992-06-25 | 1995-06-20 | The United States Of America As Represented By The Secretary Of The Navy | Instantaneous bit-error-rate meter |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0413337A (en) * | 1990-05-01 | 1992-01-17 | Zexel Corp | Baud rate discrimination method for serial data |
US7142592B2 (en) * | 2002-04-30 | 2006-11-28 | Adc Dsl Systems, Inc. | Determining speed of a digital signal in a serial transmission line |
US20140153623A1 (en) * | 2012-11-30 | 2014-06-05 | Dinkle Enterprise Co., Ltd. | Device for auto baud rate detection |
US10142089B2 (en) * | 2017-03-22 | 2018-11-27 | Oracle International Corporation | Baud-rate clock data recovery with improved tracking performance |
-
2019
- 2019-11-14 CN CN201911115901.4A patent/CN110928747B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5426646A (en) * | 1992-06-25 | 1995-06-20 | The United States Of America As Represented By The Secretary Of The Navy | Instantaneous bit-error-rate meter |
Also Published As
Publication number | Publication date |
---|---|
CN110928747A (en) | 2020-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9082242B2 (en) | Vehicle network health assessment | |
JP2001352350A (en) | Measurement system and method by statistic eye-diagram of continuous bit stream | |
CN105203980B (en) | A kind of power quality self-checking system and its self checking method | |
JPH0537505A (en) | Method of evaluating digital data link, evaluation circuit of data timing jitter and combination method simultaneously conducting selection of retiming signal and evaluation of digital data link | |
CN110389846A (en) | The electronic device and its method of record event | |
CN113762525B (en) | Federal learning model training method with differential privacy protection | |
CN110928747B (en) | Baud rate monitoring method and device for asynchronous serial bus | |
CN110440888A (en) | A kind of truck scale stable state automatic judging method and device | |
CN112224241B (en) | Speed acquisition system, fault alarm method and device | |
CN101819230A (en) | Method and device for monitoring power consumption of single board | |
CN114325534A (en) | Signal testing method, device, equipment and readable storage medium | |
CN110864776B (en) | Weighing equipment predictive maintenance algorithm and weighing equipment predictive maintenance method | |
CN107918704A (en) | Charge amplifier Storage Life Prediction method, apparatus, storage medium and computer equipment | |
CN106449464A (en) | Wafer testing method | |
CN112162226B (en) | Measurement characteristic separation testing device and method and terminal equipment | |
US20020081757A1 (en) | System for providing information on quality and reliability of optical semiconductor device by using communication network | |
CN111506468B (en) | Hard disk state monitoring system and method | |
CN207541249U (en) | Converter valve lightning arrester connected in parallel optoelectronic monitoring module calibration equipment in a kind of DC converter | |
CN108020396B (en) | A kind of intelligent monitoring device and system suitable for wind-tunnel measurements system | |
CN113359662B (en) | Nuclear power station ring crane electric control system and spare part detection device and method | |
CN115951249B (en) | Battery state monitoring method, system, electronic equipment and storage medium | |
CN111355624B (en) | Self-adaptive equipment performance acquisition method and device | |
CN108627772A (en) | A kind of lithium battery grouping output voltage method for rapidly testing | |
CN113050133B (en) | GNSS star card data interface processing capability test method of satellite system application equipment | |
CN113760594B (en) | PCIE GEN6 link judgment method |
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 |