CN110332948B - Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels - Google Patents

Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels Download PDF

Info

Publication number
CN110332948B
CN110332948B CN201910588424.7A CN201910588424A CN110332948B CN 110332948 B CN110332948 B CN 110332948B CN 201910588424 A CN201910588424 A CN 201910588424A CN 110332948 B CN110332948 B CN 110332948B
Authority
CN
China
Prior art keywords
signal
sampling
segment
current
preset position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910588424.7A
Other languages
Chinese (zh)
Other versions
CN110332948A (en
Inventor
常兴
朱珍珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Cpctech Co ltd
Original Assignee
Wuhan Cpctech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Cpctech Co ltd filed Critical Wuhan Cpctech Co ltd
Priority to CN201910588424.7A priority Critical patent/CN110332948B/en
Publication of CN110332948A publication Critical patent/CN110332948A/en
Application granted granted Critical
Publication of CN110332948B publication Critical patent/CN110332948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D3/00Indicating or recording apparatus with provision for the special purposes referred to in the subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of relevant receiving, and discloses a signal testing method, a signal testing device, a signal testing storage medium and a signal testing device based on double channels. According to the signal segmentation segment number of the signal to be generated, generating each segment corresponding to the signal to be generated; traversing each segment and generating a pseudo-random symbol; sampling the pseudo-random symbol, and determining a first segmented signal according to the sampling signal; modulating the sampling signal by frequency difference to obtain a modulated signal; modifying the modulation signal to obtain a second segmented signal; and when the traversal of each segment is completed, splicing the first segment signal and the second segment signal of each segment to obtain a channel signal. Obviously, the invention carries out sectional processing on the first channel signal and the second channel signal, can obtain the channel signal with longer data volume, and carries out algorithm test operation of a related receiving algorithm by using the test signal with longer data volume, thereby solving the technical problem that the double-channel signal with long data volume can not be generated for testing.

Description

Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels
Technical Field
The present invention relates to the field of related receiving technologies, and in particular, to a signal testing method, a signal testing device, a signal testing program, and a signal testing apparatus based on dual channels.
Background
The correlation receiving algorithm is mostly used for detecting weak signals, and in order to better verify the algorithm performance of the correlation receiving algorithm, the algorithm test is mostly performed by inputting a two-channel signal into the correlation receiving algorithm.
Therefore, the dual-channel signal is particularly important for realizing algorithm test as a test signal, and algorithm test can be better performed by generating and applying the dual-channel signal with long data volume so as to overcome increasingly complex propagation channels and electromagnetic environments.
However, at present, the algorithm test capability of generating a dual-channel signal with a long data amount is not provided, and thus, the technical problem that the algorithm test capability of generating a dual-channel signal with a long data amount is not provided exists.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a signal testing method, a testing device, a storage medium and a device based on double channels, and aims to solve the technical problem that a double-channel signal with a long data volume cannot be generated to carry out algorithm testing.
In order to achieve the above object, the present invention provides a dual channel based signal testing method, which includes the following steps:
acquiring the frequency difference of a signal to be generated and the number of signal segmentation sections, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation sections;
traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal;
determining a first segmentation signal under the current segmentation according to the sampling signal;
modulating the sampling signal by the frequency difference to obtain a modulated signal;
changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection;
when traversing of each segment corresponding to the signal to be generated is completed, splicing operation is respectively carried out on a first segment signal and a second segment signal corresponding to each segment so as to obtain a first channel signal and a second channel signal;
and taking the first channel signal and the second channel signal as test signals to carry out test operation.
Preferably, the changing the sampling point in the modulation signal to obtain the second segment signal under the current segment specifically includes:
and rightwards moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at the third preset position in the modulation signal into a preset sampling point to obtain a second subsection signal under the current subsection.
Preferably, before the right shifting of the sampling point at the first preset position in the modulation signal to the second preset position and modifying the sampling point at the third preset position in the modulation signal to be the preset sampling point to obtain the second segmented signal under the current segment, the dual-channel based signal testing method further includes:
determining the number of original sample points in the current segmentation;
acquiring the time difference of the signal to be generated, and determining the number of the shift sampling points according to the time difference;
and subtracting the original number of the sampling points and the number of the shifted sampling points to obtain a first preset number, and taking N sampling points from left to right in the modulation signal as sampling points at a first preset position, wherein N is the first preset number.
Preferably, the right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal to a preset sampling point, so as to obtain a second segmented signal under the current segment, specifically includes:
and when the current subsection is a first preset subsection, right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection.
Preferably, when the current segment is a first preset segment, right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal to a sampling point whose value is zero, so as to obtain a second segment signal under the current segment, specifically, the method includes:
when the current subsection is a first preset subsection, storing a sampling point at a fourth preset position in the modulation signal into a first preset dump variable, moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection;
accordingly, after the sampling signal is modulated by the frequency difference to obtain a modulated signal, the dual channel-based signal testing method further includes:
when the current subsection is a second preset subsection, storing sampling points stored in the first preset unloading variable into a second preset unloading variable, storing sampling points at a fourth preset position in the modulation signal into the first preset unloading variable, moving the sampling points at the first preset position in the modulation signal to the second preset position on the right, and modifying the sampling points at the third preset position in the modulation signal into the sampling points in the second preset unloading variable so as to obtain a second subsection signal under the current subsection.
Preferably, the frequency difference comprises a first frequency difference between the primary path and the first secondary path and a second frequency difference between the primary path and the second secondary path;
correspondingly, the modulating the sampling signal by the frequency difference to obtain a modulated signal specifically includes:
modulating the sampling signal by the first frequency difference to obtain a first modulation signal;
correspondingly, the changing the sampling point in the modulation signal to obtain the second segment signal under the current segment specifically includes:
changing sampling points in the first modulation signal to obtain a second subsection signal corresponding to the first sub-path under the current subsection;
correspondingly, after the sampling points in the first modulation signal are changed to obtain the second segment signal corresponding to the first sub-path under the current segment, the dual-channel-based signal testing method further includes:
modulating the sampling signal by the second frequency difference to obtain a second modulation signal;
changing sampling points in the second modulation signal to obtain a second subsection signal corresponding to the second secondary path under the current subsection;
and adding a second section signal corresponding to the first sub path and a second section signal corresponding to the second sub path to obtain a second section signal corresponding to the current section.
Preferably, the traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal specifically includes:
traversing each segment corresponding to the signal to be generated, and generating a pseudo-random symbol in the traversed current segment;
and forming mutually independent pseudo-random symbol sequences through the pseudo-random symbols, and sampling the pseudo-random symbol sequences to obtain sampling signals.
In addition, to achieve the above object, the present invention further provides a test apparatus, which includes a memory, a processor, and a dual channel-based signal test program stored on the memory and executable on the processor, wherein the dual channel-based signal test program is configured to implement the steps of the dual channel-based signal test method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a dual channel-based signal testing program stored thereon, wherein the dual channel-based signal testing program, when executed by a processor, implements the steps of the dual channel-based signal testing method as described above.
In addition, in order to achieve the above object, the present invention further provides a dual channel based signal testing apparatus, including:
the device comprises an information acquisition module, a signal segmentation module and a signal segmentation module, wherein the information acquisition module is used for acquiring the frequency difference and the number of signal segmentation segments of a signal to be generated and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation segments;
the symbol generation module is used for traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal;
a first signal generation module, configured to determine a first segment signal under the current segment according to the sampling signal;
the signal modulation module is used for modulating the sampling signal through the frequency difference to obtain a modulation signal;
the second signal generation module is used for changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection;
the cyclic splicing module is used for respectively splicing a first section signal and a second section signal corresponding to each section when traversing of each section corresponding to the signal to be generated is completed so as to obtain a first channel signal and a second channel signal;
and the signal detection module is used for performing test operation by taking the first channel signal and the second channel signal as test signals.
The method comprises the steps of acquiring the frequency difference of a signal to be generated and the number of signal segmentation sections, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation sections; traversing each segment, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal; determining a first segmentation signal under the current segmentation according to the sampling signal; modulating the sampling signal by frequency difference to obtain a modulated signal; changing sampling points in the modulation signal to obtain a second segmentation signal under the current segmentation; when each subsection is traversed, splicing a first subsection signal and a second subsection signal corresponding to each subsection respectively to obtain a first channel signal and a second channel signal; and carrying out test operation by adopting the first channel signal and the second channel signal. Obviously, in the invention, because the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data volume can be obtained, and the test signal with longer data volume is used for carrying out the algorithm test operation of the related receiving algorithm, thereby solving the technical problem that the two-channel signal with long data volume cannot be generated for carrying out the algorithm test.
Drawings
FIG. 1 is a schematic diagram of a test apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a dual channel-based signal testing method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of the dual channel-based signal testing method according to the present invention;
FIG. 4 is a flow chart of a signal testing method based on dual channels according to a third embodiment of the present invention;
FIG. 5 is a flow chart of a signal testing method based on dual channels according to a fourth embodiment of the present invention;
fig. 6 is a block diagram of a first embodiment of the dual channel-based signal testing apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a test device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the test apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), the optional user interface 1003 may also include a standard wired interface and a wireless interface, and the wired interface of the user interface 1003 may be a Universal Serial Bus (USB) interface in the present invention. The network interface 1004 may optionally include a standard wired interface as well as a wireless interface (e.g., WI-FI interface). The Memory 1005 may be a high speed Random Access Memory (RAM); or a stable Memory, such as a Non-volatile Memory (Non-volatile Memory), and may be a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the test apparatus, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a dual channel-based signal testing program.
In the test device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting peripheral equipment; the test apparatus calls a dual channel-based signal test program stored in the memory 1005 through the processor 1001 and performs the following operations:
acquiring the frequency difference of a signal to be generated and the number of signal segmentation sections, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation sections;
traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal;
determining a first segmentation signal under the current segmentation according to the sampling signal;
modulating the sampling signal by the frequency difference to obtain a modulated signal;
changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection;
when traversing of each segment corresponding to the signal to be generated is completed, splicing operation is respectively carried out on a first segment signal and a second segment signal corresponding to each segment so as to obtain a first channel signal and a second channel signal;
and taking the first channel signal and the second channel signal as test signals to carry out test operation.
Further, the processor 1001 may call the dual channel-based signal test program stored in the memory 1005, and also perform the following operations:
and rightwards moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at the third preset position in the modulation signal into a preset sampling point to obtain a second subsection signal under the current subsection.
Further, the processor 1001 may call the dual channel-based signal test program stored in the memory 1005, and also perform the following operations:
determining the number of original sample points in the current segmentation;
acquiring the time difference of the signal to be generated, and determining the number of the shift sampling points according to the time difference;
and subtracting the original number of the sampling points and the number of the shifted sampling points to obtain a first preset number, and taking N sampling points from left to right in the modulation signal as sampling points at a first preset position, wherein N is the first preset number.
Further, the processor 1001 may call the dual channel-based signal test program stored in the memory 1005, and also perform the following operations:
and when the current subsection is a first preset subsection, right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection.
Further, the processor 1001 may call the dual channel-based signal test program stored in the memory 1005, and also perform the following operations:
when the current subsection is a first preset subsection, storing a sampling point at a fourth preset position in the modulation signal into a first preset dump variable, moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection;
accordingly, the following operations are also performed:
when the current subsection is a second preset subsection, storing sampling points stored in the first preset unloading variable into a second preset unloading variable, storing sampling points at a fourth preset position in the modulation signal into the first preset unloading variable, moving the sampling points at the first preset position in the modulation signal to the second preset position on the right, and modifying the sampling points at the third preset position in the modulation signal into the sampling points in the second preset unloading variable so as to obtain a second subsection signal under the current subsection.
Further, the processor 1001 may call the dual channel-based signal test program stored in the memory 1005, and also perform the following operations:
modulating the sampling signal by the first frequency difference to obtain a first modulation signal;
accordingly, the following operations are also performed:
changing sampling points in the first modulation signal to obtain a second subsection signal corresponding to the first sub-path under the current subsection;
accordingly, the following operations are also performed:
modulating the sampling signal by the second frequency difference to obtain a second modulation signal;
changing sampling points in the second modulation signal to obtain a second subsection signal corresponding to the second secondary path under the current subsection;
and adding a second section signal corresponding to the first sub path and a second section signal corresponding to the second sub path to obtain a second section signal corresponding to the current section.
Further, the processor 1001 may call the dual channel-based signal test program stored in the memory 1005, and also perform the following operations:
traversing each segment corresponding to the signal to be generated, and generating a pseudo-random symbol in the traversed current segment;
and forming mutually independent pseudo-random symbol sequences through the pseudo-random symbols, and sampling the pseudo-random symbol sequences to obtain sampling signals.
In this embodiment, a frequency difference and a signal segmentation segment number of a signal to be generated are obtained, and segments corresponding to the signal to be generated are generated according to the signal segmentation segment number; traversing each segment, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal; determining a first segmentation signal under the current segmentation according to the sampling signal; modulating the sampling signal by frequency difference to obtain a modulated signal; changing sampling points in the modulation signal to obtain a second segmentation signal under the current segmentation; when each subsection is traversed, splicing a first subsection signal and a second subsection signal corresponding to each subsection respectively to obtain a first channel signal and a second channel signal; and carrying out test operation by adopting the first channel signal and the second channel signal. Obviously, in this embodiment, since the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data volume can be obtained, and the test signal with longer data volume is used to perform the algorithm test operation of the correlation receiving algorithm, thereby solving the technical problem that the two-channel signal with long data volume cannot be generated to perform the algorithm test.
Based on the hardware structure, the embodiment of the signal testing method based on the dual channels is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a dual channel-based signal testing method according to the present invention.
In a first embodiment, the dual channel based signal testing method comprises the steps of:
step S10: acquiring the frequency difference of a signal to be generated and the number of signal segmentation sections, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation sections.
It should be understood that the algorithm test operation of the correlation receiving algorithm can be performed by generating and applying the dual-channel signal, and the first channel signal and the second channel signal generated in the embodiment have a longer data size, so that the accuracy of the algorithm test can be greatly improved, and the algorithm test is more suitable for the differentiated test requirements.
It will be appreciated that the signal to be generated is a two-channel signal that is desired to be obtained, and to generate the two-channel signal, the frequency difference between the two-channel signals and the number of signal segment segments of the two-channel signal may be determined first. The number of segments of the signal segment can be recorded as Nseg, the Nseg is used for equally dividing the signal to be generated into a plurality of segments, and each segment has the same number of sampling points.
Step S20: traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal.
It should be noted that, considering that when the value of Nseg is greater than 1, there will be a plurality of segments, each segment may be processed in a loop.
In a specific implementation, for example, the current segment traversed at this time may be denoted as segment a, and a plurality of pseudo-random symbols may be generated within a loop of segment a. The pseudo-random symbols may be subjected to a doppler shift-based modulation operation; after modulation, a pseudo-random symbol sequence formed by pseudo-random symbols may be sampled and sampled to 100MHz, thereby obtaining a sampled signal.
It should be understood that when sampling a pseudo-random symbol sequence of pseudo-random symbols, an aliasing-preventing upsampling may be used, and in particular, the upsampling may be a pulse-shaping filtering operation. For example, if there are 100 pseudo-random symbols, the sampled signal obtained after the final pulse shaping filtering may have 10000 points.
Step S30: and determining a first segmentation signal under the current segmentation according to the sampling signal.
It is understood that the sampling signal of 100MHz sampling process can be decimated and amplitude controlled, and the complex white noise is added; then, the processed signal is quantized, and the real part and the imaginary part after quantization are used as a first segment signal corresponding to the segment a.
Step S40: and modulating the sampling signal through the frequency difference to obtain a modulation signal.
It should be understood that the sampled signal may also be carrier frequency modulated by a frequency difference in order to obtain the further channel signal.
Step S50: and changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection.
It will be appreciated that the sampling points in the modulated signal can be adaptively adjusted, and at the same time, the phase continuity between the segments can be ensured to obtain the second segment signal corresponding to segment a.
Step S60: and when traversing each segment corresponding to the signal to be generated is finished, splicing the first segment signal and the second segment signal corresponding to each segment respectively to obtain a first channel signal and a second channel signal.
It should be understood that after obtaining the first segment signals under a single segment a, the first segment signals under all segments may be spliced to obtain a set of first segment signals, i.e., a first channel signal. Similarly, the second segmented signals under all segments can be spliced to obtain a set of second segmented signals, i.e. a second channel signal. The first channel signal and the second channel signal are dual-channel signals.
In a specific implementation, in order to splice the first segment signal and the second segment signal, the segment signals are generated and then sequentially stored in a fixed file, so that the first segment signal and the second segment signal can be spliced.
Step S70: and taking the first channel signal and the second channel signal as test signals to carry out test operation.
It can be understood that, by generating the first channel signal and the second channel signal in this way, since the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data size can be obtained. By using the test signal with longer data volume to carry out the algorithm test operation of the related receiving algorithm, the test precision can be improved, and the more differentiated test requirements can be met.
In this embodiment, a frequency difference and a signal segmentation segment number of a signal to be generated are obtained, and segments corresponding to the signal to be generated are generated according to the signal segmentation segment number; traversing each segment, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal; determining a first segmentation signal under the current segmentation according to the sampling signal; modulating the sampling signal by frequency difference to obtain a modulated signal; changing sampling points in the modulation signal to obtain a second segmentation signal under the current segmentation; when each subsection is traversed, splicing a first subsection signal and a second subsection signal corresponding to each subsection respectively to obtain a first channel signal and a second channel signal; and carrying out test operation by adopting the first channel signal and the second channel signal. Obviously, in this embodiment, since the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data volume can be obtained, and the test signal with longer data volume is used to perform the algorithm test operation of the correlation receiving algorithm, thereby solving the technical problem that the two-channel signal with long data volume cannot be generated to perform the algorithm test.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the dual channel-based signal testing method according to the present invention, and the second embodiment of the dual channel-based signal testing method according to the present invention is proposed based on the first embodiment illustrated in fig. 2.
In the second embodiment, the step S50 specifically includes:
step S501: and rightwards moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at the third preset position in the modulation signal into a preset sampling point to obtain a second subsection signal under the current subsection.
In a particular implementation, the sampling points within the modulated signal may be adaptively adjusted in order to obtain the further channel signal. The adaptive adjustment operation may specifically be to change the storage location of all the sampling points at the first preset position and write the sampling points at the second preset position, and then to cover the sampling points at the third preset position with the preset sampling points.
Further, before the step S501, the dual channel-based signal testing method further includes:
determining the number of original sample points in the current segmentation;
acquiring the time difference of the signal to be generated, and determining the number of the shift sampling points according to the time difference;
and subtracting the original number of the sampling points and the number of the shifted sampling points to obtain a first preset number, and taking N sampling points from left to right in the modulation signal as sampling points at a first preset position, wherein N is the first preset number.
It is understood that the first preset position, the second preset position and the third preset position are determined as follows.
For the first preset position, the total number of original sampling points in the current segment, namely the number of the original sampling points, can be determined firstly and can be recorded as M; and determining the number of the shift sampling points according to the time difference between the two-channel signals, wherein the number of the shift sampling points can be recorded as p. Next, it can be calculated that the first preset number N is M-p, where N is a positive integer, and if M is 5 and p is 2, the first preset number N is M-p is 3. The first 3 sampling points of the 5 sampling points of the current segment may be taken as sampling points at the first preset position.
Regarding the second preset position, the second preset position is a sampling point position obtained by shifting the sampling point at the first preset position to the right by the sampling points of the number of shifted sampling points. If M is 5 and p is 2, the first preset number M-p is 3, and the second preset position is a sampling point position obtained by right shifting the first 3 sampling points of the 5 sampling points of the current segment by 2 sampling points, that is, the last 3 sampling points of the 5 sampling points of the current segment.
For the third preset position, the first sampling points shifted from left to right in the modulation signal by the number of the shift sampling points may be used as the sampling points at the third preset position. If p is 2, the first 2 sampling points of the 5 sampling points of the current segment may be taken as the sampling points at the third preset position.
In a specific implementation, if the sampling point of the current segment is {1,2,3,4,5}, M is 5, p is 2, and the preset sampling point is a sampling point with a zero value, the adaptive adjustment operation may specifically shift the first 3 sampling points in {1,2,3,4,5} to the right by the positions of 2 sampling points, and change to { none, 1,2,3 }. Then, zero padding operation is performed on the first 2 sampling points in the { none, 1,2,3} to change the sampling points into {0,0,1,2,3 }.
In this embodiment, by adaptively adjusting the modulation signal, another channel signal may be generated on the premise of ensuring higher time difference accuracy and higher frequency difference accuracy.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the dual channel-based signal testing method according to the present invention, and the third embodiment of the dual channel-based signal testing method according to the present invention is proposed based on the second embodiment shown in fig. 3.
In a third embodiment, the right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal to a preset sampling point, so as to obtain a second segment signal under the current segment, specifically includes:
and when the current subsection is a first preset subsection, right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection.
It is understood that different segments may correspond to different adaptive adjustment strategies, for example, if the current segment is the 1 st segment, i.e. the first predetermined segment, zero padding may be used when filling the first 2 samples in { none, 1,2,3 }.
Further, the step S501 specifically includes:
step S502: when the current subsection is a first preset subsection, storing a sampling point at a fourth preset position in the modulation signal into a first preset dump variable, right moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at the third preset position in the modulation signal into a sampling point with a zero numerical value so as to obtain a second subsection signal under the current subsection.
It should be understood that, considering that different segments may correspond to different adaptive adjustment strategies, and considering maintaining phase continuity between different segments, a first preset dump variable may be additionally set, and the first preset dump variable may be denoted as a variable s _ tail. For example, when the current segment is the 1 st segment, the sampling point at the fourth preset position may be stored in the variable s _ tail.
In a specific implementation, as for the fourth preset position, the number of sampling points shifted from left to right in the modulation signal may be used as the sampling points at the fourth preset position. If the sampling point of the current segment is {1,2,3,4,5}, M is 5, p is 2, and the preset sampling point is a sampling point with a zero value, the adaptive adjustment operation may specifically store the last 2 sampling points of {1,2,3,4,5} into the variable s _ tail, that is, into {4,5 }. Then, the first 3 samples in {1,2,3,4,5} are shifted to the right by the positions of 2 samples, and the change is { none, 1,2,3 }. Then, zero padding operation is performed on the first 2 sampling points in the { none, 1,2,3} to change the sampling points into {0,0,1,2,3 }. The finally obtained current segmentation is {0,0,1,2,3}, and {4,5} is stored in the variable s _ tail.
Correspondingly, after the step S40, the dual channel-based signal testing method further includes:
step S503: when the current subsection is a second preset subsection, storing sampling points stored in the first preset unloading variable into a second preset unloading variable, storing sampling points at a fourth preset position in the modulation signal into the first preset unloading variable, moving the sampling points at the first preset position in the modulation signal to the second preset position on the right, and modifying the sampling points at the third preset position in the modulation signal into the sampling points in the second preset unloading variable so as to obtain a second subsection signal under the current subsection.
It should be understood that if the current segment is the second segment, i.e., the second predetermined segment is the other segment except for the 1 st segment and the last segment. Considering that {4,5} is stored in the variable s _ tail when processing the 1 st segment.
In a specific implementation, if the second segment is {2,2,2,2,2}, M is 5, and p is 2, the adaptive adjustment operation may store {4,5} in the variable s _ tail in a second predetermined temporary storage variable, which may be recorded as the variable s _ tail _ tmp. Then, the last 2 samples of {2,2,2,2,2} can be stored into the variable s _ tail, i.e., {2,2 }. Thus, the variable s _ tail is {2,2} and the variable s _ tail _ tmp is {4,5 }. Then, the first 3 samples in {2,2,2,2,2} are shifted to the right by the positions of 2 samples, and the change is { none, 2,2,2 }. And modifying the first 2 sampling points in the (none, 2,2, 2) into {4,5} stored in the s _ tail _ tmp, and changing the sampling points into {4,5,2,2,2 }. The second segment finally obtained is {4,5,2,2,2}, with {2,2} in the variable s _ tail, and {4,5} in the variable s _ tail _ tmp.
After step S503 is executed, the process proceeds to step S60.
Further, if the current segment is a third preset segment, i.e., a last segment, and is also an Nseg-th segment, assuming that Nseg is 3, the last segment is the third segment, and at this time, the variable s _ tail is {2,2}, and the variable s _ tail _ tmp is {4,5}, a sample point in the modulated signal at the first preset position may be right-shifted to the second preset position, and a sample point in the modulated signal at the third preset position may be modified to be a sample point in the first preset transition variable, so as to obtain a second segment signal under the current segment.
In a specific implementation, if the third segment is {3,3,3, 3}, M is 5, p is 2, s _ tail is {2,2}, and s _ tail _ tmp is {4,5}, the adaptive adjustment operation may specifically shift the first 3 samples of {3,3,3, 3} right by the position of 2 samples, and change to { none, 3,3 }. Then, the first 2 sampling points in the { none, 3,3,3} are modified into {2,2} stored in s _ tail, and changed into {2,2,3,3,3 }.
It can be seen that, through the above adaptation operation, the phases between segments are guaranteed by changing {1,2,3,4,5}, {2,2,2,2,2} and {3,3,3, 3}, finally to {0,0,1,2,3}, {4,5,2,2,2, 2} and {2,2,3,3 }.
In addition, after the phase continuity between the segments is ensured, the extraction operation and the amplitude control operation can be carried out on the second segment signal under the current segment, and the complex white noise is added; then, the processed signal is quantized, and the real part and the imaginary part after quantization are used as the second segment signal corresponding to the current segment again.
In the embodiment, different adaptive adjustment strategies are set for different segments; moreover, by introducing the variable s _ tail and the variable s _ tail _ tmp, partial sampling points of the current segment are stored for the next segment to use, and the phase continuity between the segments is ensured.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of the dual channel-based signal testing method according to the present invention, and the fourth embodiment of the dual channel-based signal testing method according to the present invention is proposed based on the first embodiment shown in fig. 2.
In a fourth embodiment, before the step S10, the dual channel-based signal testing method further includes:
acquiring the number of final sample points and the sampling rate;
determining the number of original sample points according to the final sample points;
determining a decimation multiple according to the sampling rate;
and determining the number of signal subsection segments of the signal to be generated according to the number of the original sample points, the extraction multiple and the final sample point number.
It should be understood that, as for the obtaining manner of the number Nseg of signal segment segments, specifically, the sampling rate and the final number of sample points required by the user may be set first, and the sampling rate may be set to be 1.25 times of bandwidth or 2 times of bandwidth, and then the decimation multiple of decimation and downsampling may be determined according to the sampling rate, which may be denoted as dece. The number of the original samples can also be reversely determined according to the final number of the samples, for example, if the number of the samples finally required is 1000, considering the processing error and the processing capability, the total number of the original samples possibly determined is 10000 samples. When the total number of the original sampling points is 10000 sampling points, the number M of the original sampling points in each segment can be determined to be 10, which is considered to be the limitation of the processing capacity of the hardware processing resource.
It is understood that after the original number of samples 10, the decimation factor, and the final number of samples 1000 are determined, the number of signal segmentation segments can be determined to be 100 segments, and thus, the final number of samples can be satisfied to be 1000, i.e., 1000 to 10 × 100.
Further, the number of the pseudo-random symbols can be determined by the number of the final sample points, the number of the signal segment segments and the sampling rate, and the number of the pseudo-random symbols can be denoted as Nsymbol.
Further, after acquiring the frequency difference and the number of signal segmentation segments of the signal to be generated, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation segments, the time difference of the signal to be generated can be acquired, and the positive and negative of the time difference are judged, if the time difference is less than 0, the channel parameter corresponding to the first channel and the channel parameter corresponding to the second channel can be exchanged. And after the exchange, executing subsequent traversal operation.
Further, different from the first to third embodiments of the dual-channel-based signal testing method for detecting a signal, when the dual-channel signal is generated for signal detection, the generated dual-channel signal is two paths of correlated signals with the same source and different delays.
For example, taking a dual-channel signal with the same source and the mixed multipath as an example, the simulation of different propagation delays and doppler shifts caused by the same radiation source passing through three different propagation paths will generate a two-channel signal with two paths of correlated signals with two time differences and frequency differences when reaching the two channels of the receiving end. One channel signal only contains a delayed version of the first propagation path, and the other channel signal contains a mixed delayed version of the second and third propagation paths. In particular, the frequency difference comprises a first frequency difference between a primary path and a first secondary path and a second frequency difference between the primary path and a second secondary path.
It will be appreciated that in view of the multi-path mixing, a primary path, a first secondary path and a second secondary path will be introduced, and that there are two frequency differences. For example, the first frequency difference may be denoted as frequency difference a, and the second frequency difference may be denoted as frequency difference B.
Correspondingly, the step S40 specifically includes:
step S401: and modulating the sampling signal through the first frequency difference to obtain a first modulation signal.
It should be understood that the sampled signal may also be first modulated by the frequency difference a in order to obtain another channel signal.
Correspondingly, the step S50 specifically includes:
step S504: and changing sampling points in the first modulation signal to obtain a second subsection signal corresponding to the first sub-path under the current subsection.
In view of the existence of the first sub path and the second sub path, the second segment signal corresponding to the first sub path and the second segment signal corresponding to the second sub path are generated first. For the second adaptive adjustment operation, reference may be made to the second to third embodiments of the dual channel-based signal testing method of the present invention. The difference is that, in the generation manner of the number of shifted samples, specifically, considering that the time difference includes a first time difference between the main path and the first sub-path and a second time difference between the main path and the second sub-path, the number of original samples in the current segment is determined, the first time difference in the signal to be generated is obtained, the number of first shifted samples is determined according to the first time difference, and then the number of first shifted samples is applied to perform the adaptive adjustment operation.
Correspondingly, after the step S504, the dual-channel based signal testing method further includes:
step S505: and modulating the sampling signal through the second frequency difference to obtain a second modulation signal.
Step S506: and changing sampling points in the second modulation signal to obtain a second subsection signal corresponding to the second secondary path under the current subsection.
It will be appreciated that, similarly, a second number of shifted samples will be determined from the second time difference and applied to the adaptation operation.
Step S507: and adding a second section signal corresponding to the first sub path and a second section signal corresponding to the second sub path to obtain a second section signal corresponding to the current section.
It should be understood that, finally, the second segment signal corresponding to the first sub-path and the second segment signal corresponding to the second sub-path are superimposed, and then the complex white noise is added, and the signals are quantized, and the real part and the imaginary part after quantization are taken as the second segment signal corresponding to the current segment.
Obviously, the present embodiment will distinguish the first sub-path from the second sub-path to be processed separately when obtaining the second segmented signal. In addition, there are three paths from which three time-delayed value comparison operations can be derived, further optimizing the shift.
Further, traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal, specifically including:
traversing each segment corresponding to the signal to be generated, and generating a pseudo-random symbol in the traversed current segment;
and forming mutually independent pseudo-random symbol sequences through the pseudo-random symbols, and sampling the pseudo-random symbol sequences to obtain sampling signals.
It should be understood that, as for another type of dual-channel signal of multiple radiation sources, multiple sets of different propagation delays and doppler shifts generated by the multiple radiation sources passing through two different propagation paths together will be simulated, and the finally generated dual-channel signal is a two-channel mixed correlation signal when reaching a receiving end dual channel.
In a specific implementation, in order to generate the dual-channel signals of the multiple radiation sources, the generation process is substantially the same as that of the first dual-channel signal, i.e., the two correlated signals that are homologous and have different delays, except that only a single pseudo-random symbol sequence is processed in the first dual-channel signal, while multiple pseudo-random symbol sequences exist in the dual-channel signals of the multiple radiation sources, and the multiple pseudo-random symbol sequences are independent of each other, i.e., multiple mutually independent pseudo-random symbol sequences are generated.
In the embodiment, two additional dual-channel signal generation modes are provided, which can be used for detecting weak signals, including homologous and multipath mixed dual-channel signals and dual-channel signals of a plurality of radiation sources, and can ensure phase continuity between segments during segment shift; and the three modes can generate different types of double-channel signals, and when non-integral multiple sampling points are generated, the high precision of the time difference can be ensured, and the precision reaches 0.01 us.
In addition, an embodiment of the present invention further provides a storage medium, where a dual-channel based signal testing program is stored on the storage medium, and when executed by a processor, the dual-channel based signal testing program implements the following operations:
acquiring the frequency difference of a signal to be generated and the number of signal segmentation sections, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation sections;
traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal;
determining a first segmentation signal under the current segmentation according to the sampling signal;
modulating the sampling signal by the frequency difference to obtain a modulated signal;
changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection;
when traversing of each segment corresponding to the signal to be generated is completed, splicing operation is respectively carried out on a first segment signal and a second segment signal corresponding to each segment so as to obtain a first channel signal and a second channel signal;
and taking the first channel signal and the second channel signal as test signals to carry out test operation.
Further, the dual channel based signal testing program when executed by the processor further implements the following operations:
and rightwards moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at the third preset position in the modulation signal into a preset sampling point to obtain a second subsection signal under the current subsection.
Further, the dual channel based signal testing program when executed by the processor further implements the following operations:
determining the number of original sample points in the current segmentation;
acquiring the time difference of the signal to be generated, and determining the number of the shift sampling points according to the time difference;
and subtracting the original number of the sampling points and the number of the shifted sampling points to obtain a first preset number, and taking N sampling points from left to right in the modulation signal as sampling points at a first preset position, wherein N is the first preset number.
Further, the dual channel based signal testing program when executed by the processor further implements the following operations:
and when the current subsection is a first preset subsection, right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection.
Further, the dual channel based signal testing program when executed by the processor further implements the following operations:
when the current subsection is a first preset subsection, storing a sampling point at a fourth preset position in the modulation signal into a first preset dump variable, moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection;
accordingly, the following operations are also implemented:
when the current subsection is a second preset subsection, storing sampling points stored in the first preset unloading variable into a second preset unloading variable, storing sampling points at a fourth preset position in the modulation signal into the first preset unloading variable, moving the sampling points at the first preset position in the modulation signal to the second preset position on the right, and modifying the sampling points at the third preset position in the modulation signal into the sampling points in the second preset unloading variable so as to obtain a second subsection signal under the current subsection.
Further, the dual channel based signal testing program when executed by the processor further implements the following operations:
modulating the sampling signal by the first frequency difference to obtain a first modulation signal;
accordingly, the following operations are also implemented:
changing sampling points in the first modulation signal to obtain a second subsection signal corresponding to the first sub-path under the current subsection;
accordingly, the following operations are also implemented:
modulating the sampling signal by the second frequency difference to obtain a second modulation signal;
changing sampling points in the second modulation signal to obtain a second subsection signal corresponding to the second secondary path under the current subsection;
and adding a second section signal corresponding to the first sub path and a second section signal corresponding to the second sub path to obtain a second section signal corresponding to the current section.
Further, the dual channel based signal testing program when executed by the processor further implements the following operations:
traversing each segment corresponding to the signal to be generated, and generating a pseudo-random symbol in the traversed current segment;
and forming mutually independent pseudo-random symbol sequences through the pseudo-random symbols, and sampling the pseudo-random symbol sequences to obtain sampling signals.
In this embodiment, a frequency difference and a signal segmentation segment number of a signal to be generated are obtained, and segments corresponding to the signal to be generated are generated according to the signal segmentation segment number; traversing each segment, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal; determining a first segmentation signal under the current segmentation according to the sampling signal; modulating the sampling signal by frequency difference to obtain a modulated signal; changing sampling points in the modulation signal to obtain a second segmentation signal under the current segmentation; when each subsection is traversed, splicing a first subsection signal and a second subsection signal corresponding to each subsection respectively to obtain a first channel signal and a second channel signal; and carrying out test operation by adopting the first channel signal and the second channel signal. Obviously, in this embodiment, since the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data volume can be obtained, and the test signal with longer data volume is used to perform the algorithm test operation of the correlation receiving algorithm, thereby solving the technical problem that the two-channel signal with long data volume cannot be generated to perform the algorithm test.
In addition, referring to fig. 6, an embodiment of the present invention further provides a dual channel-based signal testing apparatus, where the dual channel-based signal testing apparatus includes:
the information obtaining module 10 is configured to obtain a frequency difference and a signal segmentation segment number of a signal to be generated, and generate each segment corresponding to the signal to be generated according to the signal segmentation segment number.
It should be understood that the algorithm test operation of the correlation receiving algorithm can be performed by generating and applying the dual-channel signal, and the first channel signal and the second channel signal generated in the embodiment have a longer data size, so that the accuracy of the algorithm test can be greatly improved, and the algorithm test is more suitable for the differentiated test requirements.
It will be appreciated that the signal to be generated is a two-channel signal that is desired to be obtained, and to generate the two-channel signal, the frequency difference between the two-channel signals and the number of signal segment segments of the two-channel signal may be determined first. The number of segments of the signal segment can be recorded as Nseg, the Nseg is used for equally dividing the signal to be generated into a plurality of segments, and each segment has the same number of sampling points.
And a symbol generating module 20, configured to traverse each segment corresponding to the signal to be generated, generate a pseudo-random symbol in the traversed current segment, and sample the pseudo-random symbol to obtain a sampled signal.
It should be noted that, considering that when the value of Nseg is greater than 1, there will be a plurality of segments, each segment may be processed in a loop.
In a specific implementation, for example, the current segment traversed at this time may be denoted as segment a, and a plurality of pseudo-random symbols may be generated within a loop of segment a. The pseudo-random symbols may be subjected to a doppler shift-based modulation operation; after modulation, a pseudo-random symbol sequence formed by pseudo-random symbols may be sampled and sampled to 100MHz, thereby obtaining a sampled signal.
It should be understood that when sampling a pseudo-random symbol sequence of pseudo-random symbols, an aliasing-preventing upsampling may be used, and in particular, the upsampling may be a pulse-shaping filtering operation. For example, if there are 100 pseudo-random symbols, the sampled signal obtained after the final pulse shaping filtering may have 10000 points.
A first signal generating module 30, configured to determine a first segment signal under the current segment according to the sampling signal.
It is understood that the sampling signal of 100MHz sampling process can be decimated and amplitude controlled, and the complex white noise is added; then, the processed signal is quantized, and the real part and the imaginary part after quantization are used as a first segment signal corresponding to the segment a.
And a signal modulation module 40, configured to modulate the sampling signal by the frequency difference to obtain a modulated signal.
It should be understood that the sampled signal may also be carrier frequency modulated by a frequency difference in order to obtain the further channel signal.
And a second signal generating module 50, configured to modify a sampling point in the modulation signal to obtain a second segment signal under the current segment.
It will be appreciated that the sampling points in the modulated signal can be adaptively adjusted, and at the same time, the phase continuity between the segments can be ensured to obtain the second segment signal corresponding to segment a.
And a cyclic splicing module 60, configured to splice a first segment signal and a second segment signal corresponding to each segment when traversing of each segment corresponding to the signal to be generated is completed, so as to obtain a first channel signal and a second channel signal.
It should be understood that after obtaining the first segment signals under a single segment a, the first segment signals under all segments may be spliced to obtain a set of first segment signals, i.e., a first channel signal. Similarly, the second segmented signals under all segments can be spliced to obtain a set of second segmented signals, i.e. a second channel signal. The first channel signal and the second channel signal are dual-channel signals.
In a specific implementation, in order to splice the first segment signal and the second segment signal, the segment signals are generated and then sequentially stored in a fixed file, so that the first segment signal and the second segment signal can be spliced.
The signal detection module 70 is configured to perform a test operation on the first channel signal and the second channel signal as test signals.
It can be understood that, by generating the first channel signal and the second channel signal in this way, since the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data size can be obtained. By using the test signal with longer data volume to carry out the algorithm test operation of the related receiving algorithm, the test precision can be improved, and the more differentiated test requirements can be met.
In this embodiment, a frequency difference and a signal segmentation segment number of a signal to be generated are obtained, and segments corresponding to the signal to be generated are generated according to the signal segmentation segment number; traversing each segment, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal; determining a first segmentation signal under the current segmentation according to the sampling signal; modulating the sampling signal by frequency difference to obtain a modulated signal; changing sampling points in the modulation signal to obtain a second segmentation signal under the current segmentation; when each subsection is traversed, splicing a first subsection signal and a second subsection signal corresponding to each subsection respectively to obtain a first channel signal and a second channel signal; and carrying out test operation by adopting the first channel signal and the second channel signal. Obviously, in this embodiment, since the first channel signal and the second channel signal are processed in a segmented manner, the first channel signal and the second channel signal with longer data volume can be obtained, and the test signal with longer data volume is used to perform the algorithm test operation of the correlation receiving algorithm, thereby solving the technical problem that the two-channel signal with long data volume cannot be generated to perform the algorithm test.
In an embodiment, the second signal generating module 50 is further configured to shift a sampling point in the modulated signal at a first preset position to a second preset position, and modify a sampling point in the modulated signal at a third preset position into a preset sampling point, so as to obtain a second segment signal under the current segment.
In one embodiment, the dual channel-based signal testing apparatus further comprises:
the preset position setting module is used for determining the number of original sample points in the current segmentation; acquiring the time difference of the signal to be generated, and determining the number of the shift sampling points according to the time difference; and subtracting the original number of the sampling points and the number of the shifted sampling points to obtain a first preset number, and taking N sampling points from left to right in the modulation signal as sampling points at a first preset position, wherein N is the first preset number.
In an embodiment, the second signal generating module 50 is further configured to, when the current segment is a first preset segment, right shift a sampling point at a first preset position in the modulation signal to a second preset position, and modify a sampling point at a third preset position in the modulation signal to a sampling point with a zero value, so as to obtain a second segment signal under the current segment.
In one embodiment, the dual channel-based signal testing apparatus further comprises:
the second signal generating module 50 is further configured to, when the current segment is a first preset segment, store a sampling point at a fourth preset position in the modulation signal into a first preset dump variable, right shift the sampling point at the first preset position in the modulation signal to a second preset position, and modify the sampling point at the third preset position in the modulation signal into a sampling point whose value is zero, so as to obtain a second segment signal under the current segment;
and the third signal generation module is used for storing the sampling points stored in the first preset unloading variable into a second preset unloading variable when the current subsection is a second preset subsection, storing the sampling points at a fourth preset position in the modulation signal into the first preset unloading variable, right-shifting the sampling points at the first preset position in the modulation signal to the second preset position, and modifying the sampling points at the third preset position in the modulation signal into the sampling points in the second preset unloading variable so as to obtain a second subsection signal under the current subsection.
In one embodiment, the dual channel-based signal testing apparatus further comprises:
the signal modulation module 40 is further configured to modulate the sampling signal by the first frequency difference to obtain a first modulated signal;
the second signal generating module 50 is further configured to modify sampling points in the first modulation signal to obtain a second segment signal corresponding to the first secondary path under the current segment;
the path respectively processing module is used for modulating the sampling signal through the second frequency difference to obtain a second modulation signal; changing sampling points in the second modulation signal to obtain a second subsection signal corresponding to the second secondary path under the current subsection; and adding a second section signal corresponding to the first sub path and a second section signal corresponding to the second sub path to obtain a second section signal corresponding to the current section.
In an embodiment, the symbol generating module 20 is further configured to traverse each segment corresponding to the signal to be generated, and generate a pseudo-random symbol in the traversed current segment; and forming mutually independent pseudo-random symbol sequences through the pseudo-random symbols, and sampling the pseudo-random symbol sequences to obtain sampling signals.
Other embodiments or specific implementation manners of the dual-channel-based signal testing device according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory, a RAM, a magnetic disk, and an optical disk), and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A signal testing method based on double channels is characterized by comprising the following steps:
acquiring the frequency difference of a signal to be generated and the number of signal segmentation sections, and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation sections;
traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal;
determining a first segmentation signal under the current segmentation according to the sampling signal;
modulating the sampling signal by the frequency difference to obtain a modulated signal;
changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection;
when traversing of each segment corresponding to the signal to be generated is completed, splicing operation is respectively carried out on a first segment signal and a second segment signal corresponding to each segment so as to obtain a first channel signal and a second channel signal;
taking the first channel signal and the second channel signal as test signals to carry out test operation;
the determining a first segment signal under the current segment according to the sampling signal includes:
performing signal extraction, amplitude control and complex white noise addition on the sampling signal to obtain a target sampling signal;
quantizing the target sampling signal, and taking a real part and an imaginary part after quantization as a first segmentation signal under the current segmentation;
the changing the sampling point in the modulation signal to obtain the second segment signal under the current segment includes:
and rightwards moving the sampling point at the first preset position in the modulation signal to a second preset position, modifying the sampling point at the third preset position in the modulation signal into a preset sampling point, and ensuring the phase continuity among all the segments so as to obtain a second segment signal under the current segment.
2. The dual channel-based signal testing method of claim 1, wherein before the right shifting of the sampling point at the first preset position in the modulated signal to the second preset position and the modification of the sampling point at the third preset position in the modulated signal to the preset sampling point to obtain the second segmented signal under the current segmentation, the dual channel-based signal testing method further comprises:
determining the number of original sample points in the current segmentation;
acquiring the time difference of the signal to be generated, and determining the number of the shift sampling points according to the time difference;
and subtracting the original number of the sampling points and the number of the shifted sampling points to obtain a first preset number, and taking N sampling points from left to right in the modulation signal as sampling points at a first preset position, wherein N is the first preset number.
3. The dual-channel-based signal testing method according to claim 2, wherein the right shifting of the sampling point at the first preset position in the modulation signal to the second preset position and the modification of the sampling point at the third preset position in the modulation signal to the preset sampling point are performed to obtain the second segment signal under the current segment, specifically comprising:
and when the current subsection is a first preset subsection, right shifting a sampling point at a first preset position in the modulation signal to a second preset position, and modifying a sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection.
4. The dual-channel-based signal testing method as claimed in claim 3, wherein when the current segment is a first preset segment, the right shifting of the sampling point at the first preset position in the modulation signal to a second preset position and the modification of the sampling point at the third preset position in the modulation signal to a sampling point with a zero value to obtain a second segment signal under the current segment specifically comprises:
when the current subsection is a first preset subsection, storing a sampling point at a fourth preset position in the modulation signal into a first preset dump variable, moving the sampling point at the first preset position in the modulation signal to a second preset position, and modifying the sampling point at a third preset position in the modulation signal into a sampling point with a zero value to obtain a second subsection signal under the current subsection;
accordingly, after the sampling signal is modulated by the frequency difference to obtain a modulated signal, the dual channel-based signal testing method further includes:
when the current subsection is a second preset subsection, storing sampling points stored in the first preset unloading variable into a second preset unloading variable, storing sampling points at a fourth preset position in the modulation signal into the first preset unloading variable, moving the sampling points at the first preset position in the modulation signal to the second preset position on the right, and modifying the sampling points at the third preset position in the modulation signal into the sampling points in the second preset unloading variable so as to obtain a second subsection signal under the current subsection.
5. The dual channel-based signal testing method of claim 1, wherein the frequency difference comprises a first frequency difference between a main path and a first sub-path and a second frequency difference between the main path and a second sub-path;
correspondingly, the modulating the sampling signal by the frequency difference to obtain a modulated signal specifically includes:
modulating the sampling signal by the first frequency difference to obtain a first modulation signal;
correspondingly, the changing the sampling point in the modulation signal to obtain the second segment signal under the current segment specifically includes:
changing sampling points in the first modulation signal to obtain a second subsection signal corresponding to the first sub-path under the current subsection;
correspondingly, after the sampling points in the first modulation signal are changed to obtain the second segment signal corresponding to the first sub-path under the current segment, the dual-channel-based signal testing method further includes:
modulating the sampling signal by the second frequency difference to obtain a second modulation signal;
changing sampling points in the second modulation signal to obtain a second subsection signal corresponding to the second secondary path under the current subsection;
and adding a second section signal corresponding to the first sub path and a second section signal corresponding to the second sub path to obtain a second section signal corresponding to the current section.
6. The dual channel-based signal testing method of any one of claims 1 to 5, wherein traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampled signal, specifically comprises:
traversing each segment corresponding to the signal to be generated, and generating a pseudo-random symbol in the traversed current segment;
and forming mutually independent pseudo-random symbol sequences through the pseudo-random symbols, and sampling the pseudo-random symbol sequences to obtain sampling signals.
7. A test apparatus, characterized in that the test apparatus comprises: memory, processor and a dual channel based signal test program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the dual channel based signal test method of any of claims 1 to 6.
8. A storage medium having stored thereon a dual channel based signal testing program which, when executed by a processor, implements the steps of the dual channel based signal testing method of any of claims 1 to 6.
9. A dual channel based signal testing apparatus, the dual channel based signal testing apparatus comprising:
the device comprises an information acquisition module, a signal segmentation module and a signal segmentation module, wherein the information acquisition module is used for acquiring the frequency difference and the number of signal segmentation segments of a signal to be generated and generating each segment corresponding to the signal to be generated according to the number of the signal segmentation segments;
the symbol generation module is used for traversing each segment corresponding to the signal to be generated, generating a pseudo-random symbol in the traversed current segment, and sampling the pseudo-random symbol to obtain a sampling signal;
a first signal generation module, configured to determine a first segment signal under the current segment according to the sampling signal;
the signal modulation module is used for modulating the sampling signal through the frequency difference to obtain a modulation signal;
the second signal generation module is used for changing sampling points in the modulation signal to obtain a second subsection signal under the current subsection;
the cyclic splicing module is used for respectively splicing a first section signal and a second section signal corresponding to each section when traversing of each section corresponding to the signal to be generated is completed so as to obtain a first channel signal and a second channel signal;
the signal detection module is used for taking the first channel signal and the second channel signal as test signals to carry out test operation;
the first signal generation module is further configured to perform signal extraction, amplitude control and complex white noise addition on the sampling signal to obtain a target sampling signal, quantize the target sampling signal, and use a quantized real part and an imaginary part as a first segment signal under the current segment;
the second signal generation module is further configured to shift a sampling point in the modulated signal at the first preset position to the second preset position, modify the sampling point in the modulated signal at the third preset position into a preset sampling point, and ensure phase continuity between segments to obtain a second segment signal under the current segment.
CN201910588424.7A 2019-07-01 2019-07-01 Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels Active CN110332948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910588424.7A CN110332948B (en) 2019-07-01 2019-07-01 Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910588424.7A CN110332948B (en) 2019-07-01 2019-07-01 Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels

Publications (2)

Publication Number Publication Date
CN110332948A CN110332948A (en) 2019-10-15
CN110332948B true CN110332948B (en) 2021-05-04

Family

ID=68144708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910588424.7A Active CN110332948B (en) 2019-07-01 2019-07-01 Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels

Country Status (1)

Country Link
CN (1) CN110332948B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127973B (en) * 2006-12-18 2011-11-02 浙江华立通信集团有限公司 Multi-path receiving merger for TD-SCDMA/3G/4G terminal
CN100579239C (en) * 2008-04-09 2010-01-06 北京创毅视讯科技有限公司 Synchronization method and unit for receiver in DTMB system
CN103856956B (en) * 2012-11-29 2017-09-08 重庆重邮信科通信技术有限公司 A kind of LTE system cell detecting method
AU2014200958B2 (en) * 2013-02-25 2016-01-14 Seegene, Inc. Detection of nucleotide variation on target nucleic acid sequence
CN104065604B (en) * 2013-03-21 2017-09-29 联想(北京)有限公司 Signal synchronizing method, receiving terminal and system
CN103414502B (en) * 2013-07-21 2016-04-27 西北工业大学 Doppler frequency shift tolerance limit extended method in 2FSK spread spectrum system receiver
CN107425918A (en) * 2016-05-23 2017-12-01 中国移动通信集团湖南有限公司 A kind of modulation based on QAM, demodulation method and device
CN106444961B (en) * 2016-09-12 2019-03-12 深圳市鼎阳科技有限公司 A kind of double-channel signal generator output waveform synchronous method
CN106569543B (en) * 2016-09-12 2019-05-03 深圳市鼎阳科技有限公司 A kind of double-channel signal generator and its output waveform synchronous method
CN109660277B (en) * 2018-12-28 2020-06-16 北京理工大学 Hybrid spread spectrum information generation device and method
CN109752736B (en) * 2018-12-28 2021-03-19 北京邮电大学 Satellite test signal generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110332948A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
US10784907B2 (en) Apparatus to detect interference in wireless signals
US9900184B2 (en) Method, device and storage medium for frequency offset estimate
US9241229B2 (en) Visual representation of audio data
CN106160882A (en) A kind of multiband wireless channel measurement calibration steps and system
CN110149656A (en) Wireless signal coverage test method and device
CN110505169A (en) A kind of phase alignment and device
TWI412237B (en) Data collector, computer readable medium, data collection method, and method of performing simulation
KR102303289B1 (en) Method and apparatus for improving phase measurement accuracy
CN110332948B (en) Signal testing method, signal testing equipment, storage medium and signal testing device based on double channels
CN110020333A (en) Data analysing method and device, electronic equipment, storage medium
CN109640013A (en) A kind of time sequence calibration method and chip testing machine
CN114089806A (en) Waveform sequence creating apparatus, method, electronic device, and storage medium
JP5319788B2 (en) Audio signal alignment method
US10622971B2 (en) Method and device for adjusting passband width of filter
CN114064505A (en) Test method, system, device and storage medium for decoding unit
CN105515910A (en) Group delay measuring method and device
EP3789778B1 (en) Method and device for generating test signals at different carrier frequencies
CN110082826B (en) Multi-channel matching tracking method based on spatial information index, storage medium and terminal
CN114089807A (en) Waveform sequence editing apparatus, method, electronic device, and storage medium
CN106793017B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN107846697B (en) SRS scheduling method and system
CN114489919B (en) Complex electromagnetic environment signal synthesis method and apparatus for signal playback device
CN117849509B (en) Method for determining frequency consistency level between channels of frequency converter and related equipment
US20230254109A1 (en) Synchronization Signal (Sync Mark) Detection Using Multi-Frequency Sinusoidal (MFS) Signal-Based Filtering
CN110299979B (en) Same-frequency measurement method, network equipment, terminal and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Signal testing method, testing equipment, storage medium and device based on dual channels

Granted publication date: 20210504

Pledgee: Wuhan Optics Valley Small and Medium Duty Venture Capital Co.,Ltd.

Pledgor: WUHAN CPCTECH CO.,LTD.

Registration number: Y2024980013945

PE01 Entry into force of the registration of the contract for pledge of patent right