CN102882645B - Method and device for detecting frame boundary - Google Patents
Method and device for detecting frame boundary Download PDFInfo
- Publication number
- CN102882645B CN102882645B CN201210358259.4A CN201210358259A CN102882645B CN 102882645 B CN102882645 B CN 102882645B CN 201210358259 A CN201210358259 A CN 201210358259A CN 102882645 B CN102882645 B CN 102882645B
- Authority
- CN
- China
- Prior art keywords
- sample point
- value
- correlation
- sample
- cross
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种帧边界检测的方法及装置,属于通信领域。所述方法包括:将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段;将接收的信号对应的样点序列和所述参考样点段进行互相关运算得到所述样点序列包括的前第一个数个样点的第一互相关值;根据所述第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据所述相关峰对应的样点获取帧的帧边界。所述装置包括:划分模块,运算模块,获取模块。本发明能够降低互相关运算的复杂度和帧边界检测的功耗,以及提高帧边界检测的效率。
The invention discloses a frame boundary detection method and device, belonging to the communication field. The method includes: dividing the first number of sample points included in the stored reference preamble into a plurality of sample point segments, each sample point segment including the second number of sample points, and selecting one of the sample point segments as The reference sample point segment; performing a cross-correlation operation on the sample point sequence corresponding to the received signal and the reference sample point segment to obtain the first cross-correlation value of the first few sample points included in the sample point sequence; according to the The sample points corresponding to the correlation peaks of the leading symbols are obtained from the first cross-correlation values of the first several samples, and the frame boundaries of the frame are obtained according to the samples corresponding to the correlation peaks. The device includes: a division module, a calculation module and an acquisition module. The invention can reduce the complexity of cross-correlation calculation and the power consumption of frame boundary detection, and improve the efficiency of frame boundary detection.
Description
技术领域technical field
本发明涉及通信领域,特别涉及一种帧边界检测的方法及装置。The invention relates to the communication field, in particular to a frame boundary detection method and device.
背景技术Background technique
在许多通信系统中,采用帧来传输数据,接收端接收到一串帧后,可以通过帧边界检测的方法来检测出检测出各帧的帧边界,再根据各帧的帧边界来区分各帧。In many communication systems, frames are used to transmit data. After receiving a series of frames, the receiving end can detect the frame boundaries of each frame through the method of frame boundary detection, and then distinguish each frame according to the frame boundaries of each frame. .
其中,帧包括一个或多个Preamble(前导)符号和需要传输的数据等,Preamble符号包括多个样点,接收端内事先存储一个参考Preamble符号,当接收端接收到信号对应的样点序列后,可以根据参考Preamble符号检测出接收的样点序列中包括的各帧的帧边界,具体为:将参考Preamble符号包括的样点与接收的样点序列进行互相关运算,根据互相关运算的结果确定出接收的样点序列中包括的Preamble符号,根据确定的Preamble符号确定出接收的样点序列中包括的每个帧的帧边界。Among them, the frame includes one or more Preamble (preamble) symbols and data to be transmitted, etc., the Preamble symbol includes multiple samples, and a reference Preamble symbol is stored in the receiving end in advance, when the receiving end receives the sample point sequence corresponding to the signal , the frame boundary of each frame included in the received sample point sequence can be detected according to the reference Preamble symbol, specifically: the cross-correlation operation is performed on the sample point included in the reference Preamble symbol and the received sample point sequence, and according to the result of the cross-correlation operation Determine the Preamble symbol included in the received sample point sequence, and determine the frame boundary of each frame included in the received sample point sequence according to the determined Preamble symbol.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:
直接将参考Preamble符号包括的样点与接收的样点序列进行互相关运算的复杂度较高,导致帧边界检测的功耗较高以及帧边界检测的效率低下。The complexity of directly performing a cross-correlation operation on the sample points included in the reference Preamble symbol and the received sample point sequence is relatively high, resulting in high power consumption of frame boundary detection and low efficiency of frame boundary detection.
发明内容Contents of the invention
为了降低帧边界检测的功耗和复杂度,以及提高帧边界检测的效率,本发明提供了一种帧边界检测的方法及装置。所述技术方案如下:In order to reduce the power consumption and complexity of frame boundary detection and improve the efficiency of frame boundary detection, the present invention provides a frame boundary detection method and device. Described technical scheme is as follows:
一种帧边界检测的方法,所述方法包括:A method for frame boundary detection, the method comprising:
将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段;Divide the first number of sample points included in the stored reference preamble into a plurality of sample point segments, each sample point segment includes the second number of sample points, and select one of the sample point segments as the reference sample point segment;
将接收的信号对应的样点序列和所述参考样点段进行互相关运算得到所述样点序列包括的前第一个数个样点的第一互相关值;Performing a cross-correlation operation on the sample point sequence corresponding to the received signal and the reference sample point segment to obtain a first cross-correlation value of the first first few samples included in the sample point sequence;
根据所述第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据所述相关峰对应的样点获取帧的帧边界。Obtain a sample point corresponding to a correlation peak of the preamble symbol according to the first cross-correlation value of the first several samples, and obtain a frame boundary of a frame according to the sample point corresponding to the correlation peak.
一种帧边界检测的装置,所述装置包括:A device for frame boundary detection, the device comprising:
划分模块,用于将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段;A division module, used to divide the first several sample points included in the stored reference preamble into a plurality of sample point segments, each sample point segment includes the second several sample points, and select one of the sample point segments as Reference sample segment;
运算模块,用于将接收的信号对应的样点序列和所述参考样点段进行互相关运算得到所述样点序列包括的前第一个数个样点的第一互相关值;An operation module, configured to perform a cross-correlation operation on the sample point sequence corresponding to the received signal and the reference sample point segment to obtain a first cross-correlation value of the first first few samples included in the sample point sequence;
获取模块,用于根据所述第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据所述相关峰对应的样点获取帧的帧边界。An acquiring module, configured to acquire a sample point corresponding to a correlation peak of a preamble symbol according to the first cross-correlation value of the first several samples, and acquire a frame boundary of a frame according to the sample point corresponding to the correlation peak.
本发明提供的技术方案的有益效果是:The beneficial effects of the technical solution provided by the invention are:
在本发明实施例中,将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段,将接收的信号对应的样点序列和参考样点段进行互相关运算得到该样点序列包括的前第一个数个样点的第一互相关值,根据第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据相关峰对应的样点获取帧的帧边界。由于将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,再将其中的一个样点段与接收的样点序列进行互相关运算,如此在每次进行互相关运算时减少参与互相关运算的样点的个数,从而降低了互相关运算的复杂度和帧边界检测的功耗,以及提高了帧边界检测的效率。In the embodiment of the present invention, the first number of sample points included in the stored reference preamble symbols are divided into a plurality of sample point segments, each sample point segment includes the second number of sample points, and one of the sample points is selected Segment as a reference sample point segment, the sample point sequence corresponding to the received signal and the reference sample point segment are cross-correlated to obtain the first cross-correlation value of the first few samples included in the sample point sequence, according to the first A sample point corresponding to a correlation peak of the preamble symbol is obtained from the first cross-correlation value of several samples, and a frame boundary of the frame is obtained according to the sample point corresponding to the correlation peak. Since the first few samples included in the stored reference preamble are divided into multiple sample segments, and then one of the sample segments is cross-correlated with the received sample sequence, so that each time the cross-correlation During the correlation operation, the number of sample points participating in the cross-correlation operation is reduced, thereby reducing the complexity of the cross-correlation operation and the power consumption of the frame boundary detection, and improving the efficiency of the frame boundary detection.
附图说明Description of drawings
图1是本发明一实施例提供的一种帧边界检测的方法流程图;FIG. 1 is a flow chart of a method for frame boundary detection provided by an embodiment of the present invention;
图2是本发明另一实施例提供的一种帧边界检测的方法流程图;FIG. 2 is a flowchart of a frame boundary detection method provided by another embodiment of the present invention;
图3是本发明另一实施例提供的一种帧边界检测的装置结构示意图。Fig. 3 is a schematic structural diagram of a frame boundary detection device provided by another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.
如图1所示,本发明提供了一种帧边界检测的方法,包括:As shown in Figure 1, the present invention provides a method for frame boundary detection, including:
步骤101:将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段;Step 101: Divide the first number of sample points included in the stored reference preamble into a plurality of sample point segments, each sample point segment includes the second number of sample points, and select one of the sample point segments as the reference sample point point segment;
步骤102:将接收的信号对应的样点序列和参考样点段进行互相关运算得到该样点序列包括的前第一个数个样点的第一互相关值;Step 102: Perform a cross-correlation operation on the sample point sequence corresponding to the received signal and the reference sample point segment to obtain the first cross-correlation value of the first few sample points included in the sample point sequence;
步骤103:根据第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据该相关峰对应的样点获取帧的帧边界。Step 103: Obtain the sample point corresponding to the correlation peak of the preamble symbol according to the first cross-correlation value of the first several samples, and obtain the frame boundary of the frame according to the sample point corresponding to the correlation peak.
在本发明实施例中,将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段,将接收的信号对应的样点序列和参考样点段进行互相关运算得到该样点序列包括的前第一个数个样点的第一互相关值,根据第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据相关峰对应的样点获取帧的帧边界。由于将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,再将其中的一个样点段与接收的样点序列进行互相关运算,如此在每次进行互相关运算时减少参与互相关运算的样点的个数,从而降低了互相关运算的复杂度和帧边界检测的功耗,以及提高了帧边界检测的效率。In the embodiment of the present invention, the first number of sample points included in the stored reference preamble symbols are divided into a plurality of sample point segments, each sample point segment includes the second number of sample points, and one of the sample points is selected Segment as a reference sample point segment, the sample point sequence corresponding to the received signal and the reference sample point segment are cross-correlated to obtain the first cross-correlation value of the first few samples included in the sample point sequence, according to the first A sample point corresponding to a correlation peak of the preamble symbol is obtained from the first cross-correlation value of several samples, and a frame boundary of the frame is obtained according to the sample point corresponding to the correlation peak. Since the first few samples included in the stored reference preamble are divided into multiple sample segments, and then one of the sample segments is cross-correlated with the received sample sequence, so that each time the cross-correlation During the correlation operation, the number of sample points participating in the cross-correlation operation is reduced, thereby reducing the complexity of the cross-correlation operation and the power consumption of the frame boundary detection, and improving the efficiency of the frame boundary detection.
本发明实施例提供了一种帧边界检测的方法。An embodiment of the present invention provides a frame boundary detection method.
其中,发射端将需要发送的数据封装成帧,帧包括帧边界和需要发送的数据等,帧边界由一个或多个前导符号组成,然后再发送信号给接收端,该信号包括封装有帧,其中,前导符号可以为Preamble符号等。Among them, the transmitting end encapsulates the data to be sent into a frame, and the frame includes the frame boundary and the data to be sent, etc., and the frame boundary is composed of one or more leading symbols, and then sends a signal to the receiving end, the signal includes the frame encapsulated, Wherein, the leading symbol may be a Preamble symbol or the like.
其中,在通信领域用数据信号的样点来表示数据,帧用一串包括多个样点的样点序列来表示,且帧的前导符号用一串包括第一个数个样点的样点序列来表示,例如可以用包括256个样点的样点序列、包括512个样点的样点序列或者包括1024个样点的样点序列等来表示一个前导符号。Among them, in the field of communication, the data is represented by the sample points of the data signal, the frame is represented by a sequence of sample points including a plurality of sample points, and the leading symbol of the frame is represented by a sequence of sample points including the first few samples. For example, a sample sequence including 256 samples, a sample sequence including 512 samples, or a sample sequence including 1024 samples may be used to represent a preamble symbol.
其中,接收端接收发射端发送的信号,该信号对应一个样点序列,通过本实施提供的方法从该信号对应的样点序列中检测出各帧包括的前导符号,并根据前导符号确定出各帧的帧边界,参见图2,该方法包括:Wherein, the receiving end receives the signal sent by the transmitting end, the signal corresponds to a sample point sequence, and the preamble symbols included in each frame are detected from the sample point sequence corresponding to the signal through the method provided by this implementation, and each frame is determined according to the preamble symbols. The frame boundary of the frame, see Figure 2, the method includes:
步骤201:将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段并将选择的样点段确定为参考样点段;Step 201: Divide the first number of sample points included in the stored reference preamble into a plurality of sample point segments, each sample point segment includes the second number of sample points, select one of the sample point segments and select The sample point segment is determined as the reference sample point segment;
其中,可以将参考前导符号包括的第一个数个样点划分成M个样点段,M为大于1的整数,以及事先在接收端内存储一个参考前导符号,参考前导符号对应一个样点序列,参考前导符号对应的样点序列包括第一个数个样点,例如,参考边界符号的样点序列可以为包括256个样点的样点序列、包括512个样点的样点序列或包括1024个样点的样点序列等。Wherein, the first number of samples included in the reference preamble can be divided into M sample segments, M is an integer greater than 1, and a reference preamble is stored in the receiving end in advance, and the reference preamble corresponds to one sample point sequence, refer to the sample point sequence corresponding to the preamble symbol including the first several sample points, for example, the sample point sequence of the reference boundary symbol can be a sample point sequence including 256 sample points, a sample point sequence including 512 sample points, or A sample point sequence including 1024 sample points, etc.
其中,可以随机从划分的每个样点段中选择一个样点段,并将选择的样点段确定为参考样点段;或者,如果M大于或等于3,优先从除最左侧样点段和最右侧的样点段以外的其他样点段中随机选择一个样点段,并将选择的样点段确定为参考样点段。Among them, a sample point segment can be randomly selected from each sample point segment divided, and the selected sample point segment can be determined as the reference sample point segment; or, if M is greater than or equal to 3, preferentially select Randomly select a sample point segment from other sample point segments except the rightmost sample point segment, and determine the selected sample point segment as the reference sample point segment.
例如,假设第一个数为1024,M为4,第二个数为256,则接收端内事先存储包括1024个样点的参考前导符号;接收端接收帧对应的样点序列为s0、s1、s2、s3、s4、s5、……、sn,将参考前导符号包括的1024个样点划分成4个样点段,分别为P0,P1,P2,P3四个样点段,每个样点段包括256个样点,从P0,P1,P2,P3四个样点段中随机选择P2样点段并将选择的P2样点段确定为参考样点段;或者,样点段P0为最左侧样点段,P3为最右侧样点段,优先从P1和P2两个样点段中随机选择一个样点段,假设选择的样点段为P2,将选择的P2样点段确定为参考样点段。For example, assuming that the first number is 1024, M is 4, and the second number is 256, then the reference preamble symbol including 1024 samples is stored in the receiving end in advance; the sample point sequence corresponding to the frame received by the receiving end is s 0 , s 1 , s 2 , s 3 , s 4 , s 5 , ..., s n , divide the 1024 sample points included in the reference preamble symbol into 4 sample point segments, namely P0, P1, P2, and P3 Sample point segment, each sample point segment includes 256 sample points, randomly select the P2 sample point segment from the four sample point segments P0, P1, P2, and P3, and determine the selected P2 sample point segment as the reference sample point segment; Alternatively, the sample point segment P0 is the leftmost sample point segment, P3 is the rightmost sample point segment, and a sample point segment is randomly selected from the two sample point segments P1 and P2, assuming that the selected sample point segment is P2, Determine the selected P2 sample point segment as the reference sample point segment.
步骤202:将接收的信号对应的样点序列包括的第一个样点输入到第一接收窗口中,第一接收窗口的窗口大小为第二个数,设置样点输入个数的初值;Step 202: input the first sample point included in the sample point sequence corresponding to the received signal into the first receiving window, the window size of the first receiving window is the second number, and set the initial value of the input number of sample points;
具体地,将第一接收窗口放置在接收的信号对应的样点序列的第一个样点前,移动第一接收窗口,以向第一接收窗口输入该样点序列包括的第一个样点,设置样点输入个数的初值。Specifically, the first receiving window is placed before the first sample point of the sample point sequence corresponding to the received signal, and the first receiving window is moved to input the first sample point included in the sample point sequence to the first receiving window , to set the initial value of the input number of samples.
其中,样点输入个数用于记录输入到第一接收窗口中的样点个数,且设置样点输入个数的初值可以为1等。Wherein, the number of input samples is used to record the number of samples input into the first receiving window, and the initial value of setting the number of input samples may be 1 or the like.
进一步地,在执行本步骤之前,还创建第一接收窗口,并设置第一接收窗口的窗口大小为第二个数;第一接收窗口的窗口大小为第二个数,表示第一接收窗口内最多能够容纳第二个数个样点,当第一接收窗口中包括第二个数个样点时,如果再向第一接收窗口输入一个样眯,则第一接收窗口中包括的最先输入的样点将移出第一接收窗口。Further, before performing this step, the first receiving window is also created, and the window size of the first receiving window is set as the second number; the window size of the first receiving window is the second number, which means It can accommodate the second number of samples at most. When the first receiving window includes the second number of samples, if another sample is input to the first receiving window, the first input included in the first receiving window The samples of will be shifted out of the first receive window.
例如,创建第一接收窗口,设置第一接收窗口的窗口大小为第二个数即256,将第一接收窗口放置在接收的样点序列包括的第一个样点s0之前,移动第一接收窗口,向第一接收窗口输入接收的样点序列包括的第一个样点s0,设置样点输入个数的初值为1,其中,此时第一接收窗口包括256个样点分别为样点s-255至样点s0。For example, create the first receiving window, set the window size of the first receiving window to the second number, which is 256, place the first receiving window before the first sample point s 0 included in the received sample point sequence, and move the first Receive window, input the first sample point s 0 included in the received sample point sequence to the first receive window, set the initial value of the sample point input number to 1, wherein, at this moment, the first receive window includes 256 sample points respectively It is sample point s -255 to sample point s 0 .
步骤203:将第一接收窗口中包括的样点与参考样点段包括的样点进行互相关运算,得到当前输入到第一接收窗口中的样点的第一互相关值;Step 203: Perform a cross-correlation operation on the samples included in the first receiving window and the samples included in the reference sample segment to obtain the first cross-correlation value of the samples currently input into the first receiving window;
其中,参考样点段包括的样点个数为第二个数以及第一接收窗口中包括的样点的个数为第二个数,第二个数为第一个数的M分之一,所以将第一接收窗口中包括的样点与参考样点段包括的样点进行互相关运算所需要的乘法器和加法器等硬件设备为现有技术所需要的乘法器和加法器等硬件资源的近似M分之一,降低了运算复杂度并提高运算效率。Wherein, the number of samples included in the reference sample segment is the second number and the number of samples included in the first receiving window is the second number, and the second number is one M of the first number , so the hardware devices such as multipliers and adders required for cross-correlation operations between the samples included in the first receiving window and the samples included in the reference sample segment are the hardware such as multipliers and adders required by the prior art Approximately one-Mth of the resources, which reduces the computational complexity and improves the operational efficiency.
例如,将第一接收窗口中包括的256个样点与参考样点段包括的256个样点进行互相关运算,得到当前输入到第一接收窗口中的样点的第一互相关值,即样点s0的第一互相关值,其中,通过包括256个样点的样点段来进行互相关运算所需要的乘法器和加法器等硬件资源是通过包括1024个样点的参考前导符号来进行互相关运算所需要的乘法器和加法器等硬件资源的近似4分之一,降低了运算复杂度并提高运算效率。For example, the 256 samples included in the first receive window and the 256 samples included in the reference sample segment are subjected to a cross-correlation operation to obtain the first cross-correlation value of the samples currently input into the first receive window, namely The first cross-correlation value of the sample point s 0 , wherein the hardware resources such as multipliers and adders required for cross-correlation operations through the sample point segment including 256 samples are obtained through the reference preamble symbols including 1024 samples It is approximately 1/4 of hardware resources such as multipliers and adders required for cross-correlation operations, which reduces computational complexity and improves computational efficiency.
步骤204:判断样点输入个数是否达到第一个数,如果没有达到,则执行步骤205,如果达到,则执行步骤206;Step 204: judging whether the input number of sample points reaches the first number, if not, then execute step 205, if reached, then execute step 206;
其中,如果样点输入个数达到第一个数,则表明已向第一接收窗口中输入第一个数个样点,且计算出第一个数个样点的第一互相关值。Wherein, if the input number of samples reaches the first number, it indicates that the first number of samples has been input into the first receiving window, and the first cross-correlation value of the first number of samples is calculated.
步骤205:移动第一接收窗口,以向第一接收窗口输入下一个样点,增加样点输入个数,返回执行步骤203;Step 205: Move the first receiving window to input the next sample point to the first receiving window, increase the number of input samples, and return to step 203;
其中,增加样点输入个数的操作,可以具体为:将样点输入个数加1。Wherein, the operation of increasing the number of input samples may specifically be: adding 1 to the number of input samples.
例如,对样点输入个数1进行判断,判断出小于第一个数1024,移动第一接收窗口,以向第一接收窗口输入下一个样点,即样点s1,增加样点输入个数,得到样点输入个数为2,然后再返回执行上述步骤203和204,同理按上述步骤继续移动第一接收窗口以向第一接收窗口输入下一个样点,直到向第一接收窗口输入样点s1023,并计算出样点s1023的第一互相关值时为止,此时已向第一接收窗口输入1024个样点并计算出1024个样点的第一互相关值,1024个样点分别为样点s0、s1、……、s1023。For example, judge the sample point input number 1, if it is judged to be less than the first number 1024, move the first receiving window to input the next sample point to the first receiving window, that is, sample point s 1 , increase the sample point input number number, and the input number of sample points is 2, and then return to execute the above steps 203 and 204, similarly continue to move the first receiving window according to the above steps to input the next sample point to the first receiving window until the first receiving window When sample point s 1023 is input and the first cross-correlation value of sample point s 1023 is calculated, 1024 sample points have been input to the first receiving window and the first cross-correlation value of 1024 sample points has been calculated, 1024 The sample points are respectively sample points s 0 , s 1 , ..., s 1023 .
步骤206:根据第一个数个样点的第一互相关值,确定前导符号的峰值对应的样点;Step 206: Determine the sample point corresponding to the peak value of the preamble symbol according to the first cross-correlation value of the first several sample points;
其中,确定出的前导符号的峰值对应的样点为帧包括的第一个前导符号的峰值对应的样点。具体地,本步骤可以具体包括如下(1)-(7)的步骤,分别为:Wherein, the determined sample point corresponding to the peak value of the preamble symbol is the sample point corresponding to the peak value of the first preamble symbol included in the frame. Specifically, this step may specifically include the following steps (1)-(7), which are respectively:
(1):对第一个数个样点的第一互相关值进行绝对值运算,得到第一个数个样点的第一绝对值,从第一个数个样点中选取第一绝对值最大的样点;(1): Perform an absolute value operation on the first cross-correlation values of the first several sampling points to obtain the first absolute value of the first several sampling points, and select the first absolute value from the first several sampling points The sample point with the largest value;
(2):在第一个数个样点中,统计位于第一绝对值最大的样点之前的样点的第一样点个数,判断第一样点个数是否小于或等于预设第三个数,如果是,则执行(3),如果否,则执行(4);(2): In the first number of sample points, count the number of first sample points of the sample point before the sample point with the largest absolute value, and judge whether the number of first sample points is less than or equal to the preset number Three numbers, if yes, execute (3), if not, execute (4);
(3):对第一绝对值最大的样点的序号和预设第三个数进行取和运算得到第三序号,从第一个数个样点中选取第一个样点至序号为第三序号的样点,然后执行步骤(7);(3): The sequence number of the sample point with the largest absolute value and the preset third number are summed to obtain the third sequence number, and the first sample point to the sequence number is selected from the first number of sample points. Sample points of three serial numbers, then perform step (7);
(4):在第一个数个样点中,统计位于第一绝对值最大的样点之后的样点的第二样点个数,判断第二样点个数是否小于或等于预设第三个数,如果是,则执行(5),如果否,则执行步骤(6);(4): In the first number of sample points, count the number of second sample points of the sample point after the first sample point with the largest absolute value, and judge whether the second sample point number is less than or equal to the preset number of first sample points Three numbers, if yes, then execute (5), if not, then execute step (6);
(5):根据第一绝对值最大的样点的序号和预设第三个数,按如下的公式(1)计算出第四序号,从第一个数个样点中选取序号为第四序号的样点至最后一个样点,然后执行步骤(7);(5): According to the serial number of the sampling point with the largest absolute value and the preset third number, the fourth serial number is calculated according to the following formula (1), and the serial number is selected from the first number of sampling points as the fourth From the sample point of serial number to the last sample point, then perform step (7);
Num4=Number-N2-1……(1);Num4=Number-N2-1...(1);
其中,在公式(1)中,Num4为第四序号,Number为第一绝对值最大的样点的序号,N2为预设第三个数。Wherein, in the formula (1), Num4 is the fourth serial number, Number is the serial number of the sample point with the largest absolute value, and N2 is the preset third number.
(6):根据第一绝对值最大的样点的序号和预设第三个数按如下公式(2)计算出第五序号;以及,对第一绝对值最大的样点的序号和预设第三个数进行取和运算得到第六序号,从第一个数个样点中选取序号为第五序号的样点至序号为第六序号的样点;(6): Calculate the fifth serial number according to the following formula (2) according to the serial number of the sample point with the largest first absolute value and preset the third number; and, the serial number and preset of the sample point with the largest absolute value The third number is summed to obtain the sixth serial number, and the sample point with the serial number of the fifth serial number is selected from the first number of sample points to the sample point with the serial number of the sixth serial number;
Num5=Number-N2-1……(2);Num5=Number-N2-1...(2);
其中,在公式(2)中,Num5为第五序号,Number为第一绝对值最大的样点的序号,N2为预设第三个数。Wherein, in formula (2), Num5 is the fifth serial number, Number is the serial number of the sample point with the largest absolute value, and N2 is the preset third number.
例如,对1024个样点的第一互相关值进行绝对值运算,得到1024个样点的第一绝对值,再从这1024个样点中选取第一绝对值最大的样点,假设第一绝值最大的样点为样点s900,以及预设第三个数为100,其中,在1024个样点中,统计位于样点s900之前的样点的第一样点个数为900,以及统计位于样点s900之后的样点的第二样点个数为123,第一样点个数和第二样点个数都超过第三个数100,所以根据样点s900的序号900和预设第三个数100按公式(2)计算出第五序号是799,对样点s900的序号900和预设第三个数100进行取和运算得到第六序号是1000,从1024个样点中选取样点s799至样点s1000。For example, the absolute value calculation is performed on the first cross-correlation values of 1024 samples to obtain the first absolute value of 1024 samples, and then the sample point with the largest first absolute value is selected from these 1024 samples, assuming that the first The sample point with the largest absolute value is sample point s 900 , and the preset third number is 100, wherein, among the 1024 sample points, the number of the first sample point of the sample point located before sample point s 900 is 900 , and the number of the second sample point of the sample point after the sample point s 900 is 123, the number of the first sample point and the number of the second sample point both exceed the third number 100, so according to the sample point s 900 The serial number 900 and the preset third number 100 are calculated according to the formula (2), and the fifth serial number is 799, and the serial number 900 of the sample point 900 and the preset third number 100 are summed to obtain the sixth serial number is 1000, Select sample point s 799 to sample point s 1000 from 1024 sample points.
(7)、根据未选取的样点的第一绝对值和最大的第一绝对值,确定第一绝对值最大的样点是否为前导符号的峰值对应的样点。(7) According to the first absolute value and the largest first absolute value of the unselected sample points, determine whether the sample point with the largest first absolute value is the sample point corresponding to the peak value of the preamble symbol.
具体地,计算未选取的样点的第一绝对值的平均值,计算最大的第一绝对值与计算的平均值之间的第一比值,如果计算的第一比值大于预设第一比值,则确定出第一绝对值最大的样点为前导符号的峰值对应的样点,如果计算的第一比值小于或等于预设第一比值,则确定出第一绝对值最大的样点不是前导符号的峰值对应的样点;或者,Specifically, calculate the average value of the first absolute values of the unselected sample points, and calculate the first ratio between the largest first absolute value and the calculated average value, if the calculated first ratio is greater than the preset first ratio, Then it is determined that the sample point with the largest first absolute value is the sample point corresponding to the peak value of the preamble symbol, and if the calculated first ratio is less than or equal to the preset first ratio, it is determined that the sample point with the largest first absolute value is not the preamble symbol The sample point corresponding to the peak value of ; or,
为了便于说明,将第一个数个样点中的最大的第一绝对值称为第一最大值,从未选取的样点的第一绝对值中选择最大的第一绝对值并称为第二最大值,计算第一最大值与第二最大值之间的第二比值,如果计算的第二比值大于预设第二比值,则确定出第一最大值对应的样点为前导符号的峰值对应的样点,如果计算的第二比值小于或等于预设第二比值,则确定出第一最大值对应的样点不是前导符号的峰值对应的样点。For the convenience of description, the largest first absolute value in the first several sampling points is called the first maximum value, and the largest first absolute value selected from the first absolute values of unselected sampling points is called the first maximum value Two maximum values, calculate the second ratio between the first maximum value and the second maximum value, if the calculated second value is greater than the preset second value, then determine that the sample point corresponding to the first maximum value is the peak value of the preamble symbol For the corresponding sample point, if the calculated second ratio is less than or equal to the preset second ratio, it is determined that the sample point corresponding to the first maximum value is not the sample point corresponding to the peak value of the preamble symbol.
例如,未选取的样点分别为样点s0至样点s798以及样点s1001至样点s1023,计算未选取的样点的第一绝对值的平均值,计算最大的第一绝对值与未选取的样点的第一绝对值的平均值的第一比值,假设计算出的第一比值大于预设第一比值,则确定出第一绝对值最大的样点即样点s900是前导符号的峰值对应的样点。For example, the unselected sample points are respectively sample point s 0 to sample point s 798 and sample point s 1001 to sample point s 1023 , calculate the average value of the first absolute values of the unselected sample points, and calculate the largest first absolute value Value and the first ratio of the average value of the first absolute value of the unselected sample points, assuming that the calculated first ratio is greater than the preset first ratio, then determine the sample point with the largest first absolute value, that is, the sample point s 900 is the sample point corresponding to the peak value of the leading symbol.
其中,如果确定出第一绝对值最大的样点不是前导符号的峰值对应的样点,则对样点输入个数清零,丢弃已输入到第一接收窗口中的第一个数个样点,移动第一接收窗口,以向第一接收窗口输入下一个样点,增加样点输入个数,然后返回执行步骤203。Wherein, if it is determined that the sample point with the largest absolute value is not the sample point corresponding to the peak value of the leading symbol, the input number of sample points is cleared, and the first several sample points that have been input into the first receiving window are discarded , move the first receiving window to input the next sample point into the first receiving window, increase the number of input samples, and then return to step 203 .
步骤207:选取前导符号的峰值对应的样点和峰值对应的样点左右相邻的预设第一数值个样点;Step 207: Select the sample point corresponding to the peak value of the leading symbol and the preset first number of samples adjacent to the left and right of the sample point corresponding to the peak value;
具体地,根据前导符号的峰值对应的样点的序号和预设第一数值,按如下的公式(3)计算出第一序号Num1;Specifically, according to the sequence number of the sample point corresponding to the peak value of the leading symbol and the preset first value, the first sequence number Num1 is calculated according to the following formula (3);
Num1=Number0-N1-1……(3);Num1=Number0-N1-1...(3);
其中,在公式(3)中,Number0为峰值对应的样点的序号,N1为预设第一数值;Wherein, in the formula (3), Number0 is the sequence number of the sample point corresponding to the peak value, and N1 is the preset first value;
根据峰值对应的样点的序号和预设第一数值,按如下的公式(4)计算出第二序号Num2;According to the sequence number of the sample point corresponding to the peak value and the preset first value, the second sequence number Num2 is calculated according to the following formula (4);
Num2=Number0+N1……(4);Num2=Number0+N1...(4);
其中,在公式(4)中,Number0为峰值对应的样点的序号,N1为预设第一数值;Wherein, in the formula (4), Number0 is the sequence number of the sample point corresponding to the peak value, and N1 is the preset first value;
从接收的信号对应的样点序列中选取序号为第一序号的样点至序号为第二序号的样点,如此实现选取前导符号的峰值对应的样点和峰值对应的样点左右相邻的预设第一数值个样点。From the sample point sequence corresponding to the received signal, select the sample point whose serial number is the first serial number to the sample point whose serial number is the second serial number, so as to realize the selection of the sample point corresponding to the peak value of the preamble symbol and the sample point corresponding to the peak value. Defaults to the first number of samples.
例如,假设预设第一数值是50,则根据峰值对应的样点s900的序号900和预设第一数值50并通过公式(3)计算出第一序号是849,根据峰值对应的样点s900的序号900和预设第一数值50并通过公式(4)计算出第二序号是950,则选取样点s849至样点s950,共101个样点。For example, assuming that the preset first value is 50, then according to the sequence number 900 of the sample point s 900 corresponding to the peak value and the preset first value 50, the first sequence number is calculated to be 849 through formula (3), and according to the sample point corresponding to the peak value The serial number of s 900 is 900 and the preset first value is 50, and the second serial number is calculated as 950 through the formula (4), then sample point s 849 to sample point s 950 are selected, a total of 101 sample points.
步骤208:将选取的样点包括的第一个样点输入到第二接收窗口中,第二接收窗口的窗口大小为第一个数;Step 208: Input the first sample point included in the selected sample points into the second receiving window, the window size of the second receiving window is the first number;
具体地,根据峰值对应的样点的序号和预设第一数值,按如下的公式(5)计算出第七序号Num7;Specifically, according to the sequence number of the sample point corresponding to the peak value and the preset first value, the seventh sequence number Num7 is calculated according to the following formula (5);
Num7=Number0-N1-2……(5);Num7=Number0-N1-2...(5);
其中,在公式(5)中,Number0为峰值对应的样点的序号,N1为预设第一数值;Wherein, in the formula (5), Number0 is the sequence number of the sample point corresponding to the peak value, and N1 is the preset first value;
将第二接收窗口的输入端放置在序号为第七序号的样点与序号为第一序号的样点之间,移动第二接收窗口,以实现向第二接收窗口输入选取的样点包括的第一个样点,即向第二接收窗口输入序号为第一序号的样点。The input terminal of the second receiving window is placed between the sample point whose serial number is the seventh serial number and the sample point whose serial number is the first serial number, and the second receiving window is moved to realize the input of the sample points included in the second receiving window. The first sample point, that is, the sample point whose sequence number is the first sequence number is input to the second receiving window.
其中,可以将第一序号减一得到第七序号。Wherein, the seventh serial number can be obtained by subtracting one from the first serial number.
进一步地,在执行本步骤之前,还执行创建第二接收窗口,设置第二接收窗口的窗口大小为第一个数的操作;第二接收窗口的窗口大小为第一个数,表示第二接收窗口内最多能够容纳第一个数个样点,当第二接收窗口中包括第一个数个样点时,如果再向第二接收窗口输入一个样眯,则第二接收窗口中包括的最先输入的样点将移出第二接收窗口。Further, before performing this step, the operation of creating a second receiving window and setting the window size of the second receiving window to the first number is also performed; the window size of the second receiving window is the first number, indicating that the second receiving window The first number of samples can be accommodated in the window at most. When the first number of samples is included in the second receiving window, if another sample is input to the second receiving window, the maximum number of samples included in the second receiving window The samples entered first will be shifted out of the second receive window.
例如,创建第二接收窗口,设置第二接收窗口的窗口大小为1024,根据峰值对应的样点s900的序号900和预设第一数值50并通过公式(5)计算出第七序号是848,则在样点s848与样点s849之间放置第二接收窗口,移动第二接收窗口,向第二接收窗口输入样点s849,且此时第二接收窗口包括的1024个样点分别为样点s-174至样点s849。For example, create a second receiving window, set the window size of the second receiving window to 1024, calculate the seventh serial number is 848 according to the sequence number 900 of the sample point s 900 corresponding to the peak value and the preset first value 50, and use the formula (5) , then place the second receiving window between sample point s 848 and sample point s 849 , move the second receiving window, input sample point s 849 to the second receiving window, and at this time the second receiving window includes 1024 sample points They are sample point s -174 to sample point s 849 respectively.
步骤209:将参考前导符号包括的第一个数个样点和第二接收窗口包括的第一个数个样点进行互相关运算得到当前输入到第二接收窗口的样点的第二互相关值;Step 209: Perform a cross-correlation operation on the first number of samples included in the reference preamble and the first number of samples included in the second receiving window to obtain the second cross-correlation of the samples currently input to the second receiving window value;
例如,将第二接收窗口包括的1024个样点与参考前导符号包括的1024个样点进行互相关运算,得到当前输入到第二接收窗口中的样点的第二相关值,即得到样点s849的第二互相关值。For example, the 1024 samples included in the second receiving window are cross-correlated with the 1024 samples included in the reference preamble to obtain the second correlation value of the samples currently input into the second receiving window, that is, to obtain the samples s 849 second cross-correlation value.
步骤210:判断选取的样点是否还存在未输入到第二接收窗口中的样点,如果还存在,则执行步骤211,如果不存在,则执行步骤212;Step 210: judging whether there are sample points that have not been input into the second receiving window in the selected sample point, if there is still, then perform step 211, if not, then perform step 212;
具体地,判断当前输入到第二接收窗口的样点的序号是否为第二序号,如果是,则判断选取的样点中不存在未输入到第二接收窗口中的样点,如果否,则判断出选取的样点中还存在未输入到第二接收窗口中的样点。Specifically, it is judged whether the sequence number of the sample point currently input into the second receiving window is the second sequence number, if yes, then it is judged that there is no sample point not input into the second receiving window among the selected sample points, if not, then It is determined that there are sample points not input into the second receiving window among the selected sample points.
步骤211:移动第二接收窗口,以向第二接收窗口输入下一个样点,返回执行209;Step 211: Move the second receiving window to input the next sample point to the second receiving window, and return to execute 209;
其中,如果选取的样点中不存在未输入到第二接收窗口中的样点,则表明选取的样点都依次输入到第二接收窗口,并计算出选取的每个样点的第二互相关值。Wherein, if there is no sample point that has not been input into the second receiving window among the selected sample points, it indicates that the selected sample points are input into the second receiving window in turn, and the second mutual value of each selected sample point is calculated. related value.
例如,判断出选择的样点中还存在未输入到第二接收窗口中的样点,移动第二接收窗口,向第二接收窗口输入样点s850,返回执行上述步骤209计算出样点s850的第二互相关值,同理按上述相同的方法计算出选择的101个样点的第二互相关值。For example, if it is judged that there are sample points that have not been input into the second receiving window among the selected sample points, move the second receiving window, input the sample point s 850 into the second receiving window, return to execute the above step 209 to calculate the sample point s The second cross-correlation value of 850 , similarly, the second cross-correlation value of the selected 101 sample points is calculated by the same method as above.
步骤212:对选取的每个样点的第二互相关值做绝对值运算得到选取的每个样点的第二绝对值,将第二绝对值最大的样点确定出前导符号对应的相关峰对应的样点;Step 212: Perform an absolute value operation on the second cross-correlation value of each sample point selected to obtain the second absolute value of each sample point selected, and determine the sample point with the largest second absolute value to obtain the correlation peak corresponding to the leading symbol Corresponding samples;
例如,对选取的101个样点的第二互相关值做绝对值运算得到选取的101个样点的第二绝对值,选择第二绝对值最大的样点,假设为样点s910,将样点s910确定为前导符号对应的相关峰对应的样点。For example, perform an absolute value operation on the second cross-correlation values of the selected 101 sample points to obtain the second absolute value of the selected 101 sample points, select the sample point with the largest second absolute value, assuming it is sample point s 910 , set The sample point s 910 is determined as the sample point corresponding to the correlation peak corresponding to the preamble symbol.
步骤213:根据前导符号的相关峰对应的样点获取帧的帧边界。Step 213: Obtain the frame boundary of the frame according to the sample point corresponding to the correlation peak of the preamble symbol.
具体地,本步骤具体包括如下(a)-(c)的步骤,分别为:Specifically, this step specifically includes the following steps (a)-(c), which are respectively:
(a):根据相关峰对应的样点确定出对应的前导符号,如果帧包括一个前导符号,则得到帧包括的一个前导符号,并根据该前导符号确定出帧的帧边界;(a): Determine the corresponding preamble symbol according to the sample point corresponding to the correlation peak, if the frame includes a preamble symbol, then obtain a preamble symbol included in the frame, and determine the frame boundary of the frame according to the preamble symbol;
其中,前导符号的相关峰对应的样点为该前导符号包括的最后一个样点,所以相关峰对应的样点以及相关峰对应的样点之前的连续第一个数减一个样点组成一个前导符号。Wherein, the sample point corresponding to the correlation peak of the preamble symbol is the last sample point included in the preamble symbol, so the sample point corresponding to the correlation peak and the first consecutive number minus one sample point before the sample point corresponding to the correlation peak form a preamble symbol.
其中,帧的帧边界为帧包括的第一个前导符号中的第一个样点,如果帧包括一个前导符号,则确定出帧的帧边界为该前导符号中的第一样点。Wherein, the frame boundary of the frame is the first sample point in the first preamble symbol included in the frame, and if the frame includes a preamble symbol, it is determined that the frame boundary of the frame is the first sample point in the preamble symbol.
进一步地,如果帧包括预设第二数值个前导符号,则还进一步执行步骤(b)和(c),且在步骤(a)中确定出的前导符号为帧包括的第一个前导符号。Further, if the frame includes a preset second number of preamble symbols, steps (b) and (c) are further performed, and the preamble symbol determined in step (a) is the first preamble symbol included in the frame.
(b):根据相关峰对应的样点的序号和第一个数,计算出下一个前导符号的峰值对应的样点的序号,得到下一个前导符号的峰值对应的样点;(b): According to the sequence number and the first number of the sample point corresponding to the correlation peak, calculate the sequence number of the sample point corresponding to the peak value of the next leading symbol, and obtain the sample point corresponding to the peak value of the next leading symbol;
具体地,对相关峰对应的样点的序号和第一个数做取和运算得到下一个前导符号的峰值对应的样点的序号,进而得到下一个前导符号的峰值对应的样点。Specifically, the sequence number of the sample point corresponding to the correlation peak and the first number are summed to obtain the sequence number of the sample point corresponding to the peak value of the next preamble symbol, and then the sample point corresponding to the peak value of the next preamble symbol is obtained.
(c):重复执行上述步骤207至212的步骤获取下一个前导符号的相关峰对应的样点,根据相关峰对应的样点确定出下一个前导符号,重复执行(b)和(c)两步骤直到确定出帧包括的预设第二数值个前导符号,从而检测出帧的帧边界。(c): Repeat the above steps 207 to 212 to obtain the sample point corresponding to the correlation peak of the next preamble symbol, determine the next preamble symbol according to the sample point corresponding to the correlation peak, and repeatedly execute (b) and (c) two The steps are until the predetermined second number of preamble symbols included in the frame is determined, so as to detect the frame boundary of the frame.
在本发明实施例中,将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段,将接收的信号对应的样点序列和参考样点段进行互相关运算得到该样点序列包括的前第一个数个样点的第一互相关值,根据第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据相关峰对应的样点获取帧的帧边界。由于将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,再将其中的一个样点段与接收的样点序列进行互相关运算,如此在每次进行互相关运算时减少参与互相关运算的样点的个数,从而降低了互相关运算的复杂度和帧边界检测的功耗,以及提高了帧边界检测的效率。In the embodiment of the present invention, the first number of sample points included in the stored reference preamble symbols are divided into a plurality of sample point segments, each sample point segment includes the second number of sample points, and one of the sample points is selected Segment as a reference sample point segment, the sample point sequence corresponding to the received signal and the reference sample point segment are cross-correlated to obtain the first cross-correlation value of the first few samples included in the sample point sequence, according to the first A sample point corresponding to a correlation peak of the preamble symbol is obtained from the first cross-correlation value of several samples, and a frame boundary of the frame is obtained according to the sample point corresponding to the correlation peak. Since the first few samples included in the stored reference preamble are divided into multiple sample segments, and then one of the sample segments is cross-correlated with the received sample sequence, so that each time the cross-correlation During the correlation operation, the number of sample points participating in the cross-correlation operation is reduced, thereby reducing the complexity of the cross-correlation operation and the power consumption of the frame boundary detection, and improving the efficiency of the frame boundary detection.
参见图3,本发明实施例提供了一种帧边界检测的装置,包括:Referring to Fig. 3, an embodiment of the present invention provides a device for frame boundary detection, including:
划分模块301,用于将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段;A division module 301, configured to divide the first number of sample points included in the stored reference preamble into a plurality of sample point segments, each sample point segment including the second number of sample points, and select one of the sample point segments As a reference sample segment;
运算模块302,用于将接收的信号对应的样点序列和参考样点段进行互相关运算得到接收的信号对应的样点序列包括的前第一个数个样点的第一互相关值;An operation module 302, configured to perform a cross-correlation operation on the sample point sequence corresponding to the received signal and the reference sample point segment to obtain the first cross-correlation value of the first few samples included in the sample point sequence corresponding to the received signal;
获取模块303,用于根据第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据该相关峰对应的样点获取帧的帧边界。The obtaining module 303 is configured to obtain the sample point corresponding to the correlation peak of the preamble symbol according to the first cross-correlation value of the first several samples, and obtain the frame boundary of the frame according to the sample point corresponding to the correlation peak.
其中,运算模块302包括:Wherein, the computing module 302 includes:
输入单元,用于将接收的信号对应的样点序列包括的第一个样点输入到第一接收窗口中,设置样点输入个数的初值,第一接收窗口的窗口长度为第二个数;The input unit is used to input the first sample point included in the sample point sequence corresponding to the received signal into the first receiving window, and set the initial value of the sample point input number, and the window length of the first receiving window is the second number;
第一运算单元,用于将参考样点段包括的样点与第一接收窗口中包括的样点进行互相关运算,得到当前输入到第一接收窗口的样点的第一互相关值;The first computing unit is configured to perform a cross-correlation operation on the samples included in the reference sample segment and the samples included in the first receiving window to obtain a first cross-correlation value of the samples currently input to the first receiving window;
判断单元,用于判断样点输入个数是否达到所述第一个数,如果没有达到,则移动第一接收窗口,以向第一接收窗口输入下一个样点,增加样点输入个数。The judging unit is used to judge whether the input number of sample points reaches the first number, and if not, move the first receiving window to input the next sample point into the first receiving window, and increase the input number of sample points.
其中,获取模块303包括:Wherein, the acquisition module 303 includes:
确定单元,用于根据第一个数个样点的第一互相关值确定出前导符号的峰值对应的样点;A determining unit, configured to determine the sample point corresponding to the peak value of the preamble symbol according to the first cross-correlation value of the first several sample points;
选取单元,用于选取该峰值对应的样点和该峰值对应的样点左右相邻的预设第一数值个样点;The selection unit is used to select the sample point corresponding to the peak value and the preset first value sample points adjacent to the left and right of the sample point corresponding to the peak value;
第二运算单元,用于将选取的每个样点与参考前导符号进行互相关运算得到选取的每个样点的第二互相关值;The second computing unit is configured to perform a cross-correlation operation on each selected sample point and the reference preamble symbol to obtain a second cross-correlation value of each selected sample point;
获取单元,用于根据选取的每个样点的第二互相关值获取前导符号的相关峰对应的样点,根据该相关峰对应的样点获取帧对应的帧边界。The acquiring unit is configured to acquire the sample point corresponding to the correlation peak of the preamble symbol according to the selected second cross-correlation value of each sample point, and acquire the frame boundary corresponding to the frame according to the sample point corresponding to the correlation peak.
其中,选取单元包括:Among them, the selected units include:
第一计算子单元,用于根据预设第一数值和峰值对应的样点的序号,按如下公式(1)计算出第一序号Num1,The first calculation subunit is used to calculate the first sequence number Num1 according to the following formula (1) according to the sequence number of the sample point corresponding to the preset first value and the peak value,
Num1=Number0-N1-1……(1);Num1=Number0-N1-1...(1);
其中,在公式(1)中,Number0为峰值对应的样点的序号,N1为预设第一数值;Wherein, in the formula (1), Number0 is the sequence number of the sample point corresponding to the peak value, and N1 is the preset first value;
第二计算子单元,用于根据预设第一数值和峰值对应的样点的序号,按如下公式(2)计算出第二序号Num2,The second calculation subunit is used to calculate the second serial number Num2 according to the following formula (2) according to the serial number of the sample point corresponding to the preset first value and the peak value,
Num2=Number0+N1……(2);Num2=Number0+N1...(2);
第一选取子单元,用于从该样点序列中选取序号为第一序号的样点至序号为第二序号的样点。The first selection subunit is used to select the sample point with the first serial number to the sample point with the second serial number from the sample point sequence.
其中,第二运算单元包括:Wherein, the second computing unit includes:
输入子单元,用于将选取的样点包括的第一个样点输入到第二接收窗口,第二接收窗口的窗口大小为第一个数;The input subunit is used to input the first sample point included in the selected sample point into the second receiving window, and the window size of the second receiving window is the first number;
运算子单元,用于将参考前导符号包括的样点和第二接收窗口包括的样点进行互相关运算得到当前输入到第二接收窗口的样点的第二互相关值;An operation subunit, configured to perform a cross-correlation operation on the samples included in the reference preamble and the samples included in the second receiving window to obtain a second cross-correlation value of the samples currently input to the second receiving window;
移动子单元,用于如果选取的样点还存在未输入到第二接收窗口中的样点,则移动第二接收窗口,以向第二接收窗口输入下一个样点。The moving subunit is configured to move the second receiving window so as to input a next sample point into the second receiving window if there are samples not input into the second receiving window in the selected sample point.
其中,获取单元包括:Among them, the acquisition unit includes:
第一确定子单元,用于对选取的每个样点的第二互相关值做绝对值运算得到选取的每个样点的第二绝对值,将第二绝对值最大的样点确定为前导符号的相关峰对应的样点;The first determining subunit is used to perform an absolute value operation on the second cross-correlation value of each selected sample point to obtain the second absolute value of each selected sample point, and determine the sample point with the largest second absolute value as the leader The sample point corresponding to the correlation peak of the symbol;
第二确定子单元,用于如果帧包括一个前导符号,则根据相关峰对应的样点确定出对应的前导符号,根据该前导符号确定帧的帧边界。The second determining subunit is configured to determine the corresponding preamble symbol according to the sample point corresponding to the correlation peak if the frame includes a preamble symbol, and determine the frame boundary of the frame according to the preamble symbol.
其中,获取单元还包括:Among them, the acquisition unit also includes:
第二选取子单元,用于根据前导符号的相关峰对应的样点和第一个数获取下一个前导符号的峰值对应的样点,选取峰值对应的样点和峰值对应的样点左右相邻的预设第一数值个样点;The second selection subunit is used to obtain the sample point corresponding to the peak value of the next preamble symbol according to the sample point corresponding to the correlation peak of the preamble symbol and the first number, and select the sample point corresponding to the peak value and the sample point corresponding to the peak value to be adjacent to the left and right The preset first value of sample points;
获取子单元,用于将选取的每个样点与参考前导符号包括的样点进行互相关运算得到选取的每个样点的第二互相关值,根据选取的每个样点的第二互相关值获取下一个前导符号的相关峰对应的样点;The acquisition subunit is used to perform a cross-correlation operation on each selected sample point and the sample points included in the reference preamble to obtain a second cross-correlation value of each selected sample point, according to the second cross-correlation value of each selected sample point The correlation value obtains the sample point corresponding to the correlation peak of the next leading symbol;
第四确定子单元,用于根据相关峰对应的样点确定出下一个前导符号,按上述方法直到确定出预设第二数值个前导符号,得到帧包括的预设第二数值个前导符号。The fourth determining subunit is configured to determine the next preamble symbol according to the sample point corresponding to the correlation peak, and follow the above method until a preset second number of preamble symbols are determined to obtain a preset second number of preamble symbols included in the frame.
在本发明实施例中,将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,每个样点段包括第二个数个样点,选择其中一个样点段作为参考样点段,将接收的信号对应的样点序列和参考样点段进行互相关运算得到该样点序列包括的前第一个数个样点的第一互相关值,根据第一个数个样点的第一互相关值获取前导符号的相关峰对应的样点,根据相关峰对应的样点获取帧的帧边界。由于将已存储的参考前导符号包括的第一个数个样点划分成多个样点段,再将其中的一个样点段与接收的样点序列进行互相关运算,如此在每次进行互相关运算时减少参与互相关运算的样点的个数,从而降低了互相关运算的复杂度和帧边界检测的功耗,以及提高了帧边界检测的效率。In the embodiment of the present invention, the first number of sample points included in the stored reference preamble symbols are divided into a plurality of sample point segments, each sample point segment includes the second number of sample points, and one of the sample points is selected Segment as a reference sample point segment, the sample point sequence corresponding to the received signal and the reference sample point segment are cross-correlated to obtain the first cross-correlation value of the first few samples included in the sample point sequence, according to the first A sample point corresponding to a correlation peak of the preamble symbol is obtained from the first cross-correlation value of several samples, and a frame boundary of the frame is obtained according to the sample point corresponding to the correlation peak. Since the first few samples included in the stored reference preamble are divided into multiple sample segments, and then one of the sample segments is cross-correlated with the received sample sequence, so that each time the cross-correlation During the correlation operation, the number of sample points participating in the cross-correlation operation is reduced, thereby reducing the complexity of the cross-correlation operation and the power consumption of the frame boundary detection, and improving the efficiency of the frame boundary detection.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210358259.4A CN102882645B (en) | 2012-09-24 | 2012-09-24 | Method and device for detecting frame boundary |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210358259.4A CN102882645B (en) | 2012-09-24 | 2012-09-24 | Method and device for detecting frame boundary |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102882645A CN102882645A (en) | 2013-01-16 |
CN102882645B true CN102882645B (en) | 2015-03-18 |
Family
ID=47483807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210358259.4A Active CN102882645B (en) | 2012-09-24 | 2012-09-24 | Method and device for detecting frame boundary |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102882645B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106559209B (en) * | 2015-09-21 | 2020-07-17 | 中兴通讯股份有限公司 | Frame synchronization method and device |
CN107425998B (en) * | 2017-04-13 | 2020-03-20 | 杭州申昊科技股份有限公司 | Communication link guarantee method based on industrial WIFI |
CN114362839B (en) * | 2021-12-07 | 2024-05-03 | 芯象半导体科技(北京)有限公司 | Signal detection method and device based on HPLC dual-mode wireless system and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1989724A (en) * | 2004-05-21 | 2007-06-27 | 英飞凌科技股份公司 | Device and method for preamble detection and frame synchronization in data packet transmission |
WO2007078094A1 (en) * | 2005-12-30 | 2007-07-12 | Posdata Co., Ltd. | Apparatus and method for detecting frame boundary in wireless communication system |
CN101132189A (en) * | 2006-07-24 | 2008-02-27 | 财团法人工业技术研究院 | Method and system for detecting length of protection interval |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8385373B2 (en) * | 2008-06-24 | 2013-02-26 | Adc Telecommunications, Inc. | Method and apparatus for frame detection in a communications system |
-
2012
- 2012-09-24 CN CN201210358259.4A patent/CN102882645B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1989724A (en) * | 2004-05-21 | 2007-06-27 | 英飞凌科技股份公司 | Device and method for preamble detection and frame synchronization in data packet transmission |
WO2007078094A1 (en) * | 2005-12-30 | 2007-07-12 | Posdata Co., Ltd. | Apparatus and method for detecting frame boundary in wireless communication system |
CN101132189A (en) * | 2006-07-24 | 2008-02-27 | 财团法人工业技术研究院 | Method and system for detecting length of protection interval |
Also Published As
Publication number | Publication date |
---|---|
CN102882645A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
FI3793285T3 (en) | Channel monitoring method and apparatus, terminal device, and network device | |
JP2016517217A5 (en) | ||
JP2009542092A5 (en) | ||
RU2016118758A (en) | METHOD AND DEVICE FOR DETERMINING SIMILARITY, AND ALSO TERMINAL | |
CN102882645B (en) | Method and device for detecting frame boundary | |
CN110691035A (en) | Method and device for determining network congestion, electronic equipment and storage medium | |
CN114208300A (en) | Method and device for receiving and sending random access response in two-step random access | |
US20140121983A1 (en) | System and method for aligning genome sequence | |
CN109918545B (en) | Method and device for extracting sensor data | |
CN101640790B (en) | Frame header identification method and system | |
CN106202017A (en) | Fill in the method and device of list | |
CN103338513B (en) | A kind of method and apparatus of terminal positioning | |
WO2016000372A1 (en) | Sequence detection method and device, and computer storage medium | |
WO2016000344A1 (en) | Multipath selection method and device, and storage medium | |
CN106850481B (en) | A kind of method and searcher of frame header position search | |
CN106411564B (en) | Apparatus and method for detecting Ethernet frame | |
CN108353433B (en) | Random Access for Wireless Communication | |
CN111133509A (en) | Stereo signal processing method and device | |
CN111144201B (en) | Signal pattern recognition method and device | |
JP2013058940A (en) | Wireless receiver | |
CN108241665A (en) | A kind of data processing method and client device | |
CN103701669A (en) | Service type detection method and device | |
RU2599532C1 (en) | Apparatus for evaluating efficiency of data exchange of communication system | |
JP5907225B2 (en) | Event estimation apparatus, event estimation method, and event estimation program | |
JP5826038B2 (en) | Radio wave separation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |