Disclosure of Invention
In view of at least one of the foregoing drawbacks and needs to be improved, the present invention provides a method, apparatus, device, and storage medium for modulating a low frequency time code system, which solve at least one of the above-mentioned problems in the prior art.
To achieve the above object, according to a first aspect of the present invention, there is provided a low frequency time code system modulation method comprising:
the time code signal generated by the information source is coded and converted into wave;
Generating a spread spectrum code based on a Gold sequence generator, and spreading the time code signal after the code-to-wave processing;
Frequency hopping modulation is carried out on the spread time code signal based on the pseudo-random sequence generated by the PN sequence generator, and a transmitting signal is obtained;
and the receiving end performs mixed despreading and demodulation processing on the received signals to acquire the time code signals.
Further, the method for modulating the low-frequency time code system, which encodes and transcodes the time code signal generated by the information source, specifically includes:
acquiring local current time information, coding the local current time information according to a time code coding rule, and converting the coded time code into binary system for output;
Converting the binary output time code into a quaternary system, and outputting a 19-bit quaternary time code sequence and a 1-bit gap code;
And generating a control signal based on the 19-bit quaternary time code sequence and the 1-bit gap code, and controlling a data selector to generate a BPC signal for output.
Further, in the low frequency time code system modulation method, the generating a spreading code based on the Gold sequence generator, and spreading the time code signal after the code-to-wave processing, specifically includes:
Performing BPSK modulation on the BPC signal;
Modulating the GOLD sequence;
And performing product operation on the modulated BPC signal and the modulated GOLD signal, and spreading the BPC signal.
Further, in the low frequency time code system modulation method, the frequency hopping modulation is performed on the spread time code signal based on the pseudo random sequence generated by the PN sequence generator, so as to obtain a transmission signal, which specifically includes:
Based on the pseudo-random sequence generated by the PN sequence generator, four frequency hopping patterns are controlled to be generated, and frequency hopping operation is carried out on the spread BPC signal;
and transmitting the BPC signal after the frequency hopping operation as a transmitting signal.
Further, in the low-frequency time code system modulation method, after a receiving end receives a signal, the received signal is subjected to mixed despreading and demodulation operation to obtain the BPC signal;
the hybrid despreading operation includes a despreading operation and a despreading operation.
Further, in the low-frequency time code system modulation method, after the BPC signal after the mixed despreading and demodulation operation is obtained, wave transcoding processing is performed on the BPC signal, and a time code signal is obtained.
Further, in the low frequency time code system modulation method, the process of obtaining the time code signal specifically includes:
The processed BPC signal is connected to the input end of 20 bit data selectors, wherein each data selector of the 20 data selectors is connected in the sequence of 0-19;
integrating after passing through the data selector to obtain a 20-bit signal;
And acquiring the first 19 bits in the 20-bit signal as the time code signal to output.
According to a second aspect of the present invention, there is also provided a low frequency time code system modulation apparatus comprising:
the coding module is used for coding and transcoding the time code signal generated by the information source;
the spread spectrum module is used for generating a spread spectrum code based on the Gold sequence generator and spreading the time code signal after the code-to-wave conversion treatment;
The modulating module is used for carrying out frequency hopping modulation on the spread time code signal based on the pseudo-random sequence generated by the PN sequence generator to obtain a transmitting signal;
And the demodulation module is used for carrying out mixed despreading and demodulation processing on the received signals by the receiving end to acquire the time code signals.
According to a third aspect of the present invention there is also provided a low frequency time code system modulation device comprising at least one processing unit, and at least one storage unit, wherein the storage unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the steps of the method of any of the preceding claims.
According to a fourth aspect of the present invention there is also provided a storage medium storing a computer program executable by a low frequency time code system modulation device, which when run on the low frequency time code system modulation device causes the low frequency time code system modulation device to perform the steps of any of the methods described above.
In general, the above technical solutions conceived by the present invention, compared with the prior art, enable the following beneficial effects to be obtained:
according to the low-frequency time code system modulation method provided by the embodiment of the application, through encoding and code-wave conversion processing of the source time code signal, gold sequence spread spectrum is utilized, PN sequence frequency hopping modulation is utilized, the receiving end performs mixed despreading and demodulation, then the time code signal is accurately restored, and the performance of the low-frequency time code signal is improved. The method can enhance the anti-interference and anti-detection capability of the low-frequency time code system, ensure the stable and reliable transmission of time code signals, improve the synchronous service quality and coverage of the clock and meet the high-precision time requirement of users.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The terms first, second, third and the like in the description and in the claims and in the above drawings, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flow chart of a low-frequency time code system modulation method provided by the embodiment of the application, and as shown in fig. 1, the low-frequency time code system modulation method provided by the embodiment of the application comprises the following steps:
the time code signal generated by the information source is coded and converted into wave;
Generating a spread spectrum code based on a Gold sequence generator, and spreading the time code signal after the code-to-wave processing;
Frequency hopping modulation is carried out on the spread time code signal based on the pseudo-random sequence generated by the PN sequence generator, and a transmitting signal is obtained;
and the receiving end performs mixed despreading and demodulation processing on the received signals to acquire the time code signals.
Specifically, the existing low frequency time code signal adopts quaternary coding, as shown in fig. 2, 1 symbol is transmitted per second, and 3 frames are repeated per minute to represent the current time. The frame period is 20 seconds, the first 19 seconds gives time coding information including year, month, day, week, hour, minute and the like, the 20 th second is no modulation carrier wave, and the interval between two adjacent frames represents the arrival of the whole 20 seconds.
The second pulse of the square wave is respectively 0.1s, 0.2s, 0.3s and 0.4s which respectively represent 0, 1, 2 and 3 of quaternary system, the information capacity of each bit is increased by adopting the quaternary system, but the quaternary system is only one representation mode, and finally, the binary system can be converted into binary system to facilitate decoding operation.
P0 is set at the 0s, 20s and 40s to isolate frames and play a role of frame forecast.
P1 is a flag frame, 0 is the frame starting at the first second, 1 is the frame starting at 21s, and 2 is the frame starting at 41s. For example, when a time code of 10h38min is included, if the flag frame is 2, it may be calibrated to be 10h38min41s at the beginning of the next frame, and then 20 s is the beginning of 10h39 min.
P2 reserved bits for information that needs to be extended.
P3 is a check bit to distinguish "am", "pm". 0 and 2 represent "P1", "P2", "time", "minute", "week" codes, and after conversion to binary, the number of 1 s is an even number. 1 and 3 indicate that the number of 1 is an odd number. 0 and 1 represent morning and 2 and 3 represent afternoon.
P4 is the most significant utilization of check bits and year, 0 and 2 represent that after 'day', 'month', 'year' is converted into binary, the total number of 1 is even, and 1 and 3 represent that the total number of 1 is odd. 0 and 1 represent the binary most significant bits of the year with values 0,2 and 3 representing 1.
In the existing time code signal propagation method, a time code signal generated by a sourceAfter coding and wave transcoding, the sequence is combined with Gold sequenceSpread spectrum, then frequency hopping modulation to obtain signal:
The received signal is:
Wherein the method comprises the steps ofIndicating the interference of the narrow-band,The noise is represented by a characteristic of the noise,Representing other user signals.
Then, the received signal is subjected to debounce, and the receiving end is assumed to complete synchronization:
For narrowband interfering signals And its noiseIn the subsequent despreading step, narrowband interferenceWill be spread out, other user signalsIs inconsistent with the spreading code of the desired user, becomes random noise after despreading, and attenuates a portion of the energy as it passes through the filter. The modulation method of the low-frequency time code system provided by the embodiment of the application has stronger anti-interference capability than that of a single system of a direct sequence spread spectrum and frequency hopping system.
The embodiment of the application provides a low-frequency time code system modulation method, which comprises the following steps:
After the local current time information is acquired, the local current time information is encoded into a binary time code sequence according to a time code encoding rule. Specifically, the time information is first decomposed into elements such as year, month, day, week, hour, and minute, and then these elements are encoded according to a formulated transmission protocol to form a binary code stream containing the time information. The binary time code is then converted to a quaternary time code sequence to generate a control signal. For example, 1 quaternary symbol is transmitted per second, and 3 frames are repeated per minute to represent the current time. The first 19 seconds gives time-coded information, and the 20 th second is the carrier without modulation, as the interval between two adjacent frames. The control signal is generated by adding a one-bit gap code (4 in the simulation) to the output 19-bit quaternary time code sequence, and the data selector is controlled to generate a BPC signal. Specifically, 0, 1, 2, 3 of the time code respectively generate square wave signals with duty ratios of 0.1, 0.2, 0.3, 0.4 and amplitude of 0.1 in a corresponding manner, and the gap code 4 is used for controlling to generate square waves with amplitude of 1 and duration of 1s, so that the isolation effect between frames is achieved.
The spreading code is generated with a Gold sequence generator with a spreading gain set to 63. Modulating the time code signal after the code wave conversion processing with the Gold sequence, and multiplying the modulated signals of the time code signal and the Gold sequence, thereby realizing the spread spectrum of the BPC signal. In this way, the energy of the signal is dispersed into a wider frequency band, enhancing the interference immunity and concealment of the signal.
And performing frequency hopping modulation on the spread time code signal through the pseudo-random sequence generated by the PN sequence generator. The frequency hopping rate is 24 hops/frame, and 4 different frequency hopping patterns are set. The frequency of PN sequence control signals is rapidly switched between different frequency points, so that the anti-interference capability and the anti-detection capability of the signals are further improved.
At the receiving end, assuming PN sequences and Gold sequences of the transmitting end and the receiving end are synchronous, firstly performing de-hopping treatment to remove the influence of frequency hopping modulation on the received signals, then performing de-spreading treatment to de-spread the signals by using the same Gold sequences as the transmitting end, and recovering the time code signals before spreading. And finally, performing wave transcoding processing on the despread signal, namely, obtaining four corresponding time codes of 0, 1, 2 and 3 by using square waves with four duty ratios of 0.1, 0.2, 0.3 and 0.4 through integrator operation, and then decoding the wave transcoded data to obtain an original time code signal so as to realize clock synchronization.
Compared with the prior art, the embodiment of the application adds the methods of code conversion, direct sequence spread spectrum and frequency hopping, and the code conversion can adapt to different transmission media and channel conditions, thereby ensuring that digital information can be accurately transmitted in various environments. The direct sequence spread spectrum can realize energy dispersion, has good concealment, can effectively resist multipath effect, and has good performance in low signal-to-noise ratio environment. The frequency hopping can lead the frequency band range to be wider, and can effectively resist the influence of fixed frequency interference and near-far effect, and the combination of the three can obtain better anti-detection and anti-interference performance. Therefore, the problems that the quality of a low-frequency time code signal in the existing low-frequency time code system is easy to be interfered by external factors, and the received recognition rate is reduced under the condition of high noise are solved.
According to the low-frequency time code system modulation method provided by the embodiment of the application, through encoding and code-wave conversion processing of the source time code signal, gold sequence spread spectrum is utilized, PN sequence frequency hopping modulation is utilized, the receiving end performs mixed despreading and demodulation, then the time code signal is accurately restored, and the performance of the low-frequency time code signal is improved. The method can enhance the anti-interference and anti-detection capability of the low-frequency time code system, ensure the stable and reliable transmission of time code signals, improve the synchronous service quality and coverage of the clock and meet the high-precision time requirement of users.
Optionally, the method for modulating the low-frequency time code system provided by the embodiment of the present application encodes and transcodes a time code signal generated by an information source, and specifically includes:
acquiring local current time information, coding the local current time information according to a time code coding rule, and converting the coded time code into binary system for output;
Converting the binary output time code into a quaternary system, and outputting a 19-bit quaternary time code sequence and a 1-bit gap code;
And generating a control signal based on the 19-bit quaternary time code sequence and the 1-bit gap code, and controlling a data selector to generate a BPC signal for output.
Specifically, the local current time information is obtained, then the local current time information is encoded according to a time code encoding rule, and the encoded time code is converted into binary system for output, as shown in fig. 3.
The time code is output, binary system is converted into quaternary system, and the control signal is generated by setting the gap code as 4,19 bit time code and 1 bit gap code in simulation through the output 19 bit quaternary time code sequence and one bit gap code. At this time, 20 bit codes are used to control the data selector to generate BPC signals, so that 0,1, 2 and 3 of the time codes correspondingly generate square wave signals with duty ratios of 0.1, 0.2, 0.3 and 0.4 and amplitude of 0.1 per second, 4 is used to control the generation of square waves with amplitude of 1 and duration of 1s, the isolation effect between frames is achieved, and the process of transcoding the waves is shown in fig. 4. Fig. 5 is a BPC signal output after transcoding.
Optionally, in the low-frequency time code system modulation method provided by the embodiment of the present application, the generating a spreading code based on the Gold sequence generator, spreading the time code signal after the code-to-wave processing, specifically includes:
Performing BPSK modulation on the BPC signal;
Modulating the GOLD sequence;
And performing product operation on the modulated BPC signal and the modulated GOLD signal, and spreading the BPC signal.
Optionally, in the low-frequency time code system modulation method provided by the embodiment of the present application, the frequency hopping modulation is performed on the spread time code signal based on the pseudo random sequence generated by the PN sequence generator, so as to obtain a transmission signal, which specifically includes:
Based on the pseudo-random sequence generated by the PN sequence generator, four frequency hopping patterns are controlled to be generated, and frequency hopping operation is carried out on the spread BPC signal;
and transmitting the BPC signal after the frequency hopping operation as a transmitting signal.
Specifically, BPSC signals are BPSK modulated, gold sequences are modulated at the same time, and then the BPC modulated signals and Gold sequence modulated signals are multiplied to realize the spread spectrum of the BPC signals. The spreading gain set in one embodiment of the application is 63.
The sequence generated by PN sequence generator is used to control the generation of 4 kinds of frequency hopping patterns, and the frequency hopping operation is performed on the spread signal. The enabling signal is determined according to P0 in the time code generation module, and the enabling signal is generated when the first P0 appears after the simulation runs. The reason for adding the enabling signal is that the simulation and the actual time are synchronized, but the second information in the time code is only represented by P1, so that the second information of 0s, 20s and 40s of the time can be represented, and the starting time cannot be guaranteed to be whole seconds, so that the time code of the first frame needs to be thrown away, and when the signal of P0 is observed, the beginning of a new frame is reached, and the time code at the moment and the later is complete, and the whole flow is shown in FIG. 6.
Optionally, in the low-frequency time code system modulation method provided by the embodiment of the present application, after a receiving end receives a signal, a mixing despreading and demodulation operation is performed on the received signal, so as to obtain the BPC signal;
the hybrid despreading operation includes a despreading operation and a despreading operation.
Specifically, after the channel is passed, the receiving end performs mixed despreading and demodulation operations on the spread BPC signal, and the PN sequences and Gold sequences of the transmitting end and the receiving end are synchronized, and the mixed despreading flow is shown in fig. 7.
Optionally, in the low-frequency time code system modulation method provided by the embodiment of the application, after the BPC signal after the mixed despreading and demodulation operations is obtained, wave transcoding processing is performed on the BPC signal, and a time code signal is obtained.
Optionally, in the low-frequency time code system modulation method provided by the embodiment of the present application, the process of acquiring a time code signal specifically includes:
The processed BPC signal is connected to the input end of 20 bit data selectors, wherein each data selector of the 20 data selectors is connected in the sequence of 0-19;
integrating after passing through the data selector to obtain a 20-bit signal;
And acquiring the first 19 bits in the 20-bit signal as the time code signal to output.
Specifically, the wave transcoding process is performed on the signals that have been hopped and despread, and the flow is shown in fig. 8. The despread BPC signal is demodulated and then is subjected to operation processing, and in order to facilitate the subsequent BPC signal integration operation, square waves with four duty ratios of 0.1, 0.2, 0.3 and 0.4 are subjected to integrator operation to obtain four corresponding time codes of 0, 1, 2 and 3. The module is controlled by the P0 falling edge, the P0 pulse can be obtained from the time information in the time code generation module, when the P0 falling edge is triggered, the processed BPC signal is accessed to the input end of the 20-bit data selector, each selector of the 20-bit data selector is accessed according to the sequence of 0-19, namely, each data selector only has 1 input port accessed to the processed signal, as shown by a thick arrow in FIG. 8, and the other input ends are accessed to 0. The 20-bit time code signal can be obtained by integrating the data selector, but the time code at this time is a code word comprising P0, and because the code word is triggered by the P0 falling edge, the output 20-bit time code can obtain a complete time code of a frame to be transmitted by taking only the first 19 bits. The control sequence is 0-19, which is used for controlling the data selector to select and output signals.
In one embodiment, a low-frequency time code system based on the CWC-DSSS-FH (Code to Waveform Conversion-Direct Sequence Spread Spectrum-Frequency Hopping, code-converted wave-direct sequence spread spectrum-frequency hopping modulation technique) provided by the application is built in a simulink of MATLAB, and simulation development is carried out.
The spreading ratio set for the direct spreading section is 63. The rate of frequency hopping is 24 hops/frame, and 4 different hopping patterns are set. Three different systems are built, namely a low-frequency time code system which does not perform spread spectrum, a low-frequency time code system which adds direct sequence spread spectrum and a low-frequency time code system which adopts a modulation method of the low-frequency time code system. Fig. 9 shows the error rate curves of three different low frequency time code systems, with 6000s for each simulation run, i.e. 1 hour and 40 minutes for real time. The range of the signal to noise ratio is-20 db to 15db, and each signal to noise ratio is operated for 5 times to obtain the average value. As can be seen from the figure, the error rate curve of the direct sequence spread spectrum system is better than that of the conventional low frequency time code system, but worse than that of the low frequency time code system adopting the modulation method of the low frequency time code system.
Fig. 10 is a timing diagram of a low frequency time code system of CWC-DSSS-FH according to the present application before and after modulation, wherein the upper diagram is a BPC signal timing diagram before modulation, and the lower diagram is a BPC signal timing diagram after demodulation. It can be seen that the timing waveform of the BPC signal is stable after modulation and demodulation by the novel modulation technique CWC-DSSS-FH.
Optionally, an embodiment of the present application further provides a low-frequency time code system modulation device, including:
the coding module is used for coding and transcoding the time code signal generated by the information source;
the spread spectrum module is used for generating a spread spectrum code based on the Gold sequence generator and spreading the time code signal after the code-to-wave conversion treatment;
The modulating module is used for carrying out frequency hopping modulation on the spread time code signal based on the pseudo-random sequence generated by the PN sequence generator to obtain a transmitting signal;
And the demodulation module is used for carrying out mixed despreading and demodulation processing on the received signals by the receiving end to acquire the time code signals.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method. The computer-readable storage medium may include, among other things, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. The Memory includes a U disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, etc. which can store the program codes.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable Memory, where the Memory may include a flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, etc.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
It will be readily appreciated by those skilled in the art that the foregoing description is merely a preferred embodiment of the invention and is not intended to limit the invention, but any modifications, equivalents, improvements or alternatives falling within the spirit and principles of the invention are intended to be included within the scope of the invention.