CN113517950A - Signal receiving and transmitting method, system and medium - Google Patents

Signal receiving and transmitting method, system and medium Download PDF

Info

Publication number
CN113517950A
CN113517950A CN202110485665.6A CN202110485665A CN113517950A CN 113517950 A CN113517950 A CN 113517950A CN 202110485665 A CN202110485665 A CN 202110485665A CN 113517950 A CN113517950 A CN 113517950A
Authority
CN
China
Prior art keywords
data packet
data
count value
module
check
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.)
Granted
Application number
CN202110485665.6A
Other languages
Chinese (zh)
Other versions
CN113517950B (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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110485665.6A priority Critical patent/CN113517950B/en
Publication of CN113517950A publication Critical patent/CN113517950A/en
Application granted granted Critical
Publication of CN113517950B publication Critical patent/CN113517950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Abstract

The invention discloses a signal transceiving method, a system and a medium, wherein the signal transceiving method comprises the following steps: setting a first data format, configuring a cyclic redundancy check algorithm, a bidirectional cache module, a coding module and an accumulation algorithm, and processing an input signal based on the first data format, the cyclic redundancy check algorithm, the bidirectional cache module, the coding module and the accumulation algorithm to obtain a first data packet; setting a data threshold and a counting difference, acquiring a data packet transmission instruction based on the data threshold when a first data packet is sent, and performing data packet retransmission operation based on the data packet transmission instruction and the counting difference; when the first data packet is received, acquiring a second check word and a second data packet, setting a check result based on the first check word and the second check word, and executing feedback retransmission operation based on the check result and the second data packet; the invention can improve the transmission quality and transmission efficiency of signals between boards by combining software and hardware design.

Description

Signal receiving and transmitting method, system and medium
Technical Field
The present invention relates to the field of circuit board signal optimization technology, and in particular, to a signal transceiving method, system and medium.
Background
In the prior art, on one hand, the transmission quality of signals is generally improved by adopting a hardware architecture design, and the method has certain limitations and higher cost; on the other hand, a software architecture is rarely adopted to optimize signal transmission, and the method lacks a certain verification process, so that the quality, the correctness and the transmission efficiency of the signal are not controlled, and the operation stability of the server is influenced finally.
Disclosure of Invention
The invention mainly solves the problem that the existing inter-board signal quality improving method cannot ensure the stable operation of the server.
In order to solve the technical problems, the invention adopts a technical scheme that: provided is a signal transceiving method, comprising the steps of:
setting a first data format, configuring a cyclic redundancy check algorithm, acquiring an input signal, and processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word;
configuring a bidirectional cache module, an encoding module and an accumulation algorithm, and processing the first data and the first check word based on the bidirectional cache module, the encoding module and the accumulation algorithm to obtain a first data packet containing a first count value;
setting a data threshold and a count difference, acquiring a data packet transmission instruction based on the data threshold when the first data packet is sent, and performing data packet retransmission operation based on the data packet transmission instruction, the first count value and the count difference;
and when the first data packet is received, acquiring a second check word and a second data packet, setting a check result based on the first check word and the second check word, and executing feedback retransmission operation based on the check result, the second data packet and the first count value.
As an improvement, the step of processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word further includes:
extracting signal data of the input signal, and converting the signal data into first data according to the first data format;
and calling the cyclic redundancy check algorithm to process the first data to obtain the first check word corresponding to the first data.
As an improved solution, the step of processing the first data and the first check word based on the bidirectional cache module, the encoding module and the accumulation algorithm to obtain a first data packet containing a first count value further includes:
storing the first check word and the first data through the bidirectional cache module of the sending end to obtain a data packet to be encoded;
generating the first count value corresponding to the data packet to be encoded through the accumulation algorithm, and encoding data in the data packet to be encoded through the encoding module of the transmitting end to obtain a data packet to be transmitted;
and integrating the first count value and the data packet to be sent to obtain the first data packet.
As an improvement, the step of obtaining the data packet transmission instruction based on the data threshold further comprises:
and detecting a sent data value of the first data packet, and acquiring the data packet transmission instruction when the sent data value reaches the data threshold value.
As an improved scheme, the data packet retransmission operation comprises:
generating a second count value and a third count value based on the count difference value and the first count value;
identifying a fourth count value corresponding to the data packet transmission instruction;
when the fourth count value is matched with the second count value, sending a third data packet containing the second count value;
and when the fourth counting value is matched with the first counting value, sending a fourth data packet containing the first counting value or the third counting value.
As an improvement, the step of obtaining the second check word and the second packet, and setting the check result based on the first check word and the second check word, further includes:
judging whether the received first data packet contains the first counting value or not, if so, acquiring the second data packet, decoding the first data packet through the coding module of the receiving end, and calling the cyclic redundancy check algorithm to process the decoded first data packet to obtain the second check word;
judging whether the first check word and the second check word are matched or not; if the verification result is matched with the verification result, the verification result is set to be successful; and if not, setting the verification result as verification failure.
As an improved scheme, the feedback retransmission operation includes:
extracting a fifth count value of the second data packet, and acquiring the second count value and the third count value corresponding to the first count value;
when the verification result is that the verification is successful, judging whether the fifth counting value is matched with the third counting value; if so, processing the second data packet based on the coding module of the receiving end; if not, sending a data packet confirmation instruction corresponding to the first counting value;
when the verification result is that the verification fails, judging whether the fifth count value is matched with the first count value; if so, processing the second data packet based on the coding module of the receiving end; and if not, executing backup retransmission operation based on the fifth count value, the second count value and the third count value.
As an improved scheme, the backup retransmission operation comprises:
identifying the fifth count value;
if the fifth count value is matched with the second count value, sending the data packet confirmation instruction corresponding to the second count value;
and if the fifth count value is matched with the third count value, sending a data packet retransmission instruction corresponding to the first count value.
The present invention also provides a signal transceiving system, comprising:
the device comprises a first processing module, a second processing module, a data packet retransmission module and a feedback retransmission module;
the first processing module is used for setting a first data format and configuring a cyclic redundancy check algorithm, acquiring an input signal and processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word;
the second processing module is used for configuring a bidirectional cache module, an encoding module and an accumulation algorithm, and processing the first data and the first check word based on the bidirectional cache module, the encoding module and the accumulation algorithm to obtain a first data packet containing a first count value;
the data packet retransmission module is used for setting a data threshold and a count difference, when the first data packet is sent, the data packet retransmission module acquires a data packet transmission instruction based on the data threshold, and performs data packet retransmission operation based on the data packet transmission instruction, the first count value and the count difference;
the feedback retransmission module is configured to obtain a second check word and a second data packet when the first data packet is received, set a check result based on the first check word and the second check word, and execute a feedback retransmission operation based on the check result, the second data packet, and the first count value.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the signal transceiving method.
The invention has the beneficial effects that:
1. the signal receiving and transmitting method can improve the transmission quality and transmission efficiency of signals between boards in a mode of combining software and hardware design, and further improves the reliability of the signals and finally improves the operation stability of the server by performing backup processing on abnormal conditions of various links through a checking mechanism.
2. The signal receiving and transmitting system can improve the transmission quality and transmission efficiency of signals between boards in a mode of combining software and hardware design by mutually matching the first processing module, the second processing module, the data packet retransmission module and the feedback retransmission module, and can further improve the reliability of the signals by performing backup processing on abnormal conditions of various links, thereby finally improving the operation stability of the server.
3. The computer-readable storage medium can guide the first processing module, the second processing module, the data packet retransmission module and the feedback retransmission module to cooperate, further improve the transmission quality and the transmission efficiency of signals between boards in a mode of combining software and hardware design, and perform backup processing on abnormal conditions of various links, further improve the reliability of the signals, finally improve the operation stability of a server, and effectively improve the operability of the signal receiving and transmitting method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a signal transceiving method according to embodiment 1 of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of the signal transceiving method according to embodiment 1 of the present invention;
fig. 3 is an architecture diagram of a transmitting end in the prior art according to embodiment 1 of the present invention;
fig. 4 is an architecture diagram of a transmitting end in the signal transceiving method according to embodiment 1 of the present invention;
FIG. 5 is a table comparing the signal data stream runs described in example 1 of the present invention;
fig. 6 is an architecture diagram of a signal transmission/reception system according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are a part of the embodiments of the present invention, and not all embodiments; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified or limited otherwise, the terms "data format", "cyclic redundancy check algorithm", "check word", "bidirectional cache module", "encoding module", "accumulation algorithm", "packet transmission instruction", "data threshold", "count difference", "packet retransmission operation", "feedback retransmission operation", "associated count value", "packet acknowledgement instruction", "packet retransmission instruction", "processing module", "packet retransmission module" and "feedback retransmission module" should be understood in a broad sense. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it is to be noted that: LVDS (Low-Voltage Differential signaling), which is a Low-Voltage Differential signal; crc (cyclic Redundancy check), is a cyclic Redundancy check; ping-pong, is a bi-directional buffering operation.
Example 1
The present embodiment provides a signal transceiving method, as shown in fig. 1 to 5, including the following steps:
first, it should be noted that the signal transceiving method described in this embodiment is applied to transmission of LVDS signals between circuit boards in a server; in the application scenario, the server needs to efficiently process a large amount of data for a long time, and signals between the server circuit boards need to be transmitted efficiently and stably; therefore, a signal transceiving method capable of improving the signal transmission quality and transmission efficiency is required; correspondingly, in the prior art, the improvement and optimization of the signal receiving and transmitting in a hardware design to a certain extent are generally considered, but the hardware design has higher cost, poorer adaptability and larger limitation, and the hardware design usually has a service life limit and cannot be applied to a server in a high-quality state all the time; therefore, the method for transmitting and receiving signals needs to be designed from the aspect of software; correspondingly, in the prior art, the optimization design on the software level is less, and the common optimization mode only honors the data transmission mode of the nation 8B/10B to process the signals, so that the transmission quality of the signals is improved, but the correctness and the transmission efficiency of the signals cannot be ensured; therefore, the method described in this embodiment solves the above problems from the perspective of combining software and hardware:
s100, setting a first data format, configuring a cyclic redundancy check algorithm, acquiring an input signal, and processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word;
step S100 specifically includes:
s110, extracting signal data of an input signal, where the signal data is valid signal data of the input LVDS signal that carries functional data, such as a trigger parameter, a start parameter, and the like; converting the signal data into first data according to a first data format, in this embodiment, the first data format is a 4B data packet header, and correspondingly adding the 4B data packet header to the signal data to obtain 8KB first data;
s120, calling a cyclic redundancy check algorithm to process the first data to obtain a first check word corresponding to the first data; in this embodiment, the cyclic redundancy check algorithm is a triggering algorithm of CRC operation, and correspondingly, CRC operation is performed on the first data to obtain a CRC check code corresponding to the first data: CR C _ first data, the check code is the above-mentioned first check word;
in this step, the signal is first preprocessed to facilitate subsequent bidirectional storage and encoding operations.
S200, configuring a bidirectional cache module, an encoding module and an accumulation algorithm, and processing the first data and the first check word based on the bidirectional cache module, the encoding module and the accumulation algorithm to obtain a first data packet containing a first count value;
step S200 specifically includes:
in order to ensure the transmission quality of signals, based on the idea of amplitude emphasis, a bidirectional cache module, a coding module and an accumulation algorithm are respectively configured at a sending end and a receiving end;
correspondingly, the structures and processing logics of the sending end and the receiving end correspond to each other, and in the embodiment, the coding module is an 8B/10B coding module;
in order to ensure the signal transmission quality and ensure the efficiency of signal transmission, the link constructed by the steps and the algorithm process the data receiving and transmitting:
s210, storing the first check word and the first data through a bidirectional cache module of a sending end to obtain a data packet to be encoded; in this embodiment, the first check word generated in step S120 is continuously written to the first data, that is, the first data is integrated and stored to obtain the data packet to be encoded; the data packet to be coded is a data packet of 8200B;
s220, generating a first count value corresponding to the data packet to be encoded through an accumulation algorithm, and encoding data in the data packet to be encoded through an encoding module of a transmitting end to obtain a data packet to be transmitted;
s230, integrating the first count value and a data packet to be sent to obtain a first data packet; the first data packet comprises a first count value of a packet header, valid data and a first check word; correspondingly, generating a first count value according to an accumulation algorithm every time generating a data packet to be sent; that is, if the first count value corresponding to the currently sent data packet is n, the second count value corresponding to the last sent data packet is n-1, and the third count value corresponding to the next sent data packet is n + 1; correspondingly, the difference value of each count value in the accumulation algorithm includes but is not limited to 1;
in this embodiment, the bidirectional cache module is explained here: the bidirectional cache module is internally provided with a bidirectional cache space, the bidirectional cache space is two identical storage spaces, and when the data packet is stored, the data packet is copied into two parts according to an 8KB storage format and is respectively stored in the storage spaces; when the data packet is sent, for example, the data packet corresponding to the second count value n-1 is read and sent in the first space, and the data packet corresponding to the corresponding first count value n is sent through the second space; at this time, the data packet corresponding to n in the first space can be used as a retransmission backup; when receiving the data packet, the data packet is stored into the bidirectional buffer space of the receiving end and is read according to the logic.
Through the step, the transmission efficiency is further improved by combining the operation of the bidirectional buffer module, namely the ping-pong operation, under the condition of ensuring the transmission quality of the first step.
S300, setting a data threshold and a count difference, acquiring a data packet transmission instruction based on the data threshold when the first data packet is sent, and performing data packet retransmission operation based on the data packet transmission instruction, the first count value and the count difference;
step S300 specifically includes:
s310, detecting a sent data value of a first data packet, and acquiring a data packet transmission instruction when the sent data value reaches a data threshold value; in the embodiment, the operation of the count value is configured in the software protocol of the transmission control software of the LVDS, and the count range can be set, and is generally set to 0 to 15; correspondingly, the data packet transmission instruction also corresponds to the counting value; in this embodiment, the data threshold is 8100, that is, when the 8100 th valid data has been sent in the data packet, a data packet transmission instruction is obtained; the packet transmission instruction includes: a retransmission instruction and a confirmation instruction; the retransmission instruction represents that the corresponding data packet needs to be retransmitted; the confirmation instruction represents that the corresponding data packet before is confirmed to be abnormal and needs to be confirmed again;
s320, the packet retransmission operation includes: generating a second count value and a third count value based on the count difference value and the first count value, wherein the count difference value is set according to an accumulation algorithm and is equal to an accumulated value in the accumulation algorithm; identifying a fourth count value corresponding to the packet transmission command, wherein the fourth count value can be any one of the first count value, the second count value and the third count value; when the fourth count value is matched with the second count value, sending a third data packet containing the second count value; when the fourth count value is matched with the first count value, sending a fourth data packet containing the first count value or the third count value; in this embodiment, the first count value, the second count value, and the third count value are illustrated in step S230, and are n, n-1, and n +1, respectively; correspondingly, the fourth count value is the to-be-compared count value corresponding to the data packet transmission instruction mentioned in step S310, so that: when the fourth count value is n-1, the fourth count value represents that the instruction is related to the data packet corresponding to n-1, and indicates that a transmission link between the sending end and the receiving end is correct and has no abnormality, so that the n-1 data packet is sent according to the instruction; when the fourth count value is n, it represents that the instruction is related to the data packet corresponding to n, and it is impossible to transmit the data packet corresponding to n +1 at this time, so that it is necessary to take a corresponding operation according to the specific content of the instruction, if the instruction is about confirming the data packet corresponding to n, the data packet corresponding to n +1 is transmitted to the receiving end, if the instruction is about retransmitting the data packet corresponding to n, the data packet corresponding to n is transmitted to the receiving end; correspondingly, the above situation is a measure after the instruction is received, and if the instruction is not received, it is considered that the data packet corresponding to n-1 is retransmitted probably because the data packet corresponding to n-1 is unsuccessfully transmitted.
Through the steps, the system abnormal conditions which possibly occur during signal sending are correspondingly processed in the transmission process, and the stability and the reliability of the system are improved.
S400, when the first data packet is received, acquiring a second check word and a second data packet, setting a check result based on the first check word and the second check word, and executing feedback retransmission operation based on the check result, the second data packet and the first count value.
Step S400 specifically includes:
s410, considering that the feedback retransmission operation can be carried out only under the condition that the received data and the sent data are correct, judging whether the received first data packet contains a first counting value, if so, representing that the data packet and the counting received by the receiving end are correct, so that a second data packet is obtained, decoding the first data packet through a coding module of the receiving end, and calling a cyclic redundancy check algorithm to process the decoded first data packet to obtain a second check word; correspondingly, the decoding is also performed in an 8B/10B mode, and the data in the data packet is checked again through a cyclic redundancy check algorithm to obtain a second check word, namely CRC _ new; correspondingly, the second check word is a comparison benchmark of the first check word;
s420, judging whether the first check word and the second check word are matched or not; if the verification result is matched with the verification result, the verification result is set to be successful; if not, setting the verification result as verification failure; in the step, only ordinary verification is carried out, and the verification result becomes a trigger condition in the feedback retransmission operation;
s430, correspondingly, the feedback retransmission operation includes: extracting a fifth count value of the second data packet, and acquiring a second count value and a third count value corresponding to the first count value; the first count value, the second count value and the third count value are exemplified in the above steps, and are not described herein in too much detail; the corresponding fifth count value is the count value extracted from the second data packet and corresponding to the data packet itself, and may be one of the above count values, so that feedback retransmission operation is performed according to the check result and the above count values to solve different system abnormal conditions;
specifically, when the verification result is that the verification is successful, whether the fifth count value is matched with the third count value is judged, that is, whether the fifth count value is n +1 is judged; if the first data packet is matched with the second data packet, the first data packet corresponding to the n is indicated to be transmitted normally, so that the second data packet corresponding to the fifth counting value is processed based on a bidirectional cache module of the receiving end, and CRC operation check and comparison check words are carried out again; if the data packet transmission state does not match with the transmission state of the data packet, the fifth count value is n or n-1, and the data packet transmission state corresponding to the n is confirmed by sending a data packet confirmation instruction corresponding to the first count value, namely n;
specifically, when the verification result is that the verification fails, whether the fifth count value is matched with the first count value is judged; if the second data packet is matched with the second data packet, the fifth counting value is n, and the data packet corresponding to the n is retransmitted after the verification fails, so that the logic is correct, the second data packet is processed by the encoding module based on the receiving end, and CRC operation verification and comparison check words are performed again; if not, executing backup retransmission operation according to the fifth count value, the second count value and the third count value;
s431, the backup retransmission operation includes: if the fifth count value is matched with the second count value, namely the fifth count value is n-1, the data packet corresponding to n-1 before n is abnormal, and a data packet confirmation instruction corresponding to the second count value, namely n-1 is sent; if the fifth count value is matched with the third count value, that is, the fifth count value is n +1, it represents that a system has a skip error, and the data packet retransmission instruction corresponding to the first count value, that is, n +1, needs to be retransmitted.
Through the steps, a data alignment processing operation can be generated between the sending end and the receiving end, the data sent and received each time are ensured to be matched, meanwhile, the data check word at each time is ensured to be correct again, and finally, the situations of data packet loss, data loss and data mistransmission are avoided.
It should be noted that, in this embodiment, the method is tested in the actual signal transmission process, the architecture design of the method finds that the error rate in signal transmission is effectively reduced, and the loss of bandwidth is within the allowable range, and a specific comparison table of the signal data stream operation results is shown in fig. 5; meanwhile, the method described in this embodiment can be applied not only to inter-board signal transmission, but also to data stream transmission of low-speed lines and high-speed lines.
Through the method described in the embodiment, finally, the transmission quality, the transmission efficiency and the stability in the signal transmission process are improved through a mode of combining the soft and hard design, the design is low in cost, only a framework needs to be built on software, and a small number of modules are built on hardware, so that the running stability of the server is further improved, and the defects of the prior art are overcome.
Example 2
The present embodiment provides a signal transceiving system, as shown in fig. 6, including: the device comprises a first processing module, a second processing module, a data packet retransmission module and a feedback retransmission module; the first processing module and the second processing module at two ends respectively execute symmetric logic operation; for example, if the second processing module at the transmitting end performs an encoding operation on data, the second processing module at the receiving end performs a decoding operation, where the above example is only described, and the specific operation is performed according to the specific operation logic of the following system; correspondingly, the data packet retransmission module is positioned at the sending end, and the feedback retransmission module is positioned at the receiving end;
in the signal transceiving system, a first processing module is used for setting a first data format and configuring a cyclic redundancy check algorithm, the first processing module acquires an input signal and processes the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word;
specifically, the first processing module extracts signal data of an input signal and converts the signal data into first data according to a first data format; the first processing module calls a cyclic redundancy check algorithm to process the first data to obtain a first check word corresponding to the first data.
In the signal transceiving system, a second processing module is used for configuring a bidirectional cache module, a coding module and an accumulation algorithm, and processing the first data and the first check word based on the bidirectional cache module, the coding module and the accumulation algorithm to obtain a first data packet containing a first count value;
specifically, the second processing module is respectively configured with a bidirectional cache module, a coding module and an accumulation algorithm at a sending end and a receiving end; the second processing module stores the first check word and the first data through a bidirectional cache module of a sending end to obtain a data packet to be encoded; the second processing module generates a first count value corresponding to the second data through an accumulation algorithm, and codes data in the data packet to be coded through a coding module of the sending end to obtain a data packet to be sent; and the second processing module integrates the first count value and the data packet to be sent to obtain a first data packet.
In the signal transceiving system, a data packet retransmission module is used for setting a data threshold and a count difference, when the first data packet is sent, the data packet retransmission module acquires a data packet transmission instruction based on the data threshold, and performs a data packet retransmission operation based on the data packet transmission instruction, the first count value and the count difference;
specifically, the data packet retransmission module detects a sent data value of a first data packet, and when the sent data value reaches a data threshold value, the data packet retransmission module acquires a data packet transmission instruction; the data packet retransmission module generates a second count value and a third count value based on the count difference value and the first count value, and identifies a fourth count value corresponding to the data packet transmission instruction; when the fourth count value is matched with the second count value, the data packet retransmission module sends a third data packet containing the second count value; and when the fourth counting value is matched with the first counting value, the data packet retransmission module sends a fourth data packet containing the first counting value or the third counting value.
In the signal transceiving system, the feedback retransmission module is configured to obtain a second check word and a second data packet when receiving the first data packet, and set a check result based on the first check word and the second check word, and the feedback retransmission module performs a feedback retransmission operation based on the check result, the second data packet, and the first count value.
Specifically, the feedback retransmission module judges whether the received first data packet contains a first counting value, if so, the data packet received by the receiving end and the counting are correct, so the feedback retransmission module acquires a second data packet and controls a coding module of the receiving end to decode the first data packet, and the feedback retransmission module calls a cyclic redundancy check algorithm to process the decoded first data packet to obtain a second check word; the feedback retransmission module judges whether the first check word and the second check word are matched; if the verification result is matched with the verification result, the feedback retransmission module sets the verification result as successful verification; if not, the feedback retransmission module sets the verification result as verification failure;
specifically, the feedback retransmission operation includes: the feedback retransmission module extracts a fifth counting value of the second data packet and acquires a second counting value and a third counting value corresponding to the first counting value; when the verification result is that the verification is successful, the feedback retransmission module judges whether the fifth count value is matched with the third count value; if the first data packet is matched with the second data packet, the feedback retransmission module controls a bidirectional cache module of the receiving end to process the second data packet corresponding to the fifth counting value, and performs CRC operation check and comparison check word again; if not, the feedback retransmission module sends a data packet confirmation instruction corresponding to the first count value;
specifically, when the verification result is that the verification fails, the feedback retransmission module judges whether the fifth count value is matched with the first count value; if the first data packet is matched with the second data packet, the feedback retransmission module controls a coding module at the receiving end to process the second data packet, and performs CRC operation check and comparison check word again; if not, the feedback retransmission module executes backup retransmission operation according to the fifth count value, the second count value and the third count value;
specifically, the backup retransmission operation includes: if the fifth count value is matched with the second count value, the feedback retransmission module sends a data packet confirmation instruction corresponding to the second count value; and if the fifth count value is matched with the third count value, the feedback retransmission module retransmits the data packet retransmission instruction corresponding to the first count value.
Meanwhile, the system described in this embodiment can be applied not only to inter-board signal transmission, but also to data stream transmission of low-speed lines and high-speed lines.
Through the system that this embodiment described, through mutually supporting of each module, finally realize with the mode that the software and hardware design combines, promoted transmission quality, transmission efficiency and the stability in the signal transmission process, and the cost of this kind of design is low, when only needing module operation, build the framework on software, build on hardware a small amount of module can, further promoted the stability of server operation, compensatied prior art not enough.
Example 3
The present embodiments provide a computer-readable storage medium comprising:
the storage medium is used for storing computer software instructions for implementing the signal transceiving method according to embodiment 1, and includes a program for executing the signal transceiving method; specifically, the executable program may be embedded in the signal transceiving system described in embodiment 2, so that the signal transceiving system may implement the signal transceiving method described in embodiment 1 by executing the embedded executable program.
Furthermore, the computer-readable storage medium of the present embodiments may take any combination of one or more readable storage media, where a readable storage medium includes an electronic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Different from the prior art, the signal transceiving method, the signal transceiving system and the signal transceiving medium can improve the transmission quality and the transmission efficiency of signals between boards through a software and hardware combined framework designed in the method, further improve the reliability of the signals by performing backup processing on abnormal conditions of various links, provide effective technical support for the method through the system, and finally improve the operation stability of the server.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for transceiving signals, comprising the steps of:
setting a first data format, configuring a cyclic redundancy check algorithm, acquiring an input signal, and processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word;
configuring a bidirectional cache module, an encoding module and an accumulation algorithm, and processing the first data and the first check word based on the bidirectional cache module, the encoding module and the accumulation algorithm to obtain a first data packet containing a first count value;
setting a data threshold and a count difference, acquiring a data packet transmission instruction based on the data threshold when the first data packet is sent, and performing data packet retransmission operation based on the data packet transmission instruction, the first count value and the count difference;
and when the first data packet is received, acquiring a second check word and a second data packet, setting a check result based on the first check word and the second check word, and executing feedback retransmission operation based on the check result, the second data packet and the first count value.
2. The method for transceiving signals according to claim 1, wherein the step of processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word further comprises:
extracting signal data of the input signal, and converting the signal data into first data according to the first data format;
and calling the cyclic redundancy check algorithm to process the first data to obtain the first check word corresponding to the first data.
3. The method for transceiving signals according to claim 1, wherein the step of processing the first data and the first check word based on the bi-directional buffer module, the coding module and the accumulation algorithm to obtain a first data packet having a first count value further comprises:
storing the first check word and the first data through the bidirectional cache module of the sending end to obtain a data packet to be encoded;
generating the first count value corresponding to the data packet to be encoded through the accumulation algorithm, and encoding data in the data packet to be encoded through the encoding module of the transmitting end to obtain a data packet to be transmitted;
and integrating the first count value and the data packet to be sent to obtain the first data packet.
4. The method for transceiving signals according to any of claims 1 to 3, wherein the step of obtaining a packet transmission instruction based on the data threshold further comprises:
and detecting a sent data value of the first data packet, and acquiring the data packet transmission instruction when the sent data value reaches the data threshold value.
5. The method for signaling according to claim 4, wherein the packet retransmission operation comprises:
generating a second count value and a third count value based on the count difference value and the first count value;
identifying a fourth count value corresponding to the data packet transmission instruction;
when the fourth count value is matched with the second count value, sending a third data packet containing the second count value;
and when the fourth counting value is matched with the first counting value, sending a fourth data packet containing the first counting value or the third counting value.
6. The method for transceiving signals according to claim 5, wherein the step of obtaining the second parity word and the second packet and setting the parity result based on the first parity word and the second parity word further comprises:
judging whether the received first data packet contains the first counting value or not, if so, acquiring the second data packet, decoding the first data packet through the coding module of the receiving end, and calling the cyclic redundancy check algorithm to process the decoded first data packet to obtain the second check word;
judging whether the first check word and the second check word are matched or not; if the verification result is matched with the verification result, the verification result is set to be successful; and if not, setting the verification result as verification failure.
7. The method for transceiving signals according to claim 6, wherein the feedback retransmission operation comprises:
extracting a fifth count value of the second data packet, and acquiring the second count value and the third count value corresponding to the first count value;
when the verification result is that the verification is successful, judging whether the fifth counting value is matched with the third counting value; if so, processing the second data packet based on the coding module of the receiving end; if not, sending a data packet confirmation instruction corresponding to the first counting value;
when the verification result is that the verification fails, judging whether the fifth count value is matched with the first count value; if so, processing the second data packet based on the coding module of the receiving end; and if not, executing backup retransmission operation based on the fifth count value, the second count value and the third count value.
8. The method for transceiving signals according to claim 7, wherein the backup retransmission operation comprises:
identifying the fifth count value;
if the fifth count value is matched with the second count value, sending the data packet confirmation instruction corresponding to the second count value;
and if the fifth count value is matched with the third count value, sending a data packet retransmission instruction corresponding to the first count value.
9. A signal transceiving system, comprising: the device comprises a first processing module, a second processing module, a data packet retransmission module and a feedback retransmission module;
the first processing module is used for setting a first data format and configuring a cyclic redundancy check algorithm, acquiring an input signal and processing the input signal based on the first data format and the cyclic redundancy check algorithm to obtain first data and a first check word;
the second processing module is used for configuring a bidirectional cache module, an encoding module and an accumulation algorithm, and processing the first data and the first check word based on the bidirectional cache module, the encoding module and the accumulation algorithm to obtain a first data packet containing a first count value;
the data packet retransmission module is used for setting a data threshold and a count difference, when the first data packet is sent, the data packet retransmission module acquires a data packet transmission instruction based on the data threshold, and performs data packet retransmission operation based on the data packet transmission instruction, the first count value and the count difference;
the feedback retransmission module is configured to obtain a second check word and a second data packet when the first data packet is received, set a check result based on the first check word and the second check word, and execute a feedback retransmission operation based on the check result, the second data packet, and the first count value.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, implements the steps of the signal transceiving method according to any one of claims 1 to 8.
CN202110485665.6A 2021-04-30 2021-04-30 Signal receiving and transmitting method, system and medium Active CN113517950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485665.6A CN113517950B (en) 2021-04-30 2021-04-30 Signal receiving and transmitting method, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485665.6A CN113517950B (en) 2021-04-30 2021-04-30 Signal receiving and transmitting method, system and medium

Publications (2)

Publication Number Publication Date
CN113517950A true CN113517950A (en) 2021-10-19
CN113517950B CN113517950B (en) 2024-03-12

Family

ID=78063786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485665.6A Active CN113517950B (en) 2021-04-30 2021-04-30 Signal receiving and transmitting method, system and medium

Country Status (1)

Country Link
CN (1) CN113517950B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679300A (en) * 2022-02-28 2022-06-28 福思(杭州)智能科技有限公司 Data verification method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764797A (en) * 2009-12-17 2010-06-30 哈尔滨侨航通信设备有限公司 Time division multi-channel LAPD processor and designing method thereof
CN105404538A (en) * 2015-12-25 2016-03-16 广州慧睿思通信息科技有限公司 FPGA-based device and method for loading and upgrading object codes
WO2016095569A1 (en) * 2014-12-17 2016-06-23 深圳市中兴微电子技术有限公司 Method and apparatus for reducing false detection rate, and storage medium
WO2018202097A1 (en) * 2017-05-05 2018-11-08 华为技术有限公司 Encoding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764797A (en) * 2009-12-17 2010-06-30 哈尔滨侨航通信设备有限公司 Time division multi-channel LAPD processor and designing method thereof
WO2016095569A1 (en) * 2014-12-17 2016-06-23 深圳市中兴微电子技术有限公司 Method and apparatus for reducing false detection rate, and storage medium
CN105404538A (en) * 2015-12-25 2016-03-16 广州慧睿思通信息科技有限公司 FPGA-based device and method for loading and upgrading object codes
WO2018202097A1 (en) * 2017-05-05 2018-11-08 华为技术有限公司 Encoding method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
KHALED BOUCHIREB;: "Improved retransmission scheme for video communication systems", 《2008 IEEE 19TH INTERNATIONAL SYMPOSIUM ON PERSONAL, INDOOR AND MOBILE RADIO COMMUNICATIONS》 *
张晓雷: ""基于 8B/10B+CRC 的高速数据长距离可靠传输设计"", 《中国知网硕士电子期刊出版信息》, pages 41 - 45 *
李辉景;王淑琴;任勇峰;甄国涌;焦新泉;: "基于CRC校验的高速长线LVDS传输设计", 电子器件, no. 06 *
陶传会;: "浅议CRC算法在计算机网络通信中应用", 信息与电脑(理论版), no. 05 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679300A (en) * 2022-02-28 2022-06-28 福思(杭州)智能科技有限公司 Data verification method and device, electronic equipment and storage medium
CN114679300B (en) * 2022-02-28 2023-10-13 福思(杭州)智能科技有限公司 Data verification method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113517950B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
US7343545B2 (en) Method for processing noise interference
EP1258121B1 (en) Adaptive method and arrangement for implementing incremental redundancy in reception
KR19980024351A (en) Image coding apparatus, image decoding apparatus and image transmission method
CN103229444B (en) Coding/decoding method, Apparatus and system
CN113517950B (en) Signal receiving and transmitting method, system and medium
JP3996928B2 (en) How to handle corrupted data
CN107852275B (en) Data transmission device, data transmission method, reception device, and reception method
CN111385062B (en) Data transmission method, device, system and storage medium based on WDM
JP4966642B2 (en) Communication apparatus and communication control method
JP3794800B2 (en) Data communication method and apparatus
US7590921B1 (en) Data communication system and method
WO2001009709A1 (en) Ic card connector
CN117171083B (en) NAK-based system for adaptively repairing PCIE interface interconnection link
JP3281202B2 (en) Error control system
US8910007B2 (en) Apparatus and method for error check of transmission data
CN115913468A (en) Integrated circuit, communication method and communication system
JPH10308932A (en) Data transmitting method/device
JPH09130368A (en) Data communication equipment
CN117171083A (en) NAK-based system for adaptively repairing PCIE interface interconnection link
CN116414614A (en) Data processing method, storage medium and equipment for database cluster
JPH06216883A (en) Radio data communication equipment and radio data communication method
CN115883682A (en) Data transmission method and device based on HTTP2 protocol
CN115361103A (en) Buffer management mechanism for select-repeat hybrid automatic repeat request protocol
CN112511271A (en) Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface
CN116073955A (en) Method and system for recovering stage lighting data under weak network

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