A data transmission device based on power line carrier wave

By segmenting the MSDU into MPDU and using the SACK signal to control retransmission and rate switching, the problems of low transmission efficiency and high cost in power line carrier communication are solved, achieving efficient and flexible data transmission and storage optimization.

CN117294333BActive Publication Date: 2026-04-28WU QI TECH INC
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WU QI TECH INC
Filing Date
2023-03-06
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing power line carrier communication suffers from low transmission efficiency, wasted bandwidth due to retransmission methods, and inflexible rate switching under complex application scenarios and environmental interference, resulting in high communication costs. Furthermore, the fixed definition of the retry flag in the State Grid protocol leads to data loss and untimely retransmission.

Method used

The MSDU is divided into several MPDUs, and a retry flag is set during transmission. The SACK signal of the data receiving device is used to determine whether to retransmit. Retransmission is allowed in a timely manner when each MPDU fails to be received. The physical block size is kept consistent when switching rates. Short MPDUs are used for communication in poor networks. The SACK signal is used to control buffer management.

Benefits of technology

It improves data retransmission efficiency and timeliness, reduces retransmission volume, lowers storage space requirements, enhances transmission efficiency and compatibility, and reduces communication costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117294333B_ABST
    Figure CN117294333B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of power line carrier communication, in particular to a data sending device based on power line carrier, which is used for cutting MSDU into a plurality of MPDU, sending the MPDU to a data receiving device in sequence, setting the retry flag of the first MPDU as 0 and the retry flag of other MPDU as 1, receiving the SACK signal fed back by the data receiving device, sending the next MPDU if the SACK signal is 1, otherwise resending the current MPDU. The data sending device based on power line carrier can improve the data retransmission efficiency and timeliness, reduce the data retransmission amount, reduce the storage space required by the data receiving device, and maintain the compatibility of the State Grid.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese patent application 202310207439.0, filed on March 6, 2023, entitled "A data transmission method, system and storage medium based on power line carrier". Technical Field

[0002] This invention relates to the field of power line carrier communication technology, and in particular to a data transmission device based on power line carrier. Background Technology

[0003] The application of PLCs under the State Grid and the 1901.1 protocol requires extensive scenario testing. In practical applications, the changing application scenarios and environmental interference factors continuously increase the requirements for transmission efficiency.

[0004] For example, in scenarios involving long buried cables or strong interference, the protocol is designed with various FEC encodings and physical block sizes to enable transmission at different rates, thereby improving the success rate. In these scenarios, a lower transmission rate can be used. However, for larger application layer messages, this means fragmentation; a single MSDU needs to be divided into multiple MPDUs for transmission to improve the success rate. Fragmentation can be one MPDU per physical block (short MPDU) or one MPDU per multiple physical blocks (long MPDU). During transmission, if the data receiving device receives all complete fragments, it can reassemble them into a complete MSDU. However, if any physical blocks are not successfully received, the original State Grid protocol definition requires retransmission of the entire message. While this retransmission method is simple, it incurs a loss of efficiency. For example, on a line with a given SNR, an optimal rate is calculated and processed in the form of variable rate selection. The FEC physical block corresponding to this rate is likely to be relatively small, while an upper-layer message may be relatively large. For example, a 1024-byte message, if it needs to be transmitted in a single physical block with an actual payload of 134 bytes, will require 8 physical blocks to complete the transmission. If one physical block is faulty, the entire message, i.e., all 8 physical blocks, needs to be retransmitted. Using the above method for data transmission will waste bandwidth and reduce transmission efficiency.

[0005] Secondly, there is another problem. For variable rate selection, a message that fails to be retransmitted multiple times will need to be sent at a reduced rate. For a message that has been partially sent, if only one physical block is not sent successfully, the rate cannot be switched midway. The rate can only be switched after the entire message has been sent. Otherwise, all the physical blocks that have been sent successfully will need to be discarded.

[0006] Secondly, in the original State Grid protocol definition, when the MSDU is sent for the first time, the retry flag of the MSDU is set to 0. If not all MPDUs contained in the MSDU are successfully sent, the MSDU is retransmitted, and the retry flag is set to 1. However, the above transmission process has the following problems: If the current MSDU is not successfully sent, the data sending device starts to retransmit the current MSDU. However, due to reasons such as reaching the default retransmission count of the MSDU, the data sending device stops retransmitting the current MSDU. At this time, the data sending device starts to send the next MSDU. However, due to reasons such as the data sending device flushing and poor communication, the entire MSDU is lost. The data sending device then starts to retransmit the MSDU with the retry flag = 1. At this time, for the data receiving device, since it has not successfully received the second MSDU sent by the data sending device, when it receives the MPDU with the retry flag = 1, it still believes that it is retransmitting the previous MSDU, thus combining the data of the two MSDUs together, resulting in an MSDU CRC error, and ultimately causing all received data to be discarded.

[0007] Finally, for cases where multiple attempts to send data fail at a very low base rate, the current approach considers switching routes. If switching routes does not solve the problem, manual addition of relays is required. However, this approach is costly for cases where only a few nodes or a single node has temporarily poor communication. Summary of the Invention

[0008] This invention provides a data transmission device based on power line carrier, which can improve data retransmission efficiency and timeliness, reduce the amount of data retransmission, reduce the storage space required for data receiving devices, and maintain compatibility with the State Grid, thereby reducing the cost of speed increase.

[0009] To achieve the above objectives, this application provides the following technical solution:

[0010] A data transmission device based on power line carrier, the data transmission device being used for:

[0011] The MSDU is divided into several MPDUs;

[0012] MPDUs are sent sequentially to the data receiving device; the retry flag of the first MPDU is 0, and the retry flag of the other MPDUs is 1.

[0013] If the SACK signal is 1, send the next MPDU; otherwise, retransmit the current MPDU.

[0014] Furthermore, if the data transmission device needs to switch rates, it selects a rate whose physical block size is the same as the physical block size of the successfully transmitted data and switches to it, replacing the TMI with the TMI of the switched rate.

[0015] Furthermore, the MPDU contains a physical block.

[0016] Furthermore, the MPDU also includes a CRC.

[0017] Furthermore, if there are more than two physical blocks in the MPDU, then when retransmitting the MPDU, only the physical blocks that failed to be received will be retransmitted.

[0018] Furthermore, the retransmission of only the physical blocks that failed to be received includes: analyzing the physical blocks that failed to be received by the data receiving device, integrating the physical blocks that failed to be received into a new MPDU, retransmitting the integrated MPDU, and setting its retry flag to 1 for retransmission.

[0019] The principles and advantages of this invention are as follows:

[0020] 1. This scheme overcomes the fixed definition of the retry flag in the State Grid protocol and cleverly utilizes it, enabling the improved scheme to be compatible with the original State Grid protocol and significantly reducing the cost of improving transmission efficiency. In this scheme, only the retry flag of the first MPDU is set to 0, while the retry flag of all other MPDUs is set to 1. Whether to retransmit is no longer determined after the entire MSDU has been sent, but rather by the SACK signal sent by the data transmitting device. Therefore, for the data receiving device, when receiving each packet with a retry flag of 1, it considers it to be receiving retransmitted data and generates a SACK signal to inform the data transmitting device whether it has successfully received the content. Furthermore, the buffer is not cleared until the next MPDU with a retry flag of 0 arrives. In other words, for the transmission of an MSDU, after each fragment MPDU is sent, a reception feedback will be sent in a timely manner. This allows the current MPDU to be retransmitted immediately if the MPDU fails to be received or is not received. This not only improves the timeliness of data retransmission but also reduces the amount of data retransmission and improves the efficiency of data retransmission. Especially for some edge nodes with poor communication, communication can be carried out at a lower rate with very little overhead.

[0021] 2. The data receiving device can save on the storage space that needs to be reserved, especially for multi-link proxy nodes. In this solution, it is not necessary to retain the maximum MSDU length of the current link to maintain the reception of the entire MSDU. Instead, MPDUs can be received one by one, and then the physical blocks in each MPDU are spliced ​​together. In the technical solution of this application, the MPDU can include multiple physical blocks (long MPDU) or only one physical block (short MPDU). In the case of poor network communication quality, this application prefers to use short MPDUs for communication to ensure communication quality.

[0022] 3. In the existing State Grid protocol, for variable rate selection, a message that fails to be retransmitted multiple times will be sent at a reduced rate. However, for messages that have been partially transmitted, the rate cannot be switched midway; it must wait until the entire message is transmitted before switching the rate. Otherwise, all previously successfully transmitted physical blocks must be discarded. With this solution, when a rate switch is needed, it is only necessary to ensure that the physical block size corresponding to the rate before and after the switch is the same. This allows for seamless transition by directly replacing the rate table index (TMI). Retransmission of the entire message is only required when there is no corresponding rate with the same physical block size. Attached Figure Description

[0023] Figure 1 This is a flowchart illustrating the data transmission process in an embodiment of a power line carrier-based data transmission device according to the present invention.

[0024] Figure 2 This is a schematic diagram of MPDU generation in an embodiment of a data transmission device based on power line carrier according to the present invention.

[0025] Figure 3 This is a schematic diagram of MPDU integration in an embodiment of a data transmission device based on power line carrier according to the present invention.

[0026] Figure 4 This is a flowchart of a data transmission device according to an embodiment of a power line carrier-based data transmission device of the present invention.

[0027] Figure 5 This is a flowchart of a data receiving device in an embodiment of a power line carrier-based data transmission device according to the present invention. Detailed Implementation

[0028] The following detailed description illustrates the specific implementation method:

[0029] Example 1:

[0030] Example 1 is basically as shown in the appendix. Figure 1 As shown:

[0031] A data transmission device based on power line carrier, such as Figure 2 As shown, the data transmission device is used to divide the MSDU into several MPDUs; for ease of understanding the principle, the example shown in the figure divides the MSDU into two MPDUs. In this embodiment, the MSDU is divided into 4 MPDUs (pbnum = 4).

[0032] The MPDU contains a CRC and a physical block header. In this embodiment, the MPDU contains a physical block.

[0033] The data transmitting device receives the SACK signal from the data receiving device and sequentially sends MPDUs to the data receiving device according to the SACK signal; the retry flag of the first MPDU is 0, and the retry flag of other MPDUs is 1. The data receiving device receives the MPDU and stores the received MPDU according to its retry flag. If the SACK signal received by the data transmitting device is 1, it sends the next MPDU; otherwise, it retransmits the current MPDU.

[0034] Specifically:

[0035] like Figure 4 As shown, the data transmitting device sends MPDUs. In this embodiment, MPDUs are sent starting from the retransmission flag bit being 0 (pb_sn = 0), with a total of 4 MPDUs being sent in pairs: 0 / 1 / 2 / 3. The retry flag of the first short MPDU sent is 0. The first short MPDU with pb_sn = 0 must successfully receive a SACK before the retry flag can be set to 1; otherwise, it will always be 0. (In this sense, the retry flag indicates that 0 is the start of a new MSDU. This is a compatibility consideration, as it allows for interoperability with existing protocols while improving efficiency.)

[0036] like Figure 5 As shown, the data receiving device receives the MPDU and sends back a SACK signal; it also analyzes the CRC to determine if the MPDU was received correctly. If so, the SACK signal is set to 1. At any time, if a packet with a retry flag of 0 is received, it means a new MSDU has started to be received, and any previously received MPDUs need to be refreshed.

[0037] The data transmitting device receives the SACK signal. If the SACK signal is 1, it sends the next MPDU; otherwise, it retransmits the current MPDU.

[0038] If the data transmitting device receives a SACK signal of 0 after sending the current MPDU, or does not receive a SACK signal within a preset time, then it needs to continue sending the MPDU, and pb_sn will not be incremented; if a SACK signal of 1 is received, it means that the MPDU was successfully received, and then retry flag = 1, and the next MPDU is sent, pb_sn + 1, until the last one is sent.

[0039] If the retry flag of the MPDU is 0, then the MPDU corresponds to a new MSDU, and the data receiving device clears the previous receive buffer and stores the received MPDU; if the retry flag of the MPDU is 1, then the MPDU belongs to the current MSDU, and the received MPDU is stored.

[0040] For packets with retry flag = 0, pb_sn must generally start from 0 to indicate the first block. The total number of MPDUs in the MSDU can be obtained from the physical block header (frame sequence number of the end-of-frame marker + 1, since the frame sequence number starts from 0). The size of each MPDU (pbsz) can be obtained from the TMI of this block, thereby calculating the data volume of the MSDU and then allocating the corresponding buffer space for the MSDU.

[0041] For packets with pb_sn! = 0, the retry flag should be 1. This indicates that the received MPDUs are all from the current MSDU. If the CRC of the MPDU is correct, reply with SACK = 1 to indicate that it has been received correctly. If the number of physical blocks (pbnum) has reached the number that should be received, then you can try to calculate the CRC of the MSDU. If the CRC is correct, you can report to the upper layer. Otherwise, continue to wait for the next PB.

[0042] During this process, the data receiving device does not actively refresh the current MSDU; it receives data passively. The state machine for transmission is controlled by the data sending device. If the data sending device times out or refreshes, it will jump to a state such as... Figure 5 The received status is shown to send a new MSDU.

[0043] like Figure 3 As shown, after the data receiving device receives all MPDUs of the current MSDU, it integrates all MPDUs to form an MSDU.

[0044] Example 2:

[0045] The basic principle of Example 2 is the same as that of Example 1. The difference is that in Example 2, the number of physical blocks in the MPDU is more than two. Correspondingly, the SACK reply message of the data receiving device adopts the bitmap form. Thus, the data sending device can know the failure status of the data receiving device through the bitmap, so that when retransmitting the MPDU, it only retransmits the physical blocks that failed to be received.

[0046] The specific retransmission method is as follows:

[0047] In this embodiment, the current MSDU is divided into 5 MPDUs, and each MPDU contains 4 physical blocks.

[0048] If the first MPDU sent by the data transmitting device is successfully received, but the first and second physical blocks in the second MPDU sent by the data transmitting device are not successfully received, the SACK response is 0011. At this time, the data transmitting device, based on the SACK signal, combines the first and second physical blocks into a new MPDU and sets its retry flag to 1 for retransmission. Subsequent MPDU packets that are not successfully received are retransmitted in the same manner, and the retry flag is always 1 in subsequent retransmissions. That is, in the retransmission of a single MPDU, except for the first retransmitted MPDU where the retry flag is 0, the retry flag is 1 in subsequent retransmissions. In other embodiments of this application, short MPDUs can also be used to retransmit the physical blocks that need to be retransmitted sequentially.

[0049] Example 3:

[0050] The basic principle of Example 3 is the same as that of Example 1. The difference is that if the data transmission device in Example 3 needs to switch the rate, it selects the rate whose physical block size is the same as the physical block size that has been successfully transmitted, and replaces the TMI with the TMI of the switched rate.

[0051] According to the State Grid protocol, the physical block size is typically 72, 136, 264, 520, etc., and there are cases where different rates correspond to the same physical block size. In this embodiment, when a rate switch is required (such as when a message fails to be retransmitted multiple times and needs to be sent at a reduced rate), the data transmitting device will select a rate whose physical block size is the same as the size of the physical block that has been successfully transmitted for switching. That is, it attempts to ensure that the physical block size corresponding to the rate before and after the switch is the same. In this way, the successfully transmitted physical block can be seamlessly connected by directly replacing the rate table index (TMI) without retransmitting the entire message.

[0052] The above are merely embodiments of the present invention. Commonly known structures and characteristics are not described in detail here. Those skilled in the art are aware of all common technical knowledge in the field prior to the application date or priority date, are aware of all existing technologies in that field, and have the ability to apply conventional experimental methods prior to that date. Those skilled in the art can, under the guidance of this application, improve and implement this solution in combination with their own capabilities. Some typical known structures or methods should not be obstacles for those skilled in the art to implement this application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the structure of the present invention. These should also be considered within the scope of protection of the present invention, and will not affect the effectiveness of the implementation of the present invention or the practicality of the patent. The scope of protection claimed in this application should be determined by the content of its claims, and the specific embodiments described in the specification can be used to interpret the content of the claims.

Claims

1. A data transmission device based on power line carrier, characterized in that: The data transmission device is used for: The MSDU is divided into several MPDUs; MPDUs are sent sequentially to the data receiving device; the retry flag of the first MPDU is 0, and the retry flag of the other MPDUs is 1. If the SACK signal is 1, send the next MPDU; otherwise, retransmit the current MPDU.

2. The data transmission device based on power line carrier according to claim 1, characterized in that: If the data transmission device needs to switch rates, it selects a rate whose physical block size is the same as the physical block size of the successfully transmitted data and switches to it, replacing the TMI with the TMI of the switched rate.

3. The data transmission device based on power line carrier according to claim 1, characterized in that: The MPDU contains a physical block.

4. The data transmission device based on power line carrier according to claim 1, characterized in that: The MPDU also includes CRC.

5. The data transmission device based on power line carrier according to claim 1, characterized in that: If there are more than two physical blocks in the MPDU, then when retransmitting the MPDU, only the physical blocks that failed to be received will be retransmitted.

6. The data transmission device based on power line carrier according to claim 5, characterized in that: The method of retransmitting only the physical blocks that failed to be received includes: analyzing the physical blocks that failed to be received by the data receiving device, integrating the physical blocks that failed to be received into a new MPDU, retransmitting the integrated MPDU, and setting its retry flag to 1 for retransmission.

Citation Information

Patent Citations

  • Whole-network power line broadband carrier communication system monitoring system and method

    CN112803970A

  • Apparatus and method for retransmitting data in a communication system

    EP1677449A2