Search

CN-119835427-B - FPGA-based data transmission state monitoring method and system

CN119835427BCN 119835427 BCN119835427 BCN 119835427BCN-119835427-B

Abstract

The invention belongs to the technical field of data transmission, and particularly relates to a data transmission state monitoring method and system based on an FPGA, wherein the method comprises the following steps: And the end sets the order of the macadam ellipses in the current data transmission according to the state monitoring result of the last data transmission, screens out a plurality of macadam ellipses which can completely cover the whole chromaticity diagram and have the minimum quantity and serve as a plurality of color features through all the macadam ellipses distributed on the chromaticity diagram, scans all pixel points in the image data to be transmitted to obtain a pixel point sequence, forms the color feature sequence by the color features of all the pixel points in the pixel point sequence, sets multi-communication chain codes of each color feature, is used for converting the color feature sequence into a plurality of chain codes, and performs compression coding on all the chain codes, so that the compression coding result of the image data to be transmitted is obtained and transmitted. The invention can adapt to the current data characteristics and transmission environment.

Inventors

  • LI ZONGMING

Assignees

  • 苏州赛米德半导体科技有限公司

Dates

Publication Date
20260512
Application Date
20250122

Claims (9)

  1. 1. The data transmission state monitoring method based on the FPGA is characterized by comprising the following steps of: the data receiving end receives the data from each time After the image data is transmitted by the terminal, the data receiving time and the data attention degree are fed back to the state monitoring result An end; the data receiving time is when the data receiving end receives the data from The data attention is given by the data receiving end after analyzing the received image data, and the value range of the data attention is as follows ; The terminal sets the order of the macadam ellipse in the current data transmission according to the state monitoring result of the last data transmission and marks the order as By all distributed on the chromagram The order macadam ellipses are used for screening out a plurality of minimum numbers capable of completely covering the whole chromaticity diagram The order macadam ellipses, and are used as various color features; The method comprises the steps of obtaining color characteristics of each pixel point according to color values of each pixel point in the pixel point sequence, and marking a sequence formed by the color characteristics of all the pixel points as a color characteristic sequence; setting a multi-connected chain code of each color feature, the multi-connected chain code giving a plurality of contiguous color features of each color feature and a direction indicator of each contiguous color feature; The method comprises the steps of combining multiple communication chain codes of all color features, converting a color feature sequence into a plurality of chain codes, wherein a first element in the chain codes belongs to the color feature, and other elements belong to the direction indicator; And the terminal sends the compression coding result of the image data to be transmitted to the data receiving terminal.
  2. 2. The method for monitoring the data transmission state based on the FPGA according to claim 1, wherein the method for obtaining the order of the macadam ellipse during the current data transmission is as follows: The FPGA end stores the data sending time of each data transmission; At the position of After receiving the state monitoring result of the last data transmission fed back by the data receiving end, the end calculates the duration of the last data transmission according to the data receiving time and the data sending time of the last data transmission, wherein the duration is equal to the difference value between the data receiving time and the data sending time; according to the transmission speed and the data attention of the last data transmission, calculating the order of the macadam ellipse in the current data transmission , , Respectively a preset first coefficient and a preset second coefficient, In order to take the function of the minimum value, For the transmission speed of the last data transmission, As a reference value for the transmission speed, For the data attention of the last data transmission, As the reference value of the order number, Representing an upward rounding.
  3. 3. The method for monitoring the data transmission state based on the FPGA according to claim 1, wherein the setting the multi-connected chain code of each color feature comprises: Will be Any integer within the range as a preselected number, Setting multi-communication chain codes of each color feature according to a preselected number, including taking any one color feature as a central color feature, calculating distances between all color features and the central color feature, and minimizing the distance between the color features and the central color feature A seed color feature, an adjacent color feature that is a center color feature, For a preselected number and in order of decreasing distance from the center color feature, the direction indicators of each adjacent color feature are set to 0 to And taking all adjacent color features of the center color feature and the directors of all adjacent color features as the multi-connected chain codes of the center color feature.
  4. 4. The method for monitoring the data transmission state based on the FPGA according to claim 1, wherein the setting the multi-connected chain code of each color feature comprises: Will be Any integer within the range as a preselected number, The method comprises the steps of setting a multi-communication chain code of each color feature according to the target number, taking any one color feature as a center color feature, calculating the distances between all color features and the center color feature, and minimizing the distance between all color features and the center color feature A seed color feature, an adjacent color feature that is a center color feature, For the target number, the direction symbols of the adjacent color features are sequentially set to 0 in the order of the distances from the center color feature from small to large And taking all adjacent color features of the center color feature and the directors of all adjacent color features as the multi-connected chain codes of the center color feature.
  5. 5. The FPGA-based data transmission status monitoring method of claim 4, wherein said calculating a preference for a preselected number as a target number comprises: Taking any one color feature in the color feature sequence as a target color feature according to a preselected quantity Obtaining a previous color feature of the target color feature Judging whether the target color feature belongs to the adjacent color feature of the previous color feature by dividing the target color feature into a preselected number if the target color feature belongs to the adjacent color feature of the previous color feature Otherwise, dividing the target color feature into a preselected number of categories In the second category according to a preselected number Counting the number of color features in the first and second categories of (2) to be preselected As a preference for the target number, a preselected number is to be Preference as target quantity The calculation formula of (2) is as follows: ; In the formula, Respectively of a preselected number The number of color features in the first category and the second category, The number of categories for all color features.
  6. 6. The method for monitoring the data transmission state based on the FPGA according to claim 1, wherein the converting the color feature sequence into a plurality of chain codes comprises: Will be the first The color features are as the first The first element of the chain code, obtain the first A chain code comprising the first of the color feature sequences Starting with each color feature, sequentially judging whether each color feature is adjacent to the previous color feature until a certain color feature is not adjacent to the previous color feature, and marking the serial number of the color feature as Will be at the first Color features to the first The direction symbols of the individual color features are added as elements to the first In the individual chain codes, obtain the A chain code; Wherein when In the time-course of which the first and second contact surfaces, I.e. the first in the sequence of colour features The color features are as the first The first element of the chain code; and so on until the judgment of the last color feature in the color feature sequence is completed, so that the color feature sequence is converted into a plurality of chain codes.
  7. 7. The method for monitoring the data transmission state based on the FPGA according to claim 1, wherein when a certain color feature is an adjacent color feature of a previous color feature, a symbol of the color feature is obtained, and the method for obtaining the symbol of the color feature is as follows: and taking the direction indicator of the adjacent color feature corresponding to the color feature in all adjacent color features of the previous color features of the color feature as the direction indicator of the color feature.
  8. 8. The method for monitoring the data transmission state based on the FPGA according to claim 1, wherein the compression encoding is performed on all the chain codes, so as to obtain a compression encoding result of the image data to be transmitted, comprising: For any one chain code, the compression coding process of the chain code is that for the first chain code Individual elements, when At the time of the first The individual elements belonging to the color feature, obtain the first Sequence numbers of individual elements in all color features Sequence number Is set to Sequence number Binary digits of (2) The corresponding binary data as the first As a result of the compression encoding of the individual elements, The number of the types of all the color features At the time of the first The elements belonging to the direction symbol, the first The binary bit number of each element is set as Will be at the first Binary digits of individual elements The corresponding binary data as the first As a result of the compression encoding of the individual elements, The compression coding results of all elements in the chain code are formed into the compression coding result of the chain code; and taking the compression coding results of all the chain codes as the compression coding results of the image data to be transmitted.
  9. 9. An FPGA-based data transmission state monitoring system comprising a processor and a memory, the memory storing computer program instructions which, when executed by the processor, implement an FPGA-based data transmission state monitoring method according to any one of claims 1-8.

Description

FPGA-based data transmission state monitoring method and system Technical Field The invention relates to the technical field of data transmission. More particularly, the invention relates to a data transmission state monitoring method and system based on an FPGA. Background A Field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) is a reconfigurable hardware platform that allows a user to configure logic blocks, memory and input/output systems as needed to implement specific functions, and FPGA is applied in the fields of communications, computing, military, aerospace, etc., especially in scenarios requiring high performance computing and fast data processing, such as high definition video streaming, sensor data processing, etc. In the related art, for example, a Chinese patent application document with the application publication number of CN113365016A discloses a map image data real-time acquisition system, which comprises a CPU, at least one FPGA connected with each CPU, at least one image acquisition device connected with each FPGA, an image acquisition device used for acquiring a geographic environment image and sending the geographic environment image to the FPGA, the FPGA used for receiving the geographic environment image sent by the connected image acquisition device in parallel, performing color mixing interpolation processing on the geographic environment image to obtain RGB format image data, performing color space conversion on the RGB format image data to obtain YUV format image data and outputting the YUV format image data in a channel, sequentially performing data compression on the image data of each channel, and transmitting the compressed image data to a memory, and the CPU used for storing the compressed image data in the memory in real time. Communication systems based on FPGA design need to consider the balance between compression effect and image quality, but parameters of data compression in related technologies are fixed and cannot adapt to changing data characteristics and transmission environments, so that the compression effect and the image quality cannot be balanced. Disclosure of Invention In order to solve the technical problems that the parameters of the data compression are fixed and unchanged, and the data characteristics and the transmission environment cannot be adapted to the changes, so that the compression effect and the image quality cannot be balanced, the invention provides the following aspects. In a first aspect, the invention provides a data transmission state monitoring method based on an FPGA, comprising the steps that a data receiving end feeds back data receiving time and data attention as state monitoring results to the FPGA end after receiving image data transmitted from the FPGA end each time, and the FPGA end sets the order of a macadam ellipse during current data transmission according to the state monitoring results of the last data transmission and records the order asBy all distributed on the chromagramThe order macadam ellipses are used for screening out a plurality of minimum numbers capable of completely covering the whole chromaticity diagramThe method comprises the steps of obtaining image data to be transmitted, obtaining a sequence of pixel points by scanning all pixel points in the image data, obtaining the color characteristics of each pixel point according to the color values of each pixel point in the sequence of pixel points, marking the sequence formed by the color characteristics of all pixel points as a color characteristic sequence, setting a multi-communication chain code of each color characteristic, wherein the multi-communication chain code gives out a plurality of adjacent color characteristics of each color characteristic and a direction indicator of each adjacent color characteristic; And the terminal sends the compression coding result of the image data to be transmitted to the data receiving terminal. The invention dynamically adjusts parameters of compression coding during current data transmission by monitoring the state of previous data transmission to adapt to the current data characteristic and transmission environment and balance compression effect and image quality, wherein the image data to be transmitted is converted into a color characteristic sequence by the characteristic that the color difference of the color points of the macadam ellipse distributed on a chromaticity diagram is not easily perceived by human eyes, thereby ensuring the image quality of the compression coding result of the image data to be transmitted, and the color characteristic sequence is converted into a plurality of chain codes by combining the characteristic that the color characteristics corresponding to the pixel points in the image data to be transmitted have space adjacency in a chromaticity diagram and the plurality of adjacent color characteristics of each color characteristic and the direction indicator of each adjacent c