Frame header detection method and device and storage medium

By performing related operations on the frame header and non-frame header parts, the real starting position of the frame header is identified, which solves the problem of low accuracy of frame header detection and improves synchronization accuracy.

CN119544175APending Publication Date: 2025-02-28TIANJIN SIGMA MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411773422.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The accuracy of frame head detection is low, which affects synchronization accuracy.

Method used

By starting sampling from the candidate starting position of the frame header, a sequence of data to be measured is obtained, and the frame header part and the non-frame header part are correlated, the first correlation value and the second correlation value are obtained, and the true starting position of the frame header is identified based on these values.

Benefits of technology

Improves the accuracy of frame head detection, thereby improving synchronization accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544175A_ABST
    Figure CN119544175A_ABST
Patent Text Reader

Abstract

The invention provides a frame header detection method and device and a storage medium, relates to the technical field of communication, and can solve the problem of low accuracy of frame header detection. The method comprises the following steps: sampling from a candidate initial position of a frame header to obtain a to-be-detected data frame sequence; performing correlation operation on a frame header part in the to-be-detected data frame sequence to obtain a first correlation value, and performing correlation operation on a non-frame header part in the to-be-detected data frame sequence to obtain a second correlation value. And identifying whether the candidate starting position of the frame header is a real starting position of the frame header based on the first correlation value and the second correlation value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a frame header detection method, device and storage medium. Background Art

[0002] With the development of technology, electronic devices (such as mobile phones, tablet computers, laptops, smart TVs, etc.) have more and more functions. For example, an electronic device can establish a connection with a stylus. The electronic device can send a synchronization signal, and after receiving the synchronization signal, the stylus can transmit a sensing signal according to the time slot specified by the synchronization signal, so that the electronic device and the stylus are synchronized in time, thereby ensuring that the electronic device can receive the sensing signal sent by the stylus to achieve the purpose of touch sensing.

[0003] When the stylus receives the synchronization signal, it can perform relevant detection on the frame header to ensure the accuracy of synchronization between the electronic device and the stylus. However, the detection of the frame header is easily interfered by external factors, resulting in a low accuracy rate of the frame header detection, which in turn affects the synchronization accuracy. Summary of the invention

[0004] The present application provides a frame header detection method, device and storage medium, which are used to solve the problem of low accuracy of frame header detection.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for detecting a frame header. In the method, sampling is performed from a candidate starting position of a frame header to obtain a data frame sequence to be tested. A correlation operation is performed on a frame header portion of the data frame sequence to be tested to obtain a first correlation value, and a correlation operation is performed on a non-frame header portion of the data frame sequence to be tested to obtain a second correlation value. Based on the first correlation value and the second correlation value, it is identified whether the candidate starting position of the frame header is the actual starting position of the frame header.

[0007] Based on the above technical solution, sampling is performed from the candidate starting position of the frame header to obtain a data frame sequence to be tested. Afterwards, a correlation operation is performed on the frame header part in the data frame sequence to be tested to obtain a first correlation value, and a correlation operation is performed on the non-frame header part in the data frame sequence to be tested to obtain a second correlation value. Then, based on the first correlation value and the second correlation value, it is identified whether the candidate starting position of the frame header is the real starting position of the frame header. In other words, the present application can jointly determine whether the frame header position detected from the data frame sequence to be tested is correct through the correlation value of the frame header part and the correlation value of the non-frame header part. In this way, the accuracy of frame header detection can be improved, thereby improving synchronization accuracy.

[0008] In a possible design, in the case of a non-inter-frame maintenance state, if the first correlation value is greater than the first threshold and the second correlation value is greater than the second threshold, the candidate start position of the frame header is determined to be the real start position of the frame header. Alternatively, in the case of an inter-frame maintenance state, based on the second correlation value, the candidate start position of the frame header is determined to be the real start position of the frame header; wherein the inter-frame maintenance state is used to indicate that the real start position of the frame header that meets the credibility requirement is detected within a preset time length before the current time.

[0009] In a possible design, in the case of being in the inter-frame maintenance state, based on the real starting position of the frame header determined by the last frame header detection, the frame signal transmission period, and the error range of the transmission time, multiple candidate starting positions of the frame headers of this frame header detection are determined. For each candidate starting position of the frame header, sampling is performed starting from the candidate starting position of the frame header to obtain a data frame sequence to be tested.

[0010] In a possible design, the initial candidate starting position of the current frame header detection is determined based on the real starting position of the frame header determined last time and the frame signal transmission period. Based on the error range of the initial candidate starting position of the frame header and the frame signal transmission time, multiple sampling points before and after the initial candidate starting position of the frame header are determined as candidate starting positions of other frame headers, and the multiple candidate starting positions include: candidate starting positions of other frame headers and the initial candidate starting position of the frame header.

[0011] In a possible design, in the case of an inter-frame maintenance state, if the first correlation value is greater than a first threshold and the second correlation value is greater than a second threshold, the candidate starting position of the frame header is determined to be the actual starting position of the frame header.

[0012] In one possible design, when in an inter-frame maintenance state, multiple candidate starting positions of this frame header detection all meet the first relevant condition, then the initial candidate starting position of the frame header is used as the actual starting position of the frame header of this frame header detection; the first relevant condition includes: the first relevant value is greater than the first threshold, and the second relevant value is less than or equal to the second threshold.

[0013] In a possible design, when in the inter-frame maintenance state, multiple candidate starting positions of the current frame header detection all meet the second correlation condition, then the candidate starting position of the frame header with the largest first correlation value is determined from the multiple candidate starting positions; wherein the second correlation condition includes: the first correlation value is less than or equal to the first threshold. If the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold, the candidate starting position of the frame header with the largest first correlation value is used as the real starting position of the frame header of the current frame header detection.

[0014] In one possible design, when in the inter-frame maintenance state, if the second correlation value of the candidate starting position of the frame head with the largest first correlation value is less than or equal to the second threshold, the initial candidate starting position of the frame head is used as the actual starting position of the frame head for this frame head detection.

[0015] In a possible design, when in a non-inter-frame maintenance state, in response to detecting the true starting position of a frame header, the non-inter-frame maintenance state is switched to the inter-frame maintenance state.

[0016] In one possible design, when in the inter-frame maintenance state, if a frame header starting position that meets the credibility requirement is not detected based on a continuous preset number of frame header detections, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

[0017] In one possible design, the credibility requirements include: the first correlation value is greater than a first threshold, and the second correlation value is greater than a second threshold, or the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold.

[0018] In a possible design, when in the inter-frame maintenance state, based on the fact that a frame header detection fails to detect the real starting position of the frame header that meets the credibility requirement, the value stored in the register of the inter-frame maintenance state is reduced by 1. When the value stored in the register of the inter-frame maintenance state is 0, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

[0019] In one possible design, when in the inter-frame maintenance state, based on a successful detection of the true starting position of the frame header that meets the credibility requirements, the value stored in the register of the inter-frame maintenance state is reset to a value corresponding to a preset number of times.

[0020] In a second aspect, the present application provides a frame header detection device, which includes a sampling module and a processing module.

[0021] The sampling module is used to start sampling from the candidate starting position of the frame header to obtain the data frame sequence to be tested. The processing module is used to perform a correlation operation on the frame header part of the data frame sequence to be tested to obtain a first correlation value, and to perform a correlation operation on the non-frame header part of the data frame sequence to be tested to obtain a second correlation value. The processing module is also used to identify whether the candidate starting position of the frame header is the real starting position of the frame header based on the first correlation value and the second correlation value.

[0022] In one possible design, the processing module is used to determine that the candidate starting position of the frame header is the real starting position of the frame header when the first correlation value is greater than the first threshold and the second correlation value is greater than the second threshold in the case of non-inter-frame maintenance state. Alternatively, the processing module is used to determine that the candidate starting position of the frame header is the real starting position of the frame header based on the second correlation value in the case of being in the inter-frame maintenance state; wherein the inter-frame maintenance state is used to indicate that the real starting position of the frame header that meets the credibility requirement is detected within a preset time length before the current time.

[0023] In a possible design, the processing module is used to determine the candidate starting positions of multiple frame headers for this frame header detection based on the real starting position of the frame header determined by the previous frame header detection, the frame signal transmission period, and the error range of the transmission time when the frame header is in the inter-frame maintenance state. The sampling module is used to sample the candidate starting position of each frame header from the candidate starting position of the frame header to obtain a data frame sequence to be tested.

[0024] In a possible design, a processing module is used to determine an initial candidate starting position of a frame head for this frame head detection based on the actual starting position of the frame head determined last time and the frame signal transmission period. The processing module is used to determine multiple sampling points before and after the initial candidate starting position of the frame head as candidate starting positions of other frame heads based on the initial candidate starting position of the frame head and the error range of the frame signal transmission time, and the candidate starting positions of the multiple frame heads include: candidate starting positions of other frame heads and the initial candidate starting position of the frame head.

[0025] In one possible design, the processing module is used to determine that the candidate starting position of the frame header is the actual starting position of the frame header if the first correlation value is greater than the first threshold and the second correlation value is greater than the second threshold when in an inter-frame maintenance state.

[0026] In one possible design, a processing module is used to use the initial candidate starting position of the frame header as the actual starting position of the frame header detected this time when the candidate starting positions of multiple frame headers detected this time all meet the first relevant condition in the case of being in an inter-frame maintenance state; the first relevant condition includes: the first relevant value is greater than the first threshold, and the second relevant value is less than or equal to the second threshold.

[0027] In a possible design, the processing module is used to determine the candidate starting position of the frame head with the largest first correlation value from the candidate starting positions of the frame head when the candidate starting positions of the multiple frame heads for the current frame head detection all meet the second correlation condition in the case of being in an inter-frame maintenance state; wherein the second correlation condition includes: the first correlation value is less than or equal to the first threshold. The processing module is used to use the candidate starting position of the frame head with the largest first correlation value as the actual starting position of the frame head for the current frame head detection if the second correlation value of the candidate starting position of the frame head with the largest first correlation value is greater than the second threshold.

[0028] In one possible design, the processing module is used to use the initial candidate starting position of the frame head as the actual starting position of the frame head for this frame head detection if the second correlation value of the candidate starting position of the frame head with the largest first correlation value is less than or equal to a second threshold when in an inter-frame maintenance state.

[0029] In one possible design, the processing module is used to switch from the non-inter-frame maintenance state to the inter-frame maintenance state in response to detecting the true starting position of the frame header when in the non-inter-frame maintenance state.

[0030] In one possible design, the processing module is used to switch from the inter-frame maintenance state to the non-inter-frame maintenance state when, in the inter-frame maintenance state, a preset number of consecutive frame header detections have failed to detect the true starting position of the frame header that meets the credibility requirements.

[0031] In one possible design, the credibility requirements include: the first correlation value is greater than a first threshold, and the second correlation value is greater than a second threshold, or the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold.

[0032] In one possible design, the processing module is used to, when in the inter-frame maintenance state, reduce the value stored in the register of the inter-frame maintenance state by 1 based on the fact that the real starting position of the frame header that meets the credibility requirement is not detected in one frame header detection. The processing module is used to switch from the inter-frame maintenance state to the non-inter-frame maintenance state when the value stored in the register of the inter-frame maintenance state is 0.

[0033] In one possible design, the processing module is used to reset the value stored in the register of the inter-frame maintenance state to a value corresponding to a preset number of times based on a frame header detection to detect the true starting position of the frame header that meets the credibility requirements when in the inter-frame maintenance state.

[0034] In a third aspect, the present application provides a frame header detection device, the device comprising: a processor and a memory; the processor and the memory are coupled; the memory is used to store one or more programs, the one or more programs including computer execution instructions, when the frame header detection device is running, the processor executes the computer execution instructions stored in the memory to implement the method described in the first aspect and any possible implementation of the first aspect.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method described in the above-mentioned first aspect and any possible implementation of the first aspect.

[0036] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to execute the method described in the above-mentioned first aspect and any possible implementation manner of the first aspect.

[0037] In the above scheme, the technical problems that can be solved and the technical effects achieved by the frame header detection device, computer equipment, computer storage medium or computer program product can refer to the technical problems and technical effects solved by the above first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0039] Figure 2 A flowchart of a frame header detection method provided in an embodiment of the present application;

[0040] Figure 3 An example schematic diagram of an inter-frame maintenance state provided in an embodiment of the present application;

[0041] Figure 4 A flowchart of another frame header detection method provided in an embodiment of the present application;

[0042] Figure 5 A schematic diagram of an example of a data frame sequence to be tested provided in an embodiment of the present application;

[0043] Figure 6 A flowchart of another frame header detection method provided in an embodiment of the present application;

[0044] Figure 7 A flowchart of another frame header detection method provided in an embodiment of the present application;

[0045] Figure 8A schematic diagram of another example of an inter-frame maintenance state provided in an embodiment of the present application;

[0046] Fig. 9 A schematic diagram of the structure of a frame header detection device provided in an embodiment of the present application;

[0047] Fig.10 A schematic diagram of the structure of another frame header detection device provided in an embodiment of the present application;

[0048] Fig.11 A conceptual partial view of a computer program product provided for an embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.

[0050] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.

[0051] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.

[0052] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.

[0053] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.

[0054] An active capacitive stylus is based on the principle of capacitive screen touch control. The components of the stylus itself transmit sensing signals to the capacitive screen. The capacitive touch screen calculates and locates by receiving the signals to achieve the purpose of touch sensing. Compared with a passive capacitive stylus, an active capacitive stylus can achieve the refinement of touch handwriting, and the pen tip can also be made smaller. Higher-end active capacitive styluses also achieve real note-taking functions by adding various sensors, such as pressure sensors, which means that the stylus user can change the thickness of the handwriting by changing the strength of his or her own writing. For some painting enthusiasts, pressure sensors are also a must-have function. These sensor data can also be transmitted to the capacitive touch screen using the sensing signals emitted by the active stylus.

[0055] However, in addition to receiving the sensing signal emitted by the active capacitive stylus, the capacitive touch screen also needs to complete other functions such as screen display. Therefore, the capacitive touch screen and the active capacitive stylus must be precisely synchronized in time, so that the stylus will only emit the sensing signal when the capacitive touch screen is in the receiving state. In order to achieve this time synchronization, a common method is that the capacitive touch screen periodically transmits an uplink signal, and after receiving the uplink signal, the active capacitive stylus transmits the sensing signal in the specified time slot according to the time information and command provided by the uplink signal. It can be seen from this that the active capacitive screen stylus can only effectively complete the information interaction with the capacitive touch screen if it can accurately receive the uplink signal emitted by the capacitive touch screen.

[0056] At present, when the stylus receives an uplink signal, a correlation detection can be performed on the frame header to ensure the accuracy of synchronization between the electronic device and the stylus. For example, if the correlation value of the frame header is greater than a threshold, and the frame header has the largest correlation value in the frame header detection within a certain range, the frame header is used as the frame header of the uplink signal.

[0057] For example, if the frame header of the uplink signal has K bits (b1, b2, ..., b K ∈{-1,1}), the length of the spreading code is L(c1,c2,...,c L ∈{-1, 1}), the sampling rate of the analog to digital converter (ADC) is R times the bit rate of the uplink signal (i.e., each bit is sampled R times). After ADC sampling, the output data sequence is stored in the shift register. The relevant value of the frame header can be expressed by formula 1.

[0058]

[0059] Among them, r(n) is used to represent the first correlation value, b K-i It is used to represent the kith bit of the frame header, s(n) is used to represent the data sequence obtained by ADC sampling, and cL-j L - j is used to represent the (L - j)-th spreading code, K is used to represent the number of bits in the header part, and L is used to represent the length of the spreading code.

[0060] When n = n0, the value of r(n0) is greater than a preset threshold, and within the range of n0 - R < n < n0 + R, the value of r(n0) is the largest. Then, this sequence is taken as the header, and the starting position of the sequence is taken as the starting position of the header.

[0061] However, there are many noises and interferences in the usage environment of the electronic device and the stylus. It is possible that the value of r(n) at a non - header position is greater than the threshold, resulting in false detection; it is also possible that the value of r(n0) at the header position is less than the threshold, resulting in missed detection. Therefore, how to improve the accuracy of header detection has become an urgent technical problem to be solved.

[0062] To solve the above problems, an embodiment of the present application provides a method for detecting a header. In this method, a sequence of data frames to be measured is sampled starting from a candidate starting position of the header. Then, a first correlation value is obtained by performing a correlation operation on the header part in the sequence of data frames to be measured, and a second correlation value is obtained by performing a correlation operation on the non - header part in the sequence of data frames to be measured. Then, based on the first correlation value and the second correlation value, it is identified whether the candidate starting position of the header is the true starting position of the header. That is to say, the present application can jointly determine whether the sequence of data frames to be measured is a header through the correlation value of the header part and the correlation value of the non - header part. In this way, the accuracy of header detection can be improved.

[0063] The execution subject of the method for detecting a header provided by the present application can be a header detection device. This detection device can be a stylus (such as an active stylus). At the same time, this detection device can also be the central processing unit (CPU) of the stylus, or the detection module in the stylus for detecting the header. In an embodiment of the present application, taking the header detection device as the execution subject of the header detection method as an example, the method for detecting a header provided by the embodiment of the present application is described.

[0064] For ease of understanding the embodiments of the present application, first, Figure 1 The communication system shown in Figure 1 is used as an example to detail the communication system applicable to the embodiments of the present application. Exemplarily, Figure 1 is a schematic diagram of the architecture of a communication system applicable to the method for detecting a header provided by an embodiment of the present application. As

[0065] The electronic device 101 includes a touch screen. The electronic device 101 can send an uplink signal to the stylus to instruct the stylus to send a sensing signal in a specified time slot. In addition, the electronic device 101 can receive the sensing signal (such as position, pressure, tilt, etc.) sent by the stylus 102, and display the handwriting corresponding to the sensing signal on the touch screen.

[0066] It should be understood that the electronic device 101 in the embodiment of the present application can be called user equipment (UE), terminal, etc. For example, the electronic device 101 can be a tablet computer (portable android device, PAD), personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), etc., a mobile terminal or a fixed terminal with a touch screen. The form of the electronic device in the embodiment of the present application is not specifically limited.

[0067] After introducing the application scenario and implementation environment of the embodiment of the present application, the frame header detection method provided by the embodiment of the present application is described in detail below in combination with the above-mentioned implementation environment.

[0068] like Figure 2 As shown, a frame header detection method provided in an embodiment of the present application includes:

[0069] S201 , sampling is performed starting from a candidate starting position of a frame header to obtain a data frame sequence to be tested.

[0070] In a possible implementation, the detection device stores a data sequence and can adopt a sliding window to perform sampling at a candidate starting position of a frame header in the data sequence to obtain a data frame sequence to be tested.

[0071] Exemplarily, the detection device is equipped with a shift register, which is used to store a data frame sequence.

[0072] In some embodiments, before obtaining the data frame sequence to be tested, an uplink signal may be received, and then the uplink signal may be sampled by an ADC to obtain a data sequence, and then the data sequence may be stored in a shift register.

[0073] Exemplarily, the ADC may sample the uplink signal at a sampling rate that is R times the bit rate of the uplink signal (ie, sampling each bit R times).

[0074] Optionally, the uplink signal may be a spread spectrum signal. After receiving the uplink signal, the uplink signal may be despread to obtain a despread data sequence.

[0075] It should be noted that the embodiment of the present application does not limit the uplink signal. For example, the uplink signal can be a direct sequence spread spectrum (DSS) signal, a hybrid spread spectrum signal, a frequency hopping spread spectrum (FHSS) signal, etc.

[0076] S202: performing a correlation operation on a frame header part of the data frame sequence to be tested to obtain a first correlation value, and performing a correlation operation on a non-frame header part of the data frame sequence to be tested to obtain a second correlation value.

[0077] In one possible design, the first correlation value can be expressed by formula one.

[0078] In a possible implementation, it can be determined whether the data corresponding to the non-frame header partial sequence in the data frame sequence to be tested is a fixed value. If the data corresponding to the non-frame header partial sequence is a fixed value, a correlation operation is performed based on the fixed value and the non-frame header partial sequence to obtain a second correlation value. If the data corresponding to the non-frame header partial sequence is an unknown value, a correlation operation is performed based on the data value obtained after demodulation of the non-frame header partial sequence and the non-frame header partial sequence to obtain a second correlation value.

[0079] It should be noted that whether the data corresponding to the non-frame header portion sequence in the data frame sequence to be tested is a fixed value is set by the communication protocol between the detection device and the electronic device.

[0080] In a possible design, if the data corresponding to the non-frame header partial sequence is a fixed value, the second correlation value can be expressed by Formula 2.

[0081]

[0082] Where D is used to represent the second correlation value, d mis used to represent a fixed value, d(m) is used to represent the non-frame header sequence after despreading, and M is used to represent the number of bits of data corresponding to the non-frame header sequence. m is an integer greater than 0 and less than M-1. d(m) can be represented by Formula 3.

[0083]

[0084] In another possible design, if the data corresponding to the non-frame header partial sequence is an unknown value, the second correlation value can be expressed by Formula 4.

[0085]

[0086] in, Used to represent the data value obtained after demodulating the non-frame header sequence. It can be expressed by formula 5.

[0087]

[0088] In some embodiments, a correlation operation may be performed on the frame header portion of the data frame sequence to be tested to obtain a first correlation value. Thereafter, if the first correlation value is greater than a first threshold, a correlation operation is performed on the non-frame header portion of the data frame sequence to be tested to obtain a second correlation value. If the first correlation value is less than or equal to the first threshold, no correlation operation is performed on the non-frame header portion of the data frame sequence to be tested.

[0089] That is to say, the first correlation value of the frame header part can be calculated first, and then it can be determined whether the first correlation value meets the condition. If the condition is not met, the second correlation value will not be calculated. In this way, redundant steps in frame header detection can be reduced, thereby improving the efficiency of frame header detection.

[0090] It should be noted that the embodiment of the present application does not limit the first threshold. When the first threshold is large, the detection accuracy can be improved. When the first threshold is small, the probability of missed detection can be reduced. In addition, when the signal-to-noise ratio of the uplink signal is high, the first threshold can be lowered. When the signal-to-noise ratio of the uplink signal is low, the first threshold can be increased.

[0091] S203: Based on the first correlation value and the second correlation value, identify whether the candidate starting position of the frame header is the actual starting position of the frame header.

[0092] In a possible implementation, if the first correlation value is greater than a first threshold and the second correlation value is greater than a second threshold, the candidate starting position of the frame header is used as the actual starting position of the frame header.

[0093] It should be noted that the second threshold is not limited in the embodiment of the present application. When the second threshold is large, the detection accuracy can be improved. When the second threshold is small, the probability of missed detection can be reduced. In addition, when the signal-to-noise ratio of the uplink signal is high, the second threshold can be lowered. When the signal-to-noise ratio of the uplink signal is low, the second threshold can be increased.

[0094] Based on the above technical solution, sampling is performed from the candidate starting position of the frame header to obtain a data frame sequence to be tested. Afterwards, a correlation operation is performed on the frame header part of the data frame sequence to be tested to obtain a first correlation value, and a correlation operation is performed on the non-frame header part of the data frame sequence to be tested to obtain a second correlation value. Then, based on the first correlation value and the second correlation value, it is identified whether the candidate starting position of the frame header is the real starting position of the frame header. In other words, the present application can jointly determine whether the data frame sequence to be tested is a frame header through the correlation value of the frame header part and the correlation value of the non-frame header part. In this way, the accuracy of frame header detection can be improved, thereby improving synchronization accuracy.

[0095] It should be noted that the uplink signal sent by the electronic device is periodic, that is, the uplink signal is sent once every preset time interval. Therefore, based on the periodicity of sending the uplink signal, it can be detected whether the data frame sequence to be tested includes a real frame header.

[0096] In some embodiments, it can be determined whether the detection device is in an inter-frame maintenance state, and the inter-frame maintenance state is used to indicate that a real starting position of a frame header that meets the credibility requirement is detected within a preset time period before the current time. Then, based on whether the detection device is in the inter-frame maintenance state, the first correlation value, and the second correlation value, it is identified whether the candidate starting position of the frame header is the real starting position of the frame header.

[0097] In one possible design, if the real starting position of the frame header that meets the credibility requirement is detected within a preset time length before the current time, it is determined that the detection device is in the inter-frame maintenance state. If the real starting position of the frame header that meets the credibility requirement is not detected within the preset time length before the current time, it is determined that the detection device is not in the inter-frame maintenance state.

[0098] It should be noted that the embodiments of the present application do not limit the preset duration. For example, the preset duration may be 20 milliseconds, 30 milliseconds, 50 milliseconds, etc.

[0099] For example, Figure 3As shown, if the real starting position of the frame header that meets the credibility requirement is detected at time A, the preset duration is 20 milliseconds. If the time difference between time B and time A is 5 milliseconds, the detection device is in the inter-frame maintenance state at time B. If the time difference between time C and time A is 20 milliseconds, the detection device is in the inter-frame maintenance state at time C. If the time difference between time D and time A is 22 milliseconds, the detection device is in the non-inter-frame maintenance state at time D.

[0100] It should be understood that when the inter-frame maintenance state is in place, it means that a frame header with a high degree of credibility has been detected within a preset time period, and the requirements for the data frame sequence detected this time can be lowered to obtain a real frame header during the sending cycle. When the inter-frame maintenance state is not in place, it means that a frame header with a high degree of credibility has not been detected within a preset time period, and the frame header needs to be detected with a higher requirement.

[0101] The following introduces a process of identifying whether a candidate starting position of a frame header is a real starting position of the frame header based on whether the detection device is in an inter-frame maintenance state, a first correlation value and a second correlation value.

[0102] like Figure 4 As shown, a frame header detection method provided in an embodiment of the present application, in which S203 may include:

[0103] S401: Determine whether it is in an inter-frame maintenance state.

[0104] In a possible implementation, a value stored in a register of the inter-frame maintenance state is obtained. If the value is greater than 0, it is determined to be in the inter-frame maintenance state. If the value is less than or equal to 0, it is determined to be in the non-inter-frame maintenance state.

[0105] In some embodiments, S402 may be executed in a non-inter-frame maintenance state.

[0106] S402: Determine whether the first correlation value is greater than a first threshold.

[0107] In some embodiments, if the first correlation value is greater than the first threshold, S403 is executed. If the first correlation value is less than or equal to the first threshold, a new data frame sequence to be tested and the first correlation value of the frame header part in the new data frame sequence to be tested are reacquired, and S402 is re-executed.

[0108] It should be noted that, in the embodiment of the present application, when in a non-inter-frame maintenance state, the sliding window can be moved according to a preset moving step length to obtain a new data frame sequence to be tested.

[0109] S403: Determine whether the second correlation value is greater than a second threshold.

[0110] In some embodiments, if the second correlation value is greater than the second threshold, S404 is executed. If the second correlation value is less than the second threshold, a new data frame sequence to be tested and the first correlation value of the frame header part in the new data frame sequence to be tested are reacquired, and S402 is re-executed.

[0111] S404: Determine the candidate starting position of the frame header as the actual starting position of the frame header.

[0112] Based on the above technical solution, it can be known that in the case of non-inter-frame maintenance state, the first correlation value and the second correlation value need to meet the conditions before the candidate frame header can be used as the real frame header. In this way, the accuracy of detecting the frame header can be improved.

[0113] The above is a method for determining the candidate start position of the frame head as the real start position of the frame head in the case of non-inter-frame maintenance state. The following is an introduction to the method for determining the candidate start position of the frame head as the real start position of the frame head in the inter-frame maintenance state.

[0114] In the embodiment of the present application, in the case of being in the inter-frame maintenance state, the candidate starting positions of multiple frame headers of this frame header detection can be determined based on the real starting position of the frame header determined by the previous frame header detection, the frame signal transmission period, and the error range of the transmission time. For each candidate starting position of the frame header, sampling is performed starting from the candidate starting position of the frame header to obtain a data frame sequence to be tested.

[0115] It should be noted that the error range of the transmission time is related to the periodicity of the frame signal transmission cycle. The stronger the periodicity of the frame signal transmission cycle, the smaller the error range. The weaker the periodicity of the frame signal transmission cycle, the larger the error range.

[0116] In a possible design, in the case of being in an inter-frame maintenance state, the initial candidate starting position of the frame head for this frame head detection is determined based on the real starting position of the frame head determined last time and the frame signal transmission period. Based on the initial candidate starting position of the frame head and the error range of the transmission time, multiple sampling points before and after the initial candidate starting position of the frame head are determined as candidate starting positions of other frame heads, and the candidate starting positions of the multiple frame heads include: candidate starting positions of other frame heads and the initial candidate starting position of the frame head.

[0117] It should be noted that the embodiments of the present application do not limit the number of multiple sampling points before and after the initial candidate starting position of the frame header. For example, the number of sampling points before and after the initial candidate starting position of the frame header is 2, 3, 4, etc. Alternatively, the number of multiple sampling points before and after the initial candidate starting position of the frame header is different, such as the number of sampling points before the initial candidate starting position of the frame header is 2, and the number of sampling points after the initial candidate starting position of the frame header is 3.

[0118] For example, Figure 5 As shown, if the real frame header determined last time is the candidate frame header obtained at time a, and the frame signal transmission period is 15 milliseconds. Then the shift register can store the data frame sequence to be tested obtained at time b (15 milliseconds apart from time a), the data frame sequence to be tested obtained at sampling point 1 and sampling point 2 before time b, and the data frame sequence to be tested obtained at sampling point 3 and sampling point 4 after time b. The data sequence between sampling point 1 and time a does not belong to the data frame sequence to be tested.

[0119] It should be noted that, generally speaking, the more sampling points there are before and after the initial candidate starting position of the frame header, the higher the probability of obtaining the real candidate frame header. However, the more sampling points there are before and after the initial candidate starting position of the frame header, the longer the delay in detecting the real frame header will be. Therefore, it is necessary to ensure that the delay caused by the number of sampling points before and after the initial candidate starting position of the frame header (i.e., the number of candidate starting positions of other frame headers) will not affect the data received from the real frame header.

[0120] It is understandable that, when the inter-frame maintenance state is in place, it means that a frame header with high credibility has been detected within the preset time length, and part of the data frame sequence can be selected as the data frame sequence to be tested through the frame signal sending cycle. In this way, the detection range can be narrowed, which not only reduces the probability of false detection, but also improves the detection efficiency.

[0121] In some embodiments, in the case of being in the inter-frame maintenance state, based on the second correlation value, the candidate start position of the frame header is determined to be the actual start position of the frame header.

[0122] It can be understood that when the frame is in the inter-frame maintenance state, it means that a frame head with high credibility is detected within the preset time length, then the requirements for the data frame sequence detected this time can be lowered to a certain extent, and whether it is a real frame head can be determined by the second correlation value, thereby reducing the probability of missed detection.

[0123] The following describes a process of determining the candidate start position of the frame header as the real start position of the frame header based on the second correlation value when the frame is in the inter-frame maintenance state.

[0124] like Figure 6 As shown, a method for detecting a frame header provided by an embodiment of the present application, in which, after S401, in the case of being in an inter-frame maintenance state, the method may further include:

[0125] S601: Determine whether a candidate start position of a frame header satisfies a first related condition.

[0126] In the embodiment of the present application, S601 may be executed in the case of being in the inter-frame maintenance state.

[0127] The first correlation condition includes: the first correlation value is greater than a first threshold, and the second correlation value is less than or equal to a second threshold.

[0128] That is to say, when the first correlation value of the frame header part in the data frame sequence to be tested is greater than the first threshold, and the second correlation value of the non-frame header part in the data frame sequence to be tested is less than or equal to the second threshold, the candidate starting position of the frame header corresponding to the data frame sequence to be tested meets the first correlation condition.

[0129] In a possible implementation, if the first correlation value is greater than a first threshold and the second correlation value is less than or equal to a second threshold, it is determined that the candidate starting position of the frame header satisfies the first correlation condition.

[0130] In some embodiments, if all candidate start positions of the frame headers detected in this frame header detection meet the first correlation condition, S602 is executed. If the first correlation value of the candidate start position of the frame header is greater than the first threshold and the second correlation value is greater than the second threshold, S404 is executed.

[0131] Exemplary, combined Figure 5 If the candidate starting positions of the frame headers corresponding to the sampling points 1-4 and the candidate starting positions of the frame headers at time b do not satisfy the first related condition, S602 is executed.

[0132] S602: Use the initial candidate starting position of the frame header as the real starting position of the frame header for this frame header detection.

[0133] Exemplary, combined Figure 5 , the candidate starting position of the frame header corresponding to time b can be used as the real starting position of the frame header for this frame header detection.

[0134] It should be noted that when the initial candidate starting position of the frame header is used as the real starting position of the frame header for this frame header detection, the credibility of the real starting position of the frame header is lower than the real starting position that meets the credibility requirement.

[0135] In some embodiments, in S601, if the candidate starting positions of the multiple frame headers detected in this frame header detection all meet the first correlation condition, the value stored in the register of the inter-frame maintenance state can be reduced by 1. If the first correlation value of the candidate starting position of the frame header is greater than the first threshold, and the second correlation value is greater than the second threshold, the value corresponding to the preset number of times can be reset.

[0136] In some embodiments, before executing S602, the value stored in the register of the inter-frame maintenance state may be re-acquired. If the re-acquired value indicates that it is in the inter-frame maintenance state, S602 is executed. If the re-acquired value indicates that it is in the non-inter-frame maintenance state, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

[0137] It can be understood that in the case of being in the inter-frame maintenance state, it means that there may be a real frame header among the multiple candidate frame headers. Therefore, even if the candidate starting positions of all frame headers in this frame header detection meet the first related condition, the initial candidate starting position of the frame header can still be used as the real starting position of the frame header in this frame header detection. In this way, the occurrence of missed detection can be avoided.

[0138] In some embodiments, in the case of an inter-frame maintenance state, if the first correlation values ​​of multiple candidate frame headers are all less than or equal to a first threshold, the candidate frame header with the largest first correlation value may be selected as the real frame header.

[0139] like Figure 7 As shown, a frame header detection method provided by an embodiment of the present application, in which the method, after S401, may further include:

[0140] S701: Determine whether candidate starting positions of multiple frame headers detected in this frame header detection all meet a second related condition.

[0141] In the embodiment of the present application, in the case of the inter-frame maintenance state, it is determined whether the candidate starting positions of multiple frame headers detected in this frame header detection all meet the second correlation condition. The second correlation condition includes: the first correlation value is less than or equal to the first threshold.

[0142] In some embodiments, if the candidate starting positions of the multiple frame headers detected in this frame header detection all meet the second related condition, S702 is executed.

[0143] Exemplary, combined Figure 5 If the candidate starting positions of the frame headers corresponding to the sampling points 1-4 and the candidate starting positions of the frame headers at time b both meet the second related condition, S702 is executed.

[0144] In some embodiments, if there is a candidate starting position whose first correlation value is greater than a first threshold among the candidate starting positions of the multiple frame headers detected in this frame header detection, S601 may be executed.

[0145] That is, S701 may be performed first to determine whether the first correlation values ​​of the candidate starting positions of the multiple frame heads detected in this frame head detection are all less than or equal to the first threshold. Then, if it is determined that the first correlation values ​​of the candidate starting positions of the multiple frame heads are all less than or equal to the first threshold, S702 is performed. If there is a candidate starting position whose first correlation value is greater than the first threshold among the candidate starting positions of the multiple frame heads, it may be further determined whether the second correlation value is greater than the second threshold (i.e., S601 is performed).

[0146] S702: Determine a candidate starting position of a frame header having a maximum first correlation value from among candidate starting positions of a plurality of frame headers.

[0147] S703: Determine whether the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than a second threshold.

[0148] In some embodiments, if the second correlation value of the candidate start position of the frame header with the largest first correlation value is greater than the second threshold, S704 is executed. If the second correlation value of the candidate start position of the frame header with the largest first correlation value is less than or equal to the second threshold, S705 is executed.

[0149] S704: Use the candidate starting position of the frame header with the largest first correlation value as the real starting position of the frame header for this frame header detection.

[0150] It can be understood that, since the frame is currently in the inter-frame maintenance state, it means that there is a high probability that a real frame header exists among the multiple candidate frame headers. Therefore, the candidate starting position of the frame header with the largest first correlation value and the second correlation value satisfying the condition can be used as the real starting position of the frame header. In this way, the probability of missed detection can be reduced and the accuracy of frame header detection can be improved.

[0151] S705: Use the initial candidate starting position of the frame header as the actual starting position of the frame header for this frame header detection.

[0152] It should be noted that, for the specific introduction of S705, reference may be made to the description in S602, which will not be repeated here.

[0153] In some embodiments, in S703, if the second correlation value of the candidate starting position of the frame header with the largest first correlation value is less than or equal to the second threshold, the value stored in the register of the inter-frame maintenance state may be reduced by 1. If the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold, the value corresponding to the preset number of times may be reset.

[0154] In some embodiments, before executing S705, the value stored in the register of the inter-frame maintenance state may be re-acquired. If the re-acquired value indicates that it is in the inter-frame maintenance state, S705 is executed. If the re-acquired value indicates that it is in the non-inter-frame maintenance state, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

[0155] It can be understood that in the case of being in the inter-frame maintenance state, it means that there may be a real frame header among the multiple candidate frame headers. Therefore, even if the second correlation value of the candidate starting position of the frame header with the largest first correlation value does not meet the condition, the initial candidate starting position of the frame header can still be used as the real starting position of the frame header for this frame header detection. In this way, the occurrence of missed detection can be avoided.

[0156] In some embodiments, when in the non-inter-frame maintenance state, in response to detecting the real start position of the frame header, the non-inter-frame maintenance state is switched to the inter-frame maintenance state.

[0157] Exemplarily, after executing S404, the state may be switched from the non-inter-frame maintenance state to the inter-frame maintenance state.

[0158] In a possible implementation, the value stored in the register for maintaining the state between frames may be reset to a value corresponding to a preset number of times.

[0159] It is understandable that in the case of being in the non-inter-frame maintenance state, in response to detecting the real starting position of the frame header, the non-inter-frame maintenance state is switched to the inter-frame maintenance state. In this way, the detection conditions can be lowered in the subsequent frame header detection, thereby reducing the probability of missed detection.

[0160] In some embodiments, when in the inter-frame maintenance state, the inter-frame maintenance state is switched to the non-inter-frame maintenance state based on the failure to detect the real starting position of the frame header that meets the credibility requirement after consecutive preset times of frame header detection.

[0161] It should be noted that the embodiments of the present application do not limit the preset number of times. For example, the preset number of times may be 2, 4, 5, etc. It should be understood that the preset number of times is positively correlated with the periodicity of the frame signal transmission cycle. The stronger the periodicity of the frame signal transmission cycle, the greater the preset number of times may be. The weaker the periodicity of the frame signal transmission cycle, the smaller the preset number of times may be.

[0162] For example, Figure 8 As shown, if the preset number is 3. At time a, a real frame header that meets the credibility requirement is obtained, and the inter-frame maintenance state is entered. After time a, if the real starting position of the frame header that meets the credibility requirement is not detected in detection cycle 1, detection cycle 2, and detection cycle 3, then after detection cycle 3, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

[0163] It is understandable that, in the case of the inter-frame maintenance state, if the real starting position of the frame header that meets the credibility requirement is not detected based on the continuous preset number of frame header detections, the inter-frame maintenance state is switched to the non-inter-frame maintenance state. In this way, the detection conditions can be changed in time, thereby improving the accuracy of frame header detection.

[0164] In one possible design, the credibility requirement includes: the first correlation value is greater than a first threshold, and the second correlation value is greater than a second threshold, or the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold.

[0165] In a possible design, when in the inter-frame maintenance state, based on the fact that the real starting position of the frame header that meets the credibility requirement is not detected after one frame header detection, the value stored in the register of the inter-frame maintenance state is reduced by 1. When the value stored in the register of the inter-frame maintenance state is 0, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

[0166] Exemplarily, in S601, if the candidate starting positions of the multiple frame headers detected in this frame header detection all meet the first correlation condition, the value stored in the register for maintaining the state between frames may be reduced by 1. Alternatively, in S703, if the second correlation value of the candidate starting position of the frame header with the largest first correlation value is less than or equal to the second threshold, the value stored in the register for maintaining the state between frames may be reduced by 1.

[0167] In some embodiments, in the inter-frame maintenance state, based on a frame header detection to detect the real starting position of the frame header that meets the credibility requirement, the value stored in the register of the inter-frame maintenance state is reset to a value corresponding to a preset number of times.

[0168] Exemplarily, in S601, if the first correlation value of the candidate starting position of the frame header is greater than the first threshold, and the second correlation value is greater than the second threshold, the value corresponding to the preset number of times can be reset. Alternatively, in S703, if the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold, the value corresponding to the preset number of times can be reset.

[0169] It is understandable that, in the case of the inter-frame maintenance state, if the real starting position of the frame header that meets the credibility requirement is redetected, the inter-frame maintenance state can be extended to reduce the missed detection rate of the frame header and improve the accuracy of the frame header detection.

[0170] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It can be understood that in order to realize the above functions, the detection device of the frame header includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the steps of the frame header detection method of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0171] The embodiment of the present application can divide the detection device of the frame header into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0172] like Fig. 9 FIG. 1 is a schematic diagram of a structure of a frame header detection device provided in an embodiment of the present application. The frame header detection device is used to perform Figure 2 , Figure 4 , Figure 6 , Figure 7 The frame header detection method shown in the figure. The frame header detection device may include: a sampling module 901 and a processing module 902.

[0173] The sampling module 901 is used to start sampling from the candidate starting position of the frame header to obtain the data frame sequence to be tested. The processing module 902 is used to perform a correlation operation on the frame header part in the data frame sequence to be tested to obtain a first correlation value, and to perform a correlation operation on the non-frame header part in the data frame sequence to be tested to obtain a second correlation value. The processing module 902 is also used to identify whether the candidate starting position of the frame header is the real starting position of the frame header based on the first correlation value and the second correlation value.

[0174] In a possible design, the processing module 902 is used to determine the candidate starting position of the frame header as the real starting position of the frame header when the first correlation value is greater than the first threshold and the second correlation value is greater than the second threshold in the case of non-inter-frame maintenance state. Alternatively, the processing module 902 is used to determine the candidate starting position of the frame header as the real starting position of the frame header based on the second correlation value in the case of being in the inter-frame maintenance state; wherein the inter-frame maintenance state is used to indicate that the real starting position of the frame header that meets the credibility requirement is detected within a preset time length before the current time.

[0175] In a possible design, the processing module 902 is used to determine the candidate starting positions of multiple frame headers for this frame header detection based on the actual starting position of the frame header determined by the previous frame header detection, the frame signal transmission period, and the error range of the transmission time when the frame header is in the inter-frame maintenance state. The sampling module 901 is used to sample the candidate starting position of each frame header from the candidate starting position of the frame header to obtain a data frame sequence to be tested.

[0176] In a possible design, processing module 902 is used to determine the initial candidate starting position of the frame head for this frame head detection based on the actual starting position of the frame head determined last time and the frame signal sending period. Processing module 902 is used to determine multiple sampling points before and after the initial candidate starting position of the frame head as candidate starting positions of other frame heads based on the initial candidate starting position of the frame head and the error range of the sending time. The candidate starting positions of the multiple frame heads include: candidate starting positions of other frame heads and the initial candidate starting position of the frame head.

[0177] In one possible design, the processing module 902 is used to determine that the candidate starting position of the frame header is the actual starting position of the frame header if the first correlation value is greater than the first threshold and the second correlation value is greater than the second threshold when in an inter-frame maintenance state.

[0178] In one possible design, the processing module 902 is used to use the initial candidate starting position of the frame header as the actual starting position of the frame header detected this time when the candidate starting positions of multiple frame headers detected this time all meet the first relevant condition in the case of being in an inter-frame maintenance state; the first relevant condition includes: the first relevant value is greater than the first threshold, and the second relevant value is less than or equal to the second threshold.

[0179] In one possible design, processing module 902 is used to determine the candidate starting position of the frame head with the largest first correlation value from among the candidate starting positions of the frame head when the candidate starting positions of the multiple frame head for the current frame head detection all meet the second correlation condition when the frame head for the current frame head detection is in the inter-frame maintenance state; wherein the second correlation condition includes: the first correlation value is less than or equal to the first threshold. Processing module 902 is used to use the candidate starting position of the frame head with the largest first correlation value as the actual starting position of the frame head for the current frame head detection if the second correlation value of the candidate starting position of the frame head with the largest first correlation value is greater than the second threshold.

[0180] In one possible design, the processing module 902 is used to use the initial candidate starting position of the frame head as the actual starting position of the frame head for this frame head detection if the second correlation value of the candidate starting position of the frame head with the largest first correlation value is less than or equal to a second threshold when in an inter-frame maintenance state.

[0181] In one possible design, the processing module 902 is used to switch from the non-inter-frame maintenance state to the inter-frame maintenance state in response to detecting the actual starting position of the frame header when in the non-inter-frame maintenance state.

[0182] In one possible design, the processing module 902 is used to switch from the inter-frame maintenance state to the non-inter-frame maintenance state when, in the inter-frame maintenance state, a preset number of consecutive frame header detections have failed to detect the true starting position of the frame header that meets the credibility requirement.

[0183] In one possible design, the credibility requirements include: the first correlation value is greater than a first threshold, and the second correlation value is greater than a second threshold, or the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold.

[0184] In one possible design, the processing module 902 is used to, when in the inter-frame maintenance state, reduce the value stored in the register of the inter-frame maintenance state by 1 based on the fact that the real starting position of the frame header that meets the credibility requirement is not detected in one frame header detection. The processing module 902 is used to switch from the inter-frame maintenance state to the non-inter-frame maintenance state when the value stored in the register of the inter-frame maintenance state is 0.

[0185] In one possible design, the processing module 902 is used to reset the value stored in the register of the inter-frame maintenance state to a value corresponding to a preset number of times based on a frame header detection to detect the true starting position of the frame header that meets the credibility requirements when in the inter-frame maintenance state.

[0186] Fig.101 is a schematic diagram of another frame header detection device according to an exemplary embodiment. The frame header detection device may include a processor 1002, and the processor 1002 is used to execute application code to implement the frame header detection method in the present application.

[0187] The processor 1002 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0188] like Fig.10 As shown, the frame header detection device may further include a memory 1003. The memory 1003 is used to store application program codes for executing the solution of the present application, and is controlled to be executed by the processor 1002.

[0189] The memory 1003 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1003 may exist independently and be connected to the processor 1002 via the bus 1004. The memory 1003 may also be integrated with the processor 1002.

[0190] like Fig.10 As shown, the frame header detection device may further include a communication interface 1001, wherein the communication interface 1001, the processor 1002, and the memory 1003 may be coupled to each other, for example, via a bus 1004. The communication interface 1001 is used to perform information interaction with other devices, for example, to support information interaction between the frame header detection device and other devices.

[0191] It should be pointed out that Fig.10The device structure shown in the figure does not constitute a limitation on the detection device of the frame header, except Fig.10 In addition to the components shown, the frame header detection device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0192] In actual implementation, the functions implemented by the processing module 902 can be Fig.10 The processor 1002 shown calls the program code in the memory 1003 to implement.

[0193] The present application also provides a computer-readable storage medium, on which instructions are stored, and when the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer can execute the frame header detection method provided in the above-mentioned embodiment. For example, the computer-readable storage medium may be a memory 1003 including instructions, and the above instructions may be executed by a processor 1002 of a computer device to complete the above method. Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0194] Fig.11 A conceptual partial view of a computer program product provided by an embodiment of the present application is schematically shown, where the computer program product includes a computer program for executing a computer process on a computing device.

[0195] In one embodiment, the computer program product is provided using a signal bearing medium 1100. The signal bearing medium 1100 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 2 , Figure 4 , Figure 6 , Figure 7 Thus, for example, reference to Figure 2 In the embodiment shown in , one or more features of S201-S203 may be undertaken by one or more instructions associated with the signal bearing medium 1100. In addition, Fig.11 The program instructions in also describe example instructions.

[0196] In some examples, the signal bearing medium 1100 may include a computer readable medium 1101, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.

[0197] In some implementations, the signal bearing medium 1100 may include a computer recordable medium 1102 such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, or the like.

[0198] In some implementations, signal bearing medium 1100 may include communication medium 1103 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

[0199] The signal bearing medium 1100 may be communicated by a wireless form of communication medium 1103. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.

[0200] In some examples, such as for Fig.10 The described frame header detection apparatus may be configured to provide various operations, functions, or actions in response to one or more program instructions in the computer-readable medium 1101 , the computer-recordable medium 1102 , and / or the communication medium 1103 .

[0201] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0202] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, 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 devices or units, which can be electrical, mechanical or other forms.

[0203] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0204] 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.

[0205] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions for a device or processor to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk.

[0206] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting a frame header, characterized in that: The method comprises: Sampling is performed starting from the candidate starting position of the frame header to obtain a data frame sequence to be tested; Performing a correlation operation on a frame header part in the data frame sequence to be tested to obtain a first correlation value, and performing a correlation operation on a non-frame header part in the data frame sequence to be tested to obtain a second correlation value; Based on the first correlation value and the second correlation value, it is identified whether the candidate start position of the frame header is the real start position of the frame header.

2. The method according to claim 1, characterized in that: The step of identifying whether the candidate starting position of the frame header is the real starting position of the frame header based on the first correlation value and the second correlation value includes: In the case of being in a non-inter-frame maintenance state, if the first correlation value is greater than a first threshold and the second correlation value is greater than a second threshold, then determining the candidate start position of the frame header as the real start position of the frame header; or, When in the inter-frame maintenance state, based on the second correlation value, the candidate starting position of the frame head is determined to be the actual starting position of the frame head; wherein, the inter-frame maintenance state is used to characterize the actual starting position of the frame head that meets the credibility requirements detected within a preset time length before the current time.

3. The method according to claim 2, characterized in that The step of sampling from the candidate starting position of the frame header to obtain a data frame sequence to be tested includes: In the case of being in the inter-frame maintenance state, determining candidate starting positions of multiple frame headers for this frame header detection based on the real starting position of the frame header determined by the previous frame header detection, the frame signal transmission period, and the error range of the transmission time; For each candidate starting position of the frame header, sampling is performed starting from the candidate starting position of the frame header to obtain a data frame sequence to be tested.

4. The method according to claim 3, characterized in that In the case of being in the inter-frame maintenance state, based on the real starting position of the frame header determined by the previous frame header detection, the frame signal transmission period and the error range of the transmission time, determining the candidate starting positions of multiple frame headers for this frame header detection includes: Based on the real starting position of the frame header determined last time and the frame signal sending period, determine the initial candidate starting position of the frame header for this frame header detection; Based on the initial candidate starting position of the frame header and the error range of the sending time, multiple sampling points before and after the initial candidate starting position of the frame header are determined as candidate starting positions of other frame headers, and the candidate starting positions of the multiple frame headers include: the candidate starting positions of the other frame headers and the initial candidate starting position of the frame header.

5. The method according to claim 3, characterized in that: The step of determining, in the case of being in the inter-frame maintenance state, based on the second correlation value, that the candidate starting position of the frame header is the real starting position of the frame header comprises: In the case of being in the inter-frame maintenance state, if the first correlation value is greater than a first threshold and the second correlation value is greater than a second threshold, it is determined that the candidate starting position of the frame header is the actual starting position of the frame header.

6. The method according to claim 5, characterized in that The method further comprises: When in the inter-frame maintenance state, if the candidate starting positions of multiple frame heads of this frame head detection all meet the first relevant condition, the initial candidate starting position of the frame head will be used as the real starting position of the frame head of this frame head detection; the first relevant condition includes: the first relevant value is greater than the first threshold, and the second relevant value is less than or equal to the second threshold.

7. The method according to claim 3, characterized in that The method further comprises: In the case of being in the inter-frame maintenance state, if the candidate starting positions of multiple frame headers detected in this frame header detection all meet the second correlation condition, then determine the candidate starting position of the frame header with the largest first correlation value from the candidate starting positions of the multiple frame headers; wherein the second correlation condition includes: the first correlation value is less than or equal to the first threshold; If the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than a second threshold, the candidate starting position of the frame header with the largest first correlation value is used as the real starting position of the frame header for this frame header detection.

8. The method according to claim 7, characterized in that The method further comprises: In the case of the inter-frame maintenance state, if the second correlation value of the candidate starting position of the frame header with the largest first correlation value is less than or equal to the second threshold, the initial candidate starting position of the frame header is used as the real starting position of the frame header for this frame header detection.

9. The method according to claim 2, characterized in that: The method further comprises: In the case of being in the non-inter-frame maintenance state, in response to detecting the true start position of the frame head, switching from the non-inter-frame maintenance state to the inter-frame maintenance state is performed.

10. The method according to claim 2, characterized in that The method further comprises: In the case of being in the inter-frame maintaining state, the inter-frame maintaining state is switched to the non-inter-frame maintaining state based on the fact that the real starting position of the frame header that meets the credibility requirement is not detected after consecutive preset times of frame header detection.

11. The method according to claim 2 or 10, characterized in that: The credibility requirement includes: the first correlation value is greater than the first threshold, and the second correlation value is greater than the second threshold, or the second correlation value of the candidate starting position of the frame header with the largest first correlation value is greater than the second threshold.

12. The method according to claim 10, characterized in that In the case of being in the inter-frame maintaining state, switching from the inter-frame maintaining state to the non-inter-frame maintaining state based on the failure to detect the real starting position of the frame header that meets the credibility requirement after consecutive preset number of frame header detections, comprises: In the case of being in the inter-frame maintaining state, based on the fact that a real starting position of the frame header that meets the credibility requirement is not detected in one frame header detection, the value stored in the register of the inter-frame maintaining state is reduced by 1; When the value stored in the register of the inter-frame maintenance state is 0, the inter-frame maintenance state is switched to the non-inter-frame maintenance state.

13. The method according to claim 12, characterized in that The method further comprises: In the case of being in the inter-frame maintaining state, based on a frame header detection, a real starting position of the frame header that meets the credibility requirement is detected, and the value stored in the register of the inter-frame maintaining state is reset to a value corresponding to the preset number of times.

14. A frame header detection device, characterized in that: The device comprises: A sampling module, used for sampling from a candidate starting position of a frame header to obtain a data frame sequence to be tested; A processing module, configured to perform a correlation operation on a frame header portion in the data frame sequence to be tested to obtain a first correlation value, and to perform a correlation operation on a non-frame header portion in the data frame sequence to be tested to obtain a second correlation value; The processing module is further configured to identify, based on the first correlation value and the second correlation value, whether the candidate starting position of the frame header is the actual starting position of the frame header.

15. A frame header detection device, characterized in that: include: Memory and processor; Memory and processor coupling; The memory is used to store instructions executable by the processor; When the processor executes the instructions, the method according to any one of claims 1 to 13 is performed.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 13.