Data transmission method, board card, device and medium
The signal is processed in the controller at the receiving end of the cable, and the encoding redundancy and the number of retransmissions are determined based on the signal quality, which solves the problems of attenuation, errors or losses during signal transmission, and improves the signal transmission quality and the working efficiency of the server.
Patent Information
- Application Number
- CN202412000358.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-31
AI Technical Summary
During data transmission, the signal is prone to attenuation, errors or loss, resulting in poor signal transmission quality.
The controller is set up through the receiving end of the cable, the signal sent by the transmitting end is received, and the encoding redundancy and/or the number of retransmissions are determined based on the signal error rate, signal-to-noise ratio and signal strength, and the signal is processed to improve the transmission quality.
It improves signal quality during data transmission, reduces data loss or errors, and improves the working efficiency and transmission stability of the board in the server.
Smart Images

Figure CN119728025A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data transmission method, a board, a device and a medium. Background Art
[0002] Conventional cables can cause signal attenuation during data transmission due to long cables in the circuit board or signal interference from other components, which in turn affects the work efficiency and transmission stability of the server where the board is located. If the server is running at high load, data signals will be transmitted in the transmission cable, resulting in data transmission errors or loss.
[0003] Therefore, how to improve the signal transmission quality is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0004] The purpose of the present invention is to provide a data transmission method, board, device and medium to solve the problem of poor signal transmission quality caused by attenuation, error or loss of signals during transmission.
[0005] In order to solve the above technical problems, the present invention provides a data transmission method, which is applied to a controller of a cable, wherein the controller is located at a receiving end of the cable, and the method comprises:
[0006] receiving a first signal sent by a transmitting end of the cable;
[0007] Determine a corresponding bit error rate, signal-to-noise ratio, and signal strength according to the first signal;
[0008] Determine the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, signal-to-noise ratio and signal strength;
[0009] The first signal is processed based on coding redundancy and / or the number of retransmissions, so as to transmit the processed first signal to the control component of the receiving end.
[0010] On the one hand, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0011] Pre-establishing a first mapping relationship between a first bit error rate, a first signal-to-noise ratio, and a first signal strength corresponding to a first preset coding redundancy and / or a first preset number of retransmissions;
[0012] When the bit error rate, the signal-to-noise ratio, and the signal strength reach respective corresponding preset conditions, determining the actually corresponding target first preset coding redundancy and / or the target first preset number of retransmissions according to respective first mapping relationships, the bit error rate, the signal-to-noise ratio, and the signal strength;
[0013] Using the target first preset coding redundancy and / or the target first preset number of retransmissions as the corresponding first coding redundancy and / or first number of retransmissions;
[0014] The first coding redundancy and / or the first retransmission number are respectively averaged to determine the final coding redundancy and / or retransmission number.
[0015] On the other hand, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0016] Pre-establishing a second mapping relationship between the first data and the second preset coding redundancy and / or the second preset number of retransmissions; wherein the first data is obtained by adding the reciprocal of the second preset signal-to-noise ratio, the reciprocal of the second preset signal strength, and the second preset bit error rate;
[0017] Adding the reciprocal of the signal-to-noise ratio, the reciprocal of the signal strength and the bit error rate to obtain second data;
[0018] Determine a target second preset coding redundancy and / or a target second preset number of retransmissions according to the second data and the second mapping relationship;
[0019] The target second preset coding redundancy and / or the target second preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
[0020] On the other hand, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0021] Pre-acquire a first weight coefficient corresponding to the bit error rate, a second weight coefficient corresponding to the inverse of the signal-to-noise ratio, and a third weight coefficient corresponding to the inverse of the signal strength; wherein the first weight coefficient, the second weight coefficient, and the third weight coefficient are independent of each other;
[0022] Pre-establishing a third mapping relationship corresponding to a preset signal quality and a third preset coding redundancy and / or a third preset number of retransmissions;
[0023] determining a first signal quality according to the bit error rate, the first weight coefficient, the inverse of the signal-to-noise ratio, the second weight coefficient, the inverse of the signal strength, and the third weight coefficient;
[0024] Determine a target third preset coding redundancy and / or a target third preset number of retransmissions according to the first signal quality and the third mapping relationship;
[0025] The target third preset coding redundancy and / or the target third preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
[0026] On the other hand, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0027] Pre-acquire a fourth mapping relationship between a third preset bit error rate and a third preset signal-to-noise ratio;
[0028] Pre-establishing a fifth mapping relationship between the fourth mapping relationship and a fourth preset coding redundancy and / or a fourth preset number of retransmissions;
[0029] Pre-acquire a sixth mapping relationship between a fourth preset signal-to-noise ratio and a third preset signal strength;
[0030] Pre-establishing a seventh mapping relationship between the sixth mapping relationship and the fifth preset coding redundancy and / or the fifth preset number of retransmissions;
[0031] Determine a first bit error rate according to the signal-to-noise ratio and the fourth mapping relationship;
[0032] If the difference between the first bit error rate and the bit error rate is within a first preset difference range, determining a corresponding target fourth coding redundancy and / or a target fourth number of retransmissions according to the fifth mapping relationship;
[0033] Determine a first signal strength according to the signal-to-noise ratio and the fifth mapping relationship;
[0034] If the difference between the first signal strength and the signal strength is within a second preset difference range, determining the corresponding target fifth coding redundancy and / or the target fifth number of retransmissions according to the seventh mapping relationship;
[0035] The final coding redundancy and / or retransmission number is determined by performing mean processing on the target fourth coding redundancy and the target fifth coding redundancy and / or the target fourth number of retransmissions and the target fifth number of retransmissions.
[0036] On the other hand, processing the first signal based on the number of retransmissions includes:
[0037] Obtaining a first preset timeout period, a preset transmission time, and an actual transmission time corresponding to the transmission of the first signal;
[0038] If the actual transmission time exceeds the preset transmission time and the preset timeout time, determining a critical timeout time according to the first signal quality and the first preset timeout time;
[0039] The first signal is retransmitted according to the number of retransmissions within the critical timeout period.
[0040] On the other hand, determining a corresponding bit error rate, signal-to-noise ratio, and signal strength according to the first signal includes:
[0041] Acquire signal power and noise power corresponding to the first signal;
[0042] Determining the signal-to-noise ratio according to the signal power and the noise power;
[0043] determining a signal strength based on the signal power;
[0044] Obtaining a total number of transmission bits and a number of error bits corresponding to the first signal;
[0045] The bit error rate is determined according to the number of erroneous bits and the total number of transmitted bits.
[0046] In order to solve the above technical problems, the present invention also provides a board card, which includes control components corresponding to the receiving end and the sending end respectively, and the control component of the receiving end and the control component of the sending end are connected by a cable, and controllers are set at both ends of the cable connecting the control component of the receiving end and the control component of the sending end, wherein the controller corresponding to the receiving end of the cable is used to execute the steps of the above-mentioned data transmission method to complete the data transmission between the receiving end and the sending end.
[0047] In order to solve the above technical problems, the present invention further provides a data transmission device, comprising:
[0048] Memory for storing computer programs;
[0049] A processor is used to implement the steps of the data transmission method when executing the computer program.
[0050] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method are implemented.
[0051] The beneficial effects of the present invention are that, on the one hand, by receiving a first signal sent by a transmitting end of a cable, the first signal is executed in a controller of a receiving end arranged in a cable body, so as to improve the data processing before being transmitted to a control component during data transmission, and improve the signal quality of data transmission. According to the first signal, the bit error rate, signal-to-noise ratio and signal strength are determined to facilitate the determination of coding redundancy and the number of retransmissions. The adjustment of coding redundancy here is used to improve the data transmission efficiency. Through the determination process of coding redundancy, when the signal quality of the first signal is poor, the error correction capability is improved to avoid data loss or destruction. The determination of the number of retransmissions is used to improve the correct transmission of data and ensure the data accuracy of the data transmission process. On the other hand, if the first signal is processed only by any one of the two factors, coding redundancy or retransmission number, the data processing accuracy of the first signal is improved to ensure that the data is correct in the control component transmitted to the receiving end. If the first signal is processed by weighing the two factors of coding redundancy and retransmission number, data transmission processing is realized in terms of error correction performance and transmission efficiency, the flexibility and diversity of data transmission are realized, the working efficiency and transmission stability of the board in the server are further improved, and the signal transmission quality is also improved.
[0052] Secondly, the determination process of the bit error rate, signal-to-noise ratio and signal strength lays the foundation for the accuracy of data transmission, and facilitates the subsequent measurement of signal quality based on these three factors, or determines the coding redundancy and the number of re-encoding. Based on the actual bit error rate, signal-to-noise ratio and signal strength reaching their respective preset conditions, the corresponding first coding redundancy and / or the first number of retransmissions are determined based on the mapping relationship corresponding to the coding redundancy and / or the number of retransmissions. Here, the data determined under the respective factors are averaged and the first coding redundancy and / or the first number of retransmissions are processed to obtain the final coding redundancy and / or the number of retransmissions, so as to ensure the authority of the coding redundancy and / or the number of retransmissions determined based on different factors, and improve the accuracy of data transmission. Based on the actual parameters corresponding to the three factors, the second mapping relationship between the determined data and the second preset coding redundancy and / or the second preset number of retransmissions is combined and processed, and the final coding redundancy and / or the number of retransmissions are determined by the actual second data and the second mapping relationship, so as to realize the mapping of the second data determined by the three factor parameters, and improve the accuracy of the judgment process of data transmission. Based on the relationship between the parameters corresponding to the three factors and the weight coefficients, the final coding redundancy and / or number of retransmissions are determined through the mapping relationship between the signal quality and the coding redundancy and / or the number of retransmissions, so as to improve the coding redundancy and / or the number of retransmissions corresponding to the signal quality trade-off and improve the signal quality of data transmission. On the basis of processing the first signal based on the number of retransmissions, a critical timeout time is added, and the first signal is processed according to the number of retransmissions within the critical timeout time to ensure that the data transmission efficiency is not excessively reduced while increasing the number of retransmissions to ensure the correct transmission of the data. Two different mapping relationships are established for the three factors, and the final coding redundancy and / or number of retransmissions are obtained by average processing based on the coding redundancy and / or number of retransmissions determined under different mapping relationships, so as to improve the authority and accuracy of data transmission calculation.
[0053] In addition, the present invention also provides a board, a data transmission device and a medium, which have the same beneficial effects as the above-mentioned data transmission method. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A flow chart of a data transmission method provided by the present invention;
[0056] Figure 2A schematic diagram of a connection between a cable and a board provided in an embodiment of the present invention;
[0057] Figure 3 A schematic diagram of a signal transmission process of a receiving end provided by an embodiment of the present invention;
[0058] Figure 4 A schematic diagram of another signal transmission process of a receiving end provided in an embodiment of the present invention;
[0059] Figure 5 A structural diagram of a data transmission device provided by an embodiment of the present invention;
[0060] Figure 6 A structural diagram of a data transmission device provided by an embodiment of the present invention;
[0061] Figure 7 A schematic diagram of signal transmission provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] The core of the present invention is to provide a data transmission method, board, device and medium to solve the problem of poor signal transmission quality caused by attenuation, error or loss of signals during transmission.
[0064] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0065] With the rapid development of information technology, servers are playing an increasingly important role in data processing, storage, and network communication. In the internal architecture of the server, there are a large number of electronic components that need to be effectively connected and communicated to achieve the normal operation of the entire server system. Among them, the logic controller is a key component in the server that is responsible for coordinating and controlling the work of each component. The connection performance between the logic controller and other components has a vital impact on the overall performance of the server.
[0066] When the logic controller in the server is used to connect and control other components, there are two ways of connection: the first is that when the logic controller and the control component are on the same board, the two can be connected by routing inside the board, but due to the space size limitation of the board, most components cannot be placed on the same board as the logic controller, so they need to be connected in the second way; the second way is that the logic controller and the controlled component are on two boards, so the connection between the logic controller and other components (such as processors, memory modules, storage devices, etc.) is usually achieved through traditional cables. Traditional cables often simply play the role of physical connection, lack of effective logical control and optimization in the signal transmission process, resulting in problems such as attenuation and interference in the signal transmission process, which in turn affects the work efficiency and stability of the server. For example, when the server is in a high-load operation state, a large amount of data signals are transmitted in traditional cables. Due to the lack of targeted logical control, data loss or errors may occur. The data transmission method provided by the present invention can solve the above technical problems.
[0067] Figure 1 A flowchart of a data transmission method provided by the present invention is as follows Figure 1 As shown, the method is applied to a controller of a cable, wherein the controller is located at a receiving end of the cable, and the method comprises:
[0068] S11: receiving a first signal sent by a transmitting end of the cable;
[0069] S12: Determine a corresponding bit error rate, signal-to-noise ratio, and signal strength according to the first signal;
[0070] S13: Determine the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio and the signal strength;
[0071] S14: Process the first signal based on the coding redundancy and / or the number of retransmissions to transmit the processed first signal to a control component at the receiving end.
[0072] Specifically, the executor of this embodiment is the controller at the receiving end of the cable. It can be understood that a controller is arranged inside the cable body, and the controller is at both ends of the cable. The controller is electrically connected to the core wire of the cable. The controller can be used to perform logical processing on the transmitted first signal, including signal encoding, decoding, filtering, error correction and other operations to ensure the accuracy and stability of the first signal during the transmission process.
[0073] Figure 2 A schematic diagram of a connection between a cable and a board provided in an embodiment of the present invention is shown in FIG. Figure 2As shown, the connection between the mainboard 1 and the component 3 is through the cable 2. In the cable 2, two controllers are provided at both ends of the cable, and connectors are connected to the mainboard 1 or the component 3, respectively. The receiving end can be located at any end of the cable 2. If the first end of the cable 2 is used as the receiving end and the second end is used as the transmitting end, the data transmission direction of the receiving end and the transmitting end of the cable 2 can be unidirectional or bidirectional, which is not limited here and can be set according to actual conditions.
[0074] The first signal sent by the transmitting end of the cable in step S11 is received, and the first signal has not yet reached the control component of the board, and is currently in the controller of the receiving end of the cable. Here, it can be received in real time or according to a time interval, which is not limited here.
[0075] In step S12, the corresponding bit error rate, signal-to-noise ratio and signal strength are determined according to the first signal. These three factors can reflect the signal quality of the current first signal. The three factors can be obtained by testing with a test tool or calculated based on transmission parameters related to the first signal, which are not limited here.
[0076] In some embodiments, determining a corresponding bit error rate, signal-to-noise ratio, and signal strength according to the first signal includes:
[0077] Obtaining signal power and noise power corresponding to the first signal;
[0078] Determining a signal-to-noise ratio based on the signal power and the noise power;
[0079] Determining signal strength based on signal power;
[0080] Obtaining a total number of transmission bits and a number of error bits corresponding to the first signal;
[0081] The bit error rate is determined based on the number of erroneous bits and the total number of transmitted bits.
[0082] Specifically, in this embodiment, based on the signal power and noise power corresponding to the first signal, the formula of the signal-to-noise ratio is as follows:
[0083] SNR=10*log(P signal / P noise );
[0084] Among them, P signal is the signal power, P noise is the noise power.
[0085] The formula for signal strength is as follows:
[0086] P=10*log(P mW );
[0087] Among them, P mW WeChat signal power, measured in milliwatts (mW); signal strength reflects the energy level of the signal and is one of the important indicators for evaluating signal quality.
[0088] The formula for bit error rate is as follows:
[0089] BER = number of error bits / total number of transmitted bits.
[0090] The process of determining the bit error rate, signal-to-noise ratio and signal strength provided in this embodiment lays a foundation for the accuracy of data transmission, and facilitates the subsequent measurement of signal quality based on these three factors, or the determination of coding redundancy and the number of recoding times.
[0091] In step S13, the coding redundancy and / or the number of retransmissions of the first signal are determined based on the three factors. The coding redundancy or the number of retransmissions can be directly determined based on the parameters of the three factors, or the coding redundancy and the number of retransmissions can be determined based on the parameters of the three factors. In other words, all three technical solutions can be implemented. In addition, on the basis of implementing the three technical solutions, the corresponding coding redundancy and / or the number of retransmissions can be directly determined by adding the three factors, or on the basis of the original three factors, a timeout time or a weight coefficient can be added to determine the signal quality, and the final coding redundancy and / or the number of retransmissions can be determined based on the mapping relationship between the signal quality and the coding redundancy and / or the number of retransmissions. This is not limited here, as long as the coding redundancy and / or the number of retransmissions can be obtained. In addition, a model can be determined by a model training method to include the three factors. The model determination process here can refer to a conventional model and is not limited here.
[0092] In step S14, the first signal is processed by coding redundancy and / or the number of retransmissions. If the first signal is processed by coding redundancy, the processing process here is to correct the first signal by determining the value of coding redundancy. The principle is that more redundant information can provide more constraints on the first signal, so that when the receiving end detects an error in the first signal, it is more likely to accurately restore the original data. For example, in the parity check code, only 1 bit of redundant information is added, and only an odd number of bit errors can be detected, and no error correction can be performed. Therefore, here, by adding more redundant symbols, multiple bit errors can be corrected.
[0093] For example, repeating each original bit three times, the redundancy is 200%. For example, the original data "1" is encoded as "111". After receiving the data, the receiver uses a majority vote to correct the error. If "101" is received, since the number of "1" is greater than "0", the original data is judged to be "1". In this example, as long as the number of error bits does not exceed 1, the error can be corrected correctly. If the redundancy is further increased, such as repeating each bit 5 times, more errors can be corrected. However, the increase in redundancy means that under the same transmission bandwidth or storage capacity, the actual effective original data transmission or storage capacity is reduced, thereby reducing the transmission efficiency. If the number of retransmissions is taken into account, the coding redundancy and the number of retransmissions need to be balanced. The increase in coding redundancy and the number of retransmissions can be limited by preset values or by certain functional relationships.
[0094] The number of retransmissions is the number of times the transmitting end retransmits and processes the first signal, so as to transmit the processed first signal to the control component of the receiving end.
[0095] A flowchart of a data transmission method provided by an embodiment of the present invention is applied to a controller of a cable, wherein the controller is located at the receiving end of the cable. A first signal sent by the transmitting end of the cable is received; a corresponding bit error rate, signal-to-noise ratio and signal strength are determined according to the first signal; the coding redundancy and / or the number of retransmissions of the first signal are determined based on the bit error rate, signal-to-noise ratio and signal strength; the first signal is processed based on the coding redundancy and / or the number of retransmissions to transmit the processed first signal to the control component of the receiving end. On the one hand, by receiving the first signal sent by the transmitting end of the cable, the first signal is executed in the controller of the receiving end set in the cable body to improve the data processing before being transmitted to the control component during the data transmission process, thereby improving the signal quality of the data transmission. The bit error rate, signal-to-noise ratio and signal strength are determined according to the first signal to facilitate the determination of the coding redundancy and the number of retransmissions. The adjustment of the coding redundancy here is used to improve the data transmission efficiency. Through the determination process of the coding redundancy, when the signal quality of the first signal is poor, the error correction capability is improved to avoid data loss or damage. The determination of the number of retransmissions is used to improve the correct transmission of data and ensure the data accuracy during the data transmission process. On the other hand, if the first signal is processed by only one of the two factors, namely, coding redundancy or the number of retransmissions, the data processing accuracy of the first signal can be improved to ensure that the data transmitted to the control component of the receiving end is correct. If the first signal is processed by weighing the two factors, namely, coding redundancy and the number of retransmissions, data transmission processing is realized in terms of error correction performance and transmission efficiency, the flexibility and diversity of data transmission are realized, the working efficiency and transmission stability of the board in the server are further improved, and the signal transmission quality is also improved.
[0096] In some embodiments, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0097] Pre-establishing a first mapping relationship between a first bit error rate, a first signal-to-noise ratio, and a first signal strength corresponding to a first preset coding redundancy and / or a first preset number of retransmissions;
[0098] When the bit error rate, signal-to-noise ratio and signal strength reach their respective corresponding preset conditions, determining the actual corresponding target first preset coding redundancy and / or the target first preset number of retransmissions according to the respective first mapping relationships, bit error rate, signal-to-noise ratio and signal strength;
[0099] Using the target first preset coding redundancy and / or the target first preset number of retransmissions as the corresponding first coding redundancy and / or first number of retransmissions;
[0100] The first coding redundancies and / or the first retransmission times are respectively averaged to determine the final coding redundancy and / or the retransmission time.
[0101] Specifically, a first mapping relationship between a first bit error rate and a first preset coding redundancy and / or a first preset number of retransmissions is established, and the mapping relationship here may be one, two, or three. Similarly, a first mapping relationship between a first signal-to-noise ratio and a first signal strength and corresponding to a first preset coding redundancy and / or a first preset number of retransmissions is established, and it should be noted that the first mapping relationship here is a general mapping relationship.
[0102] Only when the actual bit error rate, signal-to-noise ratio and signal strength meet their respective corresponding preset conditions, it means that it is necessary to verify the first signal based on the first coding redundancy, or retransmit the first signal based on the first number of retransmissions, or both. The preset condition for the bit error rate is that the bit error rate exceeds the corresponding first threshold; the preset condition for the signal-to-noise ratio is that the signal-to-noise ratio is lower than the corresponding first threshold; the preset condition for the signal strength is that the signal strength is lower than the corresponding first threshold. When the above preset conditions are met, it means that the current signal quality is poor.
[0103] According to the respective first mapping relationships, bit error rate, signal-to-noise ratio and signal strength, the corresponding target first preset coding redundancy and / or the target first preset number of retransmissions are determined as the corresponding first coding redundancy and / or the first number of retransmissions. It should be noted here that the first coding redundancy determined based on the three factors is three, and similarly, the number of corresponding first retransmission coefficients is also three. Therefore, it is necessary to perform mean processing on each first coding redundancy and / or the first number of retransmissions to determine the final coding redundancy and / or the number of retransmissions.
[0104] In the present embodiment, when the actual bit error rate, signal-to-noise ratio, and signal strength meet respective preset conditions, the corresponding first coding redundancy and / or first number of retransmissions are determined based on the mapping relationships corresponding to the coding redundancy and / or the number of retransmissions. Here, the data determined under the respective factors are used, and then the first coding redundancy and / or the first number of retransmissions are averaged to obtain the final coding redundancy and / or the number of retransmissions, so as to ensure the authority of the coding redundancy and / or the number of retransmissions determined based on different factors, and improve the accuracy of data transmission.
[0105] In some other embodiments, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0106] Pre-establishing a second mapping relationship between the first data and the second preset coding redundancy and / or the second preset number of retransmissions; wherein the first data is obtained by summing the reciprocal of the second preset signal-to-noise ratio, the reciprocal of the second preset signal strength, and the second preset bit error rate;
[0107] The reciprocal of the signal-to-noise ratio, the reciprocal of the signal strength and the bit error rate are added together to obtain second data;
[0108] Determine a target second preset coding redundancy and / or a target second preset number of retransmissions according to the second data and the second mapping relationship;
[0109] The target second preset coding redundancy and / or the target second preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
[0110] Specifically, the reciprocal of the second preset signal-to-noise ratio, the reciprocal of the second preset signal strength, and the second preset bit error rate are added together to obtain the second data, that is, the formula is as follows:
[0111] A=BER1+1 / SNR1+1 / REEI1;
[0112] Wherein, A is the second data; BER1 is the second preset bit error rate, SNR1 is the second preset signal-to-noise ratio; REEI1 is the second preset signal strength.
[0113] A second mapping relationship between the first data and the second preset coding redundancy and / or the second preset number of retransmissions is established, the inverse of the actual signal-to-noise ratio, the inverse of the signal strength and the bit error rate are added together to obtain the second data, and the corresponding target second preset coding redundancy and / or the target second preset number of retransmissions is determined based on the second data and the second mapping relationship, where the second data is the first data of the second mapping relationship.
[0114] In this embodiment, the actual parameters corresponding to the three factors are combined and processed to determine the second mapping relationship between the data and the second preset coding redundancy and / or the second preset number of retransmissions. The final coding redundancy and / or the number of retransmissions are determined by the actual second data and the second mapping relationship, so as to achieve mapping of the second data determined by the three factor parameters, thereby improving the accuracy of the judgment process of data transmission.
[0115] In some other embodiments, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0116] Pre-acquire a first weight coefficient corresponding to the bit error rate, a second weight coefficient corresponding to the inverse of the signal-to-noise ratio, and a third weight coefficient corresponding to the inverse of the signal strength; wherein the first weight coefficient, the second weight coefficient, and the third weight coefficient are independent of each other;
[0117] Pre-establishing a third mapping relationship corresponding to a preset signal quality and a third preset coding redundancy and / or a third preset number of retransmissions;
[0118] Determining a first signal quality according to a bit error rate, a first weight coefficient, a reciprocal of a signal-to-noise ratio, a second weight coefficient, a reciprocal of a signal strength, and a third weight coefficient;
[0119] Determine a target third preset coding redundancy and / or a target third preset number of retransmissions according to the first signal quality and the third mapping relationship;
[0120] The target third preset coding redundancy and / or the target third preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
[0121] Specifically, the parameters corresponding to the three factors are added with the corresponding weight coefficients, wherein each weight coefficient is independent and has no constraint relationship. A third mapping relationship corresponding to the preset signal quality and the third preset coding redundancy and / or the third preset number of retransmissions is pre-established; the first signal quality is determined according to the bit error rate, the first weight coefficient, the inverse of the signal-to-noise ratio, the second weight coefficient, the inverse of the signal strength and the third weight coefficient, and the formula is as follows:
[0122] B=a* BER2+b*1 / SNR2+c*1 / REEI2;
[0123] Wherein, B is the first signal quality, a is the first weight coefficient, b is the second weight coefficient, and c is the third weight coefficient.
[0124] The final coding redundancy and / or the number of retransmissions are determined according to the first signal quality and the third mapping relationship.
[0125] In this embodiment, a relationship between the parameters corresponding to the three factors and the weight coefficients is used to determine the signal quality. The final coding redundancy and / or the number of retransmissions are determined by a mapping relationship between the signal quality and the coding redundancy and / or the number of retransmissions, so as to improve the coding redundancy and / or the number of retransmissions corresponding to the signal quality trade-off and improve the signal quality of data transmission.
[0126] In some embodiments, processing the first signal based on the number of retransmissions includes:
[0127] Obtaining a first preset timeout period, a preset transmission time, and an actual transmission time corresponding to the transmission of the first signal;
[0128] If the actual transmission time exceeds the preset transmission time and the preset timeout time, determining a critical timeout time according to the first signal quality and the first preset timeout time;
[0129] The first signal is retransmitted according to the number of retransmissions within a critical timeout period.
[0130] Specifically, if the number of retransmissions is used to process the first signal, the number of retransmissions needs to be constrained by a timeout period to ensure that all retransmissions are used up within the timeout period as much as possible. The specific formula for determining the critical timeout period is as follows:
[0131] C=B+T;
[0132] Among them, B is the first signal quality, T is the first preset timeout time, and C is the critical timeout time.
[0133] The number of retransmissions is determined based on B (the first signal quality) and the third mapping relationship, and the first signal is retransmitted according to the number of retransmissions within a critical timeout period.
[0134] On the basis of processing the first signal based on the number of retransmissions provided in this embodiment, a critical timeout period is added, and the first signal is processed according to the number of retransmissions within the critical timeout period, thereby ensuring that the data transmission efficiency is not excessively reduced while increasing the number of retransmissions to ensure the correct transmission of data.
[0135] In some embodiments, retransmitting the first signal according to the number of retransmissions within the critical timeout period includes:
[0136] Obtaining a critical number of transmissions of the first signal per unit time;
[0137] Retransmitting the first signal according to a first preset number of transmissions during a first timeout period within the critical timeout period, and performing error correction on the retransmitted first signal according to coding redundancy;
[0138] If the error correction of the resent first signal is successful, it is transmitted to the control component of the receiving end;
[0139] If the error correction of the retransmitted first signal fails, the first signal is retransmitted according to the second preset transmission number within the second timeout time within the critical timeout time, and the step of correcting the error of the retransmitted first signal according to the coding redundancy is returned until the number of retransmissions is used up; wherein the second timeout time is later than the first timeout time, the second preset transmission number is greater than the first preset transmission number, and is a preset multiple of the first preset transmission number.
[0140] Specifically, during the first timeout period within the critical timeout period, the first signal is retransmitted according to the first preset number of transmissions, and while sending data, the retransmitted first signal can be error corrected by coding redundancy. If the error correction of the retransmitted first signal is successful, the retransmitted first signal is directly transmitted to the control component of the receiving end; if the error correction of the retransmitted first signal fails, the first signal is retransmitted according to the second preset number of transmissions within the second timeout period within the critical timeout period, and the retransmitted first signal is error corrected until the number of retransmissions is used up. The second timeout period is later than the first timeout period, and the second preset number of transmissions is greater than the first preset number of transmissions, and is a preset multiple of the first preset number of transmissions.
[0141] The present embodiment provides that, within the critical timeout period, if the error correction of the first signal sent based on the first preset number of transmissions within the previous first timeout period fails, then based on the subsequent second timeout period, the number of transmissions is increased by a preset multiple compared to the first preset number of transmissions to increase the transmission frequency, thereby ensuring that while increasing the number of retransmissions, the number of retransmissions is utilized as soon as possible within the critical timeout period, thereby ensuring rapid data transmission.
[0142] In some embodiments, it also includes:
[0143] If the error correction of the retransmitted first signal fails, adjusting the first weight coefficient, the second weight coefficient and / or the third weight coefficient corresponding to the coding redundancy determination process;
[0144] The adjusted first weight coefficient, the second weight coefficient and / or the third weight coefficient are used to determine an adjusted first signal quality;
[0145] If the adjusted first signal quality and the third mapping relationship determine an adjusted target third preset coding redundancy;
[0146] The retransmitted first signal is error corrected according to the target third preset coding redundancy.
[0147] The first signal is retransmitted based on the number of retransmissions, and during the processing of the retransmitted first signal, error correction is performed on the retransmitted first signal based on the coding redundancy. If the error correction fails, the coding redundancy is adjusted. The adjustment process here is to first adjust the weight coefficient corresponding to the first signal quality to predict whether the new first signal quality determined by the adjusted weight coefficient is good. If it is good, the retransmitted first signal is error corrected based on the adjusted coding redundancy. In addition, the fixed adjustment step of the coding redundancy can also be adjusted accordingly, which is not limited here and can be set according to actual conditions.
[0148] The present embodiment provides a method of resending a first signal based on the number of retransmissions, and performing error correction on the resent first signal based on coding redundancy during processing. If the error correction fails, the coding redundancy is adjusted and additional check information is added to ensure correct data transmission while improving error correction capability.
[0149] In some embodiments, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0150] Pre-acquire a fourth mapping relationship between a third preset bit error rate and a third preset signal-to-noise ratio;
[0151] Pre-establishing a fifth mapping relationship between the fourth mapping relationship and a fourth preset coding redundancy and / or a fourth preset number of retransmissions;
[0152] Pre-acquire a sixth mapping relationship between a fourth preset signal-to-noise ratio and a third preset signal strength;
[0153] Pre-establishing a seventh mapping relationship between the sixth mapping relationship and the fifth preset coding redundancy and / or the fifth preset number of retransmissions;
[0154] Determine a first bit error rate according to the signal-to-noise ratio and a fourth mapping relationship;
[0155] If the difference between the first bit error rate and the bit error rate is within the first preset difference range, determining the corresponding target fourth coding redundancy and / or the target fourth number of retransmissions according to the fifth mapping relationship;
[0156] Determine the first signal strength according to the signal-to-noise ratio and the fifth mapping relationship;
[0157] If the difference between the first signal strength and the signal strength is within the second preset difference range, determining the corresponding target fifth coding redundancy and / or the target fifth number of retransmissions according to the seventh mapping relationship;
[0158] The final coding redundancy and / or the number of retransmissions are determined by performing mean processing on the target fourth coding redundancy and the target fifth coding redundancy and / or the target fourth number of retransmissions and the target fifth number of retransmissions.
[0159] Specifically, here, a fourth mapping relationship is first established based on the third preset bit error rate and the third preset signal-to-noise ratio, and then a fifth mapping relationship is established between the fourth mapping relationship and the fourth preset coding redundancy and / or the fourth preset number of retransmissions. A sixth mapping relationship between the fourth preset signal-to-noise ratio and the third preset signal strength is obtained; and a seventh mapping relationship between the sixth mapping relationship and the fifth preset coding redundancy and / or the fifth preset number of retransmissions is pre-established.
[0160] Based on the fourth mapping relationship and the sixth mapping relationship, both of which have the factor of signal-to-noise ratio, the first bit error rate is determined by the actual signal-to-noise ratio and the fourth mapping relationship. If the difference between the first bit error rate and the actual bit error rate is within the first preset difference range, it means that the difference between the actual bit error rate and the first bit error rate is within the allowable range. Similarly, the first signal strength is determined according to the signal-to-noise ratio and the fifth mapping relationship. If the difference between the first signal strength and the signal strength is within the second preset difference range, it means that the difference between the actual signal strength and the first signal strength is within the allowable range.
[0161] The coding redundancy and / or the number of retransmissions respectively determined based on the fifth mapping relationship and the seventh mapping relationship are averaged to obtain the final coding redundancy and / or the number of retransmissions.
[0162] The three factors provided in this embodiment establish two different mapping relationships. Based on the coding redundancy and / or number of retransmissions determined under different mapping relationships, average processing is performed to obtain the final coding redundancy and / or number of retransmissions to improve the authority and accuracy of data transmission calculation.
[0163] In some other embodiments, determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes:
[0164] Pre-acquire a first weight coefficient corresponding to the bit error rate, a second weight coefficient corresponding to the signal-to-noise ratio, and a third weight coefficient corresponding to the signal strength; wherein the first weight coefficient, the second weight coefficient, and the third weight coefficient are independent of each other;
[0165] Pre-establishing a third mapping relationship corresponding to a preset signal quality and a third preset coding redundancy and / or a third preset number of retransmissions;
[0166] Determine a first signal quality according to a bit error rate, a first weight coefficient, a signal-to-noise ratio, a second weight coefficient, a signal strength, and a third weight coefficient;
[0167] Obtaining a first preset timeout period, a preset transmission time, and an actual transmission time corresponding to the transmission of the first signal;
[0168] If the actual transmission time exceeds the preset transmission time and the preset timeout time, determining a critical timeout time according to the first signal quality and the first preset timeout time;
[0169] Pre-establishing an eighth mapping relationship between a preset critical timeout period and a sixth preset number of retransmissions; determining a target sixth preset coding redundancy according to the first signal quality and the third mapping relationship;
[0170] Determine a target sixth preset number of retransmissions according to the critical timeout time and the eighth mapping relationship;
[0171] The target fourth preset coding redundancy and / or the target sixth preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
[0172] Specifically, the determination process of the first signal quality and the timeout time are combined here, and the embodiment corresponding to the critical timeout time can refer to the determination process of the above embodiment, which is not limited here. The corresponding target sixth preset coding redundancy is determined according to the first signal quality and the third mapping relationship, and the target sixth preset number of retransmissions is determined according to the critical timeout time and the eighth mapping relationship, and the and / or relationship between the two is used as the final coding redundancy and / or number of retransmissions.
[0173] The present embodiment provides a method for determining the final coding redundancy and / or number of retransmissions by comprehensively considering the signal strength and the critical timeout period, so as to increase the number of retransmissions within the maximum timeout period of the operation and improve the signal quality.
[0174] In summary, the corresponding number of retransmissions and coding redundancy in this embodiment is an error correction coding technology determined by combining forward error correction code (FEC) with automatic repeat request (ARQ). Select appropriate FEC coding and ARQ protocols. For FEC coding, you can choose high-performance coding such as low-density parity check code (LDPC) code and polarization code; for ARQ protocol, you can use stop-and-wait ARQ, continuous ARQ, etc.; at the sending end, FEC encode the information and send the encoded data. After receiving the data, the receiving end first performs FEC decoding. If the decoding is successful, a confirmation message is sent to the sending end; if the decoding fails, a retransmission is requested from the sending end; the sending end decides whether to retransmit the data based on the feedback from the receiving end. If a confirmation message is received, the next data block will be sent; if a retransmission request is received, the previous data block will be resent; the logic controller collects the signal quality information and reasonably adjusts the FEC coding strength and ARQ protocol parameters to achieve a balance between error correction performance and transmission efficiency.
[0175] Adjust the redundancy of FEC coding. When the signal quality is good (low bit error rate, high signal-to-noise ratio, high received signal strength indication (RSSI)), the redundancy of FEC coding can be reduced to improve transmission efficiency. Because in this case, there are fewer errors in the channel and not much redundant information is needed to correct them. When the signal quality is poor, increase the redundancy of FEC coding to improve error correction performance. At this time, there are more errors in the channel and more redundant information is needed to recover the original data.
[0176] Parameter adjustment of ARQ protocol. When the signal quality is poor, increase the number of retransmissions to ensure the correct transmission of data; however, too many retransmissions will reduce the transmission efficiency, so a trade-off needs to be made between error correction performance and transmission efficiency. The timeout period refers to the time to wait for the receiver's confirmation after sending data; when the signal quality is good, the timeout period can be shortened because the delay in data transmission is small and the receiver can respond in time; when the signal quality is poor, extend the timeout period to avoid unnecessary retransmissions due to channel delays or errors.
[0177] In addition, the controller also includes a signal encoding module, which is used to encode the original signal to be transmitted according to a predetermined encoding rule, and convert it into a coded signal suitable for transmission in the core line, so as to improve the efficiency and anti-interference ability of signal transmission. It also includes a signal decoding module, which is used to receive the coded signal transmitted from the core line and restore it to the original signal according to the corresponding decoding rule, so that the components at the receiving end can correctly identify and process it. A signal filtering module, which is used to filter the signal transmitted through the core line, remove the clutter and interference signals therein, ensure the purity of the signal, and further improve the quality of signal transmission. It also includes an error correction module, which is used to detect signal errors that may occur during the transmission process, and correct the error signal according to a preset error correction algorithm, so as to ensure the accuracy of the signal and reduce the abnormal operation of the server caused by signal errors. The finally processed signal is transmitted to the logic controller on the cable, and the signal is uploaded to the manager according to the requirements of the internal firmware (Firmware, FW) of the device, and the controlled component is directly managed and controlled according to the instructions fed back by the manager.
[0178] The core wire of the cable body is made of high-purity conductive material or optical fiber material to ensure efficient signal transmission. For the core wire of electrical signal transmission, high-purity copper and other materials are used, which have low resistance characteristics and can reduce signal attenuation; for the core wire of optical signal transmission, high-quality optical fiber is used, which can achieve high-speed, long-distance and anti-interference signal transmission.
[0179] The cable body is wrapped with a shielding layer to prevent external electromagnetic interference from affecting the signal transmitted inside the cable, further improving the stability of signal transmission. The cable body is also equipped with an identification unit to identify the cable model, function, transmission direction and other information, so that users can quickly and accurately identify the cable when installing, maintaining and replacing it.
[0180] Figure 3 A signal transmission flow diagram of a receiving end provided by an embodiment of the present invention is as follows: Figure 3 As shown, the receiving component signal and the management controller signal pass through the signal processing module, the signal decoding module, the signal filtering module and the signal error correction module. Figure 4 Another signal transmission flow diagram of a receiving end provided in an embodiment of the present invention is as follows: Figure 4 As shown, the signal sent by the controller at the sending end is given to the management controller and components through the signal decoding module and the signal processing module.
[0181] Furthermore, the present invention also provides a board card, which includes control components corresponding to the receiving end and the sending end respectively, the control component of the receiving end and the control component of the sending end are connected by a cable, and controllers are set at both ends of the cable connecting the control component of the receiving end and the control component of the sending end, wherein the controller corresponding to the receiving end of the cable is used to execute the steps of the above-mentioned data transmission method to complete the data transmission between the receiving end and the sending end.
[0182] For an introduction to a board card provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. It has the same beneficial effects as the above data transmission method.
[0183] The above describes in detail various embodiments corresponding to the data transmission method. On this basis, the present invention also discloses a data transmission device corresponding to the above method. Figure 5 The structure diagram of a data transmission device provided by an embodiment of the present invention. Figure 5 As shown, the data transmission equipment includes:
[0184] The receiving module 11 is used to receive a first signal sent by a transmitting end of the cable;
[0185] A first determination module 12, configured to determine a corresponding bit error rate, signal-to-noise ratio and signal strength according to the first signal;
[0186] A second determination module 13, configured to determine the coding redundancy and / or the number of retransmissions of the first signal based on a bit error rate, a signal-to-noise ratio and a signal strength;
[0187] The processing module 14 is used to process the first signal based on the coding redundancy and / or the number of retransmissions, so as to transmit the processed first signal to the control component of the receiving end.
[0188] Since the embodiments of the device part correspond to the above embodiments, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.
[0189] For an introduction to a data transmission device provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above data transmission method.
[0190] Figure 6 A structural diagram of a data transmission device provided by an embodiment of the present invention, such as Figure 6 As shown, the device comprises:
[0191] A memory 21, used for storing computer programs;
[0192] The processor 22 is used to implement the steps of the data transmission method when executing the computer program.
[0193] The data transmission device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0194] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array. The processor 22 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 22 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 22 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0195] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used to store the following computer program 211, wherein, after the computer program is loaded and executed by the processor 22, it can implement the relevant steps of the data transmission method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. Data 213 may include but is not limited to data involved in the data transmission method, etc.
[0196] In some embodiments, the data transmission device may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .
[0197] Those skilled in the art can understand that Figure 6 The structure shown in the figure does not constitute a limitation on the data transmission device, and may include more or fewer components than those shown in the figure.
[0198] The processor 22 implements the data transmission method provided by any of the above embodiments by calling the instructions stored in the memory 21 .
[0199] For an introduction to a data transmission device provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above data transmission method.
[0200] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 22, the steps of the above-mentioned data transmission method are implemented.
[0201] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0202] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. It has the same beneficial effects as the above data transmission method.
[0203] Furthermore, the present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the data transmission method when executed by a processor.
[0204] For an introduction to a computer program product provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. It has the same beneficial effects as the above data transmission method.
[0205] Figure 7 A signal transmission schematic diagram provided by an embodiment of the present invention, such as Figure 7 As shown, when the encoded signal is transmitted to the other end of the cable, the signal decoding module will restore the encoded signal to the original signal according to the corresponding decoding rules, and then the original signal enters the components of the receiving end, such as the processor, so that the components of the receiving end can correctly identify and process it. Both the transmitting end and the receiving end include a signal processing module, a signal encoding module, a signal filtering module, a signal error correction module, and a signal decoding module.
[0206] The above is a detailed introduction to a data transmission method, board, device and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
[0207] It should also be noted that, in this specification, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A data transmission method, characterized in that: A controller applied to a cable, wherein the controller is located at a receiving end of the cable, and the method comprises: receiving a first signal sent by a transmitting end of the cable; Determine a corresponding bit error rate, signal-to-noise ratio, and signal strength according to the first signal; Determine the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, signal-to-noise ratio and signal strength; The first signal is processed based on coding redundancy and / or the number of retransmissions, so as to transmit the processed first signal to the control component of the receiving end.
2. The data transmission method according to claim 1, characterized in that: Determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes: Pre-establishing a first mapping relationship between a first bit error rate, a first signal-to-noise ratio, and a first signal strength corresponding to a first preset coding redundancy and / or a first preset number of retransmissions; When the bit error rate, the signal-to-noise ratio, and the signal strength reach respective corresponding preset conditions, determining the actually corresponding target first preset coding redundancy and / or the target first preset number of retransmissions according to respective first mapping relationships, the bit error rate, the signal-to-noise ratio, and the signal strength; Using the target first preset coding redundancy and / or the target first preset number of retransmissions as the corresponding first coding redundancy and / or first number of retransmissions; The first coding redundancy and / or the first retransmission number are respectively averaged to determine the final coding redundancy and / or retransmission number.
3. The data transmission method according to claim 1, characterized in that: Determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes: Pre-establishing a second mapping relationship between the first data and the second preset coding redundancy and / or the second preset number of retransmissions; wherein the first data is obtained by adding the reciprocal of the second preset signal-to-noise ratio, the reciprocal of the second preset signal strength, and the second preset bit error rate; Adding the reciprocal of the signal-to-noise ratio, the reciprocal of the signal strength and the bit error rate to obtain second data; Determine a target second preset coding redundancy and / or a target second preset number of retransmissions according to the second data and the second mapping relationship; The target second preset coding redundancy and / or the target second preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
4. The data transmission method according to claim 1, characterized in that: Determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes: Pre-acquire a first weight coefficient corresponding to the bit error rate, a second weight coefficient corresponding to the inverse of the signal-to-noise ratio, and a third weight coefficient corresponding to the inverse of the signal strength; wherein the first weight coefficient, the second weight coefficient, and the third weight coefficient are independent of each other; Pre-establishing a third mapping relationship corresponding to a preset signal quality and a third preset coding redundancy and / or a third preset number of retransmissions; determining a first signal quality according to the bit error rate, the first weight coefficient, the inverse of the signal-to-noise ratio, the second weight coefficient, the inverse of the signal strength, and the third weight coefficient; Determine a target third preset coding redundancy and / or a target third preset number of retransmissions according to the first signal quality and the third mapping relationship; The target third preset coding redundancy and / or the target third preset number of retransmissions are used as the final coding redundancy and / or the final number of retransmissions.
5. The data transmission method according to claim 1, characterized in that: Determining the coding redundancy and / or the number of retransmissions of the first signal based on the bit error rate, the signal-to-noise ratio, and the signal strength includes: Pre-acquire a fourth mapping relationship between a third preset bit error rate and a third preset signal-to-noise ratio; Pre-establishing a fifth mapping relationship between the fourth mapping relationship and a fourth preset coding redundancy and / or a fourth preset number of retransmissions; Pre-acquire a sixth mapping relationship between a fourth preset signal-to-noise ratio and a third preset signal strength; Pre-establishing a seventh mapping relationship between the sixth mapping relationship and the fifth preset coding redundancy and / or the fifth preset number of retransmissions; Determine a first bit error rate according to the signal-to-noise ratio and the fourth mapping relationship; If the difference between the first bit error rate and the bit error rate is within a first preset difference range, determining a corresponding target fourth coding redundancy and / or a target fourth number of retransmissions according to the fifth mapping relationship; Determine a first signal strength according to the signal-to-noise ratio and the fifth mapping relationship; If the difference between the first signal strength and the signal strength is within a second preset difference range, determining the corresponding target fifth coding redundancy and / or the target fifth number of retransmissions according to the seventh mapping relationship; The final coding redundancy and / or retransmission number is determined by performing mean processing on the target fourth coding redundancy and the target fifth coding redundancy and / or the target fourth number of retransmissions and the target fifth number of retransmissions.
6. The data transmission method according to claim 4, characterized in that: Processing the first signal based on the number of retransmissions includes: Obtaining a first preset timeout period, a preset transmission time, and an actual transmission time corresponding to the transmission of the first signal; If the actual transmission time exceeds the preset transmission time and the preset timeout time, determining a critical timeout time according to the first signal quality and the first preset timeout time; The first signal is retransmitted according to the number of retransmissions within the critical timeout period.
7. The data transmission method according to claim 1, characterized in that: Determining a corresponding bit error rate, signal-to-noise ratio, and signal strength according to the first signal includes: Acquire signal power and noise power corresponding to the first signal; Determining the signal-to-noise ratio according to the signal power and the noise power; determining a signal strength based on the signal power; Obtaining a total number of transmission bits and a number of error bits corresponding to the first signal; The bit error rate is determined according to the number of erroneous bits and the total number of transmitted bits.
8. A board, characterized in that: The board includes control components corresponding to the receiving end and the transmitting end respectively, and the control component of the receiving end and the control component of the transmitting end are connected by a cable, and controllers are set at both ends of the cable connecting the control component of the receiving end and the control component of the transmitting end, wherein the controller corresponding to the receiving end of the cable is used to execute the steps of the data transmission method described in any one of claims 1 to 7 to complete the data transmission between the receiving end and the transmitting end.
9. A data transmission device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the data transmission method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Dual-redundancy CAN (controller area network) bus realizing method and controller
CN104503350A
Data transmission method and data transmission system for digital video optical transceiver system
CN104639919A
Method for selecting repeated transmission number for narrowband Internet of Things system
CN108923885A
Data transmission method and device, electronic equipment and storage medium
CN111181700A
Dual-mode communication method and system for energy storage fire-fighting detector
CN118338473A