WO2021008248A1 - 数据帧接收方法和装置以及通信方法和系统 - Google Patents

数据帧接收方法和装置以及通信方法和系统 Download PDF

Info

Publication number
WO2021008248A1
WO2021008248A1 PCT/CN2020/093222 CN2020093222W WO2021008248A1 WO 2021008248 A1 WO2021008248 A1 WO 2021008248A1 CN 2020093222 W CN2020093222 W CN 2020093222W WO 2021008248 A1 WO2021008248 A1 WO 2021008248A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
data
data frame
communication data
communication
Prior art date
Application number
PCT/CN2020/093222
Other languages
English (en)
French (fr)
Inventor
李东声
Original Assignee
天地融科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 天地融科技股份有限公司 filed Critical 天地融科技股份有限公司
Publication of WO2021008248A1 publication Critical patent/WO2021008248A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the invention relates to the field of electronic technology, in particular to a data frame receiving method and a data frame receiving device, as well as a data frame communication method and a data frame communication system.
  • data In the communication field, data is generally transmitted and stored in units of data frames composed of data bits "0" and "1". In the process of data frame transmission, due to noise or interference in the transmission channel, data frames are usually There will be a certain degree of damage. In order to check the correctness of the received data frame, the current method is to add check information to the sent data frame. However, if the receiving device has a check error, that is, it requests the sending device to retransmit the data frame, the communication efficiency will be reduced to a certain extent. Therefore, how to design a data frame receiving method that reduces the number of data retransmissions is a technical problem to be solved urgently in this field.
  • the present invention aims to solve the above-mentioned problems.
  • the main purpose of the present invention is to provide a data frame receiving method, including: a receiving device receives a third communication data frame, wherein the communication data frame includes a frame header, frame data, and a frame tail, and the frame data includes N data bits.
  • the tail includes check data, where N is a positive integer and N ⁇ 1; after receiving the third communication data frame, the receiving device extracts the check data and frame data of the third communication data frame, and according to the check data Check the frame data; if the check is wrong, buffer the third communication data frame; the receiving device obtains the buffered first communication data frame, second communication data frame and third communication data frame, and extracts them respectively N data bits of frame data in the first communication data frame, N data bits of frame data in the second communication data frame, and N data bits of frame data in the third communication data frame; among them, the first communication The data frame and the second communication data frame are the communication data frames buffered by the receiving device after checking errors.
  • the first communication data frame, the second communication data frame, and the third communication data frame are for the sending device to wait according to the same preset.
  • the data frame is sent; the first to Nth bits of the corrected frame data are obtained through a preset calculation method, where the preset calculation method is to obtain the first communication data frame, the second communication data frame and the third
  • the data bit located at the i-th bit of the frame data in a communication data frame obtain a total of three data bits, calculate the probability of data bit 1 and data bit 0 among the three data bits, and set the data bit with high probability as correction
  • Another main object of the present invention is to provide a data frame communication method, which is characterized in that it includes the above-mentioned data frame receiving method, and before the receiving device receives the third communication data frame, it further includes: The data frame sends the first communication data frame to be sent. If the ACK frame is not received within the preset time, the sending device sends the second communication data frame to be sent according to the preset data frame to be sent. Upon receiving the ACK frame, the sending device sends the third communication data frame to be sent according to the preset data frame to be sent.
  • Another main object of the present invention is to provide a data frame receiving device, which is characterized by comprising: a receiving module, a check module, a buffer module, a calculation module, and an ACK frame sending module, wherein the receiving module is used to receive the first Three communication data frames are sent to the check module, where the communication data frame includes a frame header, frame data, and a frame tail.
  • the frame data includes N data bits, and the frame tail includes check data, where N is a positive integer, And N ⁇ 1;
  • the check module is used to extract the check data and frame data of the third communication data frame after receiving the third communication data frame sent by the receiving module, and check the frame data according to the check data Operation; if the check is wrong, send the third communication data frame to the buffer module;
  • the buffer module is used to buffer the third communication data frame, buffer the first communication data frame and the second communication data frame;
  • the calculation module Used to obtain the buffered first communication data frame, second communication data frame and third communication data frame, and extract the N data bits of the frame data in the first communication data frame respectively, and in the second communication data frame
  • the N data bits of the frame data and the N data bits of the frame data in the third communication data frame; among them, the first communication data frame and the second communication data frame are the data frame receiving device after verifying the error by the buffer module Buffered communication data frames, the first communication data frame, the second communication data frame and the third communication data frame are
  • the data frame sending device includes a sending module and an ACK frame receiving module, wherein the sending module , Used to send the first communication data frame to be sent according to the preset data frame to be sent, if the ACK frame receiving module does not receive the ACK frame within the preset time, send the second communication data frame to be sent according to the preset data frame to be sent Data frame, if the ACK frame receiving module does not receive the ACK frame within the preset time, the third communication data frame to be sent is sent according to the preset data frame to be sent; the ACK frame receiving module is used to receive the ACK frame and notify the sending Module.
  • the present invention provides a technical solution provided by the above present invention. It can be seen that the present invention provides a data frame receiving method and data frame receiving device, and data frame communication Method and data frame communication system. Among them, in the data frame receiving method and the data frame receiving device, after the receiving device receives the third communication data frame, if there is a check error, the received third communication data frame is buffered, and all the buffered communication data Probability calculation is performed on the data bits of the corresponding bits of the frame, and the data bits with high probability in each bit are used to form the corrected frame data, and the corrected frame data is checked.
  • the ACK frame is sent to the sending device, and the above Method, when the communication data frame received by the receiving device fails to pass the verification, the corrected frame data is calculated and verified, which solves the problem of error in one or several bits of the frame data during transmission or decoding. This leads to the problem that the entire communication data frame is checked incorrectly, which increases the probability of correct checking and reduces the number of retransmissions of the sending device.
  • the data frame communication method and the data frame communication system include the above-mentioned data frame receiving method and data frame receiving device, and before the receiving device receives the third communication data frame, the sending device sends the first to The third communication data frame to be sent, that is, when the maximum number of retransmissions has not been reached and the ACK frame is not received, the communication data frame to be sent is repeatedly sent, so that the receiving device can check the received communication data frame when it fails. , The communication data frame repeatedly sent by the sending device can be received, and the ACK frame can be sent to the sending device after the check is passed, which reduces the number of interactions between the sending device and the receiving device.
  • FIG. 1 is a flowchart of a data frame receiving method provided by Embodiment 1 of the present invention
  • Embodiment 2 is a flowchart of a data frame communication method provided by Embodiment 2 of the present invention.
  • Embodiment 3 is a schematic structural diagram of a data frame receiving apparatus provided by Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a data frame receiving system provided by Embodiment 4 of the present invention.
  • FIG. 1 is a flowchart of an optional data frame receiving method in this embodiment.
  • the data frame receiving method mainly includes the following steps (step 101 to step 106):
  • Step 101 The receiving device receives a third communication data frame, where the communication data frame includes a frame header, frame data, and a frame trailer, the frame data includes N data bits, and the frame trailer includes check data, where N is a positive integer, And N ⁇ 1.
  • the communication data frame includes a frame header (Start of Frame, abbreviated SOF), frame data, and an end of frame (End of Frame, abbreviated EOF), and the frame end includes check data, where the check data may be CRC
  • the check data obtained by the check method such as check can also identify the end of data reception through the frame end.
  • Step 102 After receiving the third communication data frame, the receiving device extracts check data and frame data of the third communication data frame, and performs a check operation on the frame data according to the check data.
  • the frame header further includes data synchronization header information and physical address information.
  • the receiving device determines the third Whether the frame header in each communication data frame contains data synchronization header information, and judge whether the physical address information is correct, if it contains the data synchronization header information and the physical address information is correct, perform the extraction of the check data sum of the third communication data frame Operation of frame data.
  • the synchronization header information is a bit sequence agreed by both parties. Through the synchronization information, the receiving device can recognize that a data frame is currently being received, and can determine the start position or time of the frame data in the received data frame.
  • the device can also obtain the carrier frequency of the data transmission of the sending device through the synchronization header information. After analyzing the synchronization header information to obtain the carrier frequency of the data transmitted by the sending device, use the carrier frequency to receive the data frame; the physical address information is the communication data frame marked The target receiving device, after receiving the communication data frame, the receiving device can determine whether the target receiving device of the currently received communication data frame is the receiving device by analyzing whether the physical address information matches the physical address information of the receiving device. In this optional implementation, before the receiving device verifies the frame data of the third communication data frame, the receiving device first verifies the synchronization header information and the physical address information to avoid invalid data or incorrectly received data. Verification improves the verification efficiency.
  • the receiving device can verify the synchronization header information and the physical address information in the communication data frame before performing the verification operation on the frame data of the communication data frame. To improve verification and communication efficiency.
  • Step 103 If the check is wrong, buffer the third communication data frame.
  • the receiving device checks the frame data of the communication data frame
  • the check data at the end of the frame in the communication data frame can be extracted, and the frame data check is completed through the check data. If the verification fails, the communication data frame is buffered for subsequent use, and if the verification is correct, the ACK frame is sent to the sending device.
  • Step 104 The receiving device obtains the buffered first communication data frame, the second communication data frame, and the third communication data frame, and extracts the N data bits of the frame data in the first communication data frame.
  • the N data bits of the frame data in the data frame and the N data bits of the frame data in the third communication data frame; among them, the first communication data frame and the second communication data frame are buffered by the receiving device after checking errors
  • the communication data frame, the first communication data frame, the second communication data frame and the third communication data frame are sent by the sending device according to the same preset data frame to be sent.
  • the first communication data frame to the third communication data frame are all communication data frames buffered by the receiving device after checking errors, and are communication data frames sent by the sending device according to the same preset data frame to be sent.
  • a data frame is a communication data frame repeatedly sent by the sending device. The receiving device obtains the three buffered communication data frames, extracts the frame data in each communication data frame, and performs the next calculation operation.
  • three times may be the preset maximum retransmission times of the data frame to be sent set by the sending device, that is, the receiving device receives the communication data frame with the maximum retransmission times sent by the sending device (the third communication data frame). Frame), that is, after confirming that the sending device will not retransmit, start the calculation operation.
  • the probability of data bit 1 and data bit 0 in the first bit of the frame data in each communication data frame is calculated, and the calculation is repeated until the Nth bit of the frame data in each communication data frame is calculated.
  • the probability of data bit 1 and data bit 0 fill the bit data with high probability in each bit into the corresponding bit of the corrected frame data to obtain the corrected frame data.
  • the preset data frame to be sent of the sending device is 10101100
  • the frame data in the first communication data frame received by the receiving device is 11100101
  • the frame data in the second communication data frame is 00101110
  • the frame data in the third communication data frame is The frame data is 10111000, and the following calculations are performed: the data bit of the first bit in the three communication data frames is 101, the probability of data bit 1 is 66.7%, and the probability of data bit 0 is 33.3%, then,
  • the first bit of the corrected frame data is data bit 1.
  • the data bit of the second bit of the three communication data frames is 100, the probability of data bit 1 is 33.3%, and the probability of data bit 0 is 66.7%, then the first bit of the corrected frame data is data bit 0; repeat calculations, and the third bit of the corrected frame data is calculated as data bit 1, and the fourth bit is data bit 0,... ..., the eighth bit is data bit 0, and the corrected frame data is 10101100.
  • the corrected frame data is composed of the data bits with the highest probability, so that each bit of the corrected frame data is the data bit with the highest probability of the bit, which solves the problem of transmission or decoding process
  • Step 106 Use the check data to perform a check operation on the corrected frame data, and if the check is correct, send an ACK frame to the sending device.
  • the verification operation is performed on the corrected frame data using the verification data, which improves the probability of correct verification.
  • the ACK frame is sent to the sending device, and the sending device can perform the next operation according to the received ACK frame.
  • the receiving device After receiving the third communication data frame, if the check error occurs, the receiving device buffers the received third communication data frame, and performs data on all buffered communication data frames. Probability calculation is performed on the data bits corresponding to the bit position, and the data bits with high probability in each bit position are used to form the corrected frame data, and the corrected frame data is checked. If the verification is passed, the ACK frame is sent to the sending device.
  • the corrected frame data is calculated and verified, which solves the problem caused by the error of one or several bits of the frame data in the transmission or decoding process
  • the problem of the entire communication data frame being checked incorrectly increases the probability of correct checking and reduces the number of retransmissions of the sending device.
  • This embodiment provides a data frame communication method, which includes the data frame receiving method in Embodiment 1. Therefore, the same parts as those in Embodiment 1 will not be repeated, and only the differences will be described in detail:
  • step 1 of embodiment 1 receives the third communication data frame, as shown in FIG. 2, it further includes the following steps (step a to step c):
  • Step a The sending device sends the first communication data frame to be sent according to the preset data frame to be sent;
  • Step b If the ACK frame is not received within the preset time, the sending device sends the second communication data frame to be sent according to the preset data frame to be sent;
  • Step c If the ACK frame is not received within the preset time, the sending device sends the third communication data frame to be sent according to the preset data frame to be sent.
  • the data to be sent of the sending device may include multiple preset data frames to be sent.
  • the sending device starts from sending the first preset data frame to be sent, and completes the sending of the preset data frames to be sent one by one.
  • each communication data frame is a series of bit sequences
  • the data to be sent is a bit sequence composed of multiple data frames to be sent.
  • the sending device if the sending device does not receive the ACK frame within the preset time, it is considered that the previously sent communication data frame to be sent has not been successfully received by the receiving device or the verification fails, and the sending device sends the next communication to be sent Data frame, the next communication data frame to be sent has the same content as the previous communication data frame to be sent, and is sent according to the preset data frame to be sent, that is, for the sending device, its operation is to send the previous The communication data frame is resent. In the case that the ACK frame is not received, the communication data frame is retransmitted to ensure the continuity of communication and the integrity of the data.
  • the sending device can send the to-be-sent communication data frame in the form of broadcast to improve communication efficiency.
  • the method before the sending device sends the first communication data frame to be sent according to the preset data frame to be sent, the method further includes: obtaining the first carrier frequency according to the preset carrier frequency hopping sequence, And sending the first communication data frame to be sent according to the first carrier frequency; before the sending device sends the second communication data frame to be sent according to the preset data frame to be sent, it also includes: according to the preset carrier frequency hopping sequence, Obtain the second carrier frequency and send the second communication data frame to be sent according to the first carrier frequency; before the sending device sends the third communication data frame to be sent according to the preset data frame to be sent, it also includes: Carrier frequency hopping sequence to obtain the third carrier frequency, and send the third communication data frame to be sent according to the third carrier frequency.
  • the transmitting device may prestore a carrier frequency hopping sequence list, and before completing the transmission of the communication data frame to be sent, perform frequency hopping according to the carrier frequency hopping sequence in the list, and use the hopping sequence. After the frequency completes the sending operation.
  • the transmitting device uses the converted carrier frequency to transmit the communication data frame, which avoids the situation that the transmitting device and the receiving device cannot complete communication when the receiving device cannot receive the signal of the specific carrier frequency, thereby improving the communication efficiency.
  • the sending device before sending the communication data frame according to the preset data to be sent, the sending device can obtain the carrier frequency according to the preset carrier frequency hopping sequence, and send according to the carrier frequency, thereby improving communication efficiency.
  • the sending device before the sending device sends the first communication data frame to be sent according to the preset data frame to be sent, it further includes: after the sending device receives the ACK frame, the sending device according to the preset data frame to be sent Send the first communication data frame to be sent.
  • the sending device after receiving the ACK frame sent by the receiving device, the sending device can confirm that the to-be-sent communication data frame sent this time according to the preset to-be-sent data frame has been successfully received by the receiving device and verified. Starting the next sending operation reduces the number of interactions between the sending device and the receiving device.
  • the sending device is set to preset the maximum number of retransmissions of the to-be-sent data frame to three times. Retransmit the preset data frame to be sent. The sending device sets the maximum number of retransmissions to avoid continuously retransmitting the preset data frame to be sent when the ACK frame is not received, which causes a waste of communication resources.
  • the sending device before the receiving device in step 101 of embodiment 1 receives the third communication data frame, the sending device sends the first to third communication to be sent according to the preset data frame to be sent Data frame, when the maximum number of retransmissions is not reached and the ACK frame is not received, the to-be-sent communication data frame is repeatedly sent, so that the receiving device can receive the sending device when the received communication data frame is not verified. Repeatedly sent communication data frames, until the check is passed, send an ACK frame to the sending device, which reduces the number of interactions between the sending device and the receiving device.
  • the receiving device After receiving the third communication data frame, if the receiving device has a check error, it will buffer the received third communication data frame, calculate the probability of the data bits corresponding to all the buffered communication data frames, and use The data bits with high probability in each bit form the corrected frame data, and the corrected frame data is checked. If the verification is passed, the ACK frame is sent to the sending device.
  • the communication data frame received by the receiving device cannot When the check is passed, the corrected frame data is calculated and verified, which solves the problem of the entire communication data frame being checked incorrectly due to an error in one or several bits of the frame data during transmission or decoding. The probability of correct verification is improved, and the number of retransmissions of the sending device is reduced.
  • This embodiment provides a data frame receiving device 300, which can be applied in the power line communication field or the network communication field.
  • the system corresponds to the data frame receiving method in Embodiment 1 one to one, and the similarities are not repeated here.
  • the specific operations performed by each unit in the data frame receiving apparatus 300 can refer to Embodiment 1.
  • FIG. 3 is a data frame receiving device 300 of this embodiment, which includes: a receiving module 301, a check module 302, a buffer module 303, a calculation module 304, and an ACK frame sending module 305, where:
  • the receiving module 301 is used to receive the third communication data frame and send it to the check module 302.
  • the communication data frame includes a frame header, frame data and a frame end.
  • the frame data includes N data bits, and the frame end includes a check Data, where N is a positive integer, and N ⁇ 1;
  • the check module 302 is configured to extract check data and frame data of the third communication data frame after receiving the third communication data frame sent by the receiving module 301, and perform a check operation on the frame data according to the check data; If the check is wrong, send the third communication data frame to the buffer module 303;
  • the buffer module 303 is used to buffer the third communication data frame, and buffer the first communication data frame and the second communication data frame;
  • the calculation module 304 is used to obtain the buffered first communication data frame, the second communication data frame and the third communication data frame, and respectively extract the N data bits of the frame data in the first communication data frame.
  • the N data bits of the frame data in the communication data frame and the N data bits of the frame data in the third communication data frame; among them, the first communication data frame and the second communication data frame are checked by the data frame receiving device 300 After the error, the communication data frame buffered in the buffer module 303, the first communication data frame, the second communication data frame and the third communication data frame are sent by the data frame sending device according to the same preset data frame to be sent;
  • the preset calculation method obtains the first to Nth bits of the corrected frame data, where the preset calculation method is to obtain the frame data in the first communication data frame, the second communication data frame and the third communication data frame respectively For the data bit located at the i-th bit position, obtain three data bits in total, calculate the probability of data bit 1 and data bit 0 among the three data bits, and set the data bit with
  • the check module 302 is also used to receive the corrected frame data, use the check data to perform a check operation on the corrected frame data, and if the check is correct, notify the ACK frame sending module 305;
  • the ACK frame sending module 305 is configured to send an ACK frame to the data frame sending device.
  • the frame header also includes data synchronization header information and physical address information;
  • the data frame receiving device also includes a judgment module (not shown in the figure); a judgment module for verifying Before the module extracts the check data and frame data of the third communication data frame, it judges whether the frame header in the third communication data frame contains data synchronization header information, and judges whether the physical address information is correct, if it contains data synchronization header information And the physical address information is correct, then perform the operation of extracting the check data and frame data of the third communication data frame.
  • the synchronization header information is a bit sequence agreed by both parties in communication.
  • the data frame receiving device 300 can recognize that a data frame is currently being received, and can determine the start position or time of the frame data in the received data frame.
  • the data frame receiving device 300 can also obtain the carrier frequency of data transmission by the sending device through the synchronization header information. After analyzing the synchronization header information to obtain the carrier frequency of the data transmitted by the sending device, use the carrier frequency to receive the data frame; the physical address information is a mark With the target data frame receiving device 300 of the communication data frame, after the data frame receiving device 300 receives the communication data frame, it can judge the current reception by analyzing whether the physical address information matches the physical address information of the data frame receiving device 300 Whether the target data frame receiving device 300 of the received communication data frame is the current data frame receiving device 300. In this optional embodiment, before the data frame receiving device 300 checks the frame data of the i-th communication data frame, the judgment module first verifies the synchronization header information and the physical address information to avoid invalid data or incorrect reception The data is verified to improve the verification efficiency.
  • the data frame receiving device 300 After the data frame receiving device 300 receives the third communication data frame, if there is a check error, it will buffer the received third communication data frame for all buffered data frames. Probability calculation is performed on the data bits of the corresponding bit of the communication data frame, and the data bits with high probability in each bit are used to form the corrected frame data, and the corrected frame data is verified. If the verification passes, the ACK frame is sent to the sending device.
  • the corrected frame data is calculated and verified, which solves the problem of a certain bit or a few in the frame data during the transmission or decoding process.
  • the bit data error causes the entire communication data frame to be verified incorrectly, which improves the probability of correct verification and reduces the number of retransmissions of the sending device.
  • This embodiment provides a data frame communication system 400, which can be applied in the power line communication field or the network communication field.
  • the system corresponds to the data frame communication method in the second embodiment one-to-one, and the similarities are not repeated here.
  • the specific operations performed by each unit in the data frame communication system 400 can refer to Embodiment 2.
  • FIG. 4 is a data frame communication system 400 of this embodiment, including a data frame sending device 401 and a data frame receiving device 402, where the data frame receiving device 402 includes: a receiving module 4021, a verification module 4022, a buffer module 4023.
  • the modules of the data frame receiving device 402 correspond to the functions of the modules of the data frame receiving device 300 in Embodiment 3. Only the labels are different, and the specific operations performed by each module You can refer to Embodiment 3, which will not be repeated here.
  • the data frame sending device 401 includes: a sending module 4011 and an ACK frame receiving module 4012, wherein,
  • the sending module 4011 is configured to send the first communication data frame to be sent according to the preset data frame to be sent. If the ACK frame receiving module 4012 does not receive the ACK frame within the preset time, send the second data frame according to the preset data frame to be sent If the ACK frame receiving module 4012 does not receive the ACK frame within the preset time, send the third communication data frame to be sent according to the preset data frame to be sent;
  • the ACK frame receiving module 4012 is used to receive the ACK frame and notify the sending module 4011.
  • the sending module 4011 is further configured to obtain the first carrier frequency according to a preset carrier frequency hopping sequence, and send the first communication data frame to be sent according to the first carrier frequency ; Obtain the second carrier frequency according to the preset carrier frequency hopping sequence, and send the second communication data frame to be sent according to the first carrier frequency; obtain the third carrier frequency according to the preset carrier frequency hopping sequence, and The third communication data frame to be sent is sent according to the third carrier frequency.
  • the data frame sending device 401 may prestore a carrier frequency hopping sequence list, and before completing the transmission of the communication data frame to be sent, perform frequency hopping according to the carrier frequency hopping sequence in the list, using The frequency after this jump completes the sending operation.
  • the data frame sending device 401 uses the converted carrier frequency to send communication data frames, which avoids the situation that the data frame sending device 401 and the data frame receiving device 402 cannot complete communication when the data frame receiving device 402 cannot receive a signal of a specific carrier frequency. Improved communication efficiency.
  • the sending module 4011 before sending the communication data frame according to the preset data to be sent, can obtain the carrier frequency according to the preset carrier frequency hopping sequence, and send according to the carrier frequency to improve communication efficiency.
  • the data frame sending device 401 sends the first to third communication data frames to be sent according to the preset data frames to be sent, and the maximum number of retransmissions is not reached and no ACK is received.
  • the to-be-sent communication data frame is repeatedly sent, so that the data frame receiving device 402 can receive the communication data frame repeatedly sent by the data frame sending device 401 when the received communication data frame fails to pass the check, until it is checked.
  • the ACK frame is sent to the data frame sending device 401, which reduces the number of interactions between the data frame sending device 401 and the data frame receiving device 402.
  • the data frame receiving device 402 After receiving the third communication data frame, the data frame receiving device 402 buffers the received third communication data frame if there is a check error, and calculates the probability of the data bits corresponding to all the buffered communication data frames. Calculate, use the data bits with high probability in each bit to form the corrected frame data, and verify the corrected frame data. If the verification is passed, the ACK frame is sent to the data frame sending device 401.
  • the data frame receiving device 402 When the received communication data frame fails to pass the verification, the corrected frame data is calculated and verified, which solves the whole communication caused by the error of one or several bits of the frame data during the transmission or decoding process. The problem of the data frame being checked incorrectly improves the probability of correct checking and reduces the number of retransmissions of the data frame sending device 401.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

本发明提供了一种数据帧接收方法和装置以及通信方法和系统,其中数据帧接收方法,包括:接收装置接收第三个通信数据帧,通信数据帧包括帧头、帧数据和帧尾;提取校验数据和帧数据进行校验操作;若校验错误,缓存第三个通信数据帧;获取缓存的第一至第三个通信数据帧,并提取各通信数据帧中帧数据的N个数据比特;通过预设计算方式得到纠正帧数据的第1位至第N位,预设计算方式为,分别获取第一至第三个通信数据帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算三个数据比特中数据比特1和0的概率,将概率高的数据比特设置为纠正帧数据的第i位;使用校验数据对纠正帧数据进行校验,若校验正确则向发送装置发送ACK帧。

Description

数据帧接收方法和装置以及通信方法和系统
相关申请的交叉引用
本申请要求天地融科技股份有限公司于2019年7月12日提交的、发明名称为“数据帧接收方法和装置以及通信方法和系统”的、中国专利申请号“201910627263.8”的优先权。
技术领域
本发明涉及一种电子技术领域,尤其涉及一种数据帧接收方法和数据帧接收装置,以及数据帧通信方法和数据帧通信系统。
背景技术
在通信领域,数据一般是以数据比特“0”“1”组合的数据帧为单位进行传输与存储的,而在数据帧传输的过程中,由于传输通道中存在的噪声或干扰,数据帧通常会有一定程度的损伤,为了检验接收到的数据帧的正确性,目前的方法是在发送的数据帧中加入校验信息。然而,若接收装置校验错误即请求发送装置重传数据帧,将在一定程度上降低通信效率。因此,如何设计一种减少数据重传的次数的数据帧接收方法,是本领域亟待解决的技术问题。
发明内容
本发明旨在解决上述问题。
本发明的主要目的在于提供一种数据帧接收方法,包括:接收装置接收第三个通信数据帧,其中,通信数据帧包括帧头、帧数据和帧尾,帧数据包括N个数据比特,帧尾包括校验数据,其中,N为正整数,且N≥1;接收装置接收到第三个通信数据帧之后,提取第三个通信数据帧的校验数据和帧数据,并根据校验数据对帧数据进行校验操作;若校验错误,缓存第三个通信数据帧;接收装置获取缓存的第一个通信数据帧、第二个通信数据帧和第三个通信数据帧,并分别提取第一个通信数据帧中帧数据的N个数据比特,第二通信数据帧中帧数据的N个数据比特和第三个通信数据帧中帧数据的N个数据比特;其中,第一个通信数据帧和第二个通信数据帧为接收装置校验错误后缓存的通信数据帧,第一个通信数据帧、第二个通信数据帧和第三通信数据帧为发送装置按照相同的预设待发送数据 帧发送的;通过预设计算方式得到纠正帧数据的第1位至第N位,其中,预设计算方式为,分别获取第一个通信数据帧、第二个通信数据帧和第三个通信数据帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算三个数据比特中数据比特1和数据比特0的概率,将概率高的数据比特设置为纠正帧数据的第i位,其中,i=1,……,N;使用校验数据对纠正帧数据进行校验操作,若校验正确,则向发送装置发送ACK帧。
本发明的另一主要目的在于提供一种数据帧通信方法,其特征在于,包括上述的数据帧接收方法,在接收装置接收第三个通信数据帧之前,还包括:发送装置按照预设待发送数据帧发送第一个待发送通信数据帧,若在预设时间内没有接收到ACK帧,发送装置按照预设待发送数据帧发送第二个待发送通信数据帧,若在预设时间内没有接收到ACK帧,发送装置按照预设待发送数据帧发送第三个待发送通信数据帧。
本发明的另一主要目的还在于提供一种数据帧接收装置,其特征在于,包括:接收模块、校验模块、缓存模块、计算模块和ACK帧发送模块,其中,接收模块,用于接收第三个通信数据帧,并发送至校验模块,其中,通信数据帧包括帧头、帧数据和帧尾,帧数据包括N个数据比特,帧尾包括校验数据,其中,N为正整数,且N≥1;校验模块,用于接收接收模块发送的第三个通信数据帧之后,提取第三个通信数据帧的校验数据和帧数据,并根据校验数据对帧数据进行校验操作;若校验错误,将第三个通信数据帧发送至缓存模块;缓存模块,用于缓存第三个通信数据帧,缓存第一个通信数据帧和第二个通信数据帧;计算模块,用于获取缓存的第一个通信数据帧、第二个通信数据帧和第三个通信数据帧,并分别提取第一个通信数据帧中帧数据的N个数据比特,第二通信数据帧中帧数据的N个数据比特和第三个通信数据帧中帧数据的N个数据比特;其中,第一个通信数据帧和第二个通信数据帧为数据帧接收装置校验错误后由缓存模块缓存的通信数据帧,第一个通信数据帧、第二个通信数据帧和第三通信数据帧为数据帧发送装置按照相同的预设待发送数据帧发送的;通过预设计算方式得到纠正帧数据的第1位至第N位,其中,预设计算方式为,分别获取第一个通信数据帧、第二个通信数据帧和第三个通信数据帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算三个数据比特中数据比特1和数据比特0的概率,将概率高的数据比特设置为纠正帧数据的第i位,其中,i=1,……,N;将纠正帧数据发送至校验模块;校验模块,还用于接收纠正帧数据,使用校验数据对纠正帧数据进行校验操作,若校验正确,则通知ACK帧发送模块;ACK帧发送模块,用于向数据帧发送装置发送ACK帧。
本发明的另一主要目的还在于提供一种数据帧通信系统,包括上述的数据帧接收装置,以及数据帧发送装置,数据帧发送装置,包括:发送模块和ACK帧接收模块,其中,发送模块,用于按照预设待发送数据帧发送第一个待发送通信数据帧,若在预设时间内ACK帧 接收模块没有接收到ACK帧,按照预设待发送数据帧发送第二个待发送通信数据帧,若ACK帧接收模块在预设时间内没有接收到ACK帧,按照预设待发送数据帧发送第三个待发送通信数据帧;ACK帧接收模块,用于接收ACK帧,并通知发送模块。
由上述本发明提供的技术方案可以看出,本发明提供了一种由上述本发明提供的技术方案可以看出,本发明提供了一种数据帧接收方法和数据帧接收装置,以及数据帧通信方法和数据帧通信系统。其中,数据帧接收方法和数据帧接收装置中,接收装置在接收到第三个通信数据帧后,若校验错误,则将接收到的第三个通信数据帧缓存,对所有缓存的通信数据帧的对应比特位的数据比特进行概率计算,使用每个比特位中概率高的数据比特组成纠正帧数据,对纠正帧数据进行校验,若验证通过,则向发送装置发送ACK帧,通过上述方法,在接收装置接收到的通信数据帧均无法校验通过时,计算得到纠正帧数据并进行验证,解决了因传输或解码过程中帧数据中的某一位或某几位比特数据出现错误而导致整个通信数据帧被校验错误的问题,提高了校验正确的概率,减少了发送装置的重传次数。数据帧通信方法和数据帧通信系统,包括了上述数据帧接收方法和数据帧接收装置,以及在接收装置接收第三个通信数据帧之前,发送装置依据预设待发送数据帧发送第一个至第三个待发送通信数据帧,即在未达到最大重发次数且未接收到ACK帧时,重复发送该待发送通信数据帧,使得接收装置可以在接收到的通信数据帧校验没有通过时,可以接收到发送装置重复发送的通信数据帧,直至校验通过后向发送装置发送ACK帧,减少了发送装置与接收装置的交互次数。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。
图1为本发明实施例1提供的数据帧接收方法的流程图;
图2为本发明实施例2提供的数据帧通信方法的流程图;
图3为本发明实施例3提供的数据帧接收装置的结构示意图;
图4为本发明实施例4提供的数据帧接收系统的结构示意图。
具体实施方式
下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发 明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明的保护范围。
实施例1
本实施例提供了一种数据帧接收方法,可以应用在电力线通信领域或网络通信领域。图1是本实施例的一种可选的数据帧接收方法的流程图。
如图1所示,该数据帧接收方法主要包括以下步骤(步骤101~步骤106):
步骤101,接收装置接收第三个通信数据帧,其中,通信数据帧包括帧头、帧数据和帧尾,帧数据包括N个数据比特,帧尾包括校验数据,其中,N为正整数,且N≥1。
在本实施例中,通信数据帧包括帧头(Start of Frame,缩写SOF)、帧数据和帧尾(End of Frame,缩写EOF),帧尾包括校验数据,其中,校验数据可以是CRC校验等校验方式得到的校验数据,通过帧尾还可以识别数据接收结束。
步骤102,接收装置接收到第三个通信数据帧之后,提取第三个通信数据帧的校验数据和帧数据,并根据校验数据对帧数据进行校验操作。
作为本发明的一个可选实施方式,帧头还包括数据同步头信息和物理地址信息,在接收装置提取第三个通信数据帧的校验数据和帧数据之前,还包括:接收装置判断第三个通信数据帧中的帧头中是否包含数据同步头信息,并判断物理地址信息是否正确,若包含数据同步头信息且物理地址信息正确,则执行提取第三个通信数据帧的校验数据和帧数据的操作。其中,同步头信息为通信双方约定好的比特序列,通过该同步信息,接收装置可以识别出当前开始接收一个数据帧,并能够确定接收数据帧中帧数据的起始位置或时刻,此外,接收装置通过同步头信息还可以得到发送装置数据传输的载波频率,通过分析同步头信息得到发送装置传输数据的载波频率后,采用该载波频率接收数据帧;物理地址信息为标记着该通信数据帧的目标接收装置,接收装置接收到通信数据帧后,可以通过分析该物理地址信息与本接收装置的物理地址信息是否匹配,来判断当前接收到的通信数据帧的目标接收装置是否为本接收装置。在本可选实施方式中,在接收装置对第三个通信数据帧的帧数据进行校验之前,接收装置先对同步头信息和物理地址信息进行验证,避免对无效数据或错收的数据进行验证,提高了验证效率。
在本实施例中,接收装置接收到通信数据帧之后,均可以在对该通信数据帧的帧数据进行校验操作之前,先对该通信数据帧中的同步头信息和物理地址信息进行验证,以提高验证和通信效率。
步骤103,若校验错误,缓存第三个通信数据帧。
在本实施例中,接收装置对通信数据帧的帧数据的校验,可以提取该通信数据帧中帧 尾的校验数据,通过该校验数据完成对帧数据的校验。若校验失败,将该通信数据帧进行缓存以便后续使用,若校验正确,则向发送装置发送ACK帧。
步骤104,接收装置获取缓存的第一个通信数据帧、第二个通信数据帧和第三个通信数据帧,并分别提取第一个通信数据帧中帧数据的N个数据比特,第二通信数据帧中帧数据的N个数据比特和第三个通信数据帧中帧数据的N个数据比特;其中,第一个通信数据帧和第二个通信数据帧为接收装置校验错误后缓存的通信数据帧,第一个通信数据帧、第二个通信数据帧和第三通信数据帧为发送装置按照相同的预设待发送数据帧发送的。
在本实施例中,第一个通信数据帧至第三个通信数据帧,均为接收装置校验错误后缓存的通信数据帧,且为发送装置按照相同的预设待发送数据帧发送的通信数据帧,即发送装置重复发送的通信数据帧。接收装置获取缓存的三个通信数据帧,提取每个通信数据帧中帧数据,并进行下一步的计算操作。
在本实施例中,三次可以为发送装置设置的预设待发送数据帧的最大重发次数,即在接收装置接收到发送装置发送的最大重发次数个的通信数据帧(第三个通信数据帧)之后,即确定发送装置不再重发后,开始计算操作。
步骤105,通过预设计算方式得到纠正帧数据的第1位至第N位,其中,预设计算方式为,分别获取第一个通信数据帧、第二个通信数据帧和第三个通信数据帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算三个数据比特中数据比特1和数据比特0的概率,将概率高的数据比特设置为纠正帧数据的第i位,其中,i=1,……,N。
在本实施例中,计算各个通信数据帧中帧数据的位于第1个比特位的数据比特1和数据比特0的概率,重复计算,直至计算各个通信数据帧中帧数据的位于第N个比特位的数据比特1和数据比特0的概率,将每个比特位中概率高的比特数据填入纠正帧数据的相应比特位中,得到纠正帧数据。例如,发送装置的预设待发送数据帧为10101100,接收装置接收到的第一个通信数据帧中帧数据为11100101,第二个通信数据帧中帧数据为00101110,第三个通信数据帧中帧数据为10111000,进行以下计算:获取上述三个通信数据帧中第1个比特位的数据比特为101,计算得到数据比特1的概率为66.7%,数据比特0的概率为33.3%,那么,纠正帧数据的第1个比特位为数据比特1;获取上述三个通信数据帧中第2个比特位的数据比特为100,计算得到数据比特1的概率为33.3%,数据比特0的概率为66.7%,那么,纠正帧数据的第1个比特位为数据比特0;重复计算,分别计算得到纠正帧数据的第3个比特位为数据比特1,第4个比特位为数据比特0,……,第8个比特位为数据比特0,得到纠正帧数据为10101100。通过计算接收到的概率最大的数据比特,由概率最大的数据比特组成纠正帧数据,使得该纠正帧数据的每一位均为该比特位的概率最大的 数据比特,解决了因传输或解码过程中帧数据中某一位或某几位出现错误而导致整个通信数据帧被校验错误的问题,提高了校验正确的概率。
步骤106,使用校验数据对纠正帧数据进行校验操作,若校验正确,则向发送装置发送ACK帧。
在本实施例中,使用校验数据对纠正帧数据进行校验操作,提高了校验正确的概率。在校验正确后,向发送装置发送ACK帧,发送装置可以根据接收到的ACK帧进行下一步的操作。
通过本实施例提供的数据帧接收方法,接收装置在接收到第三个通信数据帧后,若校验错误,则将接收到的第三个通信数据帧缓存,对所有缓存的通信数据帧的对应比特位的数据比特进行概率计算,使用每个比特位中概率高的数据比特组成纠正帧数据,对纠正帧数据进行校验,若验证通过,则向发送装置发送ACK帧,通过上述方法,在接收装置接收到的通信数据帧均无法校验通过时,计算得到纠正帧数据并进行验证,解决了因传输或解码过程中帧数据中的某一位或某几位比特数据出现错误而导致整个通信数据帧被校验错误的问题,提高了校验正确的概率,减少了发送装置的重传次数。
实施例2
本实施例提供了一种数据帧通信方法,该方法包括了实施例1中的数据帧接收方法,因此,与实施例1相同部分不再赘述,仅对不同之处详细描述:
在实施例1的步骤1的接收装置接收第三个通信数据帧之前,如图2所示,还包括以下步骤(步骤a~步骤c):
步骤a,发送装置按照预设待发送数据帧发送第一个待发送通信数据帧;
步骤b,若在预设时间内没有接收到ACK帧,发送装置按照预设待发送数据帧发送第二个待发送通信数据帧;
步骤c,若在预设时间内没有接收到ACK帧,发送装置按照预设待发送数据帧发送第三个待发送通信数据帧。
在本实施例中,发送装置的待发送数据可以包括多个预设待发送数据帧,发送装置从发送第一个预设待发送数据帧开始,依次逐个完成预设待发送该数据帧的发送。其中,每一个通信数据帧都是一串比特序列,待发送数据是由多个待发送该数据帧组成的比特序列。
在本实施例中,若发送装置在预设时间内没有接收到ACK帧,则认为前一次发送的待发送通信数据帧没有被接收装置成功接收或校验失败,发送装置发送下一个待发送通信数据帧,下一个待发送通信数据帧与前一次发送的待发送通信数据帧内容相同,均为按照预 设待发送数据帧发送,也即,对于发送装置而言,其操作为将前一次发送的通信数据帧重新发送。在没有收到ACK帧的情况下,重新发送该通信数据帧,保障了通信的连贯性和数据的完整性。
在本实施例中,发送装置可以采用广播形式发送待发送通信数据帧,提高通信效率。
作为本发明的一个可选实施方式,在发送装置按照预设待发送数据帧发送第一个待发送通信数据帧之前,还包括:按照预设的载波频率跳变顺序,获得第一载波频率,并按照第一载波频率发送第一个待发送通信数据帧;在发送装置按照预设待发送数据帧发送第二个待发送通信数据帧之前,还包括:按照预设的载波频率跳变顺序,获得第二载波频率,并按照第而载波频率发送第二个待发送通信数据帧;在发送装置按照预设待发送数据帧发送第三个待发送通信数据帧之前,还包括:按照预设的载波频率跳变顺序,获得第三载波频率,并按照第三载波频率发送第三个待发送通信数据帧。在本可选实施方式中,发送装置可以预存有载波频率跳变顺序列表,在完成待发送通信数据帧的发送之前,按照该列表中的载波频率跳变顺序进行频率跳变,使用该跳变后的频率完成发送操作。发送装置采用变换后的载波频率发送通信数据帧,避免了在接收装置无法接收特定载波频率的信号时,发送装置与接收装置无法完成通信的情况,提高了通信效率。在本实施例中,发送装置在按照预设待发送数据发送通信数据帧之前,均可以按照预设的载波频率跳变顺序获得载波频率,按照该载波频率进行发送,提高通信效率。
作为本发明的一个可选实施方式,发送装置按照预设待发送数据帧发送第一个待发送通信数据帧之前,还包括:发送装置接收到ACK帧之后,发送装置按照预设待发送数据帧发送第一个待发送通信数据帧。在本可选实施方式中,发送装置在接收到接收装置发送的ACK帧之后,可以确认本次按照预设待发送数据帧发送的待发送通信数据帧已被接收装置成功接收且验证通过,可以开始下一次的发送操作,减少了发送装置与接收装置的交互次数。
作为本实施例的一个可选实施方式,发送装置设置为预设待发送数据帧的最大重发次数为三次,即按照预设待发送数据帧发送三次后仍未接收到ACK帧,则不再重发该预设待发送数据帧。发送装置设置最大重发次数,避免了在未收到ACK帧时,不断重发该预设待发送数据帧,造成通信资源的浪费。
通过本实施例提供的数据帧通信方法,在实施例1的步骤101的接收装置接收第三个通信数据帧之前,发送装置依据预设待发送数据帧发送第一个至第三个待发送通信数据帧,在未达到最大重发次数且未接收到ACK帧时,重复发送该待发送通信数据帧,使得接收装置可以在未对接收到的通信数据帧校验通过时,可以接收到发送装置重复发送的通信数据 帧,直至校验通过后向发送装置发送ACK帧,减少了发送装置与接收装置的交互次数。接收装置在接收到第三个通信数据帧后,若校验错误,则将接收到的第三个通信数据帧缓存,对所有缓存的通信数据帧的对应比特位的数据比特进行概率计算,使用每个比特位中概率高的数据比特组成纠正帧数据,对纠正帧数据进行校验,若验证通过,则向发送装置发送ACK帧,通过上述方法,在接收装置接收到的通信数据帧均无法校验通过时,计算得到纠正帧数据并进行验证,解决了因传输或解码过程中帧数据中的某一位或某几位比特数据出现错误而导致整个通信数据帧被校验错误的问题,提高了校验正确的概率,减少了发送装置的重传次数。
实施例3
本实施例提供了一种数据帧接收装置300,可以应用在电力线通信领域或网络通信领域,该系统与实施例1中的数据帧接收方法是一一对应的,相同之处在此不再赘述,仅进行简要说明,在本实施例的实施方式中,该数据帧接收装置300中各个单元执行的具体操作可以参照实施例1。
图3是本实施例的一种数据帧接收装置300,包括:接收模块301、校验模块302、缓存模块303、计算模块304和ACK帧发送模块305,其中,
接收模块301,用于接收第三个通信数据帧,并发送至校验模块302,其中,通信数据帧包括帧头、帧数据和帧尾,帧数据包括N个数据比特,帧尾包括校验数据,其中,N为正整数,且N≥1;
校验模块302,用于接收到接收模块301发送的第三个通信数据帧之后,提取第三个通信数据帧的校验数据和帧数据,并根据校验数据对帧数据进行校验操作;若校验错误,将第三个通信数据帧发送至缓存模块303;
缓存模块303,用于缓存第三个通信数据帧,缓存第一个通信数据帧和第二个通信数据帧;
计算模块304,用于获取缓存的第一个通信数据帧、第二个通信数据帧和第三个通信数据帧,并分别提取第一个通信数据帧中帧数据的N个数据比特,第二通信数据帧中帧数据的N个数据比特和第三个通信数据帧中帧数据的N个数据比特;其中,第一个通信数据帧和第二个通信数据帧为数据帧接收装置300校验错误后缓存在缓存模块303中的通信数据帧,第一个通信数据帧、第二个通信数据帧和第三通信数据帧为数据帧发送装置按照相同的预设待发送数据帧发送的;通过预设计算方式得到纠正帧数据的第1位至第N位,其中,预设计算方式为,分别获取第一个通信数据帧、第二个通信数据帧和第三个通信数据 帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算三个数据比特中数据比特1和数据比特0的概率,将概率高的数据比特设置为纠正帧数据的第i位,其中,i=1,……,N;将纠正帧数据发送至校验模块302;
校验模块302,还用于接收纠正帧数据,使用校验数据对纠正帧数据进行校验操作,若校验正确,则通知ACK帧发送模块305;
ACK帧发送模块305,用于向数据帧发送装置发送ACK帧。
在本实施例的一个可选实施方式中,帧头还包括数据同步头信息和物理地址信息;数据帧接收装置,还包括,判断模块(图未示出);判断模块,用于在校验模块提取第三个通信数据帧的校验数据和帧数据之前,判断第三个通信数据帧中的帧头中是否包含数据同步头信息,并判断物理地址信息是否正确,若包含数据同步头信息且物理地址信息正确,则执行提取第三个通信数据帧的校验数据和帧数据的操作。其中,同步头信息为通信双方约定好的比特序列,通过该同步信息,数据帧接收装置300可以识别出当前开始接收一个数据帧,并能够确定接收数据帧中帧数据的起始位置或时刻,此外,数据帧接收装置300通过同步头信息还可以得到发送装置数据传输的载波频率,通过分析同步头信息得到发送装置传输数据的载波频率后,采用该载波频率接收数据帧;物理地址信息为标记着该通信数据帧的目标数据帧接收装置300,数据帧接收装置300接收到通信数据帧后,可以通过分析该物理地址信息与本数据帧接收装置300的物理地址信息是否匹配,来判断当前接收到的通信数据帧的目标数据帧接收装置300是否为本数据帧接收装置300。在本可选实施方式中,在数据帧接收装置300对第i个通信数据帧的帧数据进行校验之前,判断模块先对同步头信息和物理地址信息进行验证,避免对无效数据或错收的数据进行验证,提高了验证效率。
通过本实施例提供的数据帧接收装置300,数据帧接收装置300在接收到第三个通信数据帧后,若校验错误,则将接收到的第三个通信数据帧缓存,对所有缓存的通信数据帧的对应比特位的数据比特进行概率计算,使用每个比特位中概率高的数据比特组成纠正帧数据,对纠正帧数据进行校验,若验证通过,则向发送装置发送ACK帧,通过上述装置,在数据帧接收装置300接收到的通信数据帧均无法校验通过时,计算得到纠正帧数据并进行验证,解决了因传输或解码过程中帧数据中的某一位或某几位比特数据出现错误而导致整个通信数据帧被校验错误的问题,提高了校验正确的概率,减少了发送装置的重传次数。
实施例4
本实施例提供了一种数据帧通信系统400,可以应用在电力线通信领域或网络通信领 域,该系统与实施例2中的数据帧通信方法是一一对应的,相同之处在此不再赘述,仅进行简要说明,在本实施例的实施方式中,该数据帧通信系统400中各个单元执行的具体操作可以参照实施例2。
图4是本实施例的一种数据帧通信系统400,包括,数据帧发送装置401和数据帧接收装置402,其中,数据帧接收装置402,包括:接收模块4021、校验模块4022、缓存模块4023、计算模块4024和ACK帧发送模块4025,数据帧接收装置402的各模块与实施例3中的数据帧接收装置300的各模块的功能相对应,仅标号不同,各模块的执行的具体操作可以参照实施例3,在此不再赘述。
数据帧发送装置401,包括:发送模块4011和ACK帧接收模块4012,其中,
发送模块4011,用于按照预设待发送数据帧发送第一个待发送通信数据帧,若在预设时间内ACK帧接收模块4012没有接收到ACK帧,按照预设待发送数据帧发送第二个待发送通信数据帧,若ACK帧接收模块4012在预设时间内没有接收到ACK帧,按照预设待发送数据帧发送第三个待发送通信数据帧;
ACK帧接收模块4012,用于接收ACK帧,并通知发送模块4011。
在本实施例的一个可选实施方式中,发送模块4011,还用于按照预设的载波频率跳变顺序,获得第一载波频率,并按照第一载波频率发送第一个待发送通信数据帧;按照预设的载波频率跳变顺序,获得第二载波频率,并按照第而载波频率发送第二个待发送通信数据帧;按照预设的载波频率跳变顺序,获得第三载波频率,并按照第三载波频率发送第三个待发送通信数据帧。在本可选实施方式中,数据帧发送装置401可以预存有载波频率跳变顺序列表,在完成待发送通信数据帧的发送之前,按照该列表中的载波频率跳变顺序进行频率跳变,使用该跳变后的频率完成发送操作。数据帧发送装置401采用变换后的载波频率发送通信数据帧,避免了在数据帧接收装置402无法接收特定载波频率的信号时,数据帧发送装置401与数据帧接收装置402无法完成通信的情况,提高了通信效率。在本实施例中,发送模块4011在按照预设待发送数据发送通信数据帧之前,均可以按照预设的载波频率跳变顺序获得载波频率,按照该载波频率进行发送,提高通信效率。
通过本实施例提供的数据帧通信系统400,数据帧发送装置401依据预设待发送数据帧发送第一个至第三个待发送通信数据帧,在未达到最大重发次数且未接收到ACK帧时,重复发送该待发送通信数据帧,使得数据帧接收装置402可以在对接收到的通信数据帧校验没有通过时,可以接收到数据帧发送装置401重复发送的通信数据帧,直至校验通过后向数据帧发送装置401发送ACK帧,减少了数据帧发送装置401与数据帧接收装置402的交互次数。数据帧接收装置402在接收到第三个通信数据帧后,若校验错误,则将接收到的 第三个通信数据帧缓存,对所有缓存的通信数据帧的对应比特位的数据比特进行概率计算,使用每个比特位中概率高的数据比特组成纠正帧数据,对纠正帧数据进行校验,若验证通过,则向数据帧发送装置401发送ACK帧,通过上述系统,在数据帧接收装置402接收到的通信数据帧均无法校验通过时,计算得到纠正帧数据并进行验证,解决了因传输或解码过程中帧数据中的某一位或某几位比特数据出现错误而导致整个通信数据帧被校验错误的问题,提高了校验正确的概率,减少了数据帧发送装置401的重传次数。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。本发明的范围由所附权利要求及其等同限定。

Claims (8)

  1. 一种数据帧接收方法,其特征在于,包括:
    接收装置接收第三个通信数据帧,其中,所述通信数据帧包括帧头、帧数据和帧尾,所述帧数据包括N个数据比特,所述帧尾包括校验数据,其中,N为正整数,且N≥1;
    所述接收装置接收到所述第三个通信数据帧之后,提取所述第三个通信数据帧的所述校验数据和所述帧数据,并根据所述校验数据对所述帧数据进行校验操作;
    若校验错误,缓存所述第三个通信数据帧;
    所述接收装置获取缓存的第一个通信数据帧、第二个通信数据帧和第三个通信数据帧,并分别提取所述第一个通信数据帧中帧数据的N个数据比特,所述第二通信数据帧中帧数据的N个数据比特和所述第三个通信数据帧中帧数据的N个数据比特;其中,所述第一个通信数据帧和所述第二个通信数据帧为所述接收装置校验错误后缓存的所述通信数据帧,所述第一个通信数据帧、所述第二个通信数据帧和所述第三通信数据帧为发送装置按照相同的预设待发送数据帧发送的;
    通过预设计算方式得到纠正帧数据的第1位至第N位,其中,所述预设计算方式为,分别获取所述第一个通信数据帧、所述第二个通信数据帧和所述第三个通信数据帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算所述三个数据比特中数据比特1和数据比特0的概率,将概率高的数据比特设置为纠正帧数据的第i位,其中,i=1,……,N;
    使用所述校验数据对所述纠正帧数据进行校验操作,若校验正确,则向发送装置发送ACK帧。
  2. 根据权利要求1所述的方法,其特征在于,
    所述帧头还包括数据同步头信息和物理地址信息;
    在所述接收装置提取所述第三个通信数据帧的所述校验数据和所述帧数据之前,还包括:
    所述接收装置判断所述第三个通信数据帧中的所述帧头中是否包含所述数据同步头信息,并判断所述物理地址信息是否正确,若包含所述数据同步头信息且所述物理地址信息正确,则执行提取所述第三个通信数据帧的所述校验数据和所述帧数据的操作。
  3. 一种数据帧通信方法,其特征在于,包括权利要求1-2中任一项的数据帧接收方法,在所述接收装置接收第三个通信数据帧之前,还包括:
    所述发送装置按照预设待发送数据帧发送第一个待发送通信数据帧,若在预设时间内没有接收到所述ACK帧,所述发送装置按照所述预设待发送数据帧发送第二个待发送通信数据帧,若在预设时间内没有接收到所述ACK帧,所述发送装置按照所述预设待发送数据帧发送第三个待发送通信数据帧。
  4. 根据权利要求3所述的方法,其特征在于,
    在所述发送装置按照预设待发送数据帧发送第一个待发送通信数据帧之前,还包括:按照预设的载波频率跳变顺序,获得第一载波频率,并按照所述第一载波频率发送所述第一个待发送通信数据帧;
    在所述发送装置按照所述预设待发送数据帧发送第二个待发送通信数据帧之前,还包括:按照预设的载波频率跳变顺序,获得第二载波频率,并按照所述第而载波频率发送所述第二个待发送通信数据帧;
    在所述发送装置按照预设待发送数据帧发送第三个待发送通信数据帧之前,还包括:按照预设的载波频率跳变顺序,获得第三载波频率,并按照所述第三载波频率发送所述第三个待发送通信数据帧。
  5. 一种数据帧接收装置,其特征在于,包括:接收模块、校验模块、缓存模块、计算模块和ACK帧发送模块,其中,
    所述接收模块,用于接收第三个通信数据帧,并发送至所述校验模块,其中,所述通信数据帧包括帧头、帧数据和帧尾,所述帧数据包括N个数据比特,所述帧尾包括校验数据,其中,N为正整数,且N≥1;
    所述校验模块,用于接收到所述接收模块发送的所述第三个通信数据帧之后,提取所述第三个通信数据帧的所述校验数据和所述帧数据,并根据所述校验数据对所述帧数据进行校验操作;若校验错误,将所述第三个通信数据帧发送至所述缓存模块;
    所述缓存模块,用于缓存所述第三个通信数据帧,缓存第一个通信数据帧和第二个通信数据帧;
    所述计算模块,用于获取缓存的所述第一个通信数据帧、所述第二个通信数据帧和所述第三个通信数据帧,并分别提取所述第一个通信数据帧中帧数据的N个数据比特,所述第二通信数据帧中帧数据的N个数据比特和所述第三个通信数据帧中帧数据的N个数据比特;其中,所述第一个通信数据帧和所述第二个通信数据帧为所述数据帧接收装置校验错误后由所述缓存模块缓存的所述通信数据帧,所述第一个通信数据帧、所述第二个通信数据帧和所述第三通信数据帧为数据帧发送装置按照相同的预设待发送数据帧发送的;通过预设计算方式得到纠正帧数据的第1位至第N位,其中,所述预设计算方式为,分别获取所述第一个通信数据帧、所述第二个通信数据帧和所 述第三个通信数据帧中帧数据的位于第i个比特位的数据比特,共获取三个数据比特,计算所述三个数据比特中数据比特1和数据比特0的概率,将概率高的数据比特设置为纠正帧数据的第i位,其中,i=1,……,N;将所述纠正帧数据发送至所述校验模块;
    所述校验模块,还用于接收所述纠正帧数据,使用所述校验数据对所述纠正帧数据进行校验操作,若校验正确,则通知所述ACK帧发送模块;
    所述ACK帧发送模块,用于向数据帧发送装置发送ACK帧。
  6. 根据权利要求5所述的装置,其特征在于,
    所述帧头还包括数据同步头信息和物理地址信息;
    所述数据帧接收装置,还包括,判断模块;
    所述判断模块,用于在所述校验模块提取所述第三个通信数据帧的所述校验数据和所述帧数据之前,判断所述第三个通信数据帧中的所述帧头中是否包含所述数据同步头信息,并判断所述物理地址信息是否正确,若包含所述数据同步头信息且所述物理地址信息正确,则执行提取所述第三个通信数据帧的所述校验数据和所述帧数据的操作。
  7. 一种数据帧通信系统,其特征在于,包括权利要求5-6中任一项的数据帧接收装置,以及数据帧发送装置,所述数据帧发送装置,包括:发送模块和ACK帧接收模块,其中,
    所述发送模块,用于按照预设待发送数据帧发送第一个待发送通信数据帧,若在预设时间内所述ACK帧接收模块没有接收到所述ACK帧,按照所述预设待发送数据帧发送第二个待发送通信数据帧,若所述ACK帧接收模块在预设时间内没有接收到所述ACK帧,按照所述预设待发送数据帧发送第三个待发送通信数据帧;
    所述ACK帧接收模块,用于接收所述ACK帧,并通知所述发送模块。
  8. 根据权利要求7所述的系统,其特征在于,
    所述发送模块,还用于按照预设的载波频率跳变顺序,获得第一载波频率,并按照所述第一载波频率发送所述第一个待发送通信数据帧;按照预设的载波频率跳变顺序,获得第二载波频率,并按照所述第而载波频率发送所述第二个待发送通信数据帧;按照预设的载波频率跳变顺序,获得第三载波频率,并按照所述第三载波频率发送所述第三个待发送通信数据帧。
PCT/CN2020/093222 2019-07-12 2020-05-29 数据帧接收方法和装置以及通信方法和系统 WO2021008248A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910627263.8A CN112217599B (zh) 2019-07-12 2019-07-12 数据帧接收方法和装置以及通信方法和系统
CN201910627263.8 2019-07-12

Publications (1)

Publication Number Publication Date
WO2021008248A1 true WO2021008248A1 (zh) 2021-01-21

Family

ID=74047750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093222 WO2021008248A1 (zh) 2019-07-12 2020-05-29 数据帧接收方法和装置以及通信方法和系统

Country Status (2)

Country Link
CN (1) CN112217599B (zh)
WO (1) WO2021008248A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948167A (zh) * 2021-03-31 2021-06-11 地平线征程(杭州)人工智能科技有限公司 数据通路的保护电路、方法、装置及计算机可读存储介质
CN113132070A (zh) * 2021-04-16 2021-07-16 中国电子科技集团公司第五十四研究所 一种高速数传基带数据无帧结构误码统计系统
CN113392060A (zh) * 2021-06-16 2021-09-14 天津津航计算技术研究所 一种通用的串口数据接收处理方法
CN114248820A (zh) * 2021-12-21 2022-03-29 卡斯柯信号有限公司 一种列控中心与轨道电路的通信方法
CN115314155A (zh) * 2022-07-14 2022-11-08 东风电驱动系统有限公司 通讯方法、装置、设备及可读存储介质
CN115361095A (zh) * 2022-08-25 2022-11-18 上海纳恩汽车技术股份有限公司 数据传输方法、智能钥匙、装置、控制系统以及介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696446B (zh) * 2022-10-27 2024-04-16 南京威翔科技有限公司 一种低功耗引信装置的信号传输方法
CN116846515B (zh) * 2023-07-07 2024-02-06 中国科学院空天信息创新研究院 Aos帧有效数据提取方法、装置、设备及介质
CN117336395B (zh) * 2023-12-01 2024-03-12 杭州乾景科技有限公司 一种井下通讯数据处理方法、装置及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051880A (zh) * 2006-04-07 2007-10-10 华为技术有限公司 一种数据帧发送、接收及转发方法及其装置
CN104869545A (zh) * 2015-05-15 2015-08-26 哈尔滨海能达科技有限公司 一种分组数据组呼的传输方法、装置和系统
CN106330395A (zh) * 2016-08-23 2017-01-11 上海斐讯数据通信技术有限公司 无线通信系统及方法、管理帧重发装置及方法、帧结构

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4764973B2 (ja) * 2005-12-09 2011-09-07 独立行政法人産業技術総合研究所 Crc値の算出装置
US8488716B2 (en) * 2009-12-14 2013-07-16 Lg Electronics Inc.. Transmitting system and method of processing digital broadcast signal in transmitting system, receiving system and method of receiving digital broadcast signal in receiving system
CN104270155B (zh) * 2014-10-28 2017-07-07 积成电子股份有限公司 一种曼彻斯特码流接收抗干扰比特解析方法
CN105573958B (zh) * 2016-01-12 2018-04-13 西北工业大学 一种基于rs‑422串行总线技术的数据可靠交互方法
CN105847077B (zh) * 2016-03-17 2019-03-08 华为技术有限公司 一种检测多路串行数据冲突的方法及装置、设备
CN107070599B (zh) * 2017-04-06 2019-11-15 中国人民解放军理工大学 一种长距离链路变速率选择重传方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051880A (zh) * 2006-04-07 2007-10-10 华为技术有限公司 一种数据帧发送、接收及转发方法及其装置
CN104869545A (zh) * 2015-05-15 2015-08-26 哈尔滨海能达科技有限公司 一种分组数据组呼的传输方法、装置和系统
CN106330395A (zh) * 2016-08-23 2017-01-11 上海斐讯数据通信技术有限公司 无线通信系统及方法、管理帧重发装置及方法、帧结构

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948167A (zh) * 2021-03-31 2021-06-11 地平线征程(杭州)人工智能科技有限公司 数据通路的保护电路、方法、装置及计算机可读存储介质
CN112948167B (zh) * 2021-03-31 2022-10-18 地平线征程(杭州)人工智能科技有限公司 数据通路的保护电路、方法、装置及计算机可读存储介质
US12119072B2 (en) 2021-03-31 2024-10-15 Horizon Journey (Hangzhou) Artificial Intelligence Technology Co., Ltd. Protection circuit, method and apparatus for data path, and computer readable storage medium
CN113132070A (zh) * 2021-04-16 2021-07-16 中国电子科技集团公司第五十四研究所 一种高速数传基带数据无帧结构误码统计系统
CN113392060A (zh) * 2021-06-16 2021-09-14 天津津航计算技术研究所 一种通用的串口数据接收处理方法
CN114248820A (zh) * 2021-12-21 2022-03-29 卡斯柯信号有限公司 一种列控中心与轨道电路的通信方法
CN115314155A (zh) * 2022-07-14 2022-11-08 东风电驱动系统有限公司 通讯方法、装置、设备及可读存储介质
CN115314155B (zh) * 2022-07-14 2024-01-09 东风电驱动系统有限公司 通讯方法、装置、设备及可读存储介质
CN115361095A (zh) * 2022-08-25 2022-11-18 上海纳恩汽车技术股份有限公司 数据传输方法、智能钥匙、装置、控制系统以及介质
CN115361095B (zh) * 2022-08-25 2024-04-16 上海纳恩汽车技术股份有限公司 数据传输方法、智能钥匙、装置、控制系统以及介质

Also Published As

Publication number Publication date
CN112217599B (zh) 2021-12-24
CN112217599A (zh) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2021008248A1 (zh) 数据帧接收方法和装置以及通信方法和系统
US7733914B2 (en) Method of, and system for, communicating data, and a station for transmitting data
US20130279348A1 (en) Apparatus and method for generating arq feedback message in wireless communication system
WO2011157074A1 (zh) 一种数据文件传输和校验的方法、设备及系统
US9622147B2 (en) System and method for performing hybrid automatic repeat request (HARQ) in a WLAN system
CN113132063B (zh) 一种物理层重传控制方法
CN106656424B (zh) 一种数据传输的校验方法
CN108933642B (zh) 一种基于码块分组的下行重传方法、基站及终端
JP2013515404A (ja) 物理層のデータグラムの再送要求方法及びその装置
CN104092707A (zh) 基于分块校验与确认的卫星网络tcp协议性能增强方法
CN104144044B (zh) 一种多设备透明harq的处理方法
CN108988990A (zh) 一种处理链路层数据错误的方法
JP2002314626A (ja) 通信方式ならびに送信装置、受信装置およびこれらを備えた通信システム
CN112217601A (zh) 一种数据帧通信方法和系统
WO2018059169A1 (zh) 数据传输方法和装置
CN109039536A (zh) 数据的传输方法、设备及可读介质
EP3758266A1 (en) Harq txop frame exchange for harq retransmission using harq threads
CN112217600A (zh) 数据帧接收方法和装置以及通信方法和系统
CN110431899B (zh) 一种基于载波聚合的解调方法及装置
JP3406513B2 (ja) 無線受信装置および無線送信装置
US11996936B2 (en) Bit error correction for Bluetooth low energy
CN116743324B (zh) 数据传输方法、装置、接收端、存储介质、系统及服务器
US11068334B2 (en) Method and system for enhancing communication reliability when multiple corrupted frames are received
WO2024169301A1 (zh) 数据重传方法、电子设备及计算机可读存储介质
US20240356671A1 (en) Bit error correction for bluetooth low energy

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20841129

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20841129

Country of ref document: EP

Kind code of ref document: A1