CN105243043B - The method for realizing high speed serial communication data filtering - Google Patents

The method for realizing high speed serial communication data filtering Download PDF

Info

Publication number
CN105243043B
CN105243043B CN201510570168.0A CN201510570168A CN105243043B CN 105243043 B CN105243043 B CN 105243043B CN 201510570168 A CN201510570168 A CN 201510570168A CN 105243043 B CN105243043 B CN 105243043B
Authority
CN
China
Prior art keywords
data
invalid
serial communication
effective
high speed
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
CN201510570168.0A
Other languages
Chinese (zh)
Other versions
CN105243043A (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.)
Nanjing Quanxin Cable Technology Co Ltd
Original Assignee
Shanghai Sai Zhi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Sai Zhi Information Technology Co Ltd filed Critical Shanghai Sai Zhi Information Technology Co Ltd
Priority to CN201510570168.0A priority Critical patent/CN105243043B/en
Publication of CN105243043A publication Critical patent/CN105243043A/en
Application granted granted Critical
Publication of CN105243043B publication Critical patent/CN105243043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Dc Digital Transmission (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to a kind of method for realizing high speed serial communication data filtering, including when receiving invalid data sequence, valid data counter can reset to pre-set threshold value at once, invalid data counter can add 1, and compared with threshold values B, when more than threshold values B, then it is assumed that data invalid, when not less than threshold values B, then it is assumed that data are effective;, first can be compared with threshold value A after valid data sequence or effective Comma shorter sequences is received, when length is more than or equal to A, invalid data counter subtracts 1, and successively compared with threshold range.Using this kind of method, the filtration treatment to the shorter valid data sequence with Comma is realized, synchronous signal sequence is more steady, and link stability increases, it is ensured that the integrality and correctness of the valid data synchronously received;Reduce interference of the noise to adjacent channel;Critical imprinting line can be adjusted according to real-time application environment, the application synchronously detected is wider, is adapted to various environmental models.

Description

The method for realizing high speed serial communication data filtering
Technical field
The present invention relates to communication technical field, more particularly to high-speed serial data communication technical field, in particular to one kind The method for realizing high speed serial communication data filtering.
Background technology
Synchronizing signal in high speed serial communication be used for representing data receiver whether with transmitting terminal (or serial input Data) it is synchronous, so as to which whether the data for being used to refer to receive are effective, and whether receiving port needs generation state to shift Deng being such as transferred to link lost condition or reverse transition from link normal condition.For a unstable or noisy link, It is possible to receive data sequence as shown in Figure 1, if can not effectively be filtered, it is possible to cause the mistake of whole Link State Disorderly.
Situation 1:It is mingled with a shorter invalid data sequence (noise) in two longer valid data sequences;
Situation 2:It is mingled with a shorter valid data sequence (being actually noise) in two invalid data sequences;
Situation 3:Being mingled with a shorter valid data sequence with Comma in two invalid data sequences (is actually Noise, Comma are mainly used to align data in high speed serial communication);
Situation 4:Invalid data sequence is followed by Comma and longer valid data sequence
Data filtering methods general at present:Based on the filtering method with comma values
This method is on the basis of data are correctly decoded (effective or invalid), according to lower Fig. 2 synchronous state machines transfer principle figure State transition is synchronized, synchronous, mistake is first defined to the filtration treatment of valid data and invalid data together so as to realize Step and three kinds of states of presynchronization, and set one and lose synchronous threshold value Rx_LOS_HOLD, when the invalid data of reception Sequence accumulation is when being less than Rx_LOS_HOLD, can keep with data syn-chronization before, when the invalid data sequence of reception adds up to be equal to During Rx_LOS_HOLD, then synch lost state can be entered, now data are invalid data.Needed under the state etc. waiting Next presynchronization state can just be entered by receiving comma signals, can be always maintained at losing synchronous regime if without comma signals. If receiving the individual valid data sequences of N (N value can self-defining) again presynchronization state is continuous, synchronous shape can be just actually entered State, under presynchronization state when invalid data sequence is received, synchronous regime the method is lost in rebound at once being capable of effective mistake The noise of situation 1 and situation 2 is filtered, but shorter effective comma sequences can not be filtered well, under such as situation 3 and situation 4 Noise.For example an invalid sequence is closelyed follow after an effective comma, the new comma that now has another one again quickly is effective Sequence, cause a comma sequence followed by invalid data sequence also have not enough time to handle, just enter again quickly pre- same Step.So circulation, it is most likely that cause link vacation LINK.The synchronizing signal obtained using the filter method is as shown in Figure 3.
Summarize it is above-mentioned it is general can draw, general synchronization detecting method have ignored to Comma it is shorter effectively The processing of data sequence.
The content of the invention
The purpose of the present invention is the shortcomings that overcoming above-mentioned prior art, there is provided one kind, which can be realized, improves link stabilization Property, reduce noise to adjacent-channel interference, have broader applications scope the method for realizing high speed serial communication data filtering.
To achieve these goals, the method for realizing high speed serial communication data filtering of the invention has following form:
This realizes the method for high speed serial communication data filtering, and it is mainly characterized by, and described method comprises the following steps:
(1) serial communication data are received;
(2) judge the data sequence type received, if being non-invalid data sequence, continue step (3), if Invalid data sequence, then continue step (5);
(3) judge whether the valid data quantity continuously received exceedes predetermined threshold value A, if it is, continue step (4), Otherwise step (1) is continued;
(4) invalid counting value of invalid data counter subtracts 1, then proceedes to step (6);
(5) invalid counting value described in adds 1, then proceedes to step (6);
(6) judge whether described invalid counting value size is more than predetermined threshold value B, if it is, think data invalid, it is no Then think that data are effective.
It is preferred that described non-invalid data sequence is valid data sequence or effective Comma data sequences.
It is preferred that described step (3), comprises the following steps:
Effective count value of (3-1) valid data counter adds 1;
(3-2) judges whether described effective count value is more than predetermined threshold value A, if it is, continue step (3-3), it is no Then continue step (1);
Effective count value described in (3-3) is reset to predetermined threshold value A, then proceedes to step (4);
Described step (5), comprises the following steps:
Effective count value described in (5-1) is reset to predetermined threshold value A, then proceedes to step (5-2);
Invalid counting value described in (5-2) adds 1, then proceedes to step (6).
More preferably, described predetermined threshold value A is the length value for presetting effective data bit.
It is preferred that described serial communication data are fiber optic serial communication data.
The method for realizing high speed serial communication data filtering in the invention is employed, is had the advantages that:
(1) filtration treatment to the shorter valid data sequence with Comma, the synchronous signal sequence after improvement are realized More steady, link stability increases, it is ensured that the integrality and correctness of the valid data synchronously received;
(2) interference of the noise to adjacent channel is reduced;
(3) critical imprinting line can be adjusted according to real-time application environment, the application synchronously detected is wider, is adapted to various Environmental model.
Brief description of the drawings
Fig. 1 is reception signal sequence chart.
Fig. 2 is the schematic diagram for the method for filtering communication data in the prior art.
Fig. 3 is using the synchronous signal sequence schematic diagram that filter method obtains in the prior art.
Fig. 4 is the cylinder water column scale model work principle of filter of the method for realizing high speed serial communication data filtering of the present invention Figure.
Fig. 5 is the synchronous signal sequence signal realized the method for high speed serial communication data filtering and obtained using the present invention Figure.
Fig. 6 is the flow chart of the method for realizing high speed serial communication data filtering of the present invention.
Embodiment
In order to more clearly describe the technology contents of the present invention, carried out with reference to specific embodiment further Description.
Based on drum water column scale model innovation data filtering method:
After the method is correctly decoded basis based on high-speed serial data, data sequence can be judged first (effectively also It is invalid), for valid data sequence and effective comma, think effective, then valid data and invalid data are set One critical scale value, according to the change of the critical value range, further filter making an uproar under situation 3 and situation 4 in such as Fig. 1 Sound.So as to the link more stablized.
Its principle model below figure 4, a drum water column illustraton of model is devised, and define a critical scale A.Work as reception When end receives invalid data sequence, equivalent to a certain amount of water is injected in cylinder bucket, now water scale can be corresponded to and raised, When water scale increases but still is less than critical scale value A, data remain in that effectively, when water scale is higher than critical scale During value, now think that data are no longer valid, for now carrying out a shorter effective comma, be reduced to insufficient for scale Below critical value, effective comma can be filtered out actually.It is achieved thereby that the noise filtering for situation 3 and situation 4.
Synchronous signal sequence after filtering is as shown in Figure 5.
A kind of flow chart of high speed serial communication data filtering methods of the present invention is illustrated in figure 6, in actual applications, The filtration treatment to the shorter valid data sequence with Comma is realized, the synchronous signal sequence after improvement is more steady, enters One step improves link stability, can adjust the imprinting line of drum water column model, synchronous inspection according to real-time application environment in addition The application of survey is wider, is adapted to the synchronous detection of various environmental models.
This synchronization detecting method can be applied to the data filtering of FC communications fields bottom.As shown in fig. 6, it is data filtering Fpga logic implementation process figure, a valid data sequence counter Valid_cnt and invalid data sequence count are defined first Device Invalid_cnt, and the critical threshold values A and B of a maximum is pre-set to counter respectively.A represents the length of valid data position Angle value, B represent default Invalid_cnt threshold values.For the data sequence received, effective and invalid data is divided into after decoding 2 kinds of sequence, processing mode is as follows:
(1) when receiving invalid data sequence, Valid_cnt can reset to pre-set threshold value, Invalid_cnt meetings at once Add 1, and compared with threshold values B, when more than threshold values B, then it is assumed that data invalid, when not less than threshold values B, then it is assumed that data Effectively.
(2), first can be with the length of valid data sequence after valid data sequence or effective Comma shorter sequences is received Degree A is compared, and when length is more than or equal to A, Valid_cnt can send out a pulse signal, trigger invalid counter Invalid_cntB subtracts 1, and successively compared with threshold range.
Noise under such as situation 3 and situation 4 may filter that according to the threshold range, follow-up data is handled successively.
The method for realizing high speed serial communication data filtering in the invention is employed, is had the advantages that:
(1) filtration treatment to the shorter valid data sequence with Comma, the synchronous signal sequence after improvement are realized More steady, link stability increases, it is ensured that the integrality and correctness of the valid data synchronously received;
(2) interference of the noise to adjacent channel is reduced;
(3) critical imprinting line can be adjusted according to real-time application environment, the application synchronously detected is wider, is adapted to various Environmental model.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that it can still make Various modifications and alterations are without departing from the spirit and scope of the present invention.Therefore, specification and drawings are considered as illustrative It is and nonrestrictive.

Claims (5)

  1. A kind of 1. method for realizing high speed serial communication data filtering, it is characterised in that described method includes:
    (1) serial communication data are received;
    (2) judge the data sequence type received, if being non-invalid data sequence, continue step (3), if invalid Data sequence, then continue step (5);
    (3) judge whether the valid data quantity continuously received exceedes predetermined threshold value A, if it is, continuing step (4), otherwise Continue step (1);
    (4) invalid counting value of invalid data counter subtracts 1, then proceedes to step (6);
    (5) invalid counting value described in adds 1, then proceedes to step (6);
    (6) judge whether described invalid counting value size is more than predetermined threshold value B, if it is, thinking data invalid, otherwise recognize It is effective for data.
  2. 2. the method according to claim 1 for realizing high speed serial communication data filtering, it is characterised in that described non-nothing It is valid data sequence or effective Comma data sequences to imitate data sequence.
  3. 3. the method according to claim 1 for realizing high speed serial communication data filtering, it is characterised in that described step (3), comprise the following steps:
    Effective count value of (3-1) valid data counter adds 1;
    (3-2) judges whether described effective count value is more than predetermined threshold value A, if it is, continuation step (3-3), otherwise after Continuous step (1);
    Effective count value described in (3-3) is reset to predetermined threshold value A, then proceedes to step (4);
    Described step (5), comprises the following steps:
    Effective count value described in (5-1) is reset to predetermined threshold value A, then proceedes to step (5-2);
    Invalid counting value described in (5-2) adds 1, then proceedes to step (6).
  4. 4. the method according to claim 3 for realizing high speed serial communication data filtering, it is characterised in that described is default Threshold value A is to preset the length value of effective data bit.
  5. 5. the method according to claim 1 for realizing high speed serial communication data filtering, it is characterised in that described is serial Communication data is fiber optic serial communication data.
CN201510570168.0A 2015-09-09 2015-09-09 The method for realizing high speed serial communication data filtering Active CN105243043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510570168.0A CN105243043B (en) 2015-09-09 2015-09-09 The method for realizing high speed serial communication data filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510570168.0A CN105243043B (en) 2015-09-09 2015-09-09 The method for realizing high speed serial communication data filtering

Publications (2)

Publication Number Publication Date
CN105243043A CN105243043A (en) 2016-01-13
CN105243043B true CN105243043B (en) 2018-04-06

Family

ID=55040696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510570168.0A Active CN105243043B (en) 2015-09-09 2015-09-09 The method for realizing high speed serial communication data filtering

Country Status (1)

Country Link
CN (1) CN105243043B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1211122A (en) * 1998-08-04 1999-03-17 国家科学技术委员会高技术研究发展中心 Segment synchronizing detection method in digital communication
CN1570900A (en) * 2004-04-27 2005-01-26 北京长信嘉信息技术有限公司 A data transmitting and receiving method for serial data
US8959268B2 (en) * 2012-03-09 2015-02-17 Canon Kabushiki Kaisha Information processing apparatus, serial communication system, method of initialization of communication therefor and serial communication apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1211122A (en) * 1998-08-04 1999-03-17 国家科学技术委员会高技术研究发展中心 Segment synchronizing detection method in digital communication
CN1570900A (en) * 2004-04-27 2005-01-26 北京长信嘉信息技术有限公司 A data transmitting and receiving method for serial data
US8959268B2 (en) * 2012-03-09 2015-02-17 Canon Kabushiki Kaisha Information processing apparatus, serial communication system, method of initialization of communication therefor and serial communication apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于 F P G A 的光纤通信系统中帧同步头检测设计;韩红霞等;《电光与控制》;20060831;第13卷(第4期);第90-92页 *

Also Published As

Publication number Publication date
CN105243043A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN204906388U (en) Repeater circuit
CN108418582B (en) Method, driver and system for transmitting signals
US10484164B2 (en) Clock and data recovery for pulse based multi-wire link
CN1902822A (en) Noise-tolerant signaling schemes supporting simplified timing and data recovery
CN105680947B (en) A kind of Serial data receiving method for filtering out burr
CN103297060B (en) A kind of decoding circuit being applicable to two-forty correction miller coding signal
CN110098837A (en) Data-encoding scheme, coding/decoding method, relevant apparatus and storage medium
CN103888693A (en) Image transmission device
CN102685091B (en) A kind of ten thousand mbit ethernet gearbox Fifo Read-write Catrol and tolerant systems
CN102938744B (en) A kind of implementation method of universal serial transceiver
CN105243043B (en) The method for realizing high speed serial communication data filtering
CN107094071A (en) The system and method that pseudo- preamble detection is reduced in communication sink
CN108170616B (en) System for realizing clock domain crossing signal transmission by using latch
US9094911B2 (en) Data communication system, method of optimizing preamble length, and communication apparatus
CN103166732A (en) Clock pulse embedded data transfer method and packet data coding/decoding method
CN103812505A (en) Bit synchronization lock detector
CN107147437A (en) Optical fibre communication method and equipment
CN108322298B (en) UART out-of-synchronization recovery method, equipment and system
EP2019501A1 (en) Method and device for detecting the begin of burst mode data packages
CN202713455U (en) Video signal processing device
KR101396912B1 (en) Serial link synchronizing method in serdes network
CN202043234U (en) Novel SDI (standard data interface) signal extender
CN106250343B (en) A kind of digital signal and usb signal mixed transport device and method
CN108011703B (en) Parallel interface time sequence control method and device
CN104699651A (en) Method for sending and receiving data by meter RS-485

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240122

Address after: Floor 12, Building 5, No. 18 Qingjiang South Road, Gulou District, Nanjing City, Jiangsu Province, 210000

Patentee after: NANJING QUANXIN CABLE TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: Room 402, Building 23, No. 487 Tianlin Road (Baoshiyuan), Xuhui District, Shanghai, 200233

Patentee before: SHANGHAI SAIZHI INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China