A data packet detection method and receiver

By combining the multi-dimensional detection method of autocorrelation, cross-correlation and frequency offset in UWB technology, and using a threshold set to determine the starting position of the data packet, the problem of low accuracy in the traditional detection method is solved and the efficiency of data packet detection is improved. Robustness and accuracy.

CN118367960BActive Publication Date: 2024-09-03SHANGHAI SANFEI ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410800986.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-03
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Data packet detection based on traditional autocorrelation in UWB technology is susceptible to in-band interference and preamble interference, resulting in poor detection accuracy. It is especially difficult to accurately detect the starting position of the data packet under the influence of frequency offset.

Method used

The receiver performs multi-dimensional detection on the received data packets, combines the autocorrelation and cross-correlation results with the influence of frequency offset, and uses a threshold set (including autocorrelation threshold, mutual threshold and frequency offset threshold) to determine the value of the data packet. starting position to improve the robustness and accuracy of detection.

Benefits of technology

It effectively reduces packet error detection, improves the receiver's robustness to damage, noise and interference, and enhances packet detection capabilities in noisy environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118367960B
    Figure CN118367960B
Patent Text Reader

Abstract

A data packet detection method and receiver, the method comprising: a receiver receives a data packet from a transmitter, the data packet corresponds to a first sequence, the first sequence includes a first preamble code; the receiver performs cross-correlation calculation on N subsequences decomposed from the first sequence and a local second preamble code sequence to obtain N cross-correlation results, and performs autocorrelation calculation on the N subsequences to obtain N-1 autocorrelation results, where N is a positive integer; subsequently, the receiver detects the starting position of the data packet according to the N-1 autocorrelation results and the N cross-correlation results and a threshold set. The threshold set includes a frequency offset threshold, which is used to indicate the degree of influence of the frequency offset on the autocorrelation result and / or the cross-correlation result. The method detects the presence of a data packet based on the influence of frequency shift on autocorrelation and cross-correlation, which can improve the robustness of the receiver to damage, noise and interference, and reduce the false detection of data packets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of receivers, and in particular to a data packet detection method and a receiver. Background Art

[0002] Ultra-wideband (UWB) technology uses nanosecond-scale, non-sinusoidal, narrow pulses to transmit data. Due to its low power consumption and high temporal resolution, it is widely used in high-precision ranging and positioning scenarios. Because UWB transmits data using extremely narrow pulses of nanoseconds or less, traditional autocorrelation-based packet detection (i.e., detecting the presence of a preamble) is susceptible to in-band interference. Preambles are also susceptible to interference from other spreading sequences, resulting in poor detection accuracy. Summary of the Invention

[0003] The present application provides a data packet detection method and receiver, which can reduce erroneous detection of data packets, achieve synchronization of UWB devices, and also improve the robustness of the receiver to damage, noise and interference.

[0004] To achieve the above objectives, the present invention provides the following solutions:

[0005] In a first aspect, a data packet detection method is provided, which can be performed by a first communication device. The first communication device can be a receiving end, or a functional unit within the receiving end, at either end of the communication. For example, in a case where the two ends of the communication include a first device and a second device, with the first device being the receiving end and the second device being the transmitting end, the first communication device can be a unit, functional module, etc. within the first device. For example, the first communication device can be a chip provided in the first device, or it can be another component used to implement the functions of the first device. For ease of description, the data packet detection method provided in the first aspect is described below using the first communication device as an example of a receiver.

[0006] The data packet detection method includes: a receiver receives a data packet from a transmitter, where the data packet corresponds to a first sequence, and the first sequence includes a first preamble code sequence; the receiver performs cross-correlation calculations on N subsequences decomposed from the first sequence and the second preamble code sequence respectively, to obtain N cross-correlation results, wherein the starting position of the first preamble code sequence is located in one of the N subsequences, and N is a positive integer; subsequently, the receiver performs autocorrelation calculations on the N subsequences to obtain N-1 autocorrelation results, and detects the starting position of the data packet based on the N-1 autocorrelation results, the N cross-correlation results, and a threshold set, wherein the threshold set includes a frequency offset threshold, and the frequency offset threshold is used to indicate the degree of influence of the frequency offset on the autocorrelation result and / or the cross-correlation result.

[0007] In this method, the threshold set includes a frequency offset threshold. The accuracy of the autocorrelation and cross-correlation results can be measured by considering the degree to which the frequency offset affects them. Consequently, a receiver can more accurately determine whether a data packet includes the first preamble or detect the starting position of a data packet based on N-1 autocorrelation results, N cross-correlation results, and the threshold set, thereby reducing false detection of data packets.

[0008] In one implementation, the frequency offset includes a carrier frequency offset (CFO) and / or a sampling frequency offset (SFO).

[0009] In one implementation, the indicator set further includes at least one of the following: an autocorrelation threshold and a cross-correlation threshold. The autocorrelation threshold is used to determine whether the first preamble sequence and the second preamble sequence are autocorrelated. The cross-correlation threshold is used to determine whether the first preamble sequence and the second preamble sequence are cross-correlated.

[0010] The embodiments of the present application do not limit the dimension of detecting the starting position of the data packet. For example, the starting position of the data packet can be detected more accurately by combining the autocorrelation threshold and the cross-correlation threshold.

[0011] In one implementation, the starting position of a data packet is detected based on N-1 autocorrelation results, N cross-correlation results, and a threshold set, including: determining the correlation between the N-1 autocorrelation results and the N cross-correlation results and the frequency offset, respectively; and detecting the starting position of the data packet based on the autocorrelation threshold, the cross-correlation threshold, the frequency offset threshold, the N-1 autocorrelation results, the N cross-correlation results, and the correlation.

[0012] In one implementation, the starting position of the data packet is the position corresponding to the first autocorrelation result and the first cross-correlation result; wherein the correlation between the first autocorrelation result and the frequency offset is higher than the frequency offset threshold, and the first autocorrelation result is higher than the autocorrelation threshold; the correlation between the first cross-correlation result and the frequency offset is higher than the frequency offset threshold, and the first cross-correlation result is lower than the cross-correlation threshold.

[0013] This method determines the starting position of a data packet based on the autocorrelation results, cross-correlation results, and the influence of frequency offset on the autocorrelation results and cross-correlation results. It can improve the robustness to receiver damage and multi-user interference, making it suitable for reception in noisy environments.

[0014] In one implementation, the method further includes: performing (M-1)-dimensional linear interpolation processing on the autocorrelation threshold, the autocorrelation threshold, and the frequency offset threshold, where M is an integer greater than 3. In this way, the loss of detection performance can be reduced.

[0015] In one implementation, the threshold set further includes a combination of at least two of an autocorrelation threshold, a cross-correlation threshold, and a frequency offset threshold. This can improve the accuracy of data packet detection.

[0016] In a second aspect, a communication device is provided. The communication device may be a receiver or a chip disposed in a receiver. For ease of description, the communication device is taken as an example of a receiver itself.

[0017] A receiver includes: a transceiver, a correlation calculator, and a processor. The transceiver is configured to receive a data packet from a transmitter, the data packet corresponding to a first sequence, wherein the first sequence includes a first preamble code sequence. The correlation calculator is configured to perform cross-correlation calculations on N subsequences decomposed from the first sequence and a local second preamble code sequence to obtain N cross-correlation results, and to perform autocorrelation calculations on the N subsequences to obtain N-1 autocorrelation results, wherein the starting position of the first preamble code sequence is located in one of the N subsequences, and N is a positive integer. The processor is configured to detect the starting position of the data packet based on the N-1 autocorrelation results, the N cross-correlation results, and a threshold set, wherein the threshold set includes a frequency offset threshold, which is configured to indicate the degree of influence of the frequency offset on the autocorrelation result and / or the cross-correlation result.

[0018] In one implementation, the receiver further includes: a demultiplexer configured to decompose the data packet received by the transceiver into N paths, and output the N paths to the correlation calculator respectively, wherein one path corresponds to one subsequence.

[0019] In one implementation, the frequency offset includes CFO and / or SFO.

[0020] In one implementation, the indicator set further includes at least one of the following: an autocorrelation threshold and a cross-correlation threshold. The autocorrelation threshold is used to determine whether the first preamble sequence and the second preamble sequence are autocorrelated. The cross-correlation threshold is used to determine whether the first preamble sequence and the second preamble sequence are cross-correlated.

[0021] In one implementation, the processor is specifically used to: determine the correlation between N-1 autocorrelation results and N cross-correlation results and the frequency offset respectively; detect the starting position of the data packet based on the autocorrelation threshold, the cross-correlation threshold, the frequency offset threshold and the N-1 autocorrelation results, the N cross-correlation results and the correlation.

[0022] In one implementation, the starting position of the data packet is the position corresponding to the first autocorrelation result and the first cross-correlation result; wherein the correlation between the first autocorrelation result and the frequency offset is higher than the frequency offset threshold, and the first autocorrelation result is higher than the autocorrelation threshold; the correlation between the first cross-correlation result and the frequency offset is higher than the frequency offset threshold, and the first cross-correlation result is lower than the cross-correlation threshold.

[0023] In one implementation, the processor is specifically configured to perform (M-1)-dimensional linear interpolation processing on the autocorrelation threshold, the autocorrelation threshold, and the frequency offset threshold, where M is an integer greater than 3.

[0024] In one implementation, the threshold set further includes: a combination of at least two of an autocorrelation threshold, a cross-correlation threshold, and a frequency offset threshold.

[0025] In a third aspect, a communication device is provided, comprising functional modules for performing the method of the first aspect. For example, the communication device may include a processing unit (sometimes also referred to as a processing module or processor) and / or a transceiver unit (sometimes also referred to as a transceiver module or transceiver). These units (modules) may perform the corresponding functions described in the example method of the first aspect. For details, please refer to the detailed description of the example method and are not further elaborated here.

[0026] The communication device may be the receiver described in the first aspect, or may be a chip or chip system in the receiver. Optionally, the communication device further includes a memory. The memory is configured to store computer programs, instructions, or data. The processing unit is coupled to the memory and the transceiver unit. When the processing unit reads the computer program, instructions, or data, the communication device executes the method performed by the receiver in the above-described method embodiment.

[0027] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method in the first aspect is implemented.

[0028] In a fifth aspect, a computer program product is provided, comprising: a computer program code, wherein when the computer program code is run, the method in the first aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a network architecture applicable to an embodiment of the present application;

[0030] Figure 2 A flowchart of a data packet detection method provided in an embodiment of the present application;

[0031] Figure 3A schematic diagram of the detection area provided in an embodiment of the present application;

[0032] Figure 4 Another schematic diagram of the detection area provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In embodiments of the present application, detecting the presence of a data packet based on the effect of frequency shift on autocorrelation and cross-correlation can improve the robustness of the receiver to impairments, noise, and interference, and reduce false detection of data packets. For example, using a cross-correlation detection metric and a frequency offset detection metric can reduce the impact of phase rotation caused by CFO, enabling spreading / summing over multiple symbols to increase the SNR. Using an autocorrelation detection metric and a frequency shift detection metric can also reduce or mitigate sinusoidal interference or other interference from the transmitter superimposed on a preamble.

[0035] The embodiments of the present application can be applied to wireless local area network systems such as the Internet of Things (IoT) network or the Vehicle to X (V2X) network. Of course, the embodiments of the present application can also be applied to other possible communication systems, such as the Long Term Evolution (LTE) system, the fifth generation (5G) communication system, and the future sixth generation (6G) communication system.

[0036] The communication system includes a transmitter and a receiver. The transmitter can be a network device or a terminal device. When the transmitter is a network device, the receiver can be a terminal device. When the transmitter is a terminal device, the receiver can be a network device or a terminal device. When the transmitter is a network device, the receiver can be a terminal device. The architecture diagram of the communication system can be found in Figure 1 ,in, Figure 1 For example, the sending end is a network device and the receiving end is a terminal device.

[0037] The network equipment may be a device deployed in a radio access network (RAN) to provide wireless communication functions for terminal devices, such as a base station, various forms of control nodes (for example, a network controller, a wireless controller (for example, a wireless controller in a cloud radio access network (CRAN) scenario)), etc. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, it may be called an evolved NodeB (eNB or eNodeB) in an LTE system and a next generation node basestation (gNB) in a 5G system. This application does not limit the specific name of the base station. The network equipment may also be a network device in a future evolved public land mobile network (PLMN), etc.

[0038] A terminal device may be a device that provides voice or data connectivity to a user, and may also be referred to as user equipment (UE), mobile station, subscriber unit, station, etc. For example, a terminal device may be a cellular phone, a personal digital assistant (PDA), a wireless modem, a handheld device, a laptop computer, a cordless phone, a tablet computer, a smartphone, customer premises equipment (CPE), a sensor with network access functionality, etc. With the development of wireless communication technology, any device that can access a communication system, communicate with the network side of a communication system, or communicate with other objects through a communication system may be a terminal device in the embodiments of the present application, for example, terminal devices and automobiles in intelligent transportation, household appliances in smart homes, power meter reading instruments, voltage monitoring instruments, environmental monitoring instruments in smart grids, video surveillance instruments in intelligent security networks, cash registers, etc.

[0039] Due to its low power consumption and high temporal resolution, UWB technology is widely used, enabling high-precision ranging and positioning at the centimeter level. UWB technology does not require the carrier wave used in traditional communication systems, but instead transmits data by sending and receiving extremely narrow pulses of nanoseconds or less. Therefore, synchronization of transceivers is crucial in UWB technology. Synchronization of transceivers can be understood as the transmitter sending data packets in the form of pulse signals, and the receiver determining which of the multiple received pulse signals is the first data packet to be received by the receiver. Synchronization of transceivers can also be understood as the receiver determining the starting position of a data packet or detecting the data packet.

[0040] Synchronization of transmitting and receiving devices is primarily achieved through specific synchronization symbols in data packets. These specific synchronization symbols are also called pilot symbols, synchronization sequences, preambles, preamble structures, preamble sequences, or preamble sequences. For ease of description, the following uses the specific synchronization symbol as a synchronization preamble sequence. The synchronization preamble sequence is typically a ternary sequence consisting of three values: {–1, 0, 1}. If the synchronization preamble sequence transmitted by the transmitting device is aligned with the local preamble sequence of the receiving device (also referred to as the local preamble sequence), the receiving and transmitting devices are time synchronized. Alignment of the two preamble sequences means that the correlation coefficient between the two preamble sequences is large. If the correlation peak value obtained when calculating the correlation between the synchronization preamble sequence and the local preamble sequence is high, the receiving and transmitting devices are time synchronized. If the correlation peak value obtained when calculating the correlation between the local preamble sequence and the synchronization preamble sequence received from the transmitting device is low, the receiving and transmitting devices are time synchronized.

[0041] To reduce interference between devices, different transmitting devices typically use different synchronization preamble sequences. If the cross-correlation between the synchronization preamble sequence used by the target transmitting device and the synchronization preamble sequence used by the interfering transmitting device is low, the target receiving device can suppress the interference by correlating the received signal with the synchronization preamble sequence used by the target transmitting device. Therefore, the good autocorrelation characteristics of the preamble and the good cross-correlation characteristics between different preamble sequences can ensure detection reliability.

[0042] However, because UWB is susceptible to phase rotation caused by carrier frequency offset (CFO), the cross-correlation calculation between traditional preamble sequences cannot be expanded or summed across symbols, thereby failing to improve the signal-to-noise ratio (SNR). The autocorrelation calculation between traditional preamble sequences is also susceptible to sinusoidal interference or additional superimposed preambles from other transmitters, resulting in low autocorrelation accuracy and, in turn, incorrect detection of the starting position of a data packet.

[0043] To address the above technical issues, a solution is provided in an embodiment of the present application. In the embodiment of the present application, data packet detection is achieved from multiple dimensions. For example, the embodiment of the present application takes into account the impact of CFO and / or SFO on the autocorrelation calculation or cross-correlation calculation between preamble code sequences, and can also perform data packet detection based on CFO and / or SFO, thereby improving the accuracy of data packet detection and reducing erroneous detection of the starting position of the data packet.

[0044] The solution provided by the embodiments of the present application is described below with reference to the accompanying drawings.

[0045] Please refer to Figure 2 , which is a flowchart of the data packet detection method provided in an embodiment of the present application. Figure 2 This method is introduced from the perspective of the interaction between the receiver and the transmitter. The receiver can be a network device and the transmitter can be a terminal device. Figure 2 As shown, the process of the data packet detection method includes the following steps.

[0046] S201: A transmitter sends a data packet to a receiver.

[0047] The data packet is carried by the first sequence, so it can be said that the data packet corresponds to the first sequence. In addition to the data information sent by the transmitter to the receiver, the data packet may also include a first preamble sequence used for time synchronization between the receiver and the transmitter. The first preamble sequence can be used by the receiver to determine the starting position of the data packet, or in other words, the first preamble sequence can be used by the receiver to detect the presence of the data packet; or the presence of the data packet can be determined by detecting the presence of the first preamble sequence. Detecting a data packet essentially involves detecting the presence of the first preamble sequence.

[0048] S202: The receiver performs cross-correlation calculation on the N subsequences decomposed from the first sequence and the second preamble to obtain a cross-correlation result, where N is a positive integer.

[0049] The receiver does not know the specific location of the first preamble in the data packet. To this end, the receiver can use a demultiplexer to divide the data packet into multiple channels, for example, N channels. Samples can be collected for each channel to obtain N subsequences. The first preamble sequence may be located in one or more of these subsequences, or in other words, the starting position of the first preamble sequence is located in one of the N subsequences.

[0050] If the cross-correlation coefficient between a subsequence and the second preamble sequence is small, the subsequence can be considered to be usable for detecting the first preamble sequence. If the cross-correlation coefficient between a subsequence and the second preamble sequence is large, the subsequence can be considered to be unusable for detecting the first preamble sequence. Therefore, for each subsequence, the receiver can perform a cross-correlation calculation between each subsequence and the locally stored second preamble sequence to obtain N cross-correlation results.

[0051] S203: The receiver performs autocorrelation calculation on the N subsequences to obtain N-1 autocorrelation results.

[0052] Based on the results of the cross-correlation calculations between the N subsequences and the second preamble sequence, the approximate location of the first preamble sequence, such as the frame number of the frame in which the first preamble sequence is located, can be determined. Therefore, an autocorrelation calculation can be performed on the first and second subsequences of the N subsequences to determine a more fine-grained location of the first preamble sequence. The receiver can sequentially perform autocorrelation calculations on the first and second subsequences to obtain N-1 autocorrelation results. The first preamble sequence exists in multiple subsequences with large autocorrelations.

[0053] S204: The receiver detects the starting position of the data packet according to the N-1 autocorrelation results, the N cross-correlation results, and the threshold set.

[0054] The threshold set may include an autocorrelation threshold and a cross-correlation threshold. The autocorrelation threshold may be used to determine whether the first preamble sequence and the second preamble sequence are autocorrelated; the cross-correlation threshold may be used to determine whether the first preamble sequence and the second preamble sequence are cross-correlated. The autocorrelation threshold and the cross-correlation threshold may be used to determine which of the N subsequences corresponding to the N-1 autocorrelation results and the N cross-correlation results includes the first preamble sequence. For example, for a particular subsequence, if the autocorrelation result is higher than the autocorrelation threshold and the cross-correlation result is lower than the cross-correlation threshold, then there is a high probability that the subsequence includes the first preamble sequence.

[0055] Considering that the cross-correlation calculation and autocorrelation calculation between the preamble code sequences are easily affected by the phase rotation caused by CFO and / or SFO, that is, the frequency offset will affect the autocorrelation calculation results and the cross-correlation results, thereby leading to the incorrect detection of the starting position of the data packet / first preamble code sequence.

[0056] To this end, in an embodiment of the present application, the degree of influence of frequency offset on the autocorrelation result and / or cross-correlation result is used as a parameter to measure whether the autocorrelation result and cross-correlation result are accurate. For example, the threshold set also includes a frequency offset threshold, which is used to indicate the degree of influence of frequency offset on the autocorrelation result and / or cross-correlation result. In this way, the receiver can more accurately determine whether the data packet includes the first preamble or detect the starting position of the data packet based on N-1 autocorrelation results, N cross-correlation results, and the threshold set.

[0057] Each threshold can be understood as a detection indicator. Accordingly, the autocorrelation threshold can be replaced by the autocorrelation detection indicator, the cross-correlation threshold can be replaced by the cross-correlation detection indicator, and the frequency offset threshold can be replaced by the frequency offset detection indicator. From this perspective, the threshold set can also be replaced by the detection indicator set. For example, the detection indicator set may include the autocorrelation detection indicator, the cross-correlation detection indicator, and the frequency offset detection indicator.

[0058] In an optional implementation, the threshold set may further include a combination of at least two of an autocorrelation threshold, a cross-correlation threshold, and a frequency offset threshold. Alternatively, the detection indicator set may further include a combination of at least two of an autocorrelation detection indicator, a cross-correlation detection indicator, and a frequency offset detection indicator. Each combination may be considered a new detection indicator. For example, the detection indicator set may further include an autocorrelation detection indicator, a cross-correlation detection indicator, a frequency offset detection indicator, and a combination of the autocorrelation detection indicator and the frequency offset detection indicator.

[0059] The receiver can determine the correlation between each autocorrelation result and each cross-correlation result and the frequency offset, and detect the starting position of the data packet based on the autocorrelation threshold, cross-correlation threshold, frequency offset threshold, autocorrelation result, cross-correlation result and correlation.

[0060] In a specific implementation, a detection area may be established, the dimension of which is the same as the number of elements included in the detection indicator set. For example, the detection indicator set includes an autocorrelation detection indicator, a cross-correlation detection indicator, and a frequency offset detection indicator. The detection area may be a three-dimensional detection area. Figure 3 , which shows a schematic diagram of the detection area, wherein the X-axis corresponds to the autocorrelation detection index / autocorrelation threshold; the Y-axis corresponds to the cross-correlation detection index / cross-correlation threshold; and the Z-axis corresponds to the frequency offset detection index. Figure 3 Taking the normalization of the autocorrelation detection index, the autocorrelation detection index, and the frequency offset detection index as an example, the value range corresponds to [0,1].

[0061] The X, Y, and Z axes can be used to set thresholds for determining the presence of the first preamble sequence. Above the threshold indicates the presence of the first preamble sequence (i.e., the presence of a data packet), while below the threshold indicates its absence (i.e., the absence of a data packet). The thresholds can be configured via external registers to optimize packet detection performance, tailored to the characteristics of the receiver's analog front end. It can be understood that the XY plane (i.e., Z = 0) shows traditional packet detection, which only includes autocorrelation and cross-correlation detection indicators, divided into two planes in a stepped manner by the autocorrelation and cross-correlation thresholds.

[0062] The position where the autocorrelation threshold, cross-correlation threshold and frequency offset threshold are all high in the detection area indicates the presence of the first preamble sequence. Figure 3 The discrete steps shown are constructed, or the discrete steps are removed to form a plane. The detection region corresponds to a sufficiently high value for the combination of the autocorrelation detection indicator, the cross-correlation detection indicator, and the frequency offset detection indicator, indicating the presence of a data packet. Accordingly, the starting position of the data packet is the position corresponding to the first autocorrelation result and the first cross-correlation result. The correlation of the first autocorrelation result with the frequency offset is higher than the frequency offset threshold, and the first autocorrelation result is higher than the autocorrelation threshold; the correlation of the first cross-correlation result with the frequency offset is higher than the frequency offset threshold, and the first cross-correlation result is lower than the cross-correlation threshold. In other words, the starting position of the data packet satisfies the following conditions: the correlation of the autocorrelation result with the frequency offset is higher than the frequency offset threshold and higher than the autocorrelation threshold; the correlation of the cross-correlation result with the frequency offset is higher than the frequency offset threshold and lower than the cross-correlation threshold. In other words, the subsequence corresponding to the autocorrelation result whose correlation with the frequency offset is higher than the frequency offset threshold and higher than the autocorrelation threshold, and the cross-correlation result whose correlation with the frequency offset is higher than the frequency offset threshold and lower than the cross-correlation threshold, is determined to include the first preamble sequence.

[0063] Packet detection can be performed in very "hostile" environments. Accordingly, the autocorrelation detection metric can be used to indicate the presence of self-similar "energy" to a received noisy preamble. The cross-correlation detection metric can be used to indicate the presence of a received noisy preamble sequence. The more self-similar energy observed (i.e., the higher the autocorrelation detection metric), the higher the "known similarity" to the second preamble sequence must be (i.e., the higher the autocorrelation detection metric must be), marking a "packet detection" event, indicating the presence of a packet. The frequency offset detection metric can be used to improve robustness to receiver impairments. For example, the frequency offset detection metric can improve robustness to multi-user interference by measuring the phase rotation difference between the autocorrelation and cross-correlation-based metrics.

[0064] Based on the cross-correlation detection index and the frequency offset detection index, the influence of the phase rotation caused by CFO can be reduced, and expansion / summing over multiple symbols can be achieved to increase the SNR. Based on the autocorrelation detection index and the frequency shift detection index, sinusoidal interference or interference from other superimposed preamble codes of the transmitter can be reduced or lowered. Therefore, in the embodiment of the present application, the influence of the quantized frequency offset on the autocorrelation and cross-correlation can be used to combat multi-user interference. The multi-user includes UWB preamble codes transmitted simultaneously.

[0065] It should be noted that the embodiment of the present application does not limit the number of detection indicators. Figure 2 Taking the example of three detection indicators, in a possible implementation, there may be at least four detection indicators, such as an autocorrelation detection indicator and a frequency offset detection indicator, which can be used to measure the presence of other interference sources or to measure spectral harmonics caused by nonlinear distortion in the power amplifier to more accurately determine interference and reduce missed interference detection.

[0066] In one implementation, when there are three detection indicators, bilinear interpolation based on these three detection indicators can be used to reduce the loss of detection performance. For easier understanding, please refer to Figure 4 , is another schematic diagram of the detection area. Figure 4 and Figure 3 The difference is that the autocorrelation detection index, the autocorrelation detection index, and the frequency offset detection index are bilinearly interpolated. Similarly, if there are M detection indicators, the detection area can be obtained by (M-1)-dimensional linear interpolation of these M detection indicators.

[0067] In an embodiment of the present application, the presence of a data packet is detected based on the effect of frequency shift on autocorrelation and cross-correlation, which can improve the robustness of the receiver to damage, noise and interference, and reduce the false detection of data packets. For example, based on the cross-correlation detection index and the frequency offset detection index, the influence of the phase rotation caused by CFO can be reduced, and expansion / summing on multiple symbols can be achieved to increase the SNR. Based on the autocorrelation detection index and the frequency shift detection index, sinusoidal interference or interference from other superimposed preamble codes of the transmitter can be reduced or lowered. Therefore, in an embodiment of the present application, the effect of quantized frequency offset on autocorrelation and cross-correlation can be used to combat multi-user interference. The multi-user includes a UWB preamble code transmitted simultaneously.

[0068] Based on the same inventive concept, the embodiment of the present application provides a communication device, which is, for example, a receiver, which can automatically Figure 2 See the method of the embodiment shown. Figure 5 The receiver includes: a transceiver 510, a processor 520 and a correlation calculator 530.

[0069] The transceiver 510 is configured to receive a data packet from a transmitter, the data packet corresponding to a first sequence including a first preamble sequence. The correlation calculator 530 is configured to perform cross-correlation calculations on the N subsequences decomposed from the first sequence with the second preamble sequence to obtain N cross-correlation results; and to perform autocorrelation calculations on the N subsequences to obtain N-1 autocorrelation results. The starting position of the first preamble sequence is located in one of the N subsequences, where N is a positive integer. The processor 520 is configured to detect the starting position of the data packet based on the N-1 autocorrelation results, the N cross-correlation results, and a threshold set, wherein the threshold set includes a frequency offset threshold, which is used to indicate the degree of influence of the frequency offset on the autocorrelation result and / or the cross-correlation result.

[0070] In one implementation, the communication device further includes: a demultiplexer configured to decompose a data packet received by the receiver into N paths, and output the N paths to the correlation calculator respectively, wherein one path corresponds to one subsequence.

[0071] In one implementation, the frequency offset includes CFO and / or SFO.

[0072] In one implementation, the threshold set further includes at least one of the following: an autocorrelation threshold and a cross-correlation threshold. The autocorrelation threshold is used to determine whether the first preamble sequence and the second preamble sequence are autocorrelated. The cross-correlation threshold is used to determine whether the first preamble sequence and the second preamble sequence are cross-correlated.

[0073] In one implementation, the processor 520 is specifically used to: determine the correlation between N-1 autocorrelation results and N cross-correlation results and the frequency offset respectively; and detect the starting position of the data packet based on the autocorrelation threshold, the cross-correlation threshold, the frequency offset threshold, the autocorrelation result, the cross-correlation result, and the correlation.

[0074] In one implementation, the starting position of the data packet is the position corresponding to the first autocorrelation result and the first cross-correlation result; wherein the correlation between the first autocorrelation result and the frequency offset is higher than the frequency offset threshold, and the first autocorrelation result is higher than the autocorrelation threshold; the correlation between the first cross-correlation result and the frequency offset is higher than the frequency offset threshold, and the first cross-correlation result is lower than the cross-correlation threshold.

[0075] In one implementation, the processor 520 is further configured to perform (M-1)-dimensional linear interpolation processing on the autocorrelation threshold, the autocorrelation threshold, and the frequency offset threshold, where M is an integer greater than 3.

[0076] In one implementation, the threshold set further includes: a combination of at least two of an autocorrelation threshold, a cross-correlation threshold, and a frequency offset threshold.

[0077] In one possible design, the communication device includes a baseband device and a radio frequency device, and the processor 520 includes the baseband device, or the processor 520 is the baseband device, or the processor 520 is part of the functionality of the baseband device. The transceiver 510 may be a radio frequency device.

[0078] The processor 510 is sometimes also referred to as a processing module or processing unit, and the transceiver 510 is sometimes also referred to as a transceiver module or transceiver unit. The transceiver 510 is capable of performing both transmitting and receiving functions. When the transceiver 510 performs the transmitting function, it may be referred to as a transmitting unit (sometimes also referred to as a transmitting module). When the transceiver 510 performs the receiving function, it may be referred to as a receiving unit (sometimes also referred to as a receiving module). The transmitting unit and the receiving unit may be the same functional unit, referred to as a transceiver unit, capable of both transmitting and receiving functions. Alternatively, the transmitting unit and the receiving unit may be different functional units, with the transceiver unit being a collective term for these functional units. These units (modules) may perform the corresponding functions described in the method examples of the first or second aspects above. For details, please refer to the detailed description of the method examples and will not be repeated here.

[0079] The communication device may be a chip or a chip system, including a communication interface and a processor, and optionally, a memory. The memory is used to store computer programs, instructions, or data, and the processor is coupled to the memory and the communication interface. When the processor reads the computer program, instructions, or data, the communication device executes the method executed by the receiver in the above-mentioned method embodiment. For example, the communication device may be a receiver or a baseband chip and a radio frequency chip in the receiver. The communication interface may be an input / output interface, and the processor may be a logic circuit. The input / output interface is used to input and / or output information. The input / output interface may be an interface circuit, an output circuit, an input circuit, a pin, or a related circuit, etc. The logic circuit is used to execute the method described in the above-mentioned method embodiment.

[0080] In a specific implementation, the communication device may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the logic circuit may be a transistor, a gate circuit, a trigger, or various logic circuits. The input signal received by the input circuit may be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter. The input circuit and the output circuit may be the same circuit, which functions as an input circuit and an output circuit, respectively, at different times. This application does not limit the specific implementation of the input and output interfaces and logic circuits.

[0081] The present application also provides a computer-readable storage medium including instructions, which, when executed on a computer, enables the computer to execute the above-mentioned Figure 2 The method performed by the receiver in the method shown.

[0082] The present application also provides a computer program product including computer program code, which, when executed, enables the computer to execute the above-mentioned Figure 2 The method performed by the receiver in the method shown.

[0083] The embodiment of the present application provides a chip system, which includes a processor and may also include a memory for implementing Figure 2 The function of the receiver in the method shown. The chip system can be composed of a chip or include a chip and other discrete devices.

[0084] Those skilled in the art will clearly understand that for the sake of convenience and brevity, the division of the above-mentioned functional modules is only used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0085] In the embodiments of the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0086] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0087] In addition, the functional units in the embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0088] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: Universal Serial Bus flash disk (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media that can store program code.

[0089] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A data packet detection method, It is characterized in that include: receiving a data packet from a transmitter, the data packet corresponding to a first sequence, the first sequence including a first preamble sequence; Performing cross-correlation calculation on N subsequences decomposed from the first sequence and the second preamble sequence respectively to obtain N cross-correlation results, wherein a starting position of the first preamble sequence is located in a subsequence of the N subsequences, where N is a positive integer; Performing autocorrelation calculation on the N subsequences to obtain N-1 autocorrelation results; The starting position of the data packet is detected according to the N-1 autocorrelation results, the N cross-correlation results and a threshold set, wherein the threshold set includes a frequency offset threshold, and the frequency offset threshold is used to indicate the degree of influence of the frequency offset on the autocorrelation result and / or the cross-correlation result; the threshold set also includes an autocorrelation threshold and / or a cross-correlation threshold, the autocorrelation threshold is used to determine whether the first preamble code sequence and the second preamble code sequence are autocorrelated, and the cross-correlation threshold is used to determine whether the first preamble code sequence and the second preamble code sequence are cross-correlated; Wherein, detecting the starting position of the data packet according to the N-1 autocorrelation results, the N cross-correlation results and the threshold set includes: Determine the correlation between the N-1 autocorrelation results and the N cross-correlation results and the frequency offset respectively; The starting position of the data packet is detected according to the autocorrelation threshold, the cross-correlation threshold, the frequency offset threshold, the N-1 autocorrelation results, the N cross-correlation results, and the correlation.

2. The method according to claim 1, It is characterized in that The frequency offset includes a carrier frequency offset CFO and / or a sampling frequency offset SFO.

3. The method according to claim 1, It is characterized in that The starting position of the data packet is the position corresponding to the first autocorrelation result and the first cross-correlation result; wherein the correlation between the first autocorrelation result and the frequency offset is higher than the frequency offset threshold, and the first autocorrelation result is higher than the autocorrelation threshold; the correlation between the first cross-correlation result and the frequency offset is higher than the frequency offset threshold, and the first cross-correlation result is lower than the cross-correlation threshold.

4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: Perform (M-1)-dimensional linear interpolation processing on the autocorrelation threshold, the autocorrelation threshold and the frequency offset threshold, where M is an integer greater than 3.

5. The method according to claim 1, It is characterized in that The threshold set also includes: A combination of at least two of the autocorrelation threshold, the cross-correlation threshold and the frequency offset threshold.

6. A receiver, It is characterized in that include: A transceiver, configured to receive a data packet from a transmitter, wherein the data packet corresponds to a first sequence, wherein the first sequence includes a first preamble sequence; a correlation calculator, configured to perform cross-correlation calculation on N subsequences decomposed from the first sequence and a local second preamble sequence to obtain N cross-correlation results, and to perform autocorrelation calculation on the N subsequences to obtain N-1 autocorrelation results, wherein a starting position of the first preamble sequence is located in one of the N subsequences, and N is a positive integer; a processor, configured to detect a starting position of the data packet according to the N-1 autocorrelation results and the N cross-correlation results and a threshold set, wherein the threshold set includes a frequency offset threshold, the frequency offset threshold is used to indicate the degree of influence of the frequency offset on the autocorrelation result and / or the cross-correlation result, the threshold set also includes an autocorrelation threshold and / or a cross-correlation threshold, the autocorrelation threshold is used to determine whether the first preamble sequence and the second preamble sequence are autocorrelated, and the cross-correlation threshold is used to determine whether the first preamble sequence and the second preamble sequence are cross-correlated; Among them, the processor is specifically used to: determine the correlation between the N-1 autocorrelation results and the N cross-correlation results and the frequency offset respectively; detect the starting position of the data packet according to the autocorrelation threshold, the cross-correlation threshold, the frequency offset threshold and the N-1 autocorrelation results, the N cross-correlation results and the correlation.

7. The receiver as claimed in claim 6, It is characterized in that The receiver further comprises: A demultiplexer is used to decompose the data packet received by the transceiver into N paths, and output the N paths to the relevant calculator respectively, wherein one path corresponds to one subsequence.