A handshake signal detection method, device, equipment, and storage medium
Through multiple sliding correlation and double threshold methods, the detection success rate and false alarm rate problems in the prior art when the signal-to-noise ratio dynamic range is large, and efficient handshake signal detection in vehicle-mounted Ethernet communication is achieved.
Patent Information
- Application Number
- CN202211435062.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-16
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-11-16
AI Technical Summary
The existing signal detection methods have a lower probability of detection success at low signal-to-noise ratio, while lowering the threshold will increase the probability of false alarms, and cannot meet the high probability of successful detection and low false alarms at the same time in scenarios with a large signal-to-noise ratio dynamic range.
Multiple sliding correlation and double threshold methods are used to slide correlation of the transmitting end signal with the pre-stored local code, record the relevant results, and set the first and second thresholds to judge the arrival time and correctness of the handshake signal.
It improves the probability of detection success in scenarios with a large signal-to-noise ratio dynamic range, and reduces the probability of false alarms, ensuring accurate detection of handshake signals.
Smart Images

Figure CN115766538B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of in-vehicle Ethernet communication technology, and in particular to a handshake signal detection method, apparatus, device, and storage medium. Background Art
[0002] In the field of communications, before a handshake is performed, it is a common method for the receiver to use the strong autocorrelation and weak cross-correlation of cyclic codes to detect the signal from the transmitter to determine whether it is a handshake signal. Autocorrelation and cross-correlation respectively represent the degree of correlation between two time series and between the values of the same time series at any two different times. Specifically, the cross-correlation function describes the correlation between the values of a random signal x(t) and y(t) at any two different times t1 and t2, while the autocorrelation function describes the correlation between the values of a random signal x(t) at any two different times t1 and t2.
[0003] Existing signal detection methods compare the correlation result of a cyclic code with a threshold. If the threshold is exceeded, detection is considered successful. However, at low signal-to-noise ratios (SNRs), the probability of the correlation result exceeding the threshold is low, which means the probability of successful detection is low. Lowering the threshold to increase the probability of successful detection also increases the probability of false alarms. In scenarios with a wide dynamic range of SNRs, existing signal detection methods cannot simultaneously achieve a high probability of successful detection and a low probability of false alarms. Summary of the Invention
[0004] In view of this, the present application proposes a handshake signal detection method, apparatus, device, and storage medium, which can improve the detection success probability and reduce the false alarm probability during the handshake signal detection process.
[0005] In a first aspect, the present application provides a handshake signal detection method, comprising:
[0006] Performing sliding correlation on the signal sent by the transmitting end and the pre-stored local code, obtaining a corresponding first correlation result according to the correlation value of this sliding correlation, and recording the first position of the maximum correlation value of this sliding correlation when the first correlation result exceeds a first threshold;
[0007] Using the first position as a starting position, performing sliding correlation on the signals of multiple consecutive periods sent by the transmitting end with the local code, obtaining corresponding second correlation results based on the correlation values of each sliding correlation, and recording the second position of the maximum correlation value of at least one sliding correlation when the second correlation result corresponding to the sliding correlation exceeds a second threshold;
[0008] When the distance between any two positions among the recorded multiple positions is less than the set distance, it is determined that the signal sent by the sending end is a correct handshake signal.
[0009] As described above, the present application performs multiple sliding correlations on the signals of multiple consecutive cycles sent by the transmitter, and obtains the correlation results of each sliding correlation based on the correlation value, and determines whether the handshake signal is detected successfully based on the comparison result of the correlation result and the threshold. Specifically, by setting a double threshold, the correlation result of the first sliding correlation is compared with the first threshold to determine the first position of the maximum correlation value of this sliding correlation. The time corresponding to the first position is the time when the handshake signal arrives. The first position is used as the starting position, and the signals of multiple consecutive cycles sent by the transmitter are sliding correlated with the local code respectively, and multiple correlation results of consecutive multiple correlations are obtained. When one or more of the multiple correlation results exceed the second threshold, the second position of the maximum correlation value of the sliding correlation is recorded respectively. When the distance between any two positions of the recorded multiple positions (the first position and the multiple second positions) is less than the set distance, the detection is successful, and it is determined that the signal sent by the transmitter is a handshake signal, and the handshake process between the transmitter and the receiver can be formally executed. By providing a handshake signal detection method with multiple correlations and double thresholds, the present application can improve the detection success probability and reduce the false alarm probability in handshake signal detection scenarios with a large dynamic range of signal-to-noise ratio.
[0010] Optionally, obtaining a corresponding correlation result according to the sliding-related correlation value includes:
[0011] Performing sliding correlation on the signal sent by the transmitting end and the local code to obtain all correlation values of this sliding correlation;
[0012] obtaining a first statistic based on a plurality of correlation values exceeding a first threshold among all the correlation values, and obtaining a second statistic based on a plurality of correlation values below a second threshold among all the correlation values; the first threshold being greater than or equal to the second threshold;
[0013] The correlation result is obtained according to the ratio of the first statistic and the second statistic.
[0014] From the above, by sorting all the correlation values obtained by sliding correlation, a first statistic is obtained according to multiple larger correlation values, and a second statistic is obtained according to multiple smaller correlation values. The ratio of the first statistic to the second statistic can be used as the correlation result and compared with the first threshold and the second threshold respectively.
[0015] Optionally, the first statistic is a signal amplitude, the second statistic is a noise amplitude, and the correlation result is a signal-to-noise ratio.
[0016] From the above, the correlation result can specifically be a signal-to-noise ratio, which is obtained by sorting all the correlation values obtained by sliding correlation, obtaining the signal amplitude according to multiple larger correlation values, obtaining the noise amplitude according to multiple smaller correlation values, and obtaining the signal-to-noise ratio according to the ratio of the signal amplitude to the noise amplitude.
[0017] Optionally, the signal sent by the sending end is a cyclic code.
[0018] As described above, this method can be applied to the handshake process of the automotive Ethernet. According to the standard communication protocol of the automotive Ethernet, the cyclic code is usually used as the handshake signal of the sending end to perform the handshake process between two nodes.
[0019] Optionally, also include:
[0020] A section of the cyclic code is intercepted and pre-stored as a local code; the section length is less than or equal to a period length of the cyclic code.
[0021] As described above, before executing the handshake process, usually according to the standard protocol, a segment of the cyclic code in one period is intercepted as the local code and pre-stored at the receiving end so as to perform sliding correlation on the signal sent by the sending end based on the local code. The handshake signal sent by the sending end is composed of the same cyclic code for multiple consecutive periods. Therefore, when intercepting the local code, the intercepted length should be less than or equal to the length of one period of the cyclic code.
[0022] Optionally, also include:
[0023] When the first correlation result is lower than the first threshold, the detection fails;
[0024] Continue to receive the signal sent by the sending end and re-execute the detection process.
[0025] Optionally, also include:
[0026] If the correlation results corresponding to multiple consecutive sliding correlations are all lower than the second threshold or the distance between any two positions in the multiple recorded positions is greater than the set distance, the detection fails;
[0027] Continue to receive the signal sent by the sending end and re-execute the detection process.
[0028] From the above, by setting the first threshold and the second threshold, the signal sent by the transmitter is subjected to dual-threshold detection. When the correlation result obtained is lower than the set first threshold or the second threshold, or when the distance between any two of the multiple recorded positions is greater than the set distance, it can be judged that the detection has failed, and the detection process needs to be re-executed.
[0029] In a second aspect, the present application provides a handshake signal detection device, comprising:
[0030] a first detection module, configured to perform sliding correlation on a signal sent by the transmitting end and a pre-stored local code, obtain a corresponding first correlation result based on a correlation value of the sliding correlation, and record a first position of a maximum correlation value of the sliding correlation when the first correlation result exceeds a first threshold;
[0031] The second detection module is used to take the first position as the starting position, perform sliding correlation on the signals of multiple consecutive cycles sent by the sending end with the local code, obtain corresponding second correlation results according to the correlation value of each sliding correlation, and record the second position of the maximum correlation value of the sliding correlation when the second correlation result corresponding to at least one sliding correlation exceeds the second threshold; when the distance between any two positions among the multiple recorded positions is less than the set distance, determine that the signal sent by the sending end is a correct handshake signal.
[0032] In a third aspect, the present application provides a computing device, comprising:
[0033] processor;
[0034] a memory for storing one or more programs;
[0035] When the one or more programs are executed by the processor, the processor implements the above-mentioned handshake signal detection method.
[0036] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned handshake signal detection method when executed by a computer.
[0037] These and other aspects of the present application will become more apparent from the following description of the embodiment(s). BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of a handshake signal detection method provided in an embodiment of the present application;
[0039] Figure 2 A structural diagram of a handshake signal detection device provided in an embodiment of the present application;
[0040] Figure 3 A structural diagram of a computing device provided in an embodiment of the present application.
[0041] It should be understood that the sizes and shapes of the blocks in the above structural diagrams are for reference only and should not constitute an exclusive interpretation of the embodiments of this application. The relative positions and inclusion relationships between the blocks presented in the structural diagrams are only schematic representations of the structural relationships between the blocks, and do not limit the physical connection methods of the embodiments of this application. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.
[0043] An embodiment of the present application provides a handshake signal detection method that can detect handshake signals during Ethernet communication. The method performs multiple sliding correlations on signals sent by a transmitter over multiple consecutive cycles, obtains correlation results for each sliding correlation based on the correlation value, and determines whether the handshake signal has been successfully detected based on a comparison of the correlation results with a threshold. By providing a handshake signal detection method with multiple correlations and dual thresholds, the present application can improve the probability of successful detection and reduce the probability of false alarms in handshake signal detection scenarios with a large signal-to-noise ratio dynamic range. The signal-to-noise ratio dynamic range refers to the difference between the maximum and minimum values that a variable signal can reach.
[0044] like Figure 1 As shown, in a handshake signal detection method provided by the present application, the method can be applied to the handshake process of vehicle-mounted Ethernet communication, and the method includes:
[0045] S10: Perform sliding correlation on the signal sent by the transmitting end and the pre-stored local code, obtain a corresponding first correlation result based on the correlation value of this sliding correlation, and record the first position of the maximum correlation value of this sliding correlation when the first correlation result exceeds a first threshold;
[0046] In this embodiment, the receiving end receives and detects the signal sent by the transmitting end to determine whether the signal sent by the transmitting end is a handshake signal, and determines the arrival time of the handshake signal based on the maximum correlation value. Specifically, the signal sent by the transmitting end may be a cyclic code with multiple consecutive cycles, while the local code at the receiving end is obtained by pre-slicing a section of the cyclic code, where the section length is less than or equal to the length of one cycle of the cyclic code. A sliding correlation is performed between the cyclic code sent by the transmitter and the local code pre-stored by the receiver. The head of the cyclic code sent by the transmitter is determined based on the peak value of the sliding correlation. Specifically, N data (N is equal to the number of data in the local code pre-stored by the receiver) are intercepted starting from a certain position in the cyclic code sent by the transmitter. The N intercepted data are correlated with the local code pre-stored by the receiver to obtain a correlation value. Then, N data are re-intercepted from a certain position in the cyclic code sent by the transmitter as a new starting position. The re-intercepted N data are correlated with the local code pre-stored by the receiver to obtain another correlation value. This process is repeated multiple times by performing a correlation calculation between the N data intercepted each time and the local code pre-stored by the receiver. Multiple correlation values of this sliding correlation are obtained. The multiple correlation values are sorted, and the position corresponding to the peak of the correlation value is the head of the cyclic code sent by the transmitter. The correlation value is used to reflect the degree of correlation between the cyclic code sent by the sender and the pre-stored local code. The larger the correlation value, the higher the degree of correlation, which means that the overlap between the cyclic code sent by the sender and the local code is higher.
[0047] In this step, all obtained correlation values are screened using a set first threshold and a set second threshold, wherein the first threshold is used to screen out larger correlation values, and the second threshold is used to screen out smaller correlation values, and the first threshold is greater than the second threshold. Based on the set first threshold, a plurality of larger correlation values (greater than the first threshold) are selected, and a first statistic is obtained based on the plurality of larger correlation values. Based on the set second threshold, a plurality of smaller correlation values (less than the second threshold) are selected, and a second statistic is obtained based on the plurality of smaller correlation values. The ratio of the first statistic to the second statistic is the first correlation result.
[0048] The first correlation result is judged according to the set first threshold. When the first correlation result is lower than the first threshold, the detection fails and the process returns to step S10 to restart the detection process. When the first correlation result exceeds the first threshold, the first position of the maximum correlation value in this sliding correlation is recorded. The first position is the arrival time of the handshake signal sent by the sending end, and then the process proceeds to step S20.
[0049] S20: Using the first position as a starting position, performing sliding correlation on the signals of multiple consecutive periods sent by the transmitting end with the local code, obtaining corresponding second correlation results based on the correlation values of each sliding correlation, and recording the second position of the maximum correlation value of at least one sliding correlation when the second correlation result corresponding to the sliding correlation exceeds a second threshold;
[0050] Since the first position determined above is the arrival moment of the handshake signal sent by the transmitter, this step uses the first moment as the starting position, and performs sliding correlation on the signals of multiple consecutive cycles sent by the transmitter after the starting position with the local code, and obtains a first statistic based on multiple larger correlation values of each sliding correlation, and obtains a second statistic based on multiple smaller correlation values, and obtains a second correlation result corresponding to each sliding correlation based on the ratio of the first statistic to the second statistic (the number of the second correlation results is consistent with the number of sliding correlations).
[0051] According to the set second threshold, the multiple second correlation results obtained are judged separately. When the multiple second correlation results are all lower than the second threshold, the detection fails, and returns to step S10 to restart the detection process. When at least one second correlation result exceeds the second threshold, the second position of the maximum correlation value of this sliding correlation is recorded.
[0052] S30: When the distance between any two positions among the plurality of recorded positions is less than a set distance, it is determined that the signal sent by the sending end is a correct handshake signal.
[0053] Based on the detection process of steps S10 and S20 above, when the distance between any two positions among the multiple recorded positions (a first position and one or more second positions) is less than the set distance, it can be determined that the signal sent by the sender is a correct handshake signal, and this handshake signal detection is successful.
[0054] In some embodiments, an averaging or weighted averaging method can be used to obtain a first statistic by averaging or weighted averaging multiple larger correlation values. The first statistic can be the signal amplitude of the sliding correlation; a second statistic can be obtained by averaging or weighted averaging multiple smaller correlation values. The second statistic can be the noise amplitude of the sliding correlation. The signal-to-noise ratio can be obtained as the correlation result corresponding to the sliding correlation by the ratio of the signal amplitude and the noise amplitude.
[0055] The handshake signal detection method of the present application is described in detail below based on another specific embodiment provided by the present application. In this specific embodiment, the handshake signal sent by the transmitting end is specifically composed of three consecutive cycles of a cyclic code, where the length of one cycle of the cyclic code is L = 255, and the length of the local code pre-stored by the receiving end is L0 = 255, that is, the length of the local code is the same as the length of one cycle of the cyclic code. This embodiment includes initial detection and continuous detection, specifically:
[0056] Initial detection: Perform a sliding correlation (recorded as the first time) on the cyclic code of three consecutive cycles sent by the transmitter and the pre-stored local code. The correlation values within this sliding cycle are sorted. N1 larger correlation values (N1=3) are selected based on a first threshold. The signal amplitude is obtained based on these N1 larger correlation values. N2 smaller correlation values (N2=250) are selected based on a second threshold. The noise amplitude is obtained based on these N2 smaller correlation values. The signal-to-noise ratio (SNR) is obtained based on the ratio of the signal amplitude to the noise amplitude.
[0057] By comparing the signal-to-noise ratio corresponding to this sliding correlation with the first threshold, when the signal-to-noise ratio exceeds the first threshold, the position of the maximum correlation value of this sliding correlation is recorded (assuming it is 20), and continuous detection is started;
[0058] Continuous detection: Perform three consecutive sliding correlations (denoted as the second, third, and fourth times) on the cyclic code of three consecutive periods and the local code. Select N1 larger correlation values (N1=3) from the correlation values of each sliding correlation according to the first threshold, and obtain the signal amplitude based on the N1 larger correlation values. Select N2 smaller correlation values (N2=250) according to the second threshold, and obtain the noise amplitude based on the N2 smaller correlation values. The signal-to-noise ratio (amplitude ratio) corresponding to each sliding correlation is obtained based on the ratio of the signal amplitude to the noise amplitude.
[0059] By comparing the signal-to-noise ratios corresponding to the second, third, and fourth sliding correlations with the second threshold, when the signal-to-noise ratio corresponding to at least one sliding correlation (assuming it is the third) exceeds the second threshold, the second position (assuming it is 19) of the maximum correlation value of the sliding correlation is recorded. When the distance between any two positions among the recorded multiple positions (20, 19) is less than the set distance (D0=2), the handshake signal detection is successful, and it can be determined that the cyclic code sent by the sending end is a correct handshake signal. At this time, the receiving end can feedback the handshake signal to establish a handshake relationship.
[0060] In some embodiments, when the signal-to-noise ratio associated with the first slide is lower than the first threshold, or the signal-to-noise ratios corresponding to the second, third, and fourth slides are all lower than the second threshold, or the distance between any two of the multiple recorded positions is greater than the set distance, the detection fails, and the initial detection step is returned to the detection process again.
[0061] In summary, the embodiment of the present application provides a handshake signal detection method, which compares the correlation result of the first sliding correlation with the first threshold by setting a double threshold to determine the first position of the maximum correlation value of this sliding correlation. The time corresponding to the first position is the time when the handshake signal arrives. The first position is used as the starting position, and the signals of multiple consecutive cycles sent by the transmitter are sliding correlated with the local code respectively, and multiple correlation results of multiple consecutive correlations are obtained. When one or more of the multiple correlation results exceed the second threshold, the second position of the maximum correlation value of the sliding correlation is recorded respectively. When the distance between any two of the multiple recorded positions is less than the set distance, the handshake signal detection is successful, and it is determined that the signal sent by the transmitter is a handshake signal, and the handshake process between the transmitter and the receiver can be formally executed. Through the embodiment of the present application, the probability of successful detection can be improved and the probability of false alarm can be reduced in handshake signal detection scenarios with a large dynamic range of signal-to-noise ratio.
[0062] like Figure 2 As shown, the embodiment of the present application provides a handshake signal detection device, which can be used to implement any step of the above-mentioned handshake signal detection method and its optional embodiments. Figure 2 As shown, the device includes a first detection module 201 and a second detection module 202;
[0063] The first detection module 201 is used to perform sliding correlation on the signal sent by the transmitter with the pre-stored local code, obtain the corresponding first correlation result based on the correlation value of this sliding correlation, and record the first position of the maximum correlation value of this sliding correlation when the first correlation result exceeds the first threshold; the second detection module 202 is used to use the first position as the starting position, perform sliding correlation on the signals of multiple consecutive cycles sent by the transmitter with the local code respectively, obtain the corresponding second correlation results based on the correlation value of each sliding correlation, and record the second position of the maximum correlation value of this sliding correlation when the second correlation result corresponding to at least one sliding correlation exceeds the second threshold; when the distance between any two of the multiple recorded positions is less than the set distance, it is determined that the signal sent by the transmitter is a correct handshake signal.
[0064] It should be understood that the devices or modules in the embodiments of the present application can be implemented by software, for example, they can be implemented by computer programs or instructions having the above functions, and the corresponding computer programs or instructions can be stored in the memory inside the terminal, and the processor reads the corresponding computer programs or instructions in the memory to implement the above functions. Alternatively, the devices or modules in the embodiments of the present application can also be implemented by hardware. Alternatively, the devices or modules in the embodiments of the present application can also be implemented by a combination of a processor and a software module.
[0065] It should be understood that the processing details of the devices or modules in the embodiments of the present application can be referred to Figure 1 The related descriptions of the illustrated embodiment and related extended embodiments will not be repeated in the embodiments of this application.
[0066] Figure 3 1 is a schematic structural diagram of a computing device 1000 provided in an embodiment of the present application. The computing device 1000 includes: a processor 1010, a memory 1020, a communication interface 1030, and a bus 1040.
[0067] It should be understood that Figure 3 The communication interface 1030 in the computing device 1000 shown can be used to communicate with other devices.
[0068] The processor 1010 may be connected to a memory 1020. The memory 1020 may be used to store the program code and data. Therefore, the memory 1020 may be a storage unit within the processor 1010, an external storage unit independent of the processor 1010, or a component including both a storage unit within the processor 1010 and an external storage unit independent of the processor 1010.
[0069] Optionally, the computing device 1000 may further include a bus 1040. The memory 1020 and the communication interface 1030 may be connected to the processor 1010 via the bus 1040. The bus 1040 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1040 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The fact that only one line is used does not mean that there is only one bus or one type of bus.
[0070] It should be understood that in the embodiment of the present application, the processor 1010 can adopt a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. Alternatively, the processor 1010 uses one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.
[0071] The memory 1020 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1010. A portion of the processor 1010 may also include a non-volatile random access memory. For example, the processor 1010 may also store information about the device type.
[0072] When the computing device 1000 is running, the processor 1010 executes the computer-executable instructions in the memory 1020 to perform the operating steps of the above method.
[0073] It should be understood that the computing device 1000 according to the embodiment of the present application can correspond to the corresponding subject in executing the method according to each embodiment of the present application, and the above-mentioned other operations and / or functions of each module in the computing device 1000 are respectively for implementing the corresponding processes of each method of the present embodiment. For the sake of brevity, they will not be repeated here.
[0074] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 beyond the scope of this application.
[0075] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0076] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. 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.
[0077] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0078] 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.
[0079] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment 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 read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0080] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the program is used to execute the above method, which includes at least one of the solutions described in the above embodiments.
[0081] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media.Computer-readable media can be computer-readable signal media or computer-readable storage media.Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof.More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connection with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination thereof.In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0082] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0083] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0084] The computer program code for performing the operations of the present application can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0085] It should be noted that the embodiments described in this application are only a part of the embodiments of this application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the above detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the application for protection, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0086] The words "first, second, third, etc." or module A, module B, module C and other similar terms in the specification and claims are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0087] In the above description, the numbers representing the steps involved do not necessarily mean that the steps must be executed. Intermediate steps may also be included or replaced by other steps. If permitted, the order of the previous and next steps may be interchanged or executed simultaneously.
[0088] The term "comprising" as used in the specification and claims should not be construed as limiting to what is listed thereafter; it does not exclude other elements or steps. Thus, it should be interpreted as specifying the presence of the features, integers, steps, or components mentioned, but not excluding the presence or addition of one or more other features, integers, steps, or components, or groups thereof. Thus, the expression "a device comprising means A and B" should not be limited to a device consisting solely of components A and B.
[0089] The term "one embodiment" or "an embodiment" mentioned in this specification means that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present application. Therefore, the phrases "in one embodiment" or "in an embodiment" appearing in various places in this specification do not necessarily refer to the same embodiment, but may refer to the same embodiment. In addition, in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0090] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present application has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, all of which fall within the scope of protection of the present invention.
Claims
1. A handshake signal detection method, characterized in that: include: Performing sliding correlation on the signal sent by the transmitting end and the pre-stored local code, obtaining a corresponding first correlation result according to the correlation value of this sliding correlation, and recording the first position of the maximum correlation value of this sliding correlation when the first correlation result exceeds a first threshold; Using the first position as a starting position, performing sliding correlation on the signals of multiple consecutive periods sent by the transmitting end with the local code, obtaining corresponding second correlation results based on the correlation values of each sliding correlation, and recording the second position of the maximum correlation value of at least one sliding correlation when the second correlation result corresponding to the sliding correlation exceeds a second threshold; When the distance between any two positions among the recorded multiple positions is less than the set distance, it is determined that the signal sent by the sending end is a correct handshake signal.
2. The method according to claim 1, characterized in that The corresponding related results obtained according to the sliding-related related values include: Performing sliding correlation on the signal sent by the transmitting end and the local code to obtain all correlation values of this sliding correlation; obtaining a first statistic based on a plurality of correlation values exceeding a first threshold among all the correlation values, and obtaining a second statistic based on a plurality of correlation values below a second threshold among all the correlation values; the first threshold being greater than or equal to the second threshold; The correlation result is obtained according to the ratio of the first statistic and the second statistic.
3. The method according to claim 2, characterized in that The first statistic is the signal amplitude, the second statistic is the noise amplitude, and the correlation result is the signal-to-noise ratio.
4. The method according to claim 1, wherein The signal sent by the transmitting end is a cyclic code.
5. The method according to claim 4, characterized in that Also includes: A section of the cyclic code is intercepted and pre-stored as a local code; the section length is less than or equal to a period length of the cyclic code.
6. The method according to claim 1, characterized in that Also includes: When the first correlation result is lower than the first threshold, the detection fails; Continue to receive the signal sent by the sending end and re-execute the detection process.
7. The method according to claim 1, characterized in that Also includes: If the correlation results corresponding to multiple consecutive sliding correlations are all lower than the second threshold or the distance between any two positions in the multiple recorded positions is greater than the set distance, the detection fails; Continue to receive the signal sent by the sending end and re-execute the detection process.
8. A handshake signal detection device, characterized in that: include: a first detection module, configured to perform sliding correlation on a signal sent by the transmitting end and a pre-stored local code, obtain a corresponding first correlation result based on a correlation value of the sliding correlation, and record a first position of a maximum correlation value of the sliding correlation when the first correlation result exceeds a first threshold; The second detection module is used to take the first position as the starting position, perform sliding correlation on the signals of multiple consecutive cycles sent by the sending end with the local code, obtain corresponding second correlation results according to the correlation value of each sliding correlation, and record the second position of the maximum correlation value of the sliding correlation when the second correlation result corresponding to at least one sliding correlation exceeds the second threshold; when the distance between any two positions among the multiple recorded positions is less than the set distance, determine that the signal sent by the sending end is a correct handshake signal.
9. A computing device, characterized in that include: processor; a memory for storing one or more programs; When the one or more programs are executed by the processor, the processor implements the handshake signal detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer, the handshake signal detection method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Time-frequency synchronization method, system and device and readable storage medium
CN113141245A
Method and system for capturing spread spectrum signal in real time and medium
CN114268342A