Frame synchronization method, device, electronic device and storage medium

By using sampling, windowing and correlation calculation methods in the frame synchronization algorithm, the first synchronization correlation index in the signal is determined and matched with the preset threshold value, the frame synchronization error detection and missed detection problems caused by inaccurate mean values ​​in the prior art are solved, the accuracy and anti-interference ability of frame synchronization are improved, and the storage space requirements and cost are reduced.

CN119652484BActive Publication Date: 2025-04-15SICHUAN HAIGE HENGTONG PRIVATE NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510177578.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-04-15
Estimated Expiration
2045-02-18

AI Technical Summary

Technical Problem

In the case of interference, the prior art has problems of frame synchronization error detection and miss detection due to inaccurate mean values, and has requirements for the memory of the chip.

Method used

By sampling the received signal at a preset sampling rate, multiple sets of sampled data are obtained, and the first synchronization correlation index is determined based on the data of multiple data blocks in the current data frame. This index is the ratio between the correlation value and the mean, and the mean is determined based on the correlation value of the previous data frame. When it is determined that the first synchronization correlation index matches the preset threshold, the corresponding data frame start position is used as the starting position of the frame synchronization.

Benefits of technology

It improves the accuracy and anti-interference ability of frame synchronization, reduces the demand for chip storage space, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652484B_ABST
    Figure CN119652484B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of power data transmission, and specifically to a frame synchronization method, device, electronic device and storage medium. The present application calculates the ratio of the correlation value corresponding to the current data to the average value of the sum of all previous correlation values ​​(i.e., the first synchronization correlation index) through a series of precise steps, and matches the first synchronization correlation index with a preset threshold to determine the starting position of the frame synchronization, which can not only improve the accuracy of frame synchronization, but also effectively deal with various interferences and noises in the signal reception process, thereby ensuring the stability and reliability of the communication system. The method also uses more comprehensive correlation value data to calculate the mean, improves the accuracy and stability of the mean, and thus enhances the anti-interference ability of the frame synchronization algorithm. Using this method in the present application, a data is input and processed to obtain a correlation index, without the need to store the correlation value, minimizing the chip storage space requirements and reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power data transmission, and in particular to a frame synchronization method, device, electronic device and storage medium. Background Art

[0002] Frame synchronization is a key step in the demodulation and decoding process of the EPDT (Electric Power Data Transmission) protocol. It relies on the preset training sequence in the protocol to identify and locate the starting position of the data frame. Only when frame synchronization is successfully achieved can subsequent time slot timing and data processing be performed. Therefore, the efficiency and accuracy of the frame synchronization algorithm are crucial to the stability of communication.

[0003] However, in practical applications, the power transmission environment is often complex and changeable, with various interference factors, such as electromagnetic noise and equipment failure. These interference factors will cause the quality of the received signal to deteriorate and the fluctuation of the correlation value to increase, which poses a severe challenge to the frame synchronization algorithm. In order to meet these challenges, researchers have proposed a variety of frame synchronization algorithms, one of which is a frame synchronization method based on peak-to-average ratio. This method identifies the training sequence by calculating the peak-to-average ratio of the correlation value, thereby achieving frame synchronization. However, this method still has some problems in practical applications.

[0004] Specifically, when determining the peak-to-average ratio, the frame synchronization method based on the disclosed peak-to-average ratio only obtains part of the correlation value data for calculation. This approach may perform well when the signal quality is good and the interference is small. However, in the case of small signals or interference, the fluctuation of the correlation value will increase significantly, resulting in inaccurate mean calculation. The inaccuracy of the mean will directly affect the judgment of the peak-to-average ratio, thereby increasing the possibility of false detection and missed detection, and reducing the accuracy and reliability of frame synchronization. In addition, the disclosed peak-to-average ratio method not only needs to store the correlation value and peak-to-average ratio of the frame data, but also selects the corresponding correlation values ​​on the left and right sides of the correlation value corresponding to the peak-to-average ratio in the correlation value sequence to calculate the mean, which will be limited when implemented on chips with limited memory resources, thereby increasing the cost.

[0005] It can be seen that in the prior art, in the presence of interference, there are problems of frame synchronization misdetection and missed detection due to inaccurate mean values, and there are requirements for the memory of the chip. Summary of the invention

[0006] The purpose of the present application is to provide a frame synchronization method, device, electronic device and storage medium to solve the problem of frame synchronization misdetection and missed detection caused by inaccurate mean in the presence of interference in the prior art.

[0007] In order to achieve the above purpose, the technical solution adopted in this application is as follows:

[0008] According to one aspect of an embodiment of the present application, a frame synchronization method is provided, comprising: sampling current data of a received signal at a preset sampling rate to obtain multiple groups of sampled data; for each group of sampled data, windowing according to a preset frame structure to obtain a current data frame corresponding to each group of sampled data, wherein the current data frame corresponding to each group of sampled data includes multiple data blocks for performing correlation operations; determining a first synchronization correlation index corresponding to the current data based on data of multiple data blocks in the current data frame, wherein the first synchronization correlation index refers to a ratio corresponding to the current data when the ratio between the correlation value and the mean is the largest among the synchronization correlation indexes corresponding to all the sampled data, the correlation value is obtained by correlation operation using the data of multiple data blocks in the current data frame, and the mean is determined based on the correlation value corresponding to the data frame before the current data frame corresponding to each group of sampling numbers; when it is determined that the first synchronization correlation index matches the preset threshold, the starting position of the data frame of the current data corresponding to the first synchronization correlation index is used as the starting position of the frame synchronization.

[0009] According to the above technical means, a series of precise steps are used to calculate the ratio of the correlation value corresponding to the current data to the average value of the sum of all previous correlation values ​​(i.e., the first synchronization correlation index), and the first synchronization correlation index is matched with the preset threshold to determine the starting position of the frame synchronization, which can not only improve the accuracy of the frame synchronization, but also effectively deal with various interferences and noises in the signal reception process, thereby ensuring the stability and reliability of the communication system. This method realizes the accurate identification of the starting position of the frame synchronization through precise sampling, windowing, correlation operation and threshold matching. At the same time, this method also uses more comprehensive correlation value data to calculate the mean, improves the accuracy and stability of the mean, solves the problem of frame synchronization misdetection and missed detection caused by inaccurate mean, and thus enhances the anti-interference ability of the frame synchronization algorithm.

[0010] Further, according to the data of multiple data blocks in the current data frame, the first synchronization correlation index corresponding to the received current data is determined, including: determining the correlation value corresponding to each group of sampled data according to the data of multiple data blocks in the current data frame; wherein the data of each data block is the first synchronization sequence data or the first training sequence data; determining the mean value corresponding to each group of sampled data, wherein if the data of the current data frame is the first data received, then the mean value corresponding to each group of sampled data is the correlation value corresponding to the current data frame, and if the data of the current data frame is not the first data received, then the mean value corresponding to each group of sampled data is determined according to the sum of the correlation values ​​corresponding to the target data frame before the current data frame, and the sum of the correlation values ​​corresponding to the target data frame is determined according to the relationship between the synchronization correlation index corresponding to the target data frame and a preset threshold; determining the ratio of the correlation value corresponding to each group of sampled data to the mean value as the synchronization correlation index corresponding to each group of sampled data; and taking the maximum synchronization correlation index among the synchronization correlation indices corresponding to all the sampled data as the first synchronization correlation index corresponding to the current data.

[0011] According to the above technical means, by using multiple data blocks (first synchronization sequence data or first training sequence data) in the data frame to calculate the correlation value of each group of sampled data, and intelligently determine the mean value of each group of sampled data (for the first data, directly use the correlation value corresponding to the current data frame, and for subsequent data, dynamically adjust based on the relationship between the previous synchronization correlation index and the preset threshold), and then calculate the synchronization correlation index of each group of sampled data, and finally select the largest synchronization correlation index among all sampled data as the first synchronization correlation index of the current data. This method not only significantly improves the accuracy and adaptability of frame synchronization, but also can effectively respond to signal changes, ensuring that the starting position of frame synchronization can be quickly and accurately identified in complex communication environments. Using this method, one data is input and processed to obtain a correlation index, without the need to store the correlation value, minimizing the chip storage space requirements and reducing costs.

[0012] Furthermore, the sum of the correlation values ​​corresponding to the target data frame is determined based on the relationship between the synchronization correlation index corresponding to the target data frame and a preset threshold, including: when the synchronization correlation index corresponding to the target data frame is less than the preset threshold, the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the correlation value corresponding to the target data frame, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame; when the synchronization correlation index corresponding to the target data frame is greater than or equal to the preset threshold, the sum of the correlation values ​​accumulated by the data frames before the target data frame is directly determined as the sum of the correlation values ​​corresponding to the target data frame, or the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the preset saturation value, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame.

[0013] According to the above-mentioned technical means, by comparing the synchronization correlation index of the target data frame with the preset threshold, the calculation method of the sum of correlation values ​​corresponding to the target data frame is flexibly adjusted. When the synchronization is poor, the correlation value of the current data frame is included to strengthen the evaluation, and when the synchronization is good, the growth of the sum of correlation values ​​is maintained or limited, effectively avoiding the evaluation deviation caused by excessive accumulation, thereby improving the accuracy and adaptability of the data synchronization status evaluation.

[0014] Furthermore, the mean corresponding to each group of sampled data is determined based on the sum of correlation values ​​corresponding to the target data frame before the current data frame, including: obtaining the sum of correlation values ​​corresponding to the target data frame, and obtaining the number of all data involved in calculating the sum of correlation values ​​corresponding to the target data frame; determining the ratio of the sum of correlation values ​​corresponding to the target data frame to the number of all data as the mean corresponding to each group of sampled data.

[0015] According to the above technical means, the mean of each group of sampling data is determined by calculating the correlation value corresponding to the target data frame and the ratio to the number of data involved in the calculation. This method can more accurately reflect the overall synchronization level of the data and avoid the mean deviation caused by different data amounts, thereby improving the accuracy and reliability of data synchronization evaluation.

[0016] Further, determining the correlation value corresponding to each group of sampled data according to the data of multiple data blocks in the current data frame includes: acquiring data of multiple data blocks of a preset local reference sequence, wherein the data of each data block in the local reference sequence is second synchronization sequence data or second training sequence data; performing a local polarization operation on the second synchronization sequence data in the local reference sequence to obtain third synchronization sequence data; performing a local polarization operation on the second training sequence data in the local reference sequence to obtain third training sequence data; aligning the third synchronization sequence data with the first synchronization sequence data in the current data frame bit by bit; aligning the third training sequence data with the first training sequence data in the current data frame bit by bit; multiplying the aligned data bit by bit, taking the absolute values ​​and then adding them to obtain the correlation value corresponding to each group of sampled data.

[0017] According to the above technical means, by obtaining a preset local reference sequence and performing local polarization operations on the second synchronization sequence data and the second training sequence data therein, optimized third synchronization sequence data and third training sequence data are obtained. Subsequently, these optimized sequence data are aligned with the first synchronization sequence data and the first training sequence data in the current data frame, and the correlation value corresponding to each group of sampled data is accurately calculated by multiplying the corresponding bits, taking the absolute value and then adding them. This technical method not only significantly improves the accuracy and efficiency of frame synchronization, but also enhances the matching and anti-interference ability of sequence data through local polarization operations, so that stable and reliable frame synchronization recognition can be achieved even in complex communication environments.

[0018] Further, when it is determined that the first synchronization correlation index does not match the preset threshold, it includes: acquiring the next target data after the current data; sampling the target data according to a preset sampling rate to obtain multiple groups of sampled data; for each group of sampled data, opening a window according to a preset frame structure to obtain a data frame corresponding to each group of sampled data; determining a second synchronization correlation index corresponding to the target data based on data of multiple data blocks in the data frame; when it is determined that the second synchronization correlation index matches the preset threshold, using the starting position of the data frame of the target data corresponding to the second synchronization correlation index as the starting position of the frame synchronization.

[0019] According to the above technical means, when the first synchronization correlation index fails to meet the preset threshold requirement, the system can automatically acquire and process the next target data after the current data, sample at a preset sampling rate, and perform window analysis according to a preset frame structure to calculate the second synchronization correlation index of the target data. If the index matches the preset threshold, the starting position of the frame synchronization is accurately identified and set. This process not only enhances the accuracy and flexibility of frame synchronization, but also ensures that even if the first attempt fails, the frame synchronization point can be quickly and accurately found through iterative processing, thereby improving the stability and efficiency of the communication system.

[0020] Furthermore, before sampling the current data of the received signal according to the preset sampling rate to obtain multiple groups of sampled data, it includes: determining whether the received signal is valid based on the RSSI value of the received signal; if the RSSI value is greater than or equal to the preset signal threshold, determining that the received signal is valid, otherwise determining that the received signal is invalid.

[0021] According to the above technical means, by monitoring the RSSI (received signal strength indication) value of the received signal and comparing it with the preset signal threshold, it is possible to pre-judge whether the received signal is valid. This pre-processing mechanism effectively prevents invalid signals from entering the subsequent processing flow, reduces unnecessary calculations and resource consumption, and improves the efficiency and accuracy of signal processing, laying a solid foundation for subsequent processing steps such as sampling and frame synchronization, and ensuring the stability and reliability of the communication system.

[0022] According to another aspect of the embodiment of the present application, a frame synchronization device is also provided, including: a data sampling module, which is used to sample the current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data; a data selection module, which is used to open a window for each group of sampled data according to a preset frame structure to obtain a current data frame corresponding to each group of sampled data, wherein the current data frame corresponding to each group of sampled data includes multiple data blocks for performing correlation operations; a synchronization correlation index determination module, which is used to determine a first synchronization correlation index corresponding to the current data according to the data of multiple data blocks in the current data frame, wherein the first synchronization correlation index refers to the ratio corresponding to the current data when the ratio between the correlation value and the mean value is the largest among the synchronization correlation indexes corresponding to all the sampled data, the correlation value is obtained by correlation operation using the data of multiple data blocks in the current data frame, and the mean value is determined according to the correlation value corresponding to the data frame before the current data frame corresponding to each group of sampling numbers; a frame synchronization position determination module, which is used to use the data frame starting position of the current data corresponding to the first synchronization correlation index as the starting position of frame synchronization when it is determined that the first synchronization correlation index matches the preset threshold.

[0023] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein the memory is used to store a computer program; and the processor is used to execute the steps of the frame synchronization method in any of the above embodiments by running the computer program stored in the memory.

[0024] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the frame synchronization method steps in any of the above embodiments when running.

[0025] Beneficial effects of this application:

[0026] The present application calculates the ratio of the correlation value corresponding to the current data to the average value of the sum of all previous correlation values ​​(i.e., the first synchronization correlation index) through a series of fine steps, and matches the first synchronization correlation index with the preset threshold to determine the starting position of the frame synchronization, which can not only improve the accuracy of the frame synchronization, but also effectively deal with various interferences and noises in the signal reception process, thereby ensuring the stability and reliability of the communication system. The method realizes the accurate identification of the starting position of the frame synchronization through fine sampling, windowing, correlation operation and threshold matching. At the same time, the method also uses more comprehensive correlation value data to calculate the mean, improves the accuracy and stability of the mean, solves the problem of frame synchronization misdetection and missed detection caused by inaccurate mean, thereby enhancing the anti-interference ability of the frame synchronization algorithm. Using this method in the present application, even in the presence of interference, the starting position of the data frame can be accurately identified, fast and effective frame synchronization can be achieved, and the stability and reliability of communication can be improved. Using this method, one data is input and processed to obtain a correlation index, without the need to store the correlation value, minimizing the chip storage space requirements and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0029] Figure 1 It is a schematic diagram of a hardware environment of an optional frame synchronization method provided in an embodiment of the present application;

[0030] Figure 2 It is a schematic diagram of the peak-to-average ratio of 25kHz carrier-124dbm data determined by the disclosed frame synchronization method of the peak-to-average ratio provided in the embodiment of the present application;

[0031] Figure 3 It is a flowchart of an optional frame synchronization method provided in an embodiment of the present application;

[0032] Figure 4 It is a schematic diagram of the TDMA frame timing of a 25kHz carrier provided in an embodiment of the present application;

[0033] Figure 5 is a schematic diagram of the time slot structure of a 25kHz carrier provided in an embodiment of the present application;

[0034] Figure 6 It is a schematic diagram of a preset frame structure when windowing corresponding to a 25kHz carrier provided in an embodiment of the present application;

[0035] Figure 7 This is a schematic diagram of the synchronization correlation index of 25kHz carrier-124dbm data provided in an embodiment of the present application;

[0036] Figure 8 It is a structural block diagram of an optional frame synchronization device provided in an embodiment of the present application;

[0037] Fig. 9 is a structural block diagram of an optional electronic device provided in an embodiment of the present application;

[0038] Fig.10 This is a schematic diagram of synchronization correlation index of 50kHz carrier-115dbm data provided in an embodiment of the present application;

[0039] Fig.11 It is a schematic diagram of the synchronization correlation index of 100kHz carrier-109dbm data provided in an embodiment of the present application.

[0040] Reference numerals:

[0041] 102-terminal, 104-server, 800-frame synchronization device, 801-data sampling module, 802-data selection module, 803-synchronization correlation index determination module, 804-frame synchronization position determination module, 1501-processor, 1502-communication interface, 1503-memory, 1504-communication bus. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] According to one aspect of an embodiment of the present application, a frame synchronization method is provided. Optionally, in this embodiment, the frame synchronization method can be applied to a hardware environment consisting of a terminal and a server. The server is connected to the terminal via a network, and can be used to provide services for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server.

[0045] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal may not be limited to a PC, a mobile phone, a tablet computer, etc.

[0046] The frame synchronization method of the embodiment of the present application can be executed by a server, a terminal, or a server and a terminal together. The terminal can also execute the frame synchronization method of the embodiment of the present application by a client installed thereon.

[0047] Taking the frame synchronization method in this embodiment executed by the terminal as an example, see Figure 1 , Figure 1 is a schematic diagram of a hardware environment of an optional frame synchronization method provided in an embodiment of the present application, such as Figure 1 As shown, the hardware environment of the frame synchronization method includes: a terminal 102, and a server 104 connected to the terminal 102 via a network. The terminal 102 is used to execute the frame synchronization method of the embodiment of the present application and determine the starting position of the frame synchronization; the server 104 is used to store the data used in the execution of the method.

[0048] The frame synchronization method in this embodiment can be applied to the scenario of digital signal processing in power transmission. In practical applications, the power transmission environment is often complex and changeable, and there are various interference factors, such as electromagnetic noise, equipment failure, etc. These interference factors will cause the quality of the received signal to deteriorate and the fluctuation of the correlation value to increase, which brings severe challenges to the frame synchronization algorithm. In order to meet these challenges, researchers have proposed a variety of frame synchronization algorithms, one of which is a frame synchronization method based on peak-to-average ratio. This method identifies the training sequence by calculating the peak-to-average ratio of the correlation value, thereby achieving frame synchronization. However, this method still has some problems in practical applications.

[0049] Specifically, the frame synchronization method based on the publicly available peak-to-average ratio only obtains part of the correlation value data for calculation when determining the peak-to-average ratio. This approach may work well when the signal quality is good and the interference is small. However, in the case of small signals or interference, the fluctuation of the correlation value will increase significantly, resulting in inaccurate mean calculation. The inaccuracy of the mean will directly affect the judgment of the peak-to-average ratio, thereby increasing the possibility of false detection and missed detection, and reducing the accuracy and reliability of frame synchronization. Figure 2 As shown in the figure, a set of continuous data is used to check the peak-to-average ratio (PAPR) value when the signal is small. Figure 2 It can be seen that there are two maximum values ​​at the frame synchronization of the first frame ( Figure 2 The gray marked area in the middle) cannot distinguish the starting position of the frame, and the maximum value of the peak-to-average ratio is also significantly different from other frames, resulting in the inability to accurately determine the threshold. This leads to the inability to decode normally, and then frame loss and communication failure. At the same time, the publicly available peak-to-average ratio method requires storage space to store the peak-to-average ratio of the frame data, and then calculate the average value of the corresponding points on the left and right. This has limitations when implemented in chips with limited memory, increasing costs.

[0050] To solve the above problem, this embodiment provides a frame synchronization method running on the above terminal, please refer to Figure 3 , Figure 3 is a flow chart of an optional frame synchronization method provided in an embodiment of the present application, such as Figure 3 As shown, the frame synchronization method of the embodiment of the present application specifically includes the following steps:

[0051] Step S301, sampling the current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data;

[0052] Step S302, for each set of sampled data, windowing is performed according to a preset frame structure to obtain a current data frame corresponding to each set of sampled data, wherein the current data frame corresponding to each set of sampled data includes a plurality of data blocks for performing correlation operations;

[0053] Step S303, determining a first synchronization correlation index corresponding to the current data according to the data of the multiple data blocks in the current data frame, wherein the first synchronization correlation index refers to a ratio corresponding to the current data when the ratio between the correlation value and the mean value is the largest among the synchronization correlation indexes corresponding to all the sampled data, the correlation value is obtained by a correlation operation using the data of the multiple data blocks in the current data frame, and the mean value is determined according to the correlation value corresponding to the data frame before the current data frame corresponding to each group of sampling numbers;

[0054] Step S304: when it is determined that the first synchronization correlation index matches the preset threshold, the data frame start position of the current data corresponding to the first synchronization correlation index is used as the start position of the frame synchronization.

[0055] Through the above steps S301 to S304, a series of fine steps are used to calculate the ratio of the correlation value corresponding to the current data to the average value of the sum of all previous correlation values ​​(i.e., the first synchronization correlation index), and the first synchronization correlation index is matched with the preset threshold to determine the starting position of the frame synchronization, which can not only improve the accuracy of the frame synchronization, but also effectively deal with various interferences and noises in the signal reception process, thereby ensuring the stability and reliability of the communication system. The method realizes the accurate identification of the starting position of the frame synchronization through fine sampling, windowing, correlation operation and threshold matching. At the same time, the method also uses more comprehensive correlation value data to calculate the mean, improves the accuracy and stability of the mean, solves the problem of frame synchronization misdetection and missed detection caused by inaccurate mean, thereby enhancing the anti-interference ability of the frame synchronization algorithm.

[0056] Combine the following Figure 3 The frame synchronization method in the embodiment of the present application is explained.

[0057] In the technical solution of step S301, current data of the received signal is sampled according to a preset sampling rate to obtain multiple groups of sampled data.

[0058] In this embodiment, multiple groups of sampled data are obtained by continuously sampling the current data of the received signal, wherein the current data is sampled according to a preset sampling rate during sampling, and each group of sampled data includes multiple data.

[0059] The sampling rate SampleRate is an important parameter in digital signal processing. It determines the number of samples per unit time, which in turn affects the accuracy of the digital signal's representation of the original signal. The higher the sampling rate, the better the signal quality, the more accurate the representation of the signal waveform, but the larger the storage space occupied. In digital signal processing applications, choosing a suitable sampling rate is crucial to ensuring signal quality and reducing storage space usage. In specific practice, the sampling rate SampleRate can be set according to actual conditions. For example, if the sampling rate SampleRate is 4Hz, the original data is sampled 4 times per second.

[0060] In specific practice, since different carriers have different corresponding time slots, the number of each group of sampled data obtained by sampling is also different. As an optional specific implementation, the number of each group of sampled data can be set to the number of valid data in a time slot of each carrier. It can be understood that by sampling the current data, multiple groups of sampled data are obtained, and each group of sampled data has a preset number of data.

[0061] The following uses a 25kHz carrier as an example to illustrate the above sampling steps. Figure 4 , Figure 4 Schematic diagram of the TDMA frame timing of a 25kHz carrier provided in an embodiment of the present application, such as Figure 4 As shown, the length of each TDMA frame in a 25kHz carrier is 60ms. The TDMA frame consists of two 30ms time slots, and the effective data center of each time slot is the center position of the effective symbol in the general burst. For the structure of each time slot, please refer to Figure 5 , Figure 5 Schematic diagram of the time slot structure of the 25kHz carrier provided in the embodiment of the present application. Figure 5 As shown, each time slot contains 6 payload areas of 99 symbols, 3 synchronization sequence data SYNC areas of 16 symbols, 4 training sequence data TSC areas of 16 symbols, 2 tail bit Tb areas of 3 symbols and 2 protection GP areas. The 3 synchronization areas constitute 1 synchronization word, and the 4 training sequences are divided into 2 groups, each containing 32 symbols, which are located on both sides of the payload at both ends of the time slot. The total duration of each time slot is 30ms, of which there are 712 valid symbols, and the duration corresponding to the valid symbols is 28.48ms. If the sampling rate SampleRate is 4, then after sampling the 25kHz carrier through the above steps, 4 groups of sampled data are obtained, and each group of sampled data includes 712 data.

[0062] It can be understood that sampling the original data through the sampling rate can accurately represent the original signal, improve the signal quality, avoid aliasing, facilitate subsequent processing, and have flexibility and scalability.

[0063] In the technical solution of step S302, for each group of sampled data, a window is opened according to a preset frame structure to obtain a current data frame corresponding to each group of sampled data.

[0064] In the scheme of the present application, after acquiring the sampled data, not all the sampled data is used for correlation calculation, but part of the data is taken for correlation calculation. In the present application, the data for correlation calculation is acquired by windowing according to the preset frame structure. The preset frame structure is the same as the structure corresponding to the valid data in the structure of each time slot in the carrier. The current data frame is composed of multiple data blocks, each data block includes multiple data, and the data in each data block is the first synchronization sequence data SYNC or the first training sequence data TSC.

[0065] Taking the above 25kHz carrier as an example, the preset frame structure used when opening the window can be found in Figure 6 , Figure 6 25kHz carrier provided in the embodiment of the present application corresponding to the preset frame structure when the window is opened, such as Figure 6 As shown, the preset frame structure includes 712 valid data when the window is opened, and the first synchronization sequence data SYNC and the first training sequence data TSC participate in the relevant operation in this application. It can be seen from the preset frame structure that the data frame includes multiple first synchronization sequence data SYNC and multiple first training sequence data TSC data blocks, and each data block includes a certain amount of data. Taking the above-mentioned 25kHz carrier as an example, after opening the window according to the preset frame structure, a total of 3 first synchronization sequence data SYNC and 4 first training sequence data TSC are obtained, each sequence data is a data block, and the number of each sequence data is the number of each data block.

[0066] It can be understood that obtaining data of multiple synchronization sequences and training sequences by windowing according to a preset frame structure can help to perform frame synchronization more accurately later and can better cope with frequency deviation and noise interference.

[0067] In the technical solution of step S303, the first synchronous correlation index corresponding to the current data is determined according to the data of the multiple data blocks in the current data frame. The first synchronous correlation index refers to the ratio corresponding to the current data when the ratio between the correlation value and the mean value is the largest among the synchronous correlation indexes corresponding to all the sampled data; the correlation value is obtained by correlation operation using the data of the multiple data blocks in the current data frame; the mean value is determined according to the correlation value corresponding to the data frame before the current data frame corresponding to each group of sampling numbers.

[0068] As an optional embodiment, determining the first synchronization correlation index corresponding to the received current data according to the data of multiple data blocks in the current data frame includes: determining the correlation value corresponding to each group of sampled data according to the data of multiple data blocks in the current data frame; wherein the data of each data block is the first synchronization sequence data or the first training sequence data; determining the mean value corresponding to each group of sampled data, wherein if the data of the current data frame is the first data received, then the mean value corresponding to each group of sampled data is the correlation value corresponding to the current data frame, and if the data of the current data frame is not the first data received, then the mean value corresponding to each group of sampled data is determined according to the sum of the correlation values ​​corresponding to the target data frame before the current data frame, and the sum of the correlation values ​​corresponding to the target data frame is determined according to the relationship between the synchronization correlation index corresponding to the target data frame and a preset threshold; determining the ratio of the correlation value corresponding to each group of sampled data to the mean value as the synchronization correlation index corresponding to each group of sampled data; and taking the maximum synchronization correlation index among the synchronization correlation indexes corresponding to all the sampled data as the first synchronization correlation index corresponding to the current data.

[0069] In specific practice, when determining the first synchronous correlation index corresponding to the current data, first determine the correlation value CorrBase and the average value Average of the correlation value corresponding to the current data frame of each group of sampled data after the current data is sampled; then determine the ratio of the correlation value CorrBase and the average value Average as the synchronous correlation index SCI (Synchronous Correlation Index) corresponding to each group of sampled data. The calculation process of the above synchronous correlation index SCI can be summarized as the following formula: SCI=CorrBase / Average; finally, select the maximum synchronous correlation index from the synchronous correlation index SCI corresponding to the current data frame of all sampled data as the first synchronous correlation index. In this embodiment, the correlation value CorrBase is a correlation value obtained by correlation operation using data of multiple data blocks in the current data frame.

[0070] It can be understood that by using multiple data blocks (first synchronization sequence data or first training sequence data) in the current data frame to calculate the correlation value of each group of sampled data, and intelligently determine the mean value of each group of sampled data (for the first data, directly use the correlation value corresponding to the current data frame, and for subsequent data, dynamically adjust based on the relationship between the previous synchronization correlation index and the preset threshold), and then calculate the synchronization correlation index of each group of sampled data, and finally select the largest synchronization correlation index among all sampled data as the first synchronization correlation index of the current data. This method not only significantly improves the accuracy and adaptability of frame synchronization, but also can effectively respond to signal changes, ensuring that the starting position of frame synchronization can be quickly and accurately identified in complex communication environments. Using this method, one data is input and processed to obtain a correlation index, without the need to store the correlation value, minimizing the chip storage space requirements and reducing costs.

[0071] As an optional embodiment, determining the correlation value corresponding to each group of sampled data according to the data of multiple data blocks in the current data frame includes: acquiring data of multiple data blocks of a preset local reference sequence, wherein the data of each data block in the local reference sequence is second synchronization sequence data or second training sequence data; performing a local polarization operation on the second synchronization sequence data in the local reference sequence to obtain third synchronization sequence data; performing a local polarization operation on the second training sequence data in the local reference sequence to obtain third training sequence data; bit-aligning the third synchronization sequence data with the first synchronization sequence data in the current data frame; bit-aligning the third training sequence data with the first training sequence data in the current data frame; bit-multiplying the aligned data correspondingly, taking the absolute values ​​and then adding them, to obtain the correlation value corresponding to each group of sampled data.

[0072] In specific practice, the local reference sequence is also composed of multiple corresponding data blocks, and the data of each data block of the local reference sequence is the second synchronization sequence data SYNC´ or the second training sequence data TSC´. First, the second synchronization sequence data SYNC´ and the second training sequence data TSC´ in the local reference sequence are locally polarized to obtain the third synchronization sequence data SYNC_LOCAL and the third training sequence data TSC_LOCAL; then the locally polarized third synchronization sequence SYNC_LOCAL and the third training sequence TSC_LOCAL are multiplied with the data at the corresponding positions of the first synchronization sequence data SYNC and the first training sequence data TSC in the current data frame, and the absolute values ​​are taken and then added to obtain the correlation value. The "corresponding position" here refers to the position occupied by each data of the first synchronization sequence data SYNC and the first training sequence data TSC in the data frame.

[0073] It can be understood that by obtaining a preset local reference sequence and performing local polarization operations on the second synchronization sequence data and the second training sequence data therein, optimized third synchronization sequence data and third training sequence data are obtained. Subsequently, these optimized sequence data are aligned with the first synchronization sequence data and the first training sequence data in the current data frame of each group of sampled data, and the correlation value corresponding to each group of sampled data is accurately calculated by multiplying the corresponding bits, taking the absolute value and then adding them. This technical method not only significantly improves the accuracy and efficiency of frame synchronization, but also enhances the matching and anti-interference ability of sequence data through local polarization operations, so that stable and reliable frame synchronization recognition can be achieved in complex communication environments.

[0074] As an optional embodiment, performing a local polarization operation on the second synchronization sequence data in the local reference sequence to obtain third synchronization sequence data; performing a local polarization operation on the second training sequence data in the local reference sequence to obtain third training sequence data, including: using a 1-2*local conversion rule to convert each bit of data in the second synchronization sequence data to obtain corresponding third synchronization sequence data, wherein local represents each bit of data to be converted in the local reference sequence; using a 1-2*local conversion rule to convert each bit of data in the second training sequence data to obtain corresponding third training sequence data.

[0075] In this embodiment, the local polarization operation actually changes the data in the second synchronization sequence data SYNC' and the second training sequence data TSC' in the local reference sequence from 0 to 1 or from 1 to -1, and obtains the corresponding third synchronization sequence data SYNC_LOCAL and third training sequence data TSC_LOCAL after conversion.

[0076] In this embodiment, the conversion rule of "1-2*local" is used to convert the data at the corresponding positions of the second synchronization sequence data SYNC' and the second training sequence data TSC', where local is a Boolean value (i.e., 0 or 1). Then this expression can be interpreted as: when local is 0, 1-2*0=1, which is equivalent to changing "0 to 1"; when local is 1, 1-2*1=-1, which is equivalent to changing "1 to -1". For example, the data included in the second synchronization sequence data SYNC' and the second training sequence data TSC' in the local reference sequence are as follows:

[0077] SYNC´

[48] =

[0078] {

[0079] 1,0,0,0,1,0,0,1,1,1,0,1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,1,1,1,0

[0080] };

[0081] TSC´

[32] =

[0082] {

[0083] 0,1,0,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,0

[0084] }.

[0085] Using the conversion rule of "1-2*local", the third synchronization sequence data SYNC_LOCAL and the third training sequence data TSC_LOCAL obtained after conversion include the following data:

[0086] SYNC_LOCAL

[48] =

[0087] {

[0088] -1,1,1,1,-1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,-1,-1,1,1,-1,-1,-1,1

[0089] };

[0090] TSC_LOCAL

[32] =

[0091] {

[0092] 1,-1,1,-1,-1,1,1,1,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,-1,1,-1,1,-1,1,1,-1,1

[0093] }.

[0094] It can be understood that through this specific conversion rule, the polarization direction of the local reference sequence can be clearly controlled, so as to better match or distinguish different signals, help to better identify and synchronize the start and end positions of the frame, reduce the possibility of missynchronization, and improve the accuracy and reliability of communication. Moreover, the conversion rule is implemented using simple mathematical operations, which helps to simplify the calculation process and improve processing efficiency.

[0095] In specific practice, when determining the mean corresponding to each group of sampled data, if the data of the current data frame is the first data received, then the mean corresponding to each group of sampled data is the correlation value corresponding to the current data frame; if the data of the current data frame is not the first data received, then the mean corresponding to each group of sampled data is determined based on the sum of the correlation values ​​corresponding to the target data frame before the current data frame, and the sum of the correlation values ​​corresponding to the target data frame is determined based on the relationship between the synchronization correlation index corresponding to the target data frame and the preset threshold.

[0096] As an optional embodiment, the sum of the correlation values ​​corresponding to the target data frame is determined based on the relationship between the synchronization correlation index corresponding to the target data frame and a preset threshold, including: when the synchronization correlation index corresponding to the target data frame is less than the preset threshold, the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the correlation value corresponding to the target data, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame; when the synchronization correlation index corresponding to the target data frame is greater than or equal to the preset threshold, the sum of the correlation values ​​accumulated by the data frames before the target data frame is directly determined as the sum of the correlation values ​​corresponding to the target data frame, or the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the preset saturation value, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame.

[0097] In specific practice, the target data frame is a data frame in the historical data frame corresponding to each group of sampling data of the current data, and specifically, the target data frame is the first historical data frame before the current data frame. The relationship between the synchronization correlation index corresponding to the target data frame and the preset threshold value is divided into two cases. The first case is the case where the synchronization correlation index corresponding to the target data frame is less than the preset threshold value, which means that the current signal correlation degree has not reached the peak value, so the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the correlation value corresponding to the target data frame, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame; the second case is the case where the synchronization correlation index corresponding to the target data frame is greater than or equal to the preset threshold value, which means that the current signal correlation degree has reached the peak value, and the correlation value does not participate in the mean calculation, or the mean calculation is performed according to a certain saturation value, so the sum of the correlation values ​​accumulated by the data frames before the target data frame is directly determined as the sum of the correlation values ​​corresponding to the target data frame, or the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the preset saturation value, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame. In specific practice, the preset threshold is set according to the actual bandwidth value, for example, the preset threshold is 1.5. The sum of the correlation values ​​accumulated by the data frames before the target data frame may be just the cumulative sum of the correlation values ​​corresponding to the data frames before the target data frame, or the sum of the correlation values ​​accumulated by the data frames before the target data frame may be the cumulative sum of the correlation values ​​corresponding to the data frames before the target data frame and the preset saturation value.

[0098] In specific practice, after processing the data of a data frame, the next data frame corresponding to each set of sampled data is obtained according to the preset frame length and the preset frame shift, wherein each data frame corresponds to the starting position of a data frame. It should be noted that the preset frame length is the length of the valid data in a time slot corresponding to each carrier, the data of the preset frame length is called a data frame, and the preset frame shift is the step length of each movement when dividing the data frame. The frame shift can be set according to the specific situation. In this embodiment, the frame shift is 1, that is, 1 data is moved each time.

[0099] Taking the above-mentioned 25kHz carrier as an example, starting from the starting position of the sampled data, after processing the data of each data frame, the sampled data is divided backward according to 712 (preset frame length) and 1 (preset frame moving step) to obtain the next data frame.

[0100] It can be understood that by flexibly adjusting the calculation method of the sum of the correlation values ​​corresponding to the target data frame according to the comparison result of the synchronization correlation index of the target data frame and the preset threshold, the correlation value of the current data frame is included to strengthen the evaluation when the synchronization is poor, and the growth of the sum of the correlation values ​​is maintained or limited when the synchronization is good, which effectively avoids the evaluation deviation caused by excessive accumulation, thereby improving the accuracy and adaptability of the data synchronization status evaluation. Using this method, one data is input and processed to obtain a correlation index, without the need to store the correlation value, minimizing the chip storage space requirements and reducing costs.

[0101] As an optional embodiment, the mean corresponding to each group of sampled data is determined based on the sum of correlation values ​​corresponding to the target data frame before the current data frame, including: obtaining the sum of correlation values ​​corresponding to the target data frame, and obtaining the number of all data involved in calculating the sum of correlation values ​​corresponding to the target data frame; determining the ratio of the sum of correlation values ​​corresponding to the target data frame to the number of all data as the mean corresponding to each group of sampled data.

[0102] It can be understood that by calculating the correlation value corresponding to the target data frame and the ratio to the number of data involved in the calculation, the mean of each group of sampling data is determined. This method can more accurately reflect the overall synchronization level of the data and avoid the mean deviation caused by different data amounts, thereby improving the accuracy and reliability of data synchronization evaluation.

[0103] In specific practice, assuming that the preset threshold is 1.5, then in the first case: the synchronization correlation index corresponding to the target data frame is less than the preset threshold, that is, the synchronization correlation index corresponding to the target data frame is less than 1.5, the cumulative sum of all correlation values ​​corresponding to the data frames before the target data frame is added to the correlation value corresponding to the target data frame to obtain the sum of the correlation values ​​corresponding to the target data frame, and the ratio of the sum of the correlation values ​​corresponding to the target data frame to the number of all data involved in the calculation is determined as the mean value corresponding to each group of sampled data, which can be expressed according to the following procedure:

[0104] {if(SCI<1.5)

[0105] sum=sum+CorrBase;

[0106] num=num+1;

[0107] Average=sum / num;

[0108] end},

[0109] Among them, SCI represents the synchronization correlation index corresponding to the target data frame, CorrBase represents the correlation value corresponding to the target data frame, sum represents the cumulative sum of all correlation values ​​corresponding to the data frames before the target data frame, num represents the number of all data involved in the calculation, and Average represents the mean value corresponding to each group of sampled data.

[0110] In this embodiment, only the cumulative sum of all relevant values ​​corresponding to the target data frame and the number of all data involved in the calculation are stored each time, and the mean is calculated each time based on the cumulative sum of all relevant values ​​corresponding to the target data frame and the number of all data involved in the calculation. This method is used to input one data and process one data to obtain a correlation index, without the need to store the correlation value, thereby minimizing the chip storage space requirement and reducing costs.

[0111] In the technical solution of step S304, when it is determined that the first synchronization correlation index matches the preset threshold, the data frame start position of the current data corresponding to the first synchronization correlation index is used as the start position of the frame synchronization.

[0112] In specific practice, a threshold is preset to detect the first synchronization correlation index. When the first synchronization correlation index is greater than the threshold, it is considered that the frame synchronization mark is detected.

[0113] In the frame synchronization process, by reasonably setting the threshold of the first synchronization correlation index, the trigger condition of frame synchronization can be adjusted according to the actual situation of the signal. This helps to better utilize system resources and improve the overall performance of the system. In order to prevent the data consistent with the synchronization code from causing misjudgment, as well as the influence of noise and interference, in this embodiment, the threshold of the first synchronization correlation index is determined by calculating the first synchronization correlation index based on the measured data.

[0114] It can be understood that the use of the first synchronization correlation index can not only quickly and effectively achieve frame synchronization, but also effectively resist the influence of noise and interference, thereby improving the reliability of wireless communication.

[0115] As an optional embodiment, when it is determined that the first synchronization correlation index does not match the preset threshold, the next target data after the current data is obtained; the target data is sampled at a preset sampling rate to obtain multiple groups of sampled data; for each group of sampled data, a window is opened according to a preset frame structure to obtain a data frame corresponding to each group of sampled data; based on the data of multiple data blocks in the data frame, a second synchronization correlation index corresponding to the target data is determined; when it is determined that the second synchronization correlation index matches the preset threshold, the starting position of the data frame of the target data corresponding to the second synchronization correlation index is used as the starting position of the frame synchronization.

[0116] It is understandable that when the first synchronization correlation index fails to meet the preset threshold requirement, the system can automatically acquire and process the next data after the current data, sample at a preset sampling rate, and perform window analysis according to a preset frame structure to calculate the second synchronization correlation index of the next data. If the index matches the preset threshold, the starting position of the frame synchronization is accurately identified and set. This process not only enhances the accuracy and flexibility of frame synchronization, but also ensures that even if the first attempt fails, the frame synchronization point can be quickly and accurately found through iterative processing, thereby improving the stability and efficiency of the communication system.

[0117] As an optional embodiment, before sampling the current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data, it includes: determining whether the received signal is valid based on the RSSI value of the received signal; if the RSSI value is greater than or equal to the preset signal threshold, determining that the received signal is valid, otherwise determining that the received signal is invalid.

[0118] It is understandable that by monitoring the RSSI (received signal strength indication) value of the received signal and comparing it with the preset signal threshold, it is possible to pre-judge whether the received signal is valid. This pre-processing mechanism effectively prevents invalid signals from entering the subsequent processing flow, reduces unnecessary calculations and resource consumption, and improves the efficiency and accuracy of signal processing, laying a solid foundation for subsequent processing steps such as sampling and frame synchronization, and ensuring the stability and reliability of the communication system.

[0119] It can be understood that after finding the starting position of frame synchronization, by redetermining the maximum peak-to-average ratio and then redetermining the starting position of frame synchronization, it is helpful to solve the interference of frame synchronization due to air delay, crystal oscillator drift, position jitter, etc. during the frame synchronization process, and further improve the accuracy and anti-interference of frame synchronization.

[0120] See also Figure 7 , Figure 7 25kHz carrier-124dbm data synchronization correlation index diagram provided in the embodiment of the present application, such as Figure 7 As shown in FIG. 1 , the maximum synchronization correlation index of -124 dBm data is determined using the frame synchronization method of the present application, the horizontal axis represents the frame value, and the vertical axis represents the synchronization correlation index SCI value. Figure 7 The data of SCI Figure 2 By comparing the PAPR data, it can be seen that when the same set of data is used for frame synchronization, Figure 7The relevant index of each frame determined by the method in this application can be clearly distinguished, and the thresholds are also clearly distinguished, which has obvious advantages. By using the frame synchronization method in this application, the problem of frame synchronization misdetection and missed detection caused by inaccurate mean can be avoided, thereby improving the accuracy and reliability of frame synchronization. This method can not only quickly and effectively achieve frame synchronization, but also effectively resist the influence of noise and interference, and improve the reliability of wireless communication. At the same time, according to Fig.10 and Fig.11 It can be seen from the data in that, using the method in this application, the correlation index of each frame determined in different carriers can be clearly distinguished, and the thresholds are also clearly distinguished.

[0121] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory, read-only memory) / RAM (Random Access Memory, random access memory), a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0123] According to another aspect of the embodiment of the present application, a frame synchronization device for implementing the above frame synchronization method is also provided. Figure 8 , Figure 8 is a structural block diagram of an optional frame synchronization device provided in an embodiment of the present application, such as Figure 8 As shown, the frame synchronization device 800 may include:

[0124] The data sampling module 801 is used to sample the current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data;

[0125] The data selection module 802 is used to open a window for each set of sampled data according to a preset frame structure to obtain a current data frame corresponding to each set of sampled data, wherein the current data frame corresponding to each set of sampled data includes a plurality of data blocks for performing correlation operations;

[0126] The synchronization correlation index determination module 803 is used to determine the first synchronization correlation index corresponding to the current data according to the data of the multiple data blocks in the current data frame, wherein the first synchronization correlation index refers to the ratio corresponding to the current data when the ratio between the correlation value and the mean value is the largest among the synchronization correlation indexes corresponding to all the sampled data, the correlation value is obtained by using the data of the multiple data blocks in the current data frame through correlation calculation, and the mean value is determined according to the correlation value corresponding to the data frame before the current data frame corresponding to each group of sampling numbers;

[0127] The frame synchronization position determination module 804 is configured to, when it is determined that the first synchronization correlation index matches a preset threshold, use the data frame start position of the current data corresponding to the first synchronization correlation index as the start position of the frame synchronization.

[0128] It should be noted that the data sampling module 801 in this embodiment can be used to execute the above step S301, the data selection module 802 in this embodiment can be used to execute the above step S302, the synchronization correlation index determination module 803 in this embodiment can be used to execute the above step S303, and the frame synchronization position determination module 804 in this embodiment can be used to execute the above step S304.

[0129] Regarding the frame synchronization device 800 in this embodiment, the specific manner in which its data sampling module 801, data selection module 802, synchronization correlation index determination module 803 and frame synchronization position determination module 804 execute the above-mentioned frame synchronization method has been described in detail in the embodiment of the frame synchronization method and will not be elaborated here.

[0130] It can be understood that the technical solution provided by this embodiment, each module in the frame synchronization device, through a series of fine steps to calculate the ratio of the correlation value corresponding to the current data to the average value of the sum of all previous correlation values ​​(i.e., the first synchronization correlation index), and the first synchronization correlation index is matched with the preset threshold to determine the starting position of the frame synchronization, which can not only improve the accuracy of the frame synchronization, but also effectively deal with various interferences and noises in the signal receiving process, thereby ensuring the stability and reliability of the communication system. The method realizes the accurate identification of the starting position of the frame synchronization through fine sampling, windowing, correlation operation and threshold matching. At the same time, the method also uses more comprehensive correlation value data to calculate the mean, improves the accuracy and stability of the mean, solves the problem of frame synchronization misdetection and missed detection caused by inaccurate mean, thereby enhancing the anti-interference ability of the frame synchronization algorithm. Using this method in the present application, even in the presence of interference, the starting position of the data frame can be accurately identified, fast and effective frame synchronization can be achieved, and the stability and reliability of communication can be improved. Using this method, one data is input and processed to obtain a correlation index, and there is no need to store the correlation value, which minimizes the chip storage space requirements and reduces costs.

[0131] The device in this embodiment, in addition to the above modules, may also include a module for executing any method in any of the embodiments of the above frame synchronization method.

[0132] It should be noted that the above modules and corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can be run in the implementation of Figure 1 The hardware environment of the method shown may be implemented by software or hardware, wherein the hardware environment includes a network environment.

[0133] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned frame synchronization method is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0134] According to another embodiment of the present application, an electronic device is also provided. Fig. 9 , Fig. 9 is a structural block diagram of an optional electronic device provided in an embodiment of the present application, such as Fig. 9 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .

[0135] Memory 1503, used for storing computer programs;

[0136] The processor 1501 is used to implement the following steps when executing the program stored in the memory 1503:

[0137] Step S301, sampling the current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data;

[0138] Step S302, for each set of sampled data, windowing is performed according to a preset frame structure to obtain a current data frame corresponding to each set of sampled data, wherein the current data frame corresponding to each set of sampled data includes a plurality of data blocks for performing correlation operations;

[0139] Step S303, determining a first synchronization correlation index corresponding to the current data according to the data of the multiple data blocks in the current data frame, wherein the first synchronization correlation index refers to a ratio corresponding to the current data when the ratio between the correlation value and the mean value is the largest among the synchronization correlation indexes corresponding to all the sampled data, the correlation value is obtained by a correlation operation using the data of the multiple data blocks in the current data frame, and the mean value is determined according to the correlation value corresponding to the data frame before the current data frame corresponding to each group of sampling numbers;

[0140] Step S304: when it is determined that the first synchronization correlation index matches the preset threshold, the data frame start position of the current data corresponding to the first synchronization correlation index is used as the start position of the frame synchronization.

[0141] It can be understood that the technical solution provided by this embodiment, the processor of the electronic device, through a series of fine steps to calculate the ratio of the correlation value corresponding to the current data to the average value of the sum of all previous correlation values ​​(i.e., the first synchronization correlation index), and the first synchronization correlation index is matched with the preset threshold value to determine the starting position of the frame synchronization, which can not only improve the accuracy of the frame synchronization, but also effectively deal with various interferences and noises in the signal receiving process, thereby ensuring the stability and reliability of the communication system. The method realizes the accurate identification of the starting position of the frame synchronization through fine sampling, windowing, correlation operation and threshold matching. At the same time, the method also uses more comprehensive correlation value data to calculate the mean, improves the accuracy and stability of the mean, solves the problem of frame synchronization misdetection and missed detection caused by inaccurate mean, thereby enhancing the anti-interference ability of the frame synchronization algorithm. Using this method in the present application, even in the presence of interference, the starting position of the data frame can be accurately identified, fast and effective frame synchronization can be achieved, and the stability and reliability of communication can be improved. Using this method, one data is input and processed to obtain a correlation index, and there is no need to store the correlation value, which minimizes the chip storage space requirements and reduces costs.

[0142] Optionally, in this embodiment, the above-mentioned communication bus can be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above-mentioned electronic device and other devices.

[0143] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0144] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0145] An embodiment of the present application further provides a computer-readable storage medium, the storage medium including a stored program, wherein the method steps of the above method embodiment are executed when the program is run.

[0146] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0147] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0148] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above 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, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

[0149] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0150] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

[0152] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0153] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A frame synchronization method, characterized in that: include: Sampling current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data; For each group of sampled data, a window is opened according to a preset frame structure to obtain a current data frame corresponding to each group of sampled data, wherein the current data frame corresponding to each group of sampled data includes a plurality of data blocks for performing correlation operations; Determine a first synchronization correlation index corresponding to the current data according to data of multiple data blocks in the current data frame, wherein the first synchronization correlation index refers to a ratio corresponding to the current data when the ratio between the correlation value and the mean value is the largest among the synchronization correlation indexes corresponding to all the sampled data, the correlation value is obtained by a correlation operation using data of multiple data blocks in the current data frame, and the mean value is determined according to the correlation value corresponding to a data frame before the current data frame corresponding to each group of sampling numbers; When it is determined that the first synchronization correlation index matches the preset threshold, the data frame start position of the current data corresponding to the first synchronization correlation index is used as the start position of the frame synchronization.

2. The frame synchronization method according to claim 1, characterized in that: Determining, according to data of a plurality of data blocks in the current data frame, a first synchronization correlation index corresponding to the current data, comprising: Determine the correlation value corresponding to each group of sampled data according to the data of the multiple data blocks in the current data frame; wherein the data of each data block is the first synchronization sequence data or the first training sequence data; Determine a mean value corresponding to each group of sampled data, wherein if the data of the current data frame is the first data received, then the mean value corresponding to each group of sampled data is the correlation value corresponding to the current data frame; if the data of the current data frame is not the first data received, then the mean value corresponding to each group of sampled data is determined based on the sum of correlation values ​​corresponding to the target data frame before the current data frame, and the sum of correlation values ​​corresponding to the target data frame is determined based on the relationship between the synchronization correlation index corresponding to the target data frame and a preset threshold; Determine the ratio of the correlation value corresponding to each group of sampled data to the mean as the synchronous correlation index corresponding to each group of sampled data; The maximum synchronization correlation index among the synchronization correlation indexes corresponding to all the sampled data is used as the first synchronization correlation index corresponding to the current data.

3. The frame synchronization method according to claim 2, characterized in that: The sum of the correlation values ​​corresponding to the target data frame is determined according to the relationship between the synchronization correlation index corresponding to the target data frame and a preset threshold, including: When the synchronization correlation index corresponding to the target data frame is less than the preset threshold, the sum of the correlation values ​​accumulated in the data frames before the target data frame is added to the correlation value corresponding to the target data frame, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame; When the synchronization correlation index corresponding to the target data frame is greater than or equal to the preset threshold, the sum of the correlation values ​​accumulated by the data frames before the target data frame is directly determined as the sum of the correlation values ​​corresponding to the target data frame, or the sum of the correlation values ​​accumulated by the data frames before the target data frame is added to the preset saturation value, and the result obtained is the sum of the correlation values ​​corresponding to the target data frame.

4. The frame synchronization method according to claim 2, characterized in that: The mean value corresponding to each group of sampled data is determined according to the sum of the correlation values ​​corresponding to the target data frame before the current data frame, including: Obtaining a sum of correlation values ​​corresponding to the target data frame, and obtaining the number of all data involved in calculating the sum of correlation values ​​corresponding to the target data frame; The ratio of the sum of the correlation values ​​corresponding to the target data frame to the quantity of all the data is determined as the mean value corresponding to each group of sampled data.

5. The frame synchronization method according to claim 2, characterized in that: Determining, according to the data of the multiple data blocks in the current data frame, a correlation value corresponding to each group of sampled data, including: Acquire data of a plurality of data blocks of a preset local reference sequence, wherein the data of each data block in the local reference sequence is second synchronization sequence data or second training sequence data; Performing a local polarization operation on the second synchronization sequence data in the local reference sequence to obtain third synchronization sequence data; performing a local polarization operation on the second training sequence data in the local reference sequence to obtain third training sequence data; Align the third synchronization sequence data with the first synchronization sequence data in the current data frame bit by bit; align the third training sequence data with the first training sequence data in the current data frame bit by bit; The aligned data are multiplied bit by bit, the absolute values ​​are taken and then added to obtain the correlation value corresponding to each group of sampled data.

6. The frame synchronization method according to claim 1, characterized in that: When it is determined that the first synchronization correlation index does not match a preset threshold, the method includes: Acquire the next target data after the current data; Sampling the target data according to a preset sampling rate to obtain multiple groups of sampled data; For each group of sampled data, a window is opened according to a preset frame structure to obtain a data frame corresponding to each group of sampled data; Determining a second synchronization correlation index corresponding to the target data according to data of a plurality of data blocks in the data frame; When it is determined that the second synchronization correlation index matches the preset threshold, the data frame start position of the target data corresponding to the second synchronization correlation index is used as the start position of the frame synchronization.

7. The frame synchronization method according to claim 1, characterized in that: Before sampling the current data of the received signal according to the preset sampling rate to obtain multiple groups of sampled data, the method includes: Determining whether the received signal is valid according to the RSSI value of the received signal; If the RSSI value is greater than or equal to the preset signal threshold, it is determined that the received signal is valid; otherwise, it is determined that the received signal is invalid.

8. A frame synchronization device, characterized in that: include: A data sampling module is used to sample the current data of the received signal according to a preset sampling rate to obtain multiple groups of sampled data; A data selection module, used for windowing each set of sampled data according to a preset frame structure to obtain a current data frame corresponding to each set of sampled data, wherein the current data frame corresponding to each set of sampled data includes a plurality of data blocks for performing correlation operations; A synchronization correlation index determination module, configured to determine a first synchronization correlation index corresponding to the current data according to data of a plurality of data blocks in the current data frame, wherein the first synchronization correlation index refers to a ratio corresponding to the current data when the ratio between a correlation value and a mean value is the largest among the synchronization correlation indexes corresponding to all sampled data, the correlation value is obtained by correlation calculation using data of a plurality of data blocks in the current data frame, and the mean value is determined according to the correlation value corresponding to a data frame before the current data frame corresponding to each group of sampling numbers; The frame synchronization position determination module is used to use the data frame start position of the current data corresponding to the first synchronization correlation index as the start position of the frame synchronization when it is determined that the first synchronization correlation index matches a preset threshold.

9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface and the memory communicate with each other via the communication bus, wherein: The memory is used to store computer programs; The processor is configured to execute the frame synchronization method according to any one of claims 1 to 7 by running the computer program stored in the memory.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the frame synchronization method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Initial frequency offset value determination method and device, electronic equipment and storage medium

    CN119154987A

  • Search method and apparatus for a communication system

    WO2014125335A1