A data transmission method, a board card, a device and a medium
By determining the coding redundancy and retransmission count based on the bit error rate, signal-to-noise ratio, and signal strength at the controller at the cable receiver end, the problems of signal attenuation and errors are solved, the accuracy and stability of data transmission are improved, and the working efficiency of the server is enhanced.
Patent Information
- Application Number
- CN202412000358.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2044-12-31
AI Technical Summary
During data transmission, signals are prone to attenuation, errors, or loss, resulting in poor signal transmission quality, especially when the server is operating under high load.
By setting a controller at the receiving end of the cable, signals are received in real time or intermittently, and the coding redundancy and/or retransmission number are determined based on the bit error rate, signal-to-noise ratio, and signal strength, the signals are processed to improve transmission quality.
It improves the accuracy and stability of data transmission, ensuring that the data is transmitted correctly to the control components at the receiving end, thereby enhancing the server's working efficiency and signal transmission quality.
Smart Images

Figure CN119728025B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a data transmission method, a board card, an apparatus and a medium. BACKGROUND
[0002] In the data transmission process of a conventional cable, the signal may be attenuated in the transmission process due to the long cable in the board card of a circuit board or the signal interference of other components, thereby affecting the working efficiency and transmission stability of the server where the board card is located. If the server is in a high-load running state, the data signal may be transmitted in the transmission cable, and data transmission errors or loss may occur.
[0003] Therefore, how to improve the signal transmission quality is an urgent problem to be solved by those skilled in the art. SUMMARY
[0004] The present application aims to provide a data transmission method, a board card, an apparatus and a medium to solve the problem of poor signal transmission quality caused by signal attenuation, errors or loss in the transmission process.
[0005] To solve the above technical problems, the present application provides a data transmission method applied to a controller of a cable, wherein the controller is located at the receiving end of the cable, and the method comprises:
[0006] receiving a first signal sent by the sending end of the cable;
[0007] determining the corresponding bit error rate, signal-to-noise ratio and signal strength according to the first signal;
[0008] determining the encoding redundancy and / or retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength;
[0009] processing the first signal based on the encoding redundancy and / or retransmission number to transmit the processed first signal to the control component of the receiving end.
[0010] On the one hand, determining the encoding redundancy and / or retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength comprises:
[0011] pre-establishing a first mapping relationship between the first bit error rate, the first signal-to-noise ratio and the first signal strength corresponding to the first preset encoding redundancy and / or the first preset retransmission number, respectively;
[0012] In the case that the error rate, the signal-to-noise ratio and the signal strength reach respective corresponding preset conditions, an actual corresponding target first preset coding redundancy and / or target first preset retransmission number are determined according to respective first mapping relationships, the error rate, the signal-to-noise ratio and the signal strength;
[0013] The target first preset coding redundancy and / or target first preset retransmission number are taken as corresponding first coding redundancies and / or first retransmission numbers.
[0014] The first coding redundancies and / or the first retransmission numbers are respectively processed by mean value processing to determine final coding redundancies and / or retransmission numbers.
[0015] On the other hand, the coding redundancy and / or retransmission number of the first signal are determined based on the error rate, signal-to-noise ratio and signal strength, comprising:
[0016] A second mapping relationship between first data and second preset coding redundancy and / or second preset retransmission number is established in advance; wherein the first data is obtained by sum processing of the inverse of a second preset signal-to-noise ratio, the inverse of a second preset signal strength and a second preset error rate;
[0017] The inverse of the signal-to-noise ratio, the inverse of the signal strength and the error rate are summed to obtain second data;
[0018] A target second preset coding redundancy and / or target second preset retransmission number are determined according to the second data and the second mapping relationship;
[0019] The target second preset coding redundancy and / or target second preset retransmission number are taken as final coding redundancies and / or retransmission numbers.
[0020] On the other hand, the coding redundancy and / or retransmission number of the first signal are determined based on the error rate, signal-to-noise ratio and signal strength, comprising:
[0021] A first weight coefficient corresponding to the 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 are obtained in advance; wherein the first weight coefficient, the second weight coefficient and the third weight coefficient are independent;
[0022] A third mapping relationship between preset signal quality and third preset coding redundancy and / or third preset retransmission number is established in advance;
[0023] A first signal quality is determined according to the 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] determining a target third preset coding redundancy and / or a target third preset retransmission number according to the first signal quality and the third mapping relationship;
[0025] taking the target third preset coding redundancy and / or the target third preset retransmission number as a final coding redundancy and / or retransmission number.
[0026] On the other hand, determining the coding redundancy and / or the retransmission number of the first signal based on the bit error rate, the signal-to-noise ratio and the signal strength comprises:
[0027] pre-acquiring 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 retransmission number;
[0029] pre-acquiring 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 a fifth preset coding redundancy and / or a fifth preset retransmission number;
[0031] determining a first bit error rate according to the signal-to-noise ratio and the fourth mapping relationship;
[0032] if a 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 retransmission number according to the fifth mapping relationship;
[0033] determining a first signal strength according to the signal-to-noise ratio and the fifth mapping relationship;
[0034] if a difference between the first signal strength and the signal strength is within a second preset difference range, determining a corresponding target fifth coding redundancy and / or a target fifth retransmission number according to the seventh mapping relationship;
[0035] determining a final coding redundancy and / or retransmission number according to an average processing of the target fourth coding redundancy and the target fifth coding redundancy and / or the target fourth retransmission number and the target fifth retransmission number.
[0036] On the other hand, processing the first signal based on the retransmission number comprises:
[0037] acquiring a first preset timeout time, 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 exceeds the preset timeout time, a critical timeout time is determined according to the first signal quality and the first preset timeout time;
[0039] The first signal is retransmitted according to the retransmission times within the critical timeout time.
[0040] In another aspect, the corresponding bit error rate, signal-to-noise ratio and signal strength are determined according to the first signal, comprising:
[0041] The signal power and noise power corresponding to the first signal are obtained;
[0042] The signal-to-noise ratio is determined according to the signal power and noise power;
[0043] The signal strength is determined according to the signal power;
[0044] The total number of transmission bits and the number of error bits corresponding to the first signal are obtained;
[0045] The bit error rate is determined according to the number of error bits and the total number of transmission bits.
[0046] To solve the above technical problems, the present application also provides a board card, which comprises a receiving end and a sending end corresponding to a control component respectively, the control component of the receiving end and the control component of the sending end are connected through a cable, and the cable is provided with a controller at both ends of 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 data transmission method to complete the data transmission between the receiving end and the sending end.
[0047] To solve the above technical problems, the present application also provides a data transmission device, comprising:
[0048] A memory for storing a computer program;
[0049] A processor for executing the computer program to realize the steps of the data transmission method.
[0050] To solve the above technical problems, the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the data transmission method.
[0051] The beneficial effects of the present application are that, on the one hand, by receiving the first signal sent by the sending end of the cable, the first signal is executed in the controller of the receiving end arranged in the cable body, so as to improve the data processing before being transmitted to the control component during the data transmission process, and improve 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, so as to determine the coding redundancy and the number of retransmissions. The adjustment of the coding redundancy here improves 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, and data loss or damage is avoided. The determination of the number of retransmissions improves the correct transmission of data and ensures the data accuracy in the data transmission process. On the other hand, if only one of the coding redundancy or the number of retransmissions is used to process the first signal, the data processing accuracy of the first signal is improved to ensure the correctness of the data transmitted to the control component of the receiving end. If the first signal is processed by weighing the coding redundancy and the number of retransmissions, the data transmission processing is realized in terms of error correction performance and transmission efficiency, the flexibility and diversity of data transmission are realized, and the working efficiency and transmission stability of the board card in the server are further improved, and the signal transmission quality is also improved.
[0052] Secondly, the determination process of the bit error rate, the signal-to-noise ratio and the signal strength lays a foundation for the accuracy of data transmission, and facilitates subsequent measurement of signal quality based on the three factors, or determination of the coding redundancy and the retransmission number. Based on the actual bit error rate, the signal-to-noise ratio and the signal strength reaching respective preset conditions, the corresponding first coding redundancy and / or the first retransmission number are determined based on the mapping relationship corresponding to the coding redundancy and / or the retransmission number determined respectively. Here, the data determined under respective factors are processed to obtain the final coding redundancy and / or the retransmission number through the first coding redundancy and / or the first retransmission number, so as to ensure the authority of the coding redundancy and / or the retransmission number determined based on different factors, and improve the accuracy of data transmission. The second mapping relationship between the second data determined based on the actual parameters corresponding to the three factors and the second preset coding redundancy and / or the second preset retransmission number is determined, and the final coding redundancy and / or the retransmission number is determined based on the actual second data and the second mapping relationship, so as to realize mapping of the second data determined based on the three factor parameters, and improve the accuracy in the judgment process of data transmission. The relationship between the signal quality and the coding redundancy and / or the retransmission number is determined based on the parameters corresponding to the three factors and the weight coefficient, and the final coding redundancy and / or the retransmission number is determined based on the mapping relationship between the signal quality and the coding redundancy and / or the retransmission number, so as to improve the coding redundancy and / or the retransmission number determined based on the signal quality, and improve the signal quality of data transmission. Based on the processing of the first signal based on the retransmission number, the critical timeout time is added, and the first signal is processed according to the retransmission number within the critical timeout time, so as to increase the retransmission number while ensuring that the data transmission efficiency is not excessively reduced, thereby ensuring the correct transmission of data. The three factors establish different two mapping relationships, the coding redundancy and / or the retransmission number determined based on different mapping relationships are processed to obtain the final coding redundancy and / or the retransmission number, so as to improve the authority and accuracy of data transmission.
[0053] In addition, the application also provides a board card, a data transmission device and a medium, which have the same beneficial effects as the data transmission method described above. BRIEF DESCRIPTION OF DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the application, the drawings required in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0055] Figure 1 A flowchart of a data transmission method provided by the application;
[0056] Figure 2A cable and board card connection schematic diagram provided for an embodiment of the present application;
[0057] Figure 3 A signal transmission flowchart of a receiving end provided for an embodiment of the present application;
[0058] Figure 4 Another signal transmission flowchart of a receiving end provided for an embodiment of the present application;
[0059] Figure 5 A structural diagram of a data transmission device provided for an embodiment of the present application;
[0060] Figure 6 A structural diagram of a data transmission device provided for an embodiment of the present application;
[0061] Figure 7 A signal transmission schematic diagram provided for an embodiment of the present application. DETAILED DESCRIPTION
[0062] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0063] The core of the present application is to provide a data transmission method, board card, device and medium, so as to solve the problem of poor signal transmission quality caused by signal attenuation, error or loss in the transmission process.
[0064] In order to make the personnel in the technical field better understand the present application scheme, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0065] With the rapid development of information technology, servers play 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 realize the normal operation of the entire server system. Among them, the logic controller as the key component responsible for coordinating and controlling the work of each component in the server, the connection performance between the logic controller and other components has a crucial influence on the overall performance of the server.
[0066] When the logic controller in the server is connected to control other components, there are two connection methods: the first is that when the logic controller and the control component are on the same board card, they can be connected through the internal wiring of the board, but most components cannot be placed on the same board card due to the size limitation of the board card, so the second method is needed to connect them; the second method is that the logic controller and the controlled component are on two board cards, so the connection between the logic controller and other components (such as processors, memory modules, storage devices, etc.) is usually realized through traditional cables. Traditional cables often only serve the purpose of physical connection, lack effective logic control and optimization during signal transmission, and cause signal attenuation, interference and other problems during transmission, thereby affecting the working efficiency and stability of the server. For example, when the server is in a high-load running state, a large amount of data signals are transmitted in the traditional cable, and due to the lack of targeted logic control, data loss or error may occur. The data transmission method provided by the present application can solve the above technical problems.
[0067] Figure 1 A flowchart of a data transmission method provided by the present application is shown in Figure 1 As shown in the figure, the method is applied to the controller of the cable, wherein the controller is located at the receiving end of the cable, and the method comprises the following steps:
[0068] S11: receiving a first signal sent by the sending end of the cable;
[0069] S12: determining the corresponding bit error rate, signal-to-noise ratio and signal strength according to the first signal;
[0070] S13: determining the encoding redundancy and / or retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength;
[0071] S14: processing the first signal based on the encoding redundancy and / or retransmission number, and transmitting the processed first signal to the control component at the receiving end.
[0072] Specifically, the execution subject of the embodiment is the controller at the receiving end of the cable, and it can be understood that the controller is arranged inside the cable body, and the controller is electrically connected with the core wire of the cable at both ends of the cable. The controller can be used for logical processing of 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 transmission.
[0073] Figure 2 A connection diagram of the cable and the board card provided by the embodiment of the present application is shown in Figure 2As shown, the connection between the mainboard 1 and the component 3 is through the cable 2, and the cable 2 is provided with connectors at both ends of the cable 2, and the connectors at both ends of the cable 2 are connected with the connectors of the mainboard 1 or the component 3. The receiving end can be located at any end of the cable 2. If the first end of the cable 2 is the receiving end and the second end is the sending end, the data transmission direction of the receiving end and the sending end of the cable 2 can be unidirectional or bidirectional, which is not limited here and can be set according to the actual situation.
[0074] The first signal sent by the sending end of the cable is received in step S11, and the first signal has not yet arrived in the control component of the board card 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. The three factors can reflect the signal quality of the current first signal. The three factors can be obtained by testing tools or calculated based on the transmission parameters of the first signal, which is not limited here.
[0076] In some embodiments, determining the corresponding bit error rate, signal-to-noise ratio and signal strength according to the first signal comprises:
[0077] Obtaining the signal power and noise power corresponding to the first signal;
[0078] Determining the signal-to-noise ratio according to the signal power and the noise power;
[0079] Determining the signal strength according to the signal power;
[0080] Obtaining the total number of transmission bits and the number of error bits corresponding to the first signal;
[0081] Determining the bit error rate according to the number of error bits and the total number of transmission bits.
[0082] Specifically, in the present embodiment, based on the signal power and the 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] Wherein, P signal is the signal power, and P noise is the noise power.
[0085] The formula of the signal strength is as follows:
[0086] P=10*log(P mW );
[0087] Among them, P mW Micro-signal power, measured in milliwatts (mW); signal strength reflects the energy level of a 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 bits transmitted.
[0090] The process for determining the bit error rate, signal-to-noise ratio, and signal strength provided in this embodiment lays the foundation for the accuracy of data transmission, and facilitates subsequent measurement of signal quality based on these three factors, or determination of coding redundancy and re-encoding times.
[0091] In step S13, the coding redundancy and / or retransmission count of the first signal are determined based on three factors. This can be achieved by directly determining the coding redundancy or retransmission count based on the three factor parameters, or by determining the coding redundancy and retransmission count based on the three factor parameters. In other words, all three technical solutions can be implemented. Alternatively, based on implementing these three technical solutions, the corresponding coding redundancy and / or retransmission count can be determined directly by adding the three factors together. Alternatively, a timeout period or weighting coefficient can be added to the original three factors to determine signal quality, and the final coding redundancy and / or retransmission count can be determined based on the mapping relationship between signal quality and coding redundancy and / or retransmission count. No limitation is imposed here, as long as the coding redundancy and / or retransmission count can be obtained. Furthermore, a model can be determined through model training to include the three factors. The model determination process here can refer to conventional models and is not limited here.
[0092] In step S14, the first signal is processed by encoding redundancy and / or the number of retransmissions. If encoding redundancy is used to process the first signal, the process here involves correcting errors in the first signal by determining the value of encoding redundancy. The principle is that more redundant information can provide more constraints on the first signal, making it more likely that the receiver can accurately recover the original data when detecting errors in the first signal. For example, in parity check codes, adding only 1 bit of redundant information can only detect an odd number of bit errors and cannot correct them. Therefore, by adding more redundant symbols, multiple bit errors can be corrected.
[0093] For example, each original bit is repeated 3 times, and the redundancy bit is 200%, such as the original data "1" is encoded as "111", and the receiving end receives the data, and uses majority voting to correct errors, if "101" is received, since the number of "1" is more than "0", the original data is judged as "1". In this example, as long as the number of error bits does not exceed 1, the error can be corrected. If the redundancy is further increased, such as each bit is repeated 5 times, more errors can be corrected. However, the increase in redundancy means that the actual effective original data transmission or storage capacity decreases under the same transmission bandwidth or storage capacity, thereby reducing the transmission efficiency. If the number of retransmissions is considered, the encoding redundancy and the number of retransmissions need to be balanced, and the increase in data of the encoding redundancy and the number of retransmissions can be limited by a preset value, and can also be limited by a certain functional relationship.
[0094] The number of retransmissions is re-sent by the sending end according to the number of retransmissions to process the first signal, so as to control the processed first signal to be transmitted to the control component of the receiving end.
[0095] The flowchart of the data transmission method provided by the embodiment of the application is applied to the controller of the cable, wherein the controller is located at the receiving end of the cable. The first signal sent by the sending end of the cable is received. The corresponding bit error rate, signal-to-noise ratio and signal strength are determined according to the first signal. The encoding 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 encoding redundancy and / or the number of retransmissions, so as 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 sending end of the cable, the first signal is executed in the controller of the receiving end arranged in the cable body, so as to improve the data processing before the data is transmitted to the control component in the data transmission process, and improve 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, so as to determine the encoding redundancy and the number of retransmissions. The adjustment of the encoding redundancy improves the data transmission efficiency. Through the determination process of the encoding redundancy, the error correction capability is improved when the signal quality of the first signal is poor, and data loss or damage is avoided. The number of retransmissions is determined to improve the correct transmission of data and ensure the data accuracy in the data transmission process. On the other hand, if only one of the encoding redundancy or the number of retransmissions is used to process the first signal, the data processing accuracy of the first signal is improved to ensure that the data is correct when transmitted to the control component of the receiving end. If the first signal is processed by weighing the encoding redundancy and the number of retransmissions, the 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 card in the server are further improved, and the signal transmission quality is also improved.
[0096] In some embodiments, the encoding redundancy and / or the number of retransmissions of the first signal is determined based on the bit error rate, the signal-to-noise ratio and the signal strength, comprising:
[0097] A first mapping relationship between the first bit error rate, the first signal-to-noise ratio and the first signal strength and the first preset encoding redundancy and / or the first preset number of retransmissions is established in advance;
[0098] In the case where the bit error rate, the signal-to-noise ratio and the signal strength reach the respective preset conditions, the target first preset encoding redundancy and / or the target first preset number of retransmissions corresponding to the respective first mapping relationship, the bit error rate, the signal-to-noise ratio and the signal strength are determined;
[0099] The target first preset encoding redundancy and / or the target first preset number of retransmissions are taken as the corresponding first encoding redundancy and / or the first number of retransmissions;
[0100] The respective first encoding redundancy and / or the first number of retransmissions are respectively processed by mean value to determine the final encoding redundancy and / or the number of retransmissions.
[0101] Specifically, the first mapping relationship between the first bit error rate and the first preset encoding redundancy and / or the first preset number of retransmissions is established, and the mapping relationship here can be one, two or three. Similarly, the first mapping relationship between the first signal-to-noise ratio, the first signal strength and the first preset encoding redundancy and / or the 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 reach the respective preset conditions, it is necessary to check the first signal based on the first encoding redundancy, or retransmit the first signal based on the first number of retransmissions, or both. The preset condition of the bit error rate is that the bit error rate exceeds the corresponding first threshold; the preset condition of the signal-to-noise ratio is that the signal-to-noise ratio is lower than the corresponding first threshold; and the preset condition of the signal strength is that the signal strength is lower than the corresponding first threshold. In the above case where the respective preset conditions are reached, it indicates that the current signal quality is poor.
[0103] The target first preset encoding redundancy and / or the target first preset number of retransmissions corresponding to the respective first mapping relationship, the bit error rate, the signal-to-noise ratio and the signal strength are determined as the corresponding first encoding redundancy and / or the first number of retransmissions, and it should be noted that the first encoding redundancy determined based on the three factors is three, and the number of the first retransmission coefficient is also three. Therefore, the respective first encoding redundancy and / or the first number of retransmissions are respectively processed by mean value to determine the final encoding redundancy and / or the number of retransmissions.
[0104] The embodiment provided based on the actual bit error rate, signal-to-noise ratio and signal strength reaching the respective preset conditions, the corresponding first coding redundancy and / or first retransmission number are determined based on the mapping relationship corresponding to the coding redundancy and / or retransmission number, here the data determined by the respective factors, and the first coding redundancy and / or first retransmission number are processed to obtain the final coding redundancy and / or retransmission number, so as to ensure the authority of the coding redundancy and / or retransmission number determined based on different factors, and improve the accuracy of data transmission.
[0105] In some other embodiments, the coding redundancy and / or retransmission number of the first signal is determined based on the bit error rate, signal-to-noise ratio and signal strength, comprising:
[0106] A second mapping relationship between the first data and the second preset coding redundancy and / or the second preset retransmission number is established in advance; wherein the first data is obtained by adding the inverse of the second preset signal-to-noise ratio, the inverse of the second preset signal strength and the second preset bit error rate;
[0107] The inverse of the signal-to-noise ratio, the inverse of the signal strength and the bit error rate are added to obtain the second data;
[0108] The target second preset coding redundancy and / or the target second preset retransmission number is determined according to the second data and the second mapping relationship;
[0109] The target second preset coding redundancy and / or the target second preset retransmission number is determined according to the second data and the second mapping relationship;
[0110] Specifically, the inverse of the second preset signal-to-noise ratio, the inverse of the second preset signal strength and the second preset bit error rate are added 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] The first data and the second preset coding redundancy and / or the second preset retransmission number are established, the inverse of the actual signal-to-noise ratio, the inverse of the signal strength and the bit error rate are added to obtain the second data, and the corresponding target second preset coding redundancy and / or target second preset retransmission number is determined based on the second data and the second mapping relationship, and the second data is the first data of the second mapping relationship.
[0114] The second mapping relationship between the data determined by combining the actual parameters corresponding to the three factors in the embodiment and the second preset encoding redundancy and / or the second preset retransmission number is determined by the actual second data and the second mapping relationship, and the final encoding redundancy and / or retransmission number is determined by the second data determined by the three factor parameters, so as to realize the mapping of the second data determined by the three factor parameters, and improve the accuracy in the judgment process of data transmission.
[0115] In some other embodiments, the encoding redundancy and / or retransmission number of the first signal is determined based on the bit error rate, the signal-to-noise ratio and the signal strength, comprising:
[0116] The first weight coefficient corresponding to the bit error rate, the second weight coefficient corresponding to the inverse of the signal-to-noise ratio and the third weight coefficient corresponding to the inverse of the signal strength are obtained in advance; wherein the first weight coefficient, the second weight coefficient and the third weight coefficient are independent of each other;
[0117] The third mapping relationship corresponding to the third preset encoding redundancy and / or the third preset retransmission number is established in advance;
[0118] 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;
[0119] The target third preset encoding redundancy and / or the target third preset retransmission number is determined according to the first signal quality and the third mapping relationship;
[0120] The target third preset encoding redundancy and / or the target third preset retransmission number is determined as the final encoding redundancy and / or retransmission number.
[0121] Specifically, the parameters corresponding to the three factors are added with the respective weight coefficients, wherein each weight coefficient is independent of each other without any constraint relationship. The third mapping relationship corresponding to the third preset encoding redundancy and / or the third preset retransmission number is established in advance; 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 encoding redundancy and / or retransmission number is determined according to the first signal quality and the third mapping relationship.
[0125] The relationship between the parameters corresponding to the three factors and the weight coefficients in the embodiment determines the final encoding redundancy and / or retransmission number through the mapping relationship between the signal quality and the encoding redundancy and / or retransmission number, so as to improve the signal quality of data transmission by balancing the corresponding encoding redundancy and / or retransmission number through the signal quality.
[0126] In some embodiments, processing the first signal based on the retransmission number comprises:
[0127] Obtaining a first preset timeout time, 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 exceeds the preset timeout time, determining a critical timeout time according to the first signal quality and the first preset timeout time;
[0129] Re-sending and processing the first signal according to the retransmission number within the critical timeout time.
[0130] Specifically, if the first signal is processed by the retransmission number, the retransmission number needs to be constrained by the timeout time to ensure that the retransmission number is fully utilized within the timeout time. The determination process of the critical timeout time is as follows:
[0131] C=B+T;
[0132] Wherein, B is the first signal quality, T is the first preset timeout time, and C is the critical timeout time.
[0133] Based on the third mapping relationship of B (first signal quality), the retransmission number is determined, and the first signal is re-sent and processed according to the retransmission number within the critical timeout time.
[0134] Based on the processing of the first signal by the retransmission number provided in the embodiment, the critical timeout time is added, and the first signal is processed according to the retransmission number within the critical timeout time, which ensures that the data transmission efficiency is not excessively reduced while increasing the retransmission number to ensure correct data transmission.
[0135] In some embodiments, re-sending and processing the first signal according to the retransmission number within the critical timeout time comprises:
[0136] Obtaining the critical transmission number of the first signal per unit time;
[0137] Re-sending and processing the first signal according to the first preset transmission number within the first timeout time of the critical timeout time, and performing error correction processing on the re-sent first signal according to the encoding redundancy;
[0138] If the retransmitted first signal is successfully error corrected, the control component of the receiving end is transmitted;
[0139] If the retransmitted first signal is not successfully error corrected, the first signal is retransmitted for a second preset number of times within a second timeout time within the critical timeout time, and the process returns to the step of error correcting the retransmitted first signal according to the coding redundancy, until the number of retransmissions is used up; wherein the second timeout time is later than the first timeout time, 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.
[0140] Specifically, within the first timeout time within the critical timeout time, the first signal is retransmitted for a first preset number of times, and at the same time, the retransmitted first signal can be error corrected by coding redundancy. If the retransmitted first signal is successfully error corrected, the retransmitted first signal is directly transmitted to the control component of the receiving end; if the retransmitted first signal is not successfully error corrected, the first signal is retransmitted for a second preset number of times within a second timeout time within the critical timeout time, and the retransmitted first signal is error corrected, until the number of retransmissions is used up. The second timeout time is later than the first timeout time, 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 embodiment provides a corresponding critical timeout time, if the first signal transmitted based on the first preset number of transmissions within the first timeout time fails to be error corrected, the number of transmissions is increased by a preset multiple based on the first preset number of transmissions within the subsequent second timeout time, to increase the transmission frequency, ensure that the number of retransmissions is increased while the number of retransmissions is used up as soon as possible within the critical timeout time, and ensure fast data transmission.
[0142] In some embodiments, further comprising:
[0143] If the retransmitted first signal is not successfully error corrected, the corresponding first weight coefficient, second weight coefficient and / or third weight coefficient in the determination process based on the coding redundancy is adjusted;
[0144] The adjusted first weight coefficient, second weight coefficient and / or third weight coefficient are used to determine the adjusted first signal quality;
[0145] If the adjusted first signal quality and the third mapping relationship determine the 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 the retransmitted first signal is subjected to error correction processing based on the coding redundancy during processing. If the error correction fails, the coding redundancy is adjusted. Here, the adjustment process is to first adjust the corresponding weight coefficient based on 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 subjected to error correction processing based on the adjusted coding redundancy. In addition, the corresponding adjustment can also be made through a fixed adjustment step of the coding redundancy, which is not limited here and can be set according to the actual situation.
[0148] The embodiment provides a method for retransmitting a first signal based on the number of retransmissions, and the retransmitted first signal is subjected to error correction processing based on the 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 and improve error correction capability.
[0149] In some embodiments, the coding redundancy and / or the number of retransmissions of the first signal is determined based on the bit error rate, the signal-to-noise ratio, and the signal strength, comprising:
[0150] A fourth mapping relationship between a third preset bit error rate and a third preset signal-to-noise ratio is obtained in advance;
[0151] A fifth mapping relationship between the fourth mapping relationship and a fourth preset coding redundancy and / or a fourth preset number of retransmissions is established in advance;
[0152] A sixth mapping relationship between the fourth preset signal-to-noise ratio and a third preset signal strength is obtained in advance;
[0153] A seventh mapping relationship between the sixth mapping relationship and a fifth preset coding redundancy and / or a fifth preset number of retransmissions is established in advance;
[0154] The first bit error rate is determined according to the signal-to-noise ratio and the fourth mapping relationship;
[0155] If the difference between the first bit error rate and the bit error rate is within a first preset difference range, the corresponding target fourth coding redundancy and / or target fourth number of retransmissions are determined according to the fifth mapping relationship;
[0156] The first signal strength is determined 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 a second preset difference range, the corresponding target fifth coding redundancy and / or target fifth number of retransmissions are determined according to the seventh mapping relationship;
[0158] The final coding redundancy and / or retransmission number is determined by averaging the target fourth coding redundancy and the target fifth coding redundancy and / or the target fourth retransmission number and the target fifth retransmission number.
[0159] Specifically, a fourth mapping relationship is first established between 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 retransmission number. A sixth mapping relationship is obtained between the fourth preset signal-to-noise ratio and the third preset signal strength; and a seventh mapping relationship is established in advance between the sixth mapping relationship and the fifth preset coding redundancy and / or the fifth preset retransmission number.
[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, and 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, and 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 final coding redundancy and / or retransmission number is obtained by averaging the coding redundancy and / or retransmission number determined based on the fifth mapping relationship and the seventh mapping relationship.
[0162] The three factors provided in the embodiment establish different two mapping relationships, and the final coding redundancy and / or retransmission number is obtained by averaging the coding redundancy and / or retransmission number determined based on different mapping relationships, so as to improve the authority and accuracy of data transmission calculation.
[0163] In some other embodiments, the coding redundancy and / or retransmission number of the first signal is determined based on the bit error rate, the signal-to-noise ratio and the signal strength, comprising:
[0164] The first weight coefficient corresponding to the bit error rate, the second weight coefficient corresponding to the signal-to-noise ratio and the third weight coefficient corresponding to the signal strength are obtained in advance; wherein the first weight coefficient, the second weight coefficient and the third weight coefficient are independent of each other;
[0165] The third mapping relationship corresponding to the preset signal quality and the third preset coding redundancy and / or the third preset retransmission number is established in advance;
[0166] The first signal quality is determined according to the bit error rate, the first weight coefficient, the signal-to-noise ratio, the second weight coefficient, the signal strength and the third weight coefficient;
[0167] acquire a first preset timeout time, 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 exceeds the preset timeout time, determine a critical timeout time according to the first signal quality and the first preset timeout time;
[0169] Pre-establish an eighth mapping relationship between a preset critical timeout time and a sixth preset retransmission number; determine a target sixth preset coding redundancy according to the first signal quality and the third mapping relationship;
[0170] Determine a target sixth preset retransmission number according to the critical timeout time and the eighth mapping relationship;
[0171] Take the target fourth preset coding redundancy and / or the target sixth preset retransmission number as the final coding redundancy and / or retransmission number.
[0172] Specifically, the determination process of the first signal quality and the timeout time are combined here. In the embodiment corresponding to the critical timeout time, the determination process can refer to the above-mentioned embodiment, which is not limited here. According to the first signal quality and the third mapping relationship, determine the corresponding target sixth preset coding redundancy. According to the critical timeout time and the eighth mapping relationship, determine the target sixth preset retransmission number. Take the sum and / or relationship of the two as the final coding redundancy and / or retransmission number.
[0173] The final coding redundancy and / or retransmission number determined by the embodiment provided in the embodiment takes into account the signal strength and the critical timeout time, so as to increase the retransmission number within the maximum timeout time of operation and improve the signal quality.
[0174] In summary, the corresponding retransmission number and coding redundancy in the embodiment are determined by combining forward error correction code (FEC) and automatic repeat request (ARQ) to determine the error correction coding technology. Select appropriate FEC coding and ARQ protocol. For FEC coding, high-performance codes such as low-density parity check code (LDPC) code and polar code can be selected; for ARQ protocol, stop-and-wait ARQ, continuous ARQ, etc. can be used; at the sending end, the information is FEC encoded, and the encoded data is sent out. After receiving the data at the receiving end, first perform FEC decoding. If the decoding is successful, send an acknowledgement message to the sending end; if the decoding fails, request retransmission from the sending end; the sending end decides whether to retransmit the data according to the feedback from the receiving end. If an acknowledgement message is received, the next data block is sent; if a retransmission request is received, the previous data block is retransmitted; the logical controller collects the signal quality conditions, adjusts the strength of the FEC coding and the parameters of the ARQ protocol reasonably, and a balance between error correction performance and transmission efficiency can be achieved.
[0175] FEC coding redundancy adjustment. 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 too much redundant information is not needed to correct errors. When the signal quality is poor, increase the redundancy of FEC coding to improve the 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] ARQ protocol parameter adjustment. When the signal quality is poor, increase the number of retransmissions to ensure correct transmission of data; but too many retransmissions will reduce the transmission efficiency, so a balance between error correction performance and transmission efficiency needs to be made. The timeout time refers to the time waiting for the receiving party to confirm after sending data; when the signal quality is good, the timeout time can be shortened, because the data transmission delay is small, and the receiving party can respond in time; when the signal quality is poor, the timeout time is extended to avoid unnecessary retransmission due to channel delay or errors.
[0177] In addition, the controller further comprises a signal encoding module, which is used for encoding the original signal to be transmitted according to a predetermined encoding rule, and converting the original signal into an encoded signal suitable for transmission in the core wire, so as to improve the efficiency and anti-interference ability of signal transmission. The signal decoding module is further included, which is used for receiving the encoded signal transmitted from the core wire, and restoring the encoded signal into the original signal according to the corresponding decoding rule, so that the components at the receiving end can correctly identify and process. The signal filtering module is used for filtering the signal transmitted through the core wire, removing the noise and interference signals therein, and ensuring the purity of the signal, thereby further improving the quality of signal transmission. The error correction module is further included, which is used for detecting the signal error that may occur in the transmission process, and correcting the error signal according to the pre-set error correction algorithm, so as to ensure the accuracy of the signal and reduce the abnormal working condition of the server caused by the signal error. The finally processed signal is transmitted to the logic controller on the cable, which uploads the signal to the manager according to the requirement of the internal firmware (Firmware, FW), and directly controls the managed components according to the feedback instructions of the manager.
[0178] The core wire of the cable body is made of high-purity conductive material or optical fiber material to ensure efficient transmission of signals. For the core wire of the 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 the optical signal transmission, high-quality optical fiber is used to realize high-speed, long-distance and strong anti-interference signal transmission.
[0179] The cable body is wrapped with a shielding layer, which is used to prevent external electromagnetic interference from affecting the signals transmitted in the cable, and further improve the stability of signal transmission. The cable body is also provided with an identification unit, which is used to identify the model, function, transmission direction and other information of the cable, so that the user can quickly and accurately identify when installing, maintaining and replacing the cable.
[0180] Figure 3 A signal transmission flowchart of a receiving end provided by the embodiment of the present application is shown in Figure 3 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 flowchart of a receiving end provided by the embodiment of the present application is shown in Figure 4 The signal sent by the controller of the sending end passes through the signal decoding module and the signal processing module to the management controller and the component.
[0181] Further, the application also provides a board card, which comprises 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 through a cable, and controllers are arranged at the two 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 data transmission method to complete the data transmission between the receiving end and the sending end.
[0182] For the board card provided by the application, please refer to the above method embodiment, and the application will not be described here again, which has the same beneficial effects as the above data transmission method.
[0183] The above detailed description is for each embodiment of the data transmission method, and on this basis, the application also discloses a data transmission device corresponding to the above method, Figure 5 The structure diagram of a data transmission device provided by the embodiment of the application is shown in FIG. 1. Figure 5 As shown in the figure, the data transmission device comprises:
[0184] The receiving module 11 is used to receive the first signal sent by the sending end of the cable;
[0185] The first determining module 12 is used to determine the corresponding bit error rate, signal-to-noise ratio and signal strength according to the first signal;
[0186] The second determining module 13 is used to determine the encoding redundancy and / or retransmission times of the first signal based on the bit error rate, signal-to-noise ratio and signal strength;
[0187] The processing module 14 is used to process the first signal based on the encoding redundancy and / or retransmission times, 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, the embodiments of the device part will be described by referring to the embodiments of the above method part, and will not be described here again.
[0189] For the data transmission device provided by the application, please refer to the above method embodiment, and the application will not be described here again, which has the same beneficial effects as the above data transmission method.
[0190] Figure 6 The structure diagram of a data transmission device provided by the embodiment of the application is shown in FIG. 1. Figure 6 As shown in the figure, the data transmission device comprises:
[0191] The memory 21 is used to store the computer program;
[0192] The processor 22 is used to execute the computer program to realize the steps of the data transmission method.
[0193] The data transmission device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0194] The processor 22 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 22 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array. The processor 22 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 22 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 22 may also include an Artificial Intelligence (AI) processor, which is used to handle computational 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 high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 21 is used to store at least the following computer program 211, which, after being loaded and executed by the processor 22, is capable of implementing the relevant steps of the data transmission method disclosed in any of the foregoing 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. The operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include, but is not limited to, the 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 field can understand, Figure 6 The structure shown does not constitute a limitation on the data transmission device and may include more or fewer components than illustrated.
[0198] The processor 22 implements the data transmission method provided by any of the above embodiments by calling instructions stored in the memory 21.
[0199] The data transmission device provided by the present application is described above with reference to the method embodiments, and the present application will not be described again here, which has the same beneficial effects as the data transmission method described above.
[0200] Further, the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by the processor 22 to implement the steps of the data transmission method.
[0201] It can be understood that if the method in the above embodiments is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and executes all or part of the steps of the method of each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0202] The computer readable storage medium provided by the present application is described above with reference to the method embodiments, and the present application will not be described again here, which has the same beneficial effects as the data transmission method described above.
[0203] Further, the present application further provides a computer program product, comprising computer programs / instructions, which are executed by the processor to implement the steps of the data transmission method.
[0204] The computer program product provided by the present application is described above with reference to the method embodiments, and the present application will not be described again here, which has the same beneficial effects as the data transmission method described above.
[0205] Figure 7 A signal transmission schematic diagram provided for the embodiments of the present application is shown in FIG. 1. Figure 7 When the encoded signal is transmitted to the other end of the cable, the signal decoding module restores the encoded signal to the original signal according to the corresponding decoding rule, 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 be correctly recognized and processed. The sending end and the receiving end both 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 describes in detail the data transmission method, the board card, the device and the medium provided by the application. Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts between each embodiment can be understood by referring to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be understood by referring to the method part. It should be pointed out that for ordinary skilled in the art, without departing from the principles of the application, the application can be improved and modified, and these improvements and modifications also fall within the protection scope of the application.
[0207] It should also be noted that in this specification, the relationship terms such as first and second are only used 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 the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including 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 by, 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 sending end of the cable; determining a corresponding bit error rate, signal-to-noise ratio and signal strength according to the first signal; determining a retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength; processing the first signal based on the retransmission number to transmit the processed first signal to a control component of the receiving end; correspondingly, processing the first signal based on the retransmission number comprises: obtaining a first preset timeout time, 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 exceeds the first preset timeout time, determining a critical timeout time according to the first signal quality and the first preset timeout time; retransmitting and processing the first signal according to the retransmission number within the critical timeout time.
2. The data transmission method of claim 1, wherein, determining the retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength comprises: 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 retransmission number; in the case that the bit error rate, the signal-to-noise ratio and the signal strength reach their respective preset conditions, determining an actual corresponding target first preset retransmission number according to their respective first mapping relationship, the bit error rate, the signal-to-noise ratio and the signal strength; taking the target first preset retransmission number as the corresponding first retransmission number; determining the final retransmission number by performing mean value processing on each of the first retransmission numbers.
3. The data transmission method of claim 1, wherein, determining the retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength comprises: pre-establishing a second mapping relationship between first data and a second preset retransmission number; wherein the first data is obtained by adding and processing the inverse of a second preset signal-to-noise ratio, the inverse of a second preset signal strength and a second preset bit error rate; adding and processing the inverse of the signal-to-noise ratio, the inverse of the signal strength and the bit error rate to obtain second data; determining a target second preset retransmission number according to the second data and the second mapping relationship; taking the target second preset retransmission number as the final retransmission number.
4. The data transmission method of claim 1, wherein, determining the retransmission number of the first signal based on the bit error rate, signal-to-noise ratio and signal strength comprises: pre-obtaining 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 between a preset signal quality and a third preset retransmission number; 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; determining a target third preset retransmission number according to the first signal quality and the third mapping relationship; taking the target third preset retransmission number as the final retransmission number.
5. The data transmission method of claim 1, wherein, determining the retransmission number of the first signal based on the error rate, the signal-to-noise ratio and the signal strength, comprising: obtaining a fourth mapping relationship between a third preset error rate and a third preset signal-to-noise ratio in advance; pre-establishing a fifth mapping relationship between the fourth mapping relationship and a fourth preset retransmission number; obtaining a sixth mapping relationship between a fourth preset signal-to-noise ratio and a third preset signal strength in advance; pre-establishing a seventh mapping relationship between the sixth mapping relationship and a fifth preset retransmission number; wherein the seventh mapping relationship is a mapping relationship among the fourth preset signal-to-noise ratio, the third preset signal strength and the fifth preset retransmission number; determining a first error rate according to the signal-to-noise ratio and the fourth mapping relationship; if the difference between the first error rate and the error rate is within a first preset difference range, determining a corresponding target fourth retransmission number according to the fifth mapping relationship; determining 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 a corresponding target fifth retransmission number according to the seventh mapping relationship; determining a final retransmission number by mean processing the target fourth retransmission number and the target fifth retransmission number.
6. The data transmission method of claim 1, wherein, determining a corresponding error rate, signal-to-noise ratio and signal strength according to the first signal, comprising: obtaining a signal power and a 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 according to the signal power; obtaining a total number of transmission bits and a number of error bits corresponding to the first signal; determining the error rate according to the number of error bits and the total number of transmission bits.
7. A board card characterized by, The board card comprises 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 through a cable, and the cable is provided with controllers at both ends of 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 data transmission method in any one of claims 1 to 6 to complete the data transmission between the receiving end and the sending end.
8. A data transmission apparatus, characterized by comprising: comprising: a memory for storing a computer program; a processor for executing the computer program to realize the steps of the data transmission method in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to realize the steps of the data transmission method in any one of claims 1 to 6.
Citation Information
Patent Citations
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
Dual-mode communication method and system for energy storage fire-fighting detector
CN118338473A