CN117650837A - Optical port false connection detection method - Google Patents

Optical port false connection detection method Download PDF

Info

Publication number
CN117650837A
CN117650837A CN202311369235.3A CN202311369235A CN117650837A CN 117650837 A CN117650837 A CN 117650837A CN 202311369235 A CN202311369235 A CN 202311369235A CN 117650837 A CN117650837 A CN 117650837A
Authority
CN
China
Prior art keywords
bit data
signal
value
line signal
eye
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.)
Pending
Application number
CN202311369235.3A
Other languages
Chinese (zh)
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.)
Yutai Microelectronics Co ltd
Original Assignee
Yutai Microelectronics 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 Yutai Microelectronics Co ltd filed Critical Yutai Microelectronics Co ltd
Priority to CN202311369235.3A priority Critical patent/CN117650837A/en
Publication of CN117650837A publication Critical patent/CN117650837A/en
Pending legal-status Critical Current

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention relates to the technical field of electronic communication, in particular to an optical port false connection detection method, which comprises the following steps of S1, repeatedly sampling an on-line signal for N times to obtain a sampling signal; step S2, setting a time window, counting the middle continuous P bit data of the sampling signal in the time window, judging whether the counted P bit data are 0 or 1, if so, executing the step S3; otherwise, determining that the eye width of the eye pattern corresponding to the on-line signal is not in accordance with the requirement; step S3, judging whether P is larger than a set value Q, if so, subtracting K from the value of P, and returning to the step S2; if not, executing the step S4; s4, confirming that the eye width of an eye pattern corresponding to the signal on the line meets the requirement; the invention is simple and easy to realize, and can avoid false link triggering transmission caused by interference signals and damage the safety and accuracy of information transmission.

Description

Optical port false connection detection method
Technical Field
The invention relates to the technical field of electronic communication, in particular to an optical port false connection detection method.
Background
In a 100M transmission network based on an ethernet architecture, when an optical module is adopted by a medium interface of a PHY chip (Physical Layer), signals at an on-line receiving end are easily interfered by complex electromagnetic environments such as ESD (Electrostatic Discharge) or strong external noise, and abnormal receiving signals appear, so that link judgment of a link is affected, the link is erroneously triggered, and part of unexpected error data contents are transmitted, so that the accuracy and safety of network system transmission are greatly damaged.
Disclosure of Invention
The invention aims to provide a method for detecting false connection of an optical port, which solves the technical problems;
the technical problems solved by the invention can be realized by adopting the following technical scheme:
a method for detecting the false connection of optical port includes such steps as,
step S1, repeatedly sampling the on-line signal for N times to obtain a sampling signal;
step S2, a time window is set, continuous P bit data in the middle of the sampling signal are counted in the time window, whether the counted P bit data are 0 or 1 is judged, if so, the signal detection result is normal, and step S3 is executed; otherwise, determining that the eye width of the eye pattern corresponding to the on-line signal is not in accordance with the requirement;
step S3, judging whether P is larger than a set value Q, if so, subtracting K from the value of P, and returning to the step S2; if not, executing the step S4;
s4, confirming that the eye width of the eye pattern corresponding to the on-line signal meets the requirement;
wherein N, P, Q, K are all positive integers.
Preferably, in step S2, whether the counted P bit data are all 0 or 1 is judged by a counting mode, a count value is added with 1 when each bit data of the P bit data satisfy 0 or 1, if not, the count value keeps the current value, judgment of next bit data is performed until all the P bit data are judged, the count value is counted after the judgment is finished, whether the count value is greater than a set threshold value is judged, and if yes, the counted P bit data are all 0 or 1; otherwise, it is determined that the statistical P-bit data are not all 0 or 1 at the same time.
Preferably, the value of the count value is reset to 0 each time step S2 is performed.
Preferably, in step S2, counting the P continuous bit data in the middle of the sampling signal includes selecting P bit data twice, selecting P bit data in the middle of the sampling signal in the time window when P bit data is selected for the first time, and determining whether the P bit data in the first time are 0 or 1; when P bit data are selected for the second time, translating one bit on the sampling signal to a direction approaching to or separating from the first bit data based on the first selection result, and judging whether the P bit data for the second time are 0 or 1; determining whether the judgment results of the P bit data counted twice are 0 or 1, if so, executing the step S3; otherwise, determining that the eye width of the eye pattern corresponding to the on-line signal is not satisfactory.
Preferably, the interference received by the on-line signal is determined based on the eye width of the eye pattern corresponding to the on-line signal not meeting the requirement, and the on-line signal is determined to be normal based on the eye width of the eye pattern corresponding to the on-line signal meeting the requirement.
Preferably, the on-line signal is an optical module interface optical fiber signal of a 100M transmission network of an ethernet architecture.
Preferably, the eye pattern is a two-level eye pattern.
Preferably, N has a value of 10, P has a value of 8,Q, and K has a value of 1.
Preferably, the method further comprises step S5, resetting N, P, Q, K, and returning to step S1 to monitor the rest of the on-line signals.
Preferably, step S4 further includes counting all the judgment results in step S2, and if all the signal detection results are normal, confirming that the eye width of the eye pattern corresponding to the on-line signal meets the requirement.
The invention has the beneficial effects that: by adopting the technical scheme, the method is simple and easy to realize, and can avoid false link triggering transmission caused by interference signals and damage the safety and accuracy of information transmission.
Drawings
FIG. 1 is a schematic diagram illustrating steps of a method for detecting optical port false connection according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an eye diagram with normal signals according to an embodiment of the present invention;
fig. 3 is an eye diagram of signal received interference in an embodiment of the present invention;
fig. 4 is a flowchart illustrating the detection of two different P-bit data selections according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
A method for detecting false connection of an optical port, as shown in figure 1, comprises,
step S1, repeatedly sampling the on-line signal for N times to obtain a sampling signal;
step S2, setting a time window, counting the middle continuous P bit data of the sampling signal in the time window, judging whether the counted P bit data are 0 or 1, if so, executing the step S3; otherwise, determining that the eye width of the eye pattern 1 corresponding to the on-line signal is not in accordance with the requirement;
step S3, judging whether P is larger than a set value Q, if so, subtracting K from the value of P, and returning to the step S2; if not, executing the step S4;
step S4, confirming that the eye width of the eye pattern 1 corresponding to the signal on the line meets the requirement;
wherein N, P, Q, K are all positive integers.
Specifically, the invention adopts a simple and easy-to-realize circuit structure, and when the interference signal is detected, the current transmission can be stopped until the normal signal is detected, and the link is reconnected (link) again, so that the false link caused by the interference signal is prevented from triggering the transmission, and the safety and the accuracy of the information transmission are damaged.
The invention judges whether false link occurs based on the difference of eye pattern characteristics when normal signals and interference signals are transmitted. When signals are superimposed for a period of time during normal signal transmission, an eye pattern 1 shaped like an open eye is seen, as shown in fig. 2. When an interference signal is present, the transmission quality of the signal is affected and the eye width is smaller than that of the normal signal transmission, as shown in fig. 3. Based on the characteristic, the on-line signal is continuously and repeatedly monitored, and when the signal acquired in a period of time is greater than a normal eye width judgment threshold value, the signal is considered to be normal link; if the threshold is smaller than the threshold, the transmission is considered to be false link, and the transmission is terminated.
The invention firstly carries out repeated ten times of sampling on the signal on the line, and if no interference exists, the repeated N times of sampling result is continuous N bits of 0 or 1; when interference occurs, the N-bit sampling result repeated ten times is not all 0 or 1.
Specifically, the present embodiment is described by taking n=10, p=8, q=3, k=1 as an example,
the invention sets a time window within which the sampled signal is counted. The first statistics selects the middle p=8 bits of the n=10 bit sampling result, each clock cycle judges whether the 8 bit data are all 0 or 1, if yes, the count value (counter) is added with 1, and if not, the count value keeps the current value. When the time window is over, comparing the statistical value of the count value with a set threshold value, and if the value of the count value is greater than or equal to the threshold value, considering that the sampling data is normal; conversely, the sampled signal is considered to be subject to interference. And subtracting K from the value of P in the second statistics, namely selecting the middle 7 bits of the 10-bit sampling result, and repeating the process to judge. The third selection is to continue subtracting K from the value of P on the basis of the second selection, and the last statistics is to select the middle Q=3 bits of the 10-bit sampling result, so that the set time window and the judgment threshold value can be kept consistent each time.
In a preferred embodiment, in step S2, whether the counted P bit data are all 0 or 1 is judged by counting, the count value is increased by 1 when each bit data of the P bit data satisfy 0 or 1, if not, the count value is kept at the current value, the next bit data is judged until the count value is counted after all the P bit data are judged, whether the count value is greater than a set threshold is judged, and if yes, the counted P bit data are all 0 or 1; otherwise, it is determined that the statistical P-bit data are not all 0 or 1 at the same time.
In a preferred embodiment, the value of the count value is reset to 0 each time step S2 is performed.
In a preferred embodiment, the step S2 of counting the P bits of data in the middle of the sampling signal includes two times of selecting P bits of data, selecting P bits of data in the middle of the sampling signal in a time window when P bits of data are selected for the first time, and determining whether all of the P bits of data for the first time are 0 or 1; when P bit data are selected for the second time, translating one bit on the sampling signal to a direction approaching to or separating from the first bit data based on the first selection result, collecting, and judging whether the P bit data for the second time are 0 or 1; determining whether the judgment results of the P bit data counted twice are 0 or 1, if so, executing the step S3; otherwise, determining that the eye width of the eye pattern 1 corresponding to the on-line signal is not satisfactory.
Specifically, this embodiment is still illustrated by taking n=10, p=8, q=3, and k=1 as examples, and bit maps of P bits of data selected by the first detection and the second detection are shown in the following table 1, and the detection flow is shown in fig. 4, where the difference between the first detection and the second detection is that the selected bits are inconsistent, and the count value counting mode is consistent. The specific mapping pattern of the two tests can be seen in table 1. In the two detection results, as long as one counter counting result is greater than or equal to a threshold value, the fx100 signal can be considered to be normally undisturbed when the current round of sampling bit=n. It should be noted that the value of the count value needs to be reset to 0 before and after the first detection and the second detection.
TABLE 1
In a preferred embodiment, the interference received by the on-line signal is determined based on the eye width of the eye pattern 1 corresponding to the on-line signal not meeting the requirement, and the on-line signal is determined to be normal based on the eye width of the eye pattern 1 corresponding to the on-line signal.
In a preferred embodiment, the in-line signal is an optical module interface fiber signal of a 100M transmission network of an ethernet architecture.
In a preferred embodiment, eye pattern 1 is a two-level eye pattern.
Specifically, the invention aims at 100Base-Fx, the transmission medium is an optical fiber, the adopted coding mode is NRZ coding, and a process of converting a three-level eye pattern of 100Base-Tx Ethernet into a two-level eye pattern can be directly obtained. In addition, the invention does not directly measure the signal characteristics of the eye pattern 1, but directly collects the original digital signals coded on the processing line to judge the signal transmission quality, and does not need the participation of external computing storage equipment, so that the process is simple, the realization cost is low, and the method is more accurate and reliable.
In a preferred embodiment, N has a value of 10, P has a value of 8,Q, and K has a value of 1.
In a preferred embodiment, the method further comprises step S5, resetting N, P, Q, K, and returning to step S1 to monitor the remaining on-line signals.
In a preferred embodiment, step S4 further includes counting all the judgment results in step S2, and if all the signal detection results are normal, confirming that the eye width of the eye pattern 1 corresponding to the signal on the line meets the requirement.
Specifically, the invention counts the detection results of Q-P of the previous sampling bit number when judging whether the link is false or not finally. If the Q-P detection result signals are normal and are not interfered, the fx100 signal quality is considered to meet the requirement, link can be performed, and the next round of monitoring is continued. If the detection result is interfered for a certain time, the fx100 signal quality is considered to be unqualified, and the next round of monitoring is carried out again.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, and it will be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for detecting false connection of optical port is characterized by comprising the following steps,
step S1, repeatedly sampling the on-line signal for N times to obtain a sampling signal;
step S2, a time window is set, continuous P bit data in the middle of the sampling signal are counted in the time window, whether the counted P bit data are 0 or 1 is judged, if so, the signal detection result is normal, and step S3 is executed; otherwise, determining that the eye width of the eye pattern corresponding to the on-line signal is not in accordance with the requirement;
step S3, judging whether P is larger than a set value Q, if so, subtracting K from the value of P, and returning to the step S2; if not, executing the step S4;
s4, confirming that the eye width of the eye pattern corresponding to the on-line signal meets the requirement;
wherein N, P, Q, K are all positive integers.
2. The method for detecting optical port false connection according to claim 1, wherein in step S2, it is judged whether the counted P bit data are all 0 or 1 by a counting method, a count value is added with 1 when each bit data of the P bit data satisfy 0 or 1, if not, the count value is kept at a current value, the count value is counted after the next bit data are judged until all the P bit data are judged, it is judged whether the count value is greater than a set threshold, and if yes, it is determined that the counted P bit data are all 0 or 1; otherwise, it is determined that the statistical P-bit data are not all 0 or 1 at the same time.
3. The method according to claim 2, wherein the count value is reset to 0 each time step S2 is performed.
4. The optical port false connection detection method according to claim 1, wherein in step S2, counting the P consecutive bit data in the middle of the sampling signal includes selecting P bit data twice, selecting P bit data in the middle of the sampling signal in the time window when selecting P bit data for the first time, and determining whether the P bit data for the first time are 0 or 1; when P bit data are selected for the second time, translating one bit on the sampling signal to a direction approaching to or separating from the first bit data based on the first selection result, and judging whether the P bit data for the second time are 0 or 1; determining whether the judgment results of the P bit data counted twice are 0 or 1, if so, executing the step S3; otherwise, determining that the eye width of the eye pattern corresponding to the on-line signal is not satisfactory.
5. The method for detecting optical port false connection according to claim 1, wherein the interference received by the on-line signal is determined based on an eye width of the eye pattern corresponding to the on-line signal not conforming to a requirement, and the on-line signal is determined to be normal based on an eye width of the eye pattern corresponding to the on-line signal conforming to a requirement.
6. The method for detecting optical port false connection according to claim 1, wherein the on-line signal is an optical module interface optical fiber signal of a 100M transmission network of an ethernet architecture.
7. The method of claim 1, wherein the eye pattern is a two-level eye pattern.
8. The method of claim 1, wherein N has a value of 10, p has a value of 8,Q, and k has a value of 1.
9. The method of claim 1, further comprising the step of resetting the value of N, P, Q, K and returning to step S1 to monitor the remaining on-line signals.
10. The method of claim 1, wherein step S4 further comprises counting all the judgment results in step S2, and if all the signal detection results are normal, confirming that the eye width of the eye pattern corresponding to the on-line signal meets the requirement.
CN202311369235.3A 2023-10-20 2023-10-20 Optical port false connection detection method Pending CN117650837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311369235.3A CN117650837A (en) 2023-10-20 2023-10-20 Optical port false connection detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311369235.3A CN117650837A (en) 2023-10-20 2023-10-20 Optical port false connection detection method

Publications (1)

Publication Number Publication Date
CN117650837A true CN117650837A (en) 2024-03-05

Family

ID=90046792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311369235.3A Pending CN117650837A (en) 2023-10-20 2023-10-20 Optical port false connection detection method

Country Status (1)

Country Link
CN (1) CN117650837A (en)

Similar Documents

Publication Publication Date Title
US7787536B2 (en) Adaptive equalizer apparatus with digital eye-opening monitor unit and method thereof
CN107070743B (en) CAN bus load rate detection method and device
US9661350B2 (en) Methods and apparatus for error rate estimation
CN109075742B (en) Baud rate calibration circuit and serial port chip
JP2001352350A (en) Measurement system and method by statistic eye-diagram of continuous bit stream
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
US20020147947A1 (en) Detecting bit errors in a communications system
US6591383B1 (en) Bit error rate detection
TWI519081B (en) Receiver circuit
EP0499397B1 (en) Digital communications systems
CN114384354A (en) Hardware-implemented serial communication high-dynamic-range baud rate identification method and circuit
CN108256370A (en) A kind of coding/decoding method of RFID reader and decoding system
CN117650837A (en) Optical port false connection detection method
CN101145863A (en) Device and method for detecting system frame header deviation
JP6791660B2 (en) Fault detection device and fault detection method
CN111948469B (en) CAN bus electromagnetic compatibility detection method and system
CN111901165B (en) Channel quality dynamic assessment method and system based on confidence coefficient
CN109802761B (en) Fault identification method and device
KR100414705B1 (en) Transition/non-transition counting method and apparatus in over-sampling data recovery circuit
US20240143423A1 (en) Using training data for link reliability test and predictive maintenance
CN116915589A (en) Vehicle-mounted CAN bus network message anomaly detection method
CN117596177A (en) Communication equipment exception handling method, device, communication equipment and storage medium
JP2870314B2 (en) Transmission line error rate degradation alarm detection circuit
CN116865906A (en) Manchester code receiving method and system
JPH07114414B2 (en) Receiving fault type identification 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