The invention discloses a design method for improving the transmission stability of a CoaXPress acquisition
system, and relates to the technical field of
machine vision. The invention provides a low-resource, reversible and self-adaptive data
randomization mapping scheme aiming at the problems of
signal baseline drift and error codes caused by the combination of a Nyquist code pattern and a random code pattern under 8B / 10B coding. The method comprises the following steps: when an acquisition card is idle, sending a detection
feature code pattern DETECTWORD at an interval of 10ms; starting a mapping function after the camera detects the abnormal code pattern, performing
byte-by-
byte XOR
processing on the content of the data packet containing the abnormal code pattern by adopting the mapping function, only
processing the content, not moving the
tail of the packet header, and changing the last K27.7 of the packet header into K29.7; and after the acquisition card identifies the packet header which is K29.7 finally, performing same function inverse XOR on the content to recover the
original data and repair the packet header. According to the method, the
bit error rate is remarkably reduced, the
residual frame loss phenomenon is eliminated, and the
system transmission stability is greatly improved on the premise that the hardware cost is not increased.