Synchronous head position detection method and device, computer equipment and readable storage medium
By acquiring and modulating the synchronization head sequence in the AIS system, performing cross-correlation and secondary cross-correlation operations, the problem of inaccurate synchronization head position caused by signal frequency offset is solved, and the accurate processing and recovery of the AIS system signals is achieved.
Patent Information
- Application Number
- CN202011017966.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-09-24
AI Technical Summary
During signal transmission, the AIS system cannot accurately estimate the signal frequency offset due to multipath interference and noise, so it cannot find the exact position of the synchronization head.
By obtaining the reference signal, the local synchronization head sequence and alignment sequence are obtained, modulated and intercorrelated with the reference signal, demodulated the signal, and then secondary intercorrelation is performed to determine the synchronization head position to ensure accurate recovery of the original information.
This method can accurately find the synchronization head position when the frequency offset estimation is inaccurate, ensure the correct recovery of the original information, and improve the signal processing accuracy of the AIS system.
Smart Images

Figure CN114257482B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a synchronization head position detection method, a synchronization head position detection device, a computer device and a computer-readable storage medium. Background Art
[0002] The Automatic Identification System (AIS) is a maritime traffic control system that has been vigorously promoted by the International Maritime Organization in recent years. It is used to achieve traffic control communications between ships and shores and between ships to avoid ship collision accidents.
[0003] During the transmission of the signal, frequency offset is inevitable due to multipath interference and noise. The AIS system receiver will receive at the specified frequency (the AIS system receiving frequency is 161.975 / 162.025MHz), but the received signal has frequency offset. Although there are algorithms for estimating signal frequency offset in the prior art, they cannot be 100% accurate, so the signal frequency offset is bound to exist.
[0004] Therefore, the AIS system cannot accurately estimate the frequency offset of the signal during transmission, which will result in the inability to find the exact position of the synchronization head. Summary of the invention
[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present invention provides a synchronization head position detection method, a synchronization head position detection device, a computer device and a computer-readable storage medium.
[0006] In a first aspect, the present invention provides a synchronization head position detection method, comprising:
[0007] Obtain a reference signal;
[0008] Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal;
[0009] Cross-correlating the modulated signal with the reference signal, obtaining the reference signal position corresponding to the peak point after the cross-correlation, and demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0010] The local synchronization header sequence is cross-correlated twice with the demodulated signal to obtain two synchronization header positions of the demodulated signal.
[0011] Optionally, the two synchronization head positions are respectively the peak positions of the second cross-correlation, and the peak positions correspond to the starting position and the ending position of the effective signal.
[0012] Optionally, the reference signal is a modulated reference signal, and a modulation method of the local header sequence and the alignment sequence is the same as a modulation method of the reference signal.
[0013] Optionally, the alignment sequence is a 24-bit binary sequence in which 0s and 1s are alternately arranged.
[0014] Optionally, the local synchronization header sequence is an eight-bit binary sequence in which the first and last bits are the same and the middle six bits are different.
[0015] Optionally, obtaining the two synchronization head positions of the demodulated signal includes: obtaining two sequences that are identical to the local synchronization head sequence in the demodulated signal after the secondary cross-correlation; wherein one sequence is the starting position of a valid signal in the demodulated signal, and the other sequence is the ending position of the valid signal in the demodulated signal.
[0016] Optionally, the bit after the last bit of the sequence at the starting position is the starting end of the valid signal to be decoded, and the bit before the first bit of the sequence at the ending position is the ending end of the valid signal to be decoded.
[0017] In a second aspect, the present invention provides a synchronization head position detection device, comprising:
[0018] A reference signal module, wherein the reference signal module is used to obtain a reference signal;
[0019] A modulation signal module, the modulation signal module is used to obtain a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulation signal;
[0020] A primary cross-correlation module, the primary cross-correlation module is used to perform a primary cross-correlation on the modulated signal and the reference signal, obtain a reference signal position corresponding to a peak point after the primary cross-correlation, and demodulate the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0021] A secondary cross-correlation module is used to perform secondary cross-correlation on the local synchronization header sequence and the demodulated signal to obtain two synchronization header positions of the demodulated signal.
[0022] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0023] Obtain a reference signal;
[0024] Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal;
[0025] Cross-correlating the modulated signal with the reference signal, obtaining the reference signal position corresponding to the peak point after the cross-correlation, and demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0026] The local synchronization header sequence is cross-correlated twice with the demodulated signal to obtain two synchronization header positions of the demodulated signal.
[0027] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0028] Obtain a reference signal;
[0029] Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal;
[0030] Cross-correlating the modulated signal with the reference signal, obtaining the reference signal position corresponding to the peak point after the cross-correlation, and demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0031] The local synchronization header sequence is cross-correlated twice with the demodulated signal to obtain two synchronization header positions of the demodulated signal.
[0032] The above technical solution provided by the embodiment of the present invention has the following advantages compared with the prior art:
[0033] The synchronization head position detection method provided by the embodiment of the present invention includes: obtaining a reference signal; obtaining a local synchronization head sequence and an alignment sequence, modulating the local synchronization head sequence and the alignment sequence to obtain a modulated signal; performing a cross correlation between the modulated signal and the reference signal, obtaining a reference signal position corresponding to a peak point after the cross correlation, demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal; performing a second cross correlation between the local synchronization head sequence and the demodulated signal to obtain two synchronization head positions of the demodulated signal. In this way, the synchronization head position detection method provided by the embodiment of the present invention can determine the accurate synchronization head position for a signal whose frequency offset estimation is inaccurate and whose synchronization head cannot be accurately found through a single cross correlation, which is conducive to correctly restoring the original information. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 is a flow chart of a synchronization head position detection method provided by an embodiment of the present invention;
[0037] Figure 2 is a structural schematic diagram of a synchronization head position detection device provided by an embodiment of the present invention;
[0038] Figure 3 It is a diagram of the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 making creative work are within the scope of protection of this application.
[0040] An embodiment of the present invention provides a synchronization head position detection method, comprising: obtaining a reference signal; obtaining a local synchronization head sequence and an alignment sequence, modulating the local synchronization head sequence and the alignment sequence to obtain a modulated signal; performing a cross-correlation between the modulated signal and the reference signal, obtaining a reference signal position corresponding to a peak point after the cross-correlation, demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal; performing a second cross-correlation between the local synchronization head sequence and the demodulated signal to obtain two synchronization head positions of the demodulated signal.
[0041] By performing a cross correlation between the modulated signal and the reference signal, finding the approximate position of the synchronization head after the first cross correlation, and then demodulating the signal from the peak point after the first cross correlation, the demodulated signal is cross correlated twice with the local synchronization head sequence to obtain the accurate synchronization head position. In this way, the synchronization head position detection method provided by the embodiment of the present invention can determine the accurate synchronization head position for the signal whose frequency deviation estimation is inaccurate and the synchronization head cannot be accurately found through a single cross correlation, which is conducive to correctly restoring the original information. The specific scheme is as follows:
[0042] refer to Figure 1 , Figure 1 A flow chart of a synchronization head position detection method provided by an embodiment of the present invention, the method specifically comprises the following steps:
[0043] S101: Acquire a reference signal; acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal.
[0044] Among them, obtaining the reference signal includes capturing the reference signal through an SDR data capture platform, obtaining the local synchronization header sequence includes obtaining the local synchronization header sequence disclosed in the AIS protocol, and obtaining the alignment sequence includes obtaining the alignment sequence disclosed in the AIS protocol.
[0045] The reference signal is a modulated reference signal, and the modulation method of the local header sequence is the same as that of the reference signal. Specifically, the AIS signal is a bunch of binary sequences before it is transmitted into the air, and these binary sequences need to be modulated onto electromagnetic waves before they can be transmitted. The reference signal, that is, the received signal, is a modulated signal. Before demodulating the reference signal, the binary sequence of the local synchronization header and alignment sequence needs to be modulated as at the transmitting end, so that it can be cross-correlated with the modulated frame synchronization sequence part in the reference signal to obtain the maximum value, that is, the peak value. Specifically, the modulation method includes GMSK modulation.
[0046] Specifically, the local synchronization header sequence is an eight-bit binary sequence, the first and last bits of the eight-bit binary sequence are the same, the middle six bits of the eight-bit binary sequence are the same, and the middle six bits are different from the first and last bits. In a specific implementation, the local synchronization header sequence is an eight-bit binary sequence, and the eight-bit binary sequence is 01111110. In actual applications, the AIS protocol publicly specifies that the synchronization header sequence is 01111110. The local synchronization header sequence is consistent with the synchronization header sequence disclosed in the AIS protocol.
[0047] The alignment sequence is a 24-bit binary sequence, in which the first and second bits of the alignment sequence are different and appear alternately, that is, the alignment sequence is a 24-bit binary sequence of 01010101010101010101010101.
[0048] S102: Perform a cross-correlation between the modulated signal and the reference signal, obtain a reference signal position corresponding to a peak point after the cross-correlation, and start demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal.
[0049] S103: Perform secondary cross correlation on the local synchronization header sequence and the demodulated signal to obtain two synchronization header positions of the demodulated signal.
[0050] The two synchronization head positions are the peak positions of the second cross-correlation, and the peak positions are the starting position and the ending position of the effective signal.
[0051] Get the two synchronization head positions of the demodulated signal, including:
[0052] Two sequences identical to the local synchronization header sequence are obtained in the demodulated signal after the secondary cross-correlation, wherein one sequence is the starting position of the valid signal in the demodulated signal, and the other sequence is the ending position of the valid signal in the demodulated signal.
[0053] The bit after the last bit of the sequence at the starting position is the starting end of the valid signal to be decoded, and the bit before the first bit of the sequence at the ending position is the ending end of the valid signal to be decoded. Specifically, the local synchronization header sequence found does not need to be decoded, it only serves a position alignment. What really needs to be decoded is: the digital sequence between the first and last synchronization header sequences, that is, the first position of the first local synchronization header sequence after the second cross-correlation + 8 (because the local synchronization header sequence length is 8 bits) to the last position of the second local synchronization header sequence after the second cross-correlation - 8. The data in between needs to be decoded.
[0054] The process of secondary cross-correlation: The local synchronization header sequence is 01111110. If the demodulated signal has the same sequence, the result of the primary cross-correlation is 6. The specific calculation process is 0*0+1*1+1*1+1*1+1*1+1*1+1*1+0*0=6, and the corresponding multiplication and summation are sufficient. Then obtain the position of the same number of digital "1" in the local synchronization header sequence to obtain the position information of the synchronization header.
[0055] The first cross-correlation is the cross-correlation between waveforms, while the second cross-correlation is the cross-correlation between digital sequences. The first cross-correlation is the cross-correlation between the modulated signal and the reference signal. It is to cross-correlate the 32-bit sequence, i.e., the 24-bit alignment sequence and the 8-bit synchronization header sequence, with the reference signal after GMSK modulation. The signal after GMSK modulation is no longer a digital sequence such as 0 and 1, but a waveform; the cross-correlation between waveforms is also a point-by-point sliding multiplication. The amplitude of the waveform will not be a clear integer like 0 and 1, but the calculation result of the cross-correlation between waveforms will still have a peak.
[0056] The peak position of the second cross-correlation is the maximum value of the product addition result (0*0+1*1+1*1+1*1+1*1+1*1+1*1+0*0=6), that is, the maximum value point of the correlation operation, not the peak value of the signal, that is, not the wave crest point of the signal.
[0057] It should be noted that the AIS protocol stipulates that except for the frame synchronization sequence, if there are 5 consecutive 1s in other data, a 0 must be padded at the end, that is, there will not be 6 consecutive 1s except for the frame synchronization sequence, so the secondary cross-correlation value will not reach the maximum value of 6 except for the local synchronization header sequence. Therefore, the secondary cross-correlation can accurately locate the position of the frame head and frame tail according to the position where the value 6 appears.
[0058] refer to Figure 2 The embodiment of the present invention further discloses a synchronization head position detection device, comprising:
[0059] A reference signal module 100, the reference signal module 100 is used to obtain a reference signal;
[0060] A modulation signal module 200, the modulation signal module 200 is used to obtain a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulation signal;
[0061] The primary cross-correlation module 300 is used to perform a cross-correlation between the modulated signal and the reference signal, obtain the reference signal position corresponding to the peak point after the primary cross-correlation, and demodulate the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0062] The secondary cross-correlation module 400 is used to perform secondary cross-correlation on the local synchronization header sequence and the demodulation signal to obtain two synchronization header positions of the demodulation signal.
[0063] In this way, the synchronization head position detection device provided by the embodiment of the present invention can determine the accurate synchronization head position for a signal whose frequency offset estimation is inaccurate and whose synchronization head cannot be accurately found through a single cross correlation, which is conducive to correctly restoring the original information.
[0064] Specifically, the reference signal acquired by the reference signal module 100 is a modulated reference signal; the modulation method for modulating the local synchronization header sequence in the local synchronization header module 200 is the same as the modulation method of the reference signal. The modulation method includes GMSK modulation.
[0065] The local synchronization header sequence in the local synchronization header module 200 is an eight-bit binary sequence, the first and last bits of the eight-bit binary sequence are the same, the middle six bits of the eight-bit binary sequence are the same, and the middle six bits are different from the first and last bits. Specifically, the eight-bit binary sequence is 01111110.
[0066] The secondary cross-correlation module 400 includes: obtaining two sequences identical to the local synchronization header sequence in the demodulated signal after secondary cross-correlation; wherein one sequence is the starting position of the valid signal in the demodulated signal, and the other sequence is the ending position of the valid signal in the demodulated signal.
[0067] The bit after the last bit of the sequence at the start position is the start end of the valid signal to be decoded, and the bit before the first bit of the sequence at the end position is the end end of the valid signal to be decoded.
[0068] refer to Figure 3 , an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: acquiring a reference signal;
[0069] Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal;
[0070] The modulated signal is cross-correlated with the reference signal to obtain a reference signal position corresponding to a peak point after the cross-correlation, and the reference signal is demodulated from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0071] The local synchronization head sequence is cross-correlated with the demodulated signal twice to obtain two synchronization head positions of the demodulated signal.
[0072] In this way, the computer device provided by the embodiment of the present invention can determine the accurate synchronization head position for a signal whose frequency offset estimation is inaccurate and for which the synchronization head cannot be accurately found through a single cross-correlation, which is conducive to correctly restoring the original information.
[0073] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a reference signal;
[0074] Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal;
[0075] The modulated signal is cross-correlated with the reference signal to obtain a reference signal position corresponding to a peak point after the cross-correlation, and the reference signal is demodulated from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0076] The local synchronization head sequence is cross-correlated with the demodulated signal twice to obtain two synchronization head positions of the demodulated signal.
[0077] In this way, the computer-readable storage medium provided by the embodiment of the present invention can determine the accurate synchronization head position for a signal whose frequency offset estimation is inaccurate and for which the synchronization head cannot be accurately found through a single cross-correlation, which is conducive to correctly restoring the original information.
[0078] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the following steps: acquiring a reference signal;
[0079] Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal;
[0080] The modulated signal is cross-correlated with the reference signal to obtain a reference signal position corresponding to a peak point after the cross-correlation, and the reference signal is demodulated from the reference signal position corresponding to the peak point to obtain a demodulated signal;
[0081] The local synchronization head sequence is cross-correlated with the demodulated signal twice to obtain two synchronization head positions of the demodulated signal.
[0082] In one embodiment, when the computer program product or computer program is executed, the steps of the above method are also implemented, which will not be described in detail here.
[0083] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0084] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0085] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A synchronization head position detection method, characterized in that: include: Obtain a reference signal; Acquire a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulated signal; Cross-correlating the modulated signal with the reference signal, obtaining the reference signal position corresponding to the peak point after the cross-correlation, and demodulating the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal; Performing a secondary cross correlation between the local synchronization header sequence and the demodulated signal to obtain two synchronization header positions of the demodulated signal; Wherein, the two synchronization head positions are respectively the peak positions of the second cross-correlation, and the peak positions correspond to the starting position and the ending position of the effective signal; The first cross-correlation is used to characterize the cross-correlation between waveforms, and the second cross-correlation is used to characterize the cross-correlation between digital sequences.
2. The synchronization head position detection method according to claim 1, characterized in that: The reference signal is a modulated reference signal, and the modulation mode of the local header sequence and the alignment sequence is the same as the modulation mode of the reference signal.
3. The synchronization head position detection method according to claim 1, characterized in that: The alignment sequence is a 24-bit binary sequence in which 0s and 1s are alternately arranged.
4. The synchronization head position detection method according to claim 1, characterized in that: The local synchronization header sequence is an eight-bit binary sequence in which the first and last bits are the same and the middle six bits are different.
5. The synchronization head position detection method according to claim 1, characterized in that: The obtaining of two synchronization head positions of the demodulated signal comprises: Acquire two sequences identical to the local synchronization header sequence in the demodulated signal after the secondary cross-correlation; wherein one sequence is the starting position of a valid signal in the demodulated signal, and the other sequence is the ending position of a valid signal in the demodulated signal.
6. The synchronization head position detection method according to claim 5, characterized in that: The bit after the last bit of the sequence at the starting position is the starting end of the valid signal to be decoded, and the bit before the first bit of the sequence at the ending position is the ending end of the valid signal to be decoded.
7. A synchronous head position detection device, characterized in that: include: A reference signal module, wherein the reference signal module is used to obtain a reference signal; A modulation signal module, the modulation signal module is used to obtain a local synchronization header sequence and an alignment sequence, modulate the local synchronization header sequence and the alignment sequence, and obtain a modulation signal; A primary cross-correlation module, the primary cross-correlation module is used to perform a primary cross-correlation on the modulated signal and the reference signal, obtain a reference signal position corresponding to a peak point after the primary cross-correlation, and demodulate the reference signal from the reference signal position corresponding to the peak point to obtain a demodulated signal; A secondary cross-correlation module, the secondary cross-correlation module is used to perform secondary cross-correlation on the local synchronization header sequence and the demodulated signal to obtain two synchronization header positions of the demodulated signal; Wherein, the two synchronization head positions are respectively the peak positions of the second cross-correlation, and the peak positions correspond to the starting position and the ending position of the effective signal; The first cross-correlation is used to characterize the cross-correlation between waveforms, and the second cross-correlation is used to characterize the cross-correlation between digital sequences.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
